PythonHub
2.32K subscribers
2.35K photos
48.9K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Using JWTs in Python Flask REST Framework

This post provides a comprehensive guide to implementing JWT-based authentication in a Flask API. It covers setting up the Flask environment, creating a to-do list API, managing user sessions with token refresh, and adding role-based permissions.

https://blog.appsignal.com/2025/04/30/using-jwts-in-python-flask-rest-framework.html
GoogleCloudPlatform / agent-starter-pack

A collection of production-ready Generative AI Agent templates built for Google Cloud. It accelerates development by providing a holistic, production-ready solution, addressing common challenges (Deployment & Operations, Evaluation, Customization, Observability) in building and deploying GenAI agents.

https://github.com/GoogleCloudPlatform/agent-starter-pack
Using Python to Automate 3D Workflows with OpenUSD

The post explains how Python’s scripting capabilities can automate and streamline 3D workflows using OpenUSD, making tasks like data transformation, validation, and scene creation more accessible and efficient. It highlights NVIDIA’s tools, SDKs, and learning resources that empower developers to build, validate, and optimize complex 3D scenes with Python in the OpenUSD ecosystem.

https://developer.nvidia.com/blog/using-python-to-automate-3d-workflows-with-openusd/
djobs.dev

Asyncio Demystified: Rebuilding it From Scratch One Yield at a Time

https://djobs.dev
Enhancing the Python ecosystem with type checking and free threading

Meta describes its efforts to enhance the Python ecosystem by advancing type checking and introducing free-threading capabilities, aiming to improve code reliability and performance at scale. The post highlights the technical challenges, solutions, and community collaboration involved in making Python more robust and concurrent for large-scale applications.

https://engineering.fb.com/2025/05/05/developer-tools/enhancing-the-python-ecosystem-with-type-checking-and-free-threading
Python type hints: mixin classes

The article explains how to properly add Python type hints to mixin classes, addressing common challenges with attributes that mixins assume exist in their base classes. It shows solutions using subclassing or protocols to satisfy type checkers like Mypy without compromising runtime behavior or type safety.

https://adamj.eu/tech/2025/05/01/python-type-hints-mixin-classes/
Function calling using LLMs

While LLMs excel at generating cogent text based on their training data, they may also need to interact with external systems. Function calling allows them to construct such calls. The LLM does not execute these calls directly, instead it creates a data structure that describes the call, passing that to a separate program for execution and further processing. The LLM's prompt includes de...

https://martinfowler.com/articles/function-call-LLM.html
Asyncio Demystified: Rebuilding it From Scratch One Yield at a Time

The article demystifies Python’s asyncio by rebuilding its core concepts from scratch, starting with basic generators and coroutines, then constructing a cooperative multitasking scheduler, and finally integrating non-blocking I/O using custom awaitable Future objects. Through step-by-step code examples, it shows how Python’s async/await syntax is just syntactic sugar over these primitiv...

https://dev.indooroutdoor.io/asyncio-demystified-rebuilding-it-from-scratch-one-yield-at-a-time