News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Recent Performance Improvements in Function Calls in CPython
https://blog.codingconfessions.com/p/are-function-calls-still-slow-in-python
The trouble with __all__
This article discusses the limitations and pitfalls of using the all attribute in Python for defining public APIs, emphasizing how it fails to enforce module boundaries and can lead to tightly coupled codebases. The author proposes an alternative solution involving a custom import hook to ensure stricter module interface enforcement.
https://www.gauge.sh/blog/the-trouble-with-all
MindSearch
An LLM-based Multi-agent Framework of Web Search Engine (like Perplexity.ai Pro and SearchGPT)
https://github.com/InternLM/MindSearch
Python Hub Weekly Digest for 2024-08-11
https://pythonhub.dev/digest/2024-08-11/
Visualize Execution of Python code step by step
https://www.pynerds.com/visualize/
A simply utility script which allows you to analyze your Python file
https://github.com/mraza007/python-file-analyzer
Debugging distributed database mysteries with Rust, packet capture and Polars
Unravel a mysterious network bandwidth issue in QuestDB's primary-replica replication was identified and resolved. Learn about the tools and techniques used, including Rust for packet capture and Python with Polars for data analysis, to optimize network performance.
https://questdb.io/blog/debugging-distributed-database-mysteries-with-rust-pcap-and-polars/
patchwork
Automate development gruntwork like code reviews, patching and documentation with LLM workflows.
https://github.com/patched-codes/patchwork
torchchat
Run PyTorch LLMs locally on servers, desktop and mobile.
https://github.com/pytorch/torchchat
Tracing the evolution of a Python function with git log
The article explains how to use the git log -L command to trace the evolution of a specific function in a Python file, providing a more focused view of code changes over time. It demonstrates the process using an example from the Authlib package, highlighting the importance of setting up .gitattributes for Python files and showcasing how this method can help in debugging and understandin...
https://nerderati.com/tracing-the-evolution-of-a-python-function-with-git-log/
agent-zero
Agent Zero is an AI framework designed for creating general-purpose assistants capable of handling a wide range of tasks through a highly customizable and extensible system. It emphasizes dynamic learning, multi-agent cooperation, and the use of computer tools to accomplish tasks, all while being open-source and adaptable to user needs.
https://github.com/frdel/agent-zero
DataChain
Process and curate unstructured data using local ML models and LLM calls.
https://github.com/iterative/datachain
Do you feel like Python's type hinting got "stable"?
https://www.reddit.com/r/Python/comments/1ef1ym0/do_you_feel_like_pythons_type_hinting_got_stable/
DinkyDash
A family dashboard for kids.
https://github.com/caspii/dinkydash
llama-agentic-system
Agentic components of the Llama Stack APIs.
https://github.com/meta-llama/llama-agentic-system
FINALLY Python is Getting Rid of the GIL!
This video discusses how Python 3.13 is revolutionizing performance by making the Global Interpreter Lock (GIL) optional! Learn what the GIL is, why it exists, and the potential impacts of its removal on your Python projects.
https://www.youtube.com/watch?v=zWPe_CUR4yU
sqlite-vec
A vector search SQLite extension that runs anywhere!
https://github.com/asg017/sqlite-vec
Formy
Generate dynamic UI forms from text using OpenAI's structured output API.
https://github.com/deedy/formy
Knuckledragger, a Semi-Automated Python Proof Assistant
https://www.philipzucker.com/state_o_knuck/
Dioptra
Dioptra is a software test platform for assessing the trustworthy characteristics of artificial intelligence (AI).
https://github.com/usnistgov/dioptra
VS Code Extensions for Python
https://www.reddit.com/r/learnpython/comments/1ejazki/vs_code_extensions_for_python/
Datoviz – Vulkan-based GPU scientific visualization (C/C++/Python)
https://github.com/datoviz/datoviz
Building A Generative AI Platform
The article outlines the common components and architecture of a generative AI platform, discussing how to enhance context input, implement guardrails, add model routing and gateways, optimize with caching, and incorporate complex logic and write actions. It provides a comprehensive guide for building and scaling AI applications, emphasizing the importance of observability and orchestrat...
https://huyenchip.com//2024/07/25/genai-platform.html
Opslane
Reducing alert fatigue for on-call engineers.
https://github.com/opslane/opslane
React + Django Ninja: Full-Stack Auth (in 15 Mins)
We'll create a full-stack application using React.js frontend and a Django REST API, using the awesome Django Ninja (Much nicer than Django REST framework), including user authentication.
https://www.youtube.com/watch?v=8_yp3UqdKjk
LeanDojo
Theorem Proving in Lean using Language Models.
https://leandojo.org/
lipku / metahuman-stream
Real time interactive streaming digital human
https://github.com/lipku/metahuman-stream
Python Hub Weekly Digest for 2024-08-04
https://pythonhub.dev/digest/2024-08-04/
Implementing Instant Search with Flask and HTMX
Step-by-step guide to making an interactive search bar with Flask and HTMX.
https://differ.blog/p/implementing-instant-search-with-flask-and-htmx-2d3a5e
Beyond Hypermodern: Python is easy now
This is an article about setting up a modern Python project. It discusses using tools like Rye, Ruff, and Pyright for formatting, linting, and type checking.
https://rdrn.me/postmodern-python/