Python Trending Weekly
ISSUE 75

Building NoSQL Databases with Python

2024-11-02 Season 3

TL;DR

Build a NoSQL database in Python and follow the code all the way down to CPU instructions, with PEP-750's template strings resurfacing and REST APIs turning 25.

Articles 11 Projects 12 Media 1 Discussions 2
🦄

Articles & Tutorials

× 11
01 Building a NoSQL database in Python jamesg.blog

This article walks you through building a NoSQL database from scratch using Python. It covers how NoSQL databases work under the hood, including core data structures, global secondary indexes, query engines, and implementing complex queries.

02 Python 3.13, what didn't make the headlines bitecode.dev

Explores the lesser-known but noteworthy changes in Python 3.13, including improvements to the pdb debugger, fixes to the shutil library, minor concurrency optimizations, new annotation syntax, and various API adjustments.

03 PEP 750 – Template Strings pep-previews--4062.org.readthedocs.build

A draft PEP proposing template strings for handling custom string processing. It's essentially a generalization of f-strings, using "t" instead of "f", with support for security checks, web templates, domain-specific languages, and more.

04 DRF Framework Component Source Code Analysis and Adaptation Series cnblogs.com

A comprehensive series analyzing Django REST Framework (DRF) source code, covering lifecycle, Authentication, Permission, Throttle components, and their adaptations.

05 From Python to CPU instructions dilovan.substack.com

Python is a high-level language that shields developers from low-level implementation details. This series starts by writing the same program in both C and Python to reveal what Python hides from us, then dives deeper into how C code gets converted to CPU instructions, helping us understand what happens behind the scenes.

06 Solving Sudoku with Python's Package Resolver simonwillison.net

We featured the sudoku-in-python-packaging project in our last issue. This article explains how it works and includes a quick performance comparison between uv (0.24 seconds) and pip-tools (17.72 seconds). (@frostming noted that someone had a similar idea 2 years ago: Solving Sudoku with Poetry's dependency resolver)

07 Don't Implement Unification by Recursion philipzucker.com

Unification is a method for solving equations or constraint sets by finding substitutions that make two given expressions identical after replacement. This article discusses different algorithms for implementing unification, particularly comparing recursive versus non-recursive (iterative) approaches.

08 Adding keyboard shortcuts to the Python REPL treyhunner.com

The author is a big fan of Python 3.13's REPL and shares how to add keyboard shortcuts to it using the lesser-known PYTHONSTARTUP file and _pyrepl module.

09 Embedding Python into your .NET project with CSnakes tonybaloney.github.io

How do you deeply embed Python into .NET projects? The author developed CSnakes and explains its implementation principles, demonstrates .NET-Python script interactions with real examples, and compares it with frameworks like IronPython, Python.NET, and Pyjion.

10 Streamlit vs Gradio: The Ultimate Showdown for Python Dashboards myscale.com

Python offers plenty of great tools for data analysis and visualization. This article provides a comprehensive comparison of Streamlit and Gradio, two major dashboard tools, examining their features and advantages.

11 REST APIs Turn 25: How They Came To Be and What Could Be Next journal.hexmos.com

The REST (Representational State Transfer) concept was born in 2000. With the rise of AI and automation, how might RESTful APIs evolve in this new landscape? This article reviews REST's origins and development during the "Web era" and predicts its potential evolution in the "AI era."

🐿️

Projects & Resources

× 12
01 jamesql: An in-memory NoSQL database implemented in Python github.com

A lightweight database built with Python that supports custom sorting algorithms. It can perform multi-field full-text searches across thousands of documents in under 1ms.

02 tabled: Detect and extract tables to markdown and csv github.com

A table extraction tool that uses surya to find all tables in PDFs, identifies rows/columns, and formats cells into markdown, csv, or html.

03 ClickPy - Python package analytics clickpy.clickhouse.com

Browse data on over 700,000 packages on PyPI and more than 1.16 trillion downloads.

ClickPy - Python package analytics
04 finstruments: Financial instrument definitions built with Python and Pydantic github.com

Ready-to-use financial instruments including the most common ones like stock forwards and options, plus position, trade, and portfolio models.

05 pneumaticworkflow: lightweight workflow automation tool github.com

An open-source cloud-native workflow management system with Apache 2.0 license, featuring visual workflow design, automated task management, scalable architecture, third-party API integration, real-time monitoring and analytics dashboard, and role-based access control.

06 pygfx: Powerful and versatile visualization for Python github.com

Built on wgpu, it delivers superior performance and reliability compared to OpenGL, perfect for scientific visualization, video game rendering, and more.

07 Music: Create and manipulate musical compositions github.com

A music processing tool with a Pygame-based GUI and integrated MIDI functionality for handling notes and melodies.

08 wimsey: Easy and flexible data testing and documentation github.com

Works with popular dataframe libraries (Pandas, Polars, Dask, CuDF, Rapids, Arrow, and Modin), supports multiple contract formats (yaml, json, or Python), lightweight and user-friendly.

09 SoniTranslate: Synchronized Translation for Videos. Video dubbing github.com

A web application (built with Gradio) that can translate videos into different languages while maintaining audio synchronization.

10 mast3r: Grounding Image Matching in 3D with MASt3R github.com

Matches 2D images with point cloud data in 3D space for precise spatial positioning and scene understanding. (1.3K stars)

11 aiofiles: File support for asyncio github.com

Brings async support to file operations, similar to Python's standard file operations but with async/await support. (2.8K stars)

12 s-tui: Terminal-based CPU stress and monitoring utility github.com

Graphically monitor CPU temperature, frequency, power, and utilization changes right in your terminal. (4.2K stars)

s-tui: Terminal-based CPU stress and monitoring utility
🐢

Podcasts & Videos

× 1
01 PyBay 2024 Talk Collection (29 videos) youtube.com

PyBay is the annual Python enthusiast conference hosted by the Bay Area Python Society, now in its 9th year.

🥂

Discussions & Questions

× 2
01 Why do widely used frameworks in python use strings instead of enums for parameters? reddit.com

For example, why does matplotlib use fig.legend(loc='topleft') instead of an enum-style LegendPlacement.TOPLEFT?

02 This is now valid syntax in Python 3.13! reddit.com

Python 3.13 introduced a syntax feature that allows list comprehensions and lambdas in type annotations! However, the code readability is pretty terrible, and the comments section is already full of opposition.

ESC
↑↓ select · ↵ open175 issues