PythonHub
2.41K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
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