en
Feedback
PythonHub

PythonHub

Open in Telegram

News & links about Python programming. https://pythonhub.dev/

Show more
2 624
Subscribers
+124 hours
+87 days
+4330 days
Posts Archive
Write a coding agent from first principles This tutorial will show you how to create your own coding agent from first principles. By doing so, you'll understand how coding agents work under the hood. https://mathspp.com/blog/write-a-coding-agent-from-first-principles

The Fastest Python Struct? The article explores the performance tradeoffs of Python's various struct-like types, focusing on startup and type-definition costs rather than runtime business logic. Extensive benchmarks reveal that NamedTuple sits in the middle of the pack, while msgspec and C-backed implementations deliver the fastest type creation and startup times. https://www.crumpledpaper.tech/2026-06-21-python-struct-profiling/

Array API adoption: what to do with compiled code The post examines how Array API compatibility and JIT compilation can modernize legacy scientific Python code for GPUs and multicore CPUs. The results suggest developers can achieve significant performance gains across hardware platforms without maintaining specialized accelerator-specific code. https://labs.quansight.org/blog/array-api-aot-jit

How to build your first Scrapy extension This tutorial uses a simple audio notification plugin to explain how Scrapy extensions work, covering signals, lifecycle hooks, settings, testing, and packaging. It provides a practical introduction to extending Scrapy with custom functionality while showcasing common patterns used across the ecosystem. https://www.zyte.com/blog/how-to-build-your-first-scrapy-extension/

Python Hub Weekly Digest for 2026-06-28 https://pythonhub.dev/digest/2026-06-28/

How I made dependency injection in Python 130× faster: from reflection to compiling the graph The post shows how a Python dependency injection container was optimized from ~53 µs to 0.40 µs per resolve by caching plans, eliminating unnecessary checks, and compiling dependency graphs into generated code. Along the way, it demonstrates practical performance engineering techniques, including code generation, common-subexpression elimination, fuzz testing, and reproducible benchmarking https://vshulcz.hashnode.dev/python-dependency-injection-130x-faster

Libraries for your Python Polars workflows The post highlights a set of Python libraries that work natively with Polars, letting you stay in the Polars ecosystem for validation, tables, visualization, and LLM-assisted analysis. https://opensource.posit.co/blog/2026-06-04_libraries-for-python-polars/

Showcasing allauth IdP: build an MCP server This article demonstrates how to build a Model Context Protocol (MCP) server using Django and django-allauth, with OpenID Connect (OIDC) authentication handled by the allauth.idp package. It shows how MCP hosts such as Claude can dynamically register and authenticate clients without relying on separate third-party identity providers. https://allauth.org/news/2026/05/idp-demo-mcp-server/

BugHunter AI-powered bug bounty hunting from your terminal - recon, 20 vuln classes, autonomous hunting, and report generation. All inside Claude Code. https://github.com/shuvonsec/claude-bug-bounty

tracesage tracesage adds local, zero-infra tracing to LangChain/LangGraph agents in two lines, it captures every chain, tool, and LLM call to SQLite and shows the run as a live graph and timeline in your browser. Open source, pip install, MIT licensed. https://github.com/kjgpta/tracesage

defending-code-reference-harness Skills for threat modeling, scanning, triage, patching, plus an autonomous scanning harness you can customize. https://github.com/anthropics/defending-code-reference-harness

Choosing a Python task queue library in 2026: Celery vs Dramatiq vs FastStream vs Taskiq vs Repid https://www.reddit.com/r/Python/comments/1u775lo/choosing_a_python_task_queue_library_in_2026/

PyData London 26 The videos from PyData London 2026 are now available. https://www.youtube.com/playlist?list=PLGVZCDnMOq0rFQykYJg7t441AEpN4SszE

Plugins case study: Pluggy The post explains how Pluggy works as a reusable Python library for building plugin systems, centered on hooks that hosts define and plugins implement. It also highlights the design tradeoffs Pluggy handles well, including registration, signature validation, ordering, and hook wrappers, while leaving plugin discovery largely up to the application. https://eli.thegreenplace.net/2026/plugins-case-study-pluggy/

Scikit-learn 1.9 Scikit-learn 1.9 release is out, and it comes with solid improvements to many existing estimators, making them faster, more stable, handling missing values, adding GPU support… The release also enhances the estimator displays in notebooks, and introduces a callback mechanism that opens the door to progress bars or advanced monitoring of convergence. https://blog.scikit-learn.org/updates/release-1-9/

dograh-hq / dograh Open source voice AI platform. Self-hosted alternative to Vapi and Retell. On Prem, BYOK across Speech to Speech or LLM/STT/TTS, with a visual workflow builder, MCP native and telephony support. https://github.com/dograh-hq/dograh

agent-toolkit-for-aws Official, AWS-supported MCP servers, skills, and plugins to help AI agents build on AWS. https://github.com/aws/agent-toolkit-for-aws

turbovec A vector index built on TurboQuant, written in Rust with Python bindings. https://github.com/RyanCodrai/turbovec

Ordered key sharding in DynamoDB So, you want to keep a sorted index in DynamoDB, but for whatever reason – usually throughput-related – it won't fit on a single partition. What do you do? Today, we look at the available solutions, do the math, and find out which is best. https://death.andgravity.com/albumtitle

Django Internationalization - translate your app to multiple languages! This video explains how Django's internationalization framework enables applications to support multiple languages by detecting a user's active language and serving the appropriate translations. It also demonstrates the makemessages and compilemessages commands, along with common localization approaches such as language cookies and URL-based language prefixes. https://www.youtube.com/watch?v=PGMhsAcfPpI