News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Speed Up Django Queries with values() over only()
Optimizing Django performance? Use values() instead of only() when you only need specific fields, as it skips full model instantiation and avoids triggering deferred field lookups—boosting query efficiency. The article provides practical guidance on when to choose values() for lightweight data access.
https://johnnymetz.com/posts/django-values-over-only/
chisel
CLI tool for developing and profiling GPU kernels locally. Just write, test, and profile GPU code from your laptop.
https://github.com/Herdora/chisel
AlphaGenome
This API provides programmatic access to the AlphaGenome model developed by Google DeepMind.
https://github.com/google-deepmind/alphagenome
It Seems I No Longer Use Python’s Dataclasses
The video explores whether Python’s built-in dataclasses are still useful in 2025, given the rise of tools like Pydantic, FastAPI, and SQLAlchemy, concluding that most production code now relies on specialized data structures from these libraries rather than standard dataclasses. However, the presenter still finds dataclasses valuable for rapid prototyping and domain modeling, as they of...
https://www.youtube.com/watch?v=NRIgLNzmnYY
Reading NFC Passport Chips in Linux
The article explains how to read all data, including biometrics, from an NFC passport chip on Linux using the pypassport tool, detailing the process of reconstructing the required MRZ (Machine Readable Zone) password from passport details and providing Python code for both MRZ generation and chip reading
https://shkspr.mobi/blog/2025/06/reading-nfc-passport-chips-in-linux/
genai-bench
Genai-bench is a powerful benchmark tool designed for comprehensive token-level performance evaluation of large language model (LLM) serving systems.
https://github.com/sgl-project/genai-bench
TreeQuest
A Tree Search Library with Flexible API for LLM Inference-Time Scaling.
https://github.com/SakanaAI/treequest
Kajson
Universal JSON Encoder/Decoder for Python.
https://github.com/Pipelex/kajson
Fun with uv and PEP 723
The article demonstrates how combining the new Python package manager uv with PEP 723 allows you to write self-contained Python scripts that declare and manage their own dependencies using inline metadata, making one-off scripting much easier and more portable. It showcases practical examples, such as running scripts with uv run and creating executable scripts that fetch YouTube transcri...
https://www.cottongeeks.com/articles/2025-06-24-fun-with-uv-and-pep-723
Django: Introducing inline-snapshot-django
The article introduces inline-snapshot-django, a new Django package for snapshot testing SQL queries, allowing developers to automatically capture and compare query outputs in their tests. It aims to provide a more detailed and developer-friendly alternative to Django’s assertNumQueries(), making it easier to debug and maintain test suites for database interactions.
https://adamj.eu/tech/2025/06/24/django-introducing-inline-snapshot-django/
Switching pip to uv in a Dockerized Flask / Django App
Switching from pip to uv in Dockerized Flask or Django apps results in about a 10x faster dependency installation and introduces robust, lockfile-based dependency management, improving both speed and reliability. The process involves replacing requirements.txt with pyproject.toml, adjusting Dockerfiles to use uv commands, and configuring environment variables for efficient, reproducible ...
https://nickjanetakis.com/blog/switching-pip-to-uv-in-a-dockerized-flask-or-django-app
Leveraging Google Adk For Cyber Intelligence
The article details how Google Cloud's Agent Development Kit (ADK) enables the creation of autonomous, multi-agent cybersecurity systems like CyberGuardian, which coordinate specialized agents for real-time threat detection, analysis, containment, and automated recovery.
https://manta.black/leveraging-google-adk-for-cyber-intelligence.html
HKUDS / AutoAgent
"AutoAgent: Fully-Automated and Zero-Code LLM Agent Framework"
https://github.com/HKUDS/AutoAgent
django-rls
PostgreSQL Row Level Security for Django.
https://github.com/kdpisda/django-rls
Python Hub Weekly Digest for 2025-07-06
https://pythonhub.dev/digest/2025-07-06/
Making a Simple HTTP Server with Asyncio Protocols
Learn how to build a fast, minimal HTTP server using asyncio.Protocol, complete with routing, parsing, and response handling from scratch!
https://jacobpadilla.com/articles/asyncio-protocols
jdepoix / youtube-transcript-api
This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require an API key nor a headless browser, like other selenium based solutions do!
https://github.com/jdepoix/youtube-transcript-api
force-push-scanner
Scan for secrets in dangling commits on GitHub using GH Archive data.
https://github.com/trufflesecurity/force-push-scanner
Build a Podcast Discovery Web App in Pure Python
The video is a step-by-step tutorial on building a full-stack podcast discovery web app using only Python, leveraging the Reflex framework for both frontend and backend development. It demonstrates integrating user authentication with Clerk, database management with Postgres, and data validation with Pydantic, showing how modern Python tools can be combined to create interactive, product...
https://www.youtube.com/watch?v=9RUhp99J87c
Spegel
Automatically rewrites the websites into markdown optimised for viewing in the terminal.
https://github.com/simedw/spegel
Statically checking Python dicts for completeness
A Pythonic way to ensure that your statically-defined dicts are complete, with full source code.
https://lukeplant.me.uk/blog/posts/statically-checking-python-dicts-for-completeness/
rl-swarm
A fully open source framework for creating RL training swarms over the internet.
https://github.com/gensyn-ai/rl-swarm
PhotoshopAPI: 20× Faster Headless PSD Automation & Full Smart Object Control (No Photoshop Required)
https://www.reddit.com/r/Python/comments/1lre64q/photoshopapi_20_faster_headless_psd_automation/
The logging module is from 2002. Here's how to use it in 2025
https://www.reddit.com/r/Python/comments/1lq2zq0/the_logging_module_is_from_2002_heres_how_to_use/
OctopusDash
OctopusDash is a modern, open-source Django admin dashboard designed with a beautiful UI, powerful filtering, and granular permission control — crafted for developers and teams seeking more flexibility, clarity, and extensibility beyond the default Django admin.
https://github.com/husseinnaeemsec/octopusdash
MicroPython on M68k Mac
stylus/114749858767978151">stylus/114749858767978151" rel="nofollow">https://social.afront.org/@stylus/114749858767978151
Fast Thermodynamic Calculations in Python
https://dlr-institute-of-future-fuels.github.io/gaspype/
The one FastAPI boilerplate to rule them all
https://www.reddit.com/r/Python/comments/1lq5ccm/the_one_fastapi_boilerplate_to_rule_them_all/
facebookresearch / vggt
CVPR 2025 Best Paper Award VGGT: Visual Geometry Grounded Transformer
https://github.com/facebookresearch/vggt
Uv and Ray: Pain-Free Python Dependencies in Clusters
https://www.anyscale.com/blog/uv-ray-pain-free-python-dependencies-in-clusters