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.
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 & Tutorials
× 11Explores 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.
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.
A comprehensive series analyzing Django REST Framework (DRF) source code, covering lifecycle, Authentication, Permission, Throttle components, and their adaptations.
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.
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)
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.
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.
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.
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.
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
× 12A 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.
A table extraction tool that uses surya to find all tables in PDFs, identifies rows/columns, and formats cells into markdown, csv, or html.
Browse data on over 700,000 packages on PyPI and more than 1.16 trillion downloads.
Ready-to-use financial instruments including the most common ones like stock forwards and options, plus position, trade, and portfolio models.
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.
Built on wgpu, it delivers superior performance and reliability compared to OpenGL, perfect for scientific visualization, video game rendering, and more.
A music processing tool with a Pygame-based GUI and integrated MIDI functionality for handling notes and melodies.
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.
A web application (built with Gradio) that can translate videos into different languages while maintaining audio synchronization.
Matches 2D images with point cloud data in 3D space for precise spatial positioning and scene understanding. (1.3K stars)
Brings async support to file operations, similar to Python's standard file operations but with async/await support. (2.8K stars)
Graphically monitor CPU temperature, frequency, power, and utilization changes right in your terminal. (4.2K stars)
Podcasts & Videos
× 1PyBay is the annual Python enthusiast conference hosted by the Bay Area Python Society, now in its 9th year.
Discussions & Questions
× 2For example, why does matplotlib use fig.legend(loc='topleft') instead of an enum-style LegendPlacement.TOPLEFT?
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.