News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
FastHTML – Modern web applications in pure Python
https://fastht.ml/
Tea-tasting, a Python package for the statistical analysis of A/B tests
https://e10v.me/tea-tasting-analysis-of-experiments/
spipm / Depix
Recovers passwords from pixelized screenshots
https://github.com/spipm/Depix
apple / ml-4m
4M: Massively Multimodal Masked Modeling
https://github.com/apple/ml-4m
How to Design a REST API That Doesn’t SUCK
Learn 6 essential tips for designing a great REST API that even big companies often overlook. From following standards and maintaining consistency to writing clear documentation and simplifying integration, this video covers everything you need to create user-friendly and efficient APIs. Don't miss out on the key strategies for improving your API design!
https://www.youtube.com/watch?v=SjUQLryotAk
Fast(er)API: Optimizing Processing Time
A few simple tips to make your REST API go faster.
https://fabridamicelli.github.io/posts/2023-07-13-optimize-fastapi.html
Wat – Deep inspection of Python objects
https://github.com/igrek51/wat
Abstract interpretation in the Toy Optimizer
In this blog post, I’m going to write a small abtract interpreter for the Toy IR and then show how we can use it to do some simple optimizations.
https://bernsteinbear.com/blog/toy-abstract-interpretation/
Treescope: Interactive HTML visualization library for Python neural networks
https://github.com/google-deepmind/treescope
MobileLLM
MobileLLM Optimizing Sub-billion Parameter Language Models for On-Device Use Cases. In ICML 2024.
https://github.com/facebookresearch/MobileLLM
kaskade
kaskade is a text user interface for kafka, which allows you to interact and consume topics from your terminal in style!
https://github.com/sauljabin/kaskade
Resource management and generators in Python
The article explores resource management and cleanup behavior in Python generators, highlighting unexpected issues when generators are not fully consumed. It demonstrates various scenarios, including the use of context managers and the finally clause, to ensure proper cleanup and resource management in generator functions.
https://samgeo.codes/python-generator-cleanup/
snakers4 / silero-vad
Silero VAD: pre-trained enterprise-grade Voice Activity Detector
https://github.com/snakers4/silero-vad
Finding Simple Rewrite Rules for the JIT with Z3
https://www.pypy.org/posts/2024/07/finding-simple-rewrite-rules-jit-z3.html
A helper for LLM SDKs
LLMEasyTools generates tool schemas and executes function calls received from the LLM.
https://github.com/zby/LLMEasyTools
modelsmith
Python library that allows you to get structured responses in the form of Pydantic models and Python types from Anthropic, Google Vertex AI and OpenAI models
https://github.com/christo-olivier/modelsmith
A Clone of Deluxe Paint II Written in Python
https://github.com/mriale/PyDPainter
Module itertools overview
This article briefly describes the iterators available in the Python module itertools and how to use them.
https://mathspp.com/blog/module-itertools-overview
hololinked
Pythonic data acquisition which is HTTP compatible and beginner friendly
https://github.com/VigneshVSV/hololinked
flpc: Probably the fastest regex library for Python. Made with Rust 🦀 and PyO3
https://www.reddit.com/r/Python/comments/1dv811q/flpc_probably_the_fastest_regex_library_for/
Annotated area charts with plotnine
The plotnine
visualisation library brings the Grammar of Graphics to Python. This post walks through the process of creating a customised, annotated area chart of coal production data.
https://nrennie.rbind.io/blog/plotnine-annotated-area-chart
PDF-Extract-Kit
A Comprehensive Toolkit for High-Quality PDF Content Extraction.
https://github.com/opendatalab/PDF-Extract-Kit
Mypy 1.11 Released
Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes.
https://mypy-lang.blogspot.com/2024/07/mypy-111-released.html
Python Hub Weekly Digest for 2024-07-28
https://pythonhub.dev/digest/2024-07-28/
Transcribing Audio with Python on Your Local Machine
If you don't want to pay for a service to transcribe your audio, you can generate it easily on your own machine with a little setup. Here's how.
https://www.jeremymorgan.com/tutorials/generative-ai/how-to-transcribe-audio
Python Practical Package Packing 2024
https://matt.sh/python-project-structure-2024
MervinPraison / PraisonAI
PraisonAI application combines AutoGen and CrewAI or similar frameworks into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration. Chat with your ENTIRE Codebase.
https://github.com/MervinPraison/PraisonAI
Build a search index in Python
How can search engines be so fast? While there are many parts of a search system, one of the key concepts to know is the inverted index.
https://jamesg.blog/2024/07/16/build-a-search-index/
exo
Run your own AI cluster at home with everyday devices.
https://github.com/exo-explore/exo
mem0ai / mem0
The memory layer for Personalized AI
https://github.com/mem0ai/mem0