News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
How a Decorator Crashed My Flask App: Lessons Learned
The article explains how a decorator without functools.wraps caused a Flask app to crash by assigning the same name to multiple endpoints. It demonstrates the importance of using functools.wraps to maintain function metadata, thus preventing such errors.
https://suyogdahal.com.np/posts/how-decorator-crashed-my-flask-app/
django-ai-assistant
Integrate AI Assistants with Django to build intelligent applications.
https://github.com/vintasoftware/django-ai-assistant/
Posting
A powerful HTTP client that lives in your terminal.
https://github.com/darrenburns/posting
Making Python Less Random
Using ptrace to intercept and modify a process's getrandom syscall.
https://healeycodes.com/making-python-less-random
LivePortrait
Make one portrait alive!
https://github.com/KwaiVGI/LivePortrait
Nvidia Warp (a Python framework for writing high-performance code)
https://nvidia.github.io/warp/
Python Online Toolbox
Free online Python tools (Code checker, regex tester, ...)
https://pythonium.net/
Python Has Too Many Package Managers
https://dublog.net/blog/so-many-python-package-managers/
Flet – multi-platform apps in Python powered by Flutter
https://flet.dev/
PuePy
Python+Webassembly Frontend Framework via PyScript.
https://github.com/kkinder/puepy
llama-agents
llama-agents is an async-first framework for building, iterating, and productionizing multi-agent systems, including multi-agent communication, distributed tool execution, human-in-the-loop, and more!
https://github.com/run-llama/llama-agents
Code2Prompt
A powerful command-line tool that generates comprehensive prompts from codebases, designed to streamline interactions between developers and Large Language Models (LLMs) for code analysis, documentation, and improvement tasks.
https://github.com/raphaelmansuy/code2prompt
OmniParse
Ingest, parse, and optimize any data format from documents to multimedia for enhanced compatibility with GenAI frameworks.
https://github.com/adithya-s-k/omniparse
Pyxel: A retro game engine for Python
https://github.com/kitao/pyxel
PySkyWiFi: completely free, unbelievably stupid wi-fi on long-haul flights
PySkyWiFi is a tool that allows free internet access on planes by exploiting a vulnerability in airline loyalty program websites. It works by sending HTTP requests through an airline account's name field, relaying them to a ground computer that makes the actual web requests, and sending responses back through the same channel.
https://robertheaton.com/pyskywifi/
Why do people want to obduscate python code?
https://www.reddit.com/r/Python/comments/1e29hy8/why_do_people_want_to_obduscate_python_code/
Instrumenting Python GIL with eBPF
https://coroot.com/blog/instrumenting-python-gil-with-ebpf
Mandala – Automatically save, query and version Python computations
https://github.com/amakelov/mandala
Computers are fast [Python perf quiz]
https://www.reddit.com/r/Python/comments/1e2cvwb/computers_are_fast_python_perf_quiz/
Python Hub Weekly Digest for 2024-07-14
https://pythonhub.dev/digest/2024-07-14/
PyO3: From Python to Rust and Back Again
David Hewitt, the principal committer to PyO3, discusses the project's role in improving Python's performance by integrating Rust code. The conversation explores the challenges and ongoing developments in making Python and Rust work seamlessly together, highlighting the complexities involved in bridging these two languages for enhanced performance.
https://www.youtube.com/watch?v=UmL_CA-v3O8
Stockdex
Python package for mining stock and financial data, using data from open data sources like Yahoo Finance.
https://github.com/ahnazary/stockdex
BunkerWeb
Make your web services secure by default!
https://github.com/bunkerity/bunkerweb
How to Get Root Access to Your Sleep Number Bed
The article provides a detailed guide on how to gain root access to a Sleep Number bed's hub by modifying internal files, which voids the warranty. It also explores the hub's functionality and potential backdoors, warning about the security implications of an internet-connected appliance with direct access to the home network.
https://dillan.org/articles/how-to-get-root-access-to-your-sleep-number-bed
PSQLPy
Async PostgreSQL driver for Python written in Rust.
https://github.com/qaspen-python/psqlpy
livekit / agents
Build real-time multimodal AI applications 🤖🎙️📹
https://github.com/livekit/agents
uv - pip killer or yet another package manager?
Pip has been the go to package manager for Python since time immemorial. But there’s a new kid on the block - uv. So is it worth the try or yet another tool?
https://blog.kusho.ai/uv-pip-killer-or-yet-another-package-manager/
Build a Django Rest API and Integrate with Next.js! Django Ninja, shadcn, Neon Postgres, Railway...
The video guides developers through integrating Django for backend and Next.js for frontend development, showcasing rapid REST API setup with Django Ninja, including user authentication, JWT tokens, Neon serverless PostgreSQL setup, CORS management, and deployment optimizations for secure and efficient application performance. It emphasizes best practices and security measures for seamle...
https://www.youtube.com/watch?v=iFEVef5XdMI