News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Why do widely used frameworks in python use strings instead of enums for parameters?
https://www.reddit.com/r/Python/comments/1g52103/why_do_widely_used_frameworks_in_python_use/
JameSQL
An in-memory NoSQL database implemented in Python.
https://github.com/capjamesg/jamesql
Writing a Home Assistant Core Integration: Part 1
The article details the development of pytouchlinesl, a Python library for interacting with Roth Touchline SL underfloor heating systems. It covers the design process, API implementation, testing strategies, CI/CD setup, and publishing to PyPI, highlighting the use of modern Python tools like uv, pydantic, and ruff.
https://jnsgr.uk/2024/09/pytouchlinesl/
Python 3.12 vs. Python 3.13 – performance testing
https://en.lewoniewski.info/2024/python-3-12-vs-python-3-13-performance-testing/
ditto
The simplest self-building coding agent.
https://github.com/yoheinakajima/ditto
The New Python 3.13 Is FINALLY Here!
Python 3.13 is here with exciting updates! Dive into the key new features, including the game-changing option to disable the Global Interpreter Lock (GIL).
https://www.youtube.com/watch?v=eUDGlxu_-ic
Python Hub Weekly Digest for 2024-10-20
https://pythonhub.dev/digest/2024-10-20/
Otter Wiki: A minimalistic wiki powered by Python, Markdown and git
https://otterwiki.com/
I Understand Machine Learning with Numpy and PyTorch Better Since I Started Focusing on the Basics
https://www.reddit.com/r/Python/comments/1g1uuyc/i_understand_machine_learning_with_numpy_and/
Python 3.13.0
The newest major release of Python introduces several new features including an improved interactive interpreter, an experimental free-threaded build mode, and a preliminary JIT, along with various optimizations and changes to the standard library.
https://www.python.org/downloads/release/python-3130/
Python client for the $20 Colmi R02 smart ring
https://tahnok.github.io/colmi_r02_client/colmi_r02_client.html
Django + Postgres: The Hunt for Long Running Queries
Using django-pgactivity for application-level monitoring of database queries.
https://pgilmartin.substack.com/p/django-postgres-the-hunt-for-long
Splink
Fast, accurate and scalable probabilistic data linkage with support for multiple SQL backends.
https://github.com/moj-analytical-services/splink
NanoCube
Lightning fast OLAP-style point queries on Pandas DataFrames.
https://github.com/Zeutschler/nanocube
CSnakes
A tool for embedding Python into .NET projects.
https://github.com/tonybaloney/csnakes
Adding syntax to the CPython interpreter
https://leontrolski.github.io/grammar.html
A hand-holding guide to writing FUSE-based filesystems in Python
This video tutorial provides a step-by-step guide to writing FUSE-based filesystems in Python. It starts with a simple example and gradually adds more features, making it suitable for beginners.
https://www.youtube.com/watch?v=VuKK0bEkSdo
The Uncertain Art of Accelerating ML Models
This podcast episode features Sylvain Gugger, a machine learning engineer at Jane Street, discussing techniques for accelerating ML models. The conversation covers topics like learning rate schedules, performance optimization in PyTorch, GPU utilization, and the unique challenges of applying ML in trading environments.
https://signalsandthreads.com/the-uncertain-art-of-accelerating-ml-models/
Parsera
Lightweight library for scraping web-sites with LLMs.
https://github.com/raznem/parsera
Pyloid
Pyloid is the Python backend version of Electron and Tauri, providing an open-source project that allows you to easily utilize various Python integration features. With Pyloid, developing desktop applications becomes simple, enabling you to effortlessly build apps by integrating Python's powerful capabilities.
https://github.com/pyloid/pyloid
Custom Dictionary Types in Pydantic
A quick primer on leveraging custom root types for this task.
https://bryananthonio.com/blog/pydantic-custom-dictionary-types/
In the Making of Python Fitter and Faster
How Python's recent performance improvements work under the hood.
https://sumercip.com/posts/making-python-fitter-and-faster/
Pyinstrument v5.0 - flamegraphs for Python!
https://www.reddit.com/r/Python/comments/1g1az6i/pyinstrument_v50_flamegraphs_for_python/
Python 3.13 and the Latest Trends: A Developer’s Guide to 2025
Learn about the exciting new features in Python 3.13. Get insider insights into the latest updates and learn about the plans for Python 3.14.
https://www.youtube.com/live/GPwYSf1t8Lw
TypedDicts are better than you think
This post explains how Python’s TypedDict can enhance code clarity and maintainability by enabling more precise type annotations in dictionaries. It discusses how TypedDict ensures type safety and helps with early error detection in dynamic programming environments.
https://blog.changs.co.uk/typeddicts-are-better-than-you-think.html
Niquests
Niquests is a simple, yet elegant, HTTP library. It is a drop-in replacement for Requests, which is under feature freeze.
https://github.com/jawah/niquests
Django dashboard
give your django dashboard a new modern skin with new features,
Mobile responsive and customizable on top of tailwindcss
https://github.com/hypy13/django-daisy/
Python and SysV shared memory
The article explains how to use Python's ctypes to wrap SystemV shared memory functions (like shmat, shmget) for interprocess communication on systems restricted to Python 3.7. The author demonstrates creating, reading, writing, and destroying shared memory segments through Python, noting that while this approach isn't needed in Python 3.8+ due to built-in abstractions, it's useful in re...
https://euroquis.nl/blabla/2024/10/08/shm.html
Switching from virtualenvwrapper to direnv, Starship, and uv
Earlier this week I considered whether I should finally switch away from virtualenvwrapper to using ...
https://treyhunner.com/2024/10/switching-from-virtualenvwrapper-to-direnv-starship-and-uv/
uv IS the Future of Python Packaging
The video discusses the recent release of UV 0.3.0, a Python packaging tool that aims to streamline the development workflow by integrating features that allow it to serve as a comprehensive solution for managing Python projects. The presenter highlights its speed, ease of use, and potential to replace existing tools, while also addressing current limitations and areas for improvement in...
https://www.youtube.com/watch?v=8UuW8o4bHbw