PythonHub
2.41K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Creating a Simple XML Editor in Your Terminal with Python and Textual

The article explains how to build a simple terminal-based XML editor in Python using the Textual and lxml libraries, featuring a recent files list, file browser, XML tree viewer, node editing, and preview screens. The tutorial provides modular design, handling for adding nodes and editing XML content interactively, with each UI component styled via CSS for usability and clarity.

https://www.blog.pythonlibrary.org/2025/07/30/tui-xml-editor/
Nullable but not null

The article highlights that leaving database fields as nullable after they've been fully filled creates an inaccurate schema, leading to confusion and unnecessary complexity. It recommends scanning for fields that are nullable in the schema but never actually contain null values, and then making them non-nullable to ensure your database enforces the correct constraints and improves data ...

https://efe.me/posts/nullable-but-not-null/
multiplex

Multiplex is a command-line multiplexer along with a simple Python API to run multiple processes in parallel and stop them all at once, or based on some condition.

https://github.com/sebastien/multiplex
The Builder Pattern in Python: Finally Explained!

In this video, the Builder Pattern in Python is demonstrated. This practical and often underrated design pattern is likely already in use without being recognized. It enables step-by-step construction of complex objects using a clean, fluent API, helping avoid bulky constructors and fragile nested dictionaries. A hands-on example of generating an HTML UI is included, along with guidance ...

https://www.youtube.com/watch?v=2f1FkGQTarc
Executing arbitrary Python code from a comment

The article explains how, in a CTF challenge, seemingly harmless Python code that only allows user input in a comment can actually be exploited for arbitrary code execution by constructing a valid ZIP file within the comment and leveraging Python's ability to run ZIP archives. By carefully crafting an ASCII-safe ZIP archive (with a main.py), even restrictive single-line comments can trig...

https://www.hacktron.ai/blog/posts/python-zip-confusion
Enterprise AI Tutorial – Embeddings, RAG, and Multimodal Agents Using Amazon Nova and Bedrock

Amazon Nova’s course teaches Embeddings, RAG, Multimodal Models, and Agents using tools like Bedrock, LangChain, and Titan Embeddings to build real-world AI applications. You’ll learn to automate workflows like insurance claims by integrating Bedrock Agents and Knowledge Bases for smarter, faster customer service.

https://www.youtube.com/watch?v=HaUe2AN210g
From Async/Await to Virtual Threads

Armin Ronacher revisits his earlier critique of async/await in Python, arguing for a simpler and more composable concurrency model built around structured, virtual threads that avoid colored functions and simplify cancellation and context passing. He proposes rethinking Python’s concurrency by embracing thread-first APIs with virtual thread groups, which can yield, cancel, and propagate ...

https://lucumr.pocoo.org/2025/7/26/virtual-threads/