News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
uvtrick
A fun party trick to run Python code from another venv into this one.
https://github.com/koaning/uvtrick
supertree
supertree is a Python package designed to visualize decision trees in an interactive and user-friendly way within Jupyter Notebooks, Jupyter Lab, Google Colab, and any other notebooks that support HTML rendering.
https://github.com/mljar/supertree
Taming the beast that is the Django ORM - An introduction
The Django ORM, how it compares to raw SQL and gotchas that you should be aware of when using it
https://www.davidhang.com/blog/2024-09-01-taming-the-django-orm/
Maximizing Python Code Efficiency: Strategies to Overcome Common Performance Hurdles
This article talks about performance issues caused by nested loops and memory allocation issues. It provides strategies to overcome these issues while improving efficiency.
https://towardsdatascience.com/maximizing-python-code-efficiency-strategies-to-overcome-common-performance-hurdles-c6292610d785
Python Hub Weekly Digest for 2024-09-08
https://pythonhub.dev/digest/2024-09-08/
PyRoboCOP: Python-Based Robotic Control and Optimization Package
https://ieeexplore.ieee.org/abstract/document/10440590
The Design and Implementation of the CPython Virtual Machine
https://blog.codingconfessions.com/p/cpython-vm-internals
How Pytorch Powers Training Inference
Learn about new PyTorch advancements for LLMs and how PyTorch is enhancing every aspect of the LLM lifecycle.
https://www.youtube.com/watch?v=96VIEJfhUBg
JPMorgan's Python training for business analysts and traders
https://github.com/jpmorganchase/python-training
graphiti
Build dynamic, temporally-aware knowledge graphs.
https://github.com/getzep/graphiti
New LLM Pre-training and Post-training Paradigms
A Look at How Modern LLMs Are Trained.
https://magazine.sebastianraschka.com/p/new-llm-pre-training-and-post-training
Liger-Kernel
Efficient Triton Kernels for LLM Training.
https://github.com/linkedin/Liger-Kernel
Build a One-Product Shop With the Python Django Framework and Htmx
This is the first of a two-part series using Django, htmx, and Stripe to create a one-product e-commerce website. In this part, we'll start our Django project and integrate it with htmx.
https://blog.appsignal.com/2024/08/28/build-a-one-product-shop-with-the-python-django-framework-and-htmx.html
home-assistant / operating-system
🔰 Home Assistant Operating System
https://github.com/home-assistant/operating-system
thuml / Time-Series-Library
A Library for Advanced Deep Time Series Models.
https://github.com/thuml/Time-Series-Library
Used Python to create public-domain US maps that can serve as desktop backgrounds
https://www.reddit.com/r/Python/comments/1f29mo0/used_python_to_create_publicdomain_us_maps_that/
Building LLMs from the Ground Up
This tutorial guides coders through the fundamentals of large language models (LLMs), explaining how they work and how to build them from scratch in PyTorch. It covers coding a small GPT-like model, its data pipeline, architecture, pretraining, and fine-tuning using open-source libraries.
https://www.youtube.com/watch?v=quh7z1q7-uc
kotaemon
An open-source RAG-based tool for chatting with your documents.
https://github.com/Cinnamon/kotaemon
Why I Still Use Python Virtual Environments in Docker
The article argues for using Python virtual environments in Docker containers, citing benefits like predictability, standardization, and easier debugging. The author contends that virtual environments provide a consistent, well-understood structure for Python applications, making communication and deployment across teams more straightforward, while also simplifying Python's import behavior.
https://hynek.me/articles/docker-virtualenv/
django-cotton
Bringing component based design to Django templates.
https://github.com/wrabit/django-cotton
LitServe
Lightning-fast serving engine for AI models. Flexible. Easy. Enterprise-scale.
https://github.com/Lightning-AI/LitServe
csv_trimming
Python package to remove common ugliness from a csv-like file
https://github.com/LucaCappelletti94/csv_trimming
Solving the labyrinth puzzle from the university quest using Python
https://wondrousnet.blogspot.com/2024/03/solution-to-puzzle-cat-walk.html
Layman's Guide to Python Built-in Functions
This is a plain language guide to every built-in function in Python, paired with a simple example that shows each function in action.
https://www.mattlayman.com/blog/2024/layman-guide-python-built-in-functions/
Quick and Easy Rate Limiting for FastAPI
If you don’t want your API to crash due to too many requests, use rate limiting! This video covers how rate limiting works, what types of rate limiting you can do, how to implement it in FastAPI, and what you need to be mindful of.
https://www.youtube.com/watch?v=pZunzLJ1qcQ
NTLM Credential Theft in Python Windows Applications
The article discloses vulnerabilities in popular Python frameworks (Gradio, Jupyter Server, and Streamlit) that can lead to NTLMv2 hash theft on Windows systems through exploitation of file system operations. It explains how these vulnerabilities can be exploited, potentially leading to credential theft or remote code execution, and emphasizes the increased risk as Python applications be...
https://www.horizon3.ai/attack-research/disclosures/ntlm-credential-theft-in-python-windows-applications/
500 Python Interpreters
https://izzys.casa/2024/08/463-python-interpreters/
picows
Fast websocket client and server for asyncio.
https://github.com/tarasko/picows
CPython Compiler Hardening
The article details the author's Google Summer of Code project to implement compiler hardening options for CPython, following recommendations from the OpenSSF Memory Safety SIG. It covers the process of selecting and testing compiler options, addressing challenges with benchmarking and cross-platform compatibility, and developing tooling to track and manage warnings generated by the new ...
http://nohlson.com/blog/CPython-Compiler-Hardening-Summer-Retrospective/
AdalFlow
The Library to Build and Auto-optimize LLM Applications.
https://github.com/SylphAI-Inc/AdalFlow