News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Ask HN: Kotlin SpringBoot vs. Python Django for Min Viable Product
https://news.ycombinator.com/item?id=41584157
LLaMA-Omni
LLaMA-Omni is a low-latency and high-quality end-to-end speech interaction model built upon Llama-3.1-8B-Instruct, aiming to achieve speech capabilities at the GPT-4o level.
https://github.com/ictnlp/LLaMA-Omni
Serializing package requirements in marimo notebooks
Marimo now allows notebooks to serialize their package requirements as top-level comments, enabling users to run notebooks in isolated virtual environments with a single command. This feature, powered by the uv package manager, enhances reproducibility and sharing of notebooks by eliminating the need for separate requirements files and preventing environment pollution.
https://marimo.io/blog/sandboxed-notebooks
What's in an e-graph?
The article explains e-graphs by incrementally building from union-find to a full e-graph implementation, highlighting key features like equivalence class discovery, pattern matching, and extraction. It demonstrates how e-graphs can be used in compilers for optimizations, offering a more flexible alternative to traditional find-and-replace methods while discussing trade-offs and variatio...
https://bernsteinbear.com/blog/whats-in-an-egraph/
Formatron
Formatron empowers everyone to control the format of language models' output with minimal overhead.
https://github.com/Dan-wanna-M/formatron
ft_utils
A library of utilities to support efficient, scalable Python development leveraging Free Threaded Python.
https://github.com/facebookincubator/ft_utils
WordLlama
Things you can do with the token embeddings of an LLM.
https://github.com/dleemiller/WordLlama
Deep learning compilers and how the sausage is made
A series of discussions focused on deep learning compilers and machine learning. It covers how deep learning models are optimized and deployed for practical use cases. The content dives into topics relevant for developers and engineers working with AI frameworks and model performance optimization.
https://www.youtube.com/playlist?list=PLaMu-SDt_RB7ImARcTT_Wjypwx2vBIBen
Python in Excel – Available Now
https://techcommunity.microsoft.com/t5/excel-blog/python-in-excel-available-now/ba-p/4240212
Avoid These 7 Common OOP Mistakes in Python
The video discusses common bad practices in Python object-oriented programming and how to avoid them. It covers issues like using classes unnecessarily instead of functions, overusing mixins, and excessive encapsulation, while providing practical examples and alternatives to improve code structure and readability.
https://www.youtube.com/watch?v=yFLY0SVutgM
Injecting syscall faults in Python and Ruby
The post introduces a Python and Ruby library called Cirron that allows developers to inject syscall faults for testing purposes. It demonstrates how to use Cirron to simulate various error conditions, such as disk space issues and network timeouts, by modifying syscall behavior, enabling more robust testing of error handling in software.
https://blog.mattstuchlik.com/2024/09/08/injecting-syscall-faults.html
Python macOS Framework Builds
Building Python with --enable-framework changes some stuff around; should you care?
https://blog.glyph.im/2024/09/python-macos-framework-builds.html
LightAPI
LightApi is a lightweight API framework designed for rapid development of RESTful APIs in Python. It provides a simple and intuitive interface for defining endpoints and handling HTTP requests without the need for complex configuration or dependencies.
https://github.com/iklobato/LightAPI
How We Made Jupyter Notebooks Load 10 Times Faster
When we received feedback our Notebooks UI was taking too long too load, our engineers dove into ways to improve the developer experience — bringing some load times from 30 seconds down to less than one.
https://www.singlestore.com/blog/how-we-made-notebooks-load-10-times-faster/
ell
A language model programming framework.
https://github.com/MadcowD/ell
Things I've learned serving on the board of the Python Software Foundation
https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/
Let’s build and optimize a Rust extension for Python
Python code too slow? You can quickly create a Rust extension to speed it up.
https://pythonspeed.com/articles/intro-rust-python-extensions/
spann3r
3D Reconstruction with Spatial Memory.
https://github.com/HengyiWang/spann3r
RAG Is More Than Just Vector Search
Go beyond vector search. Learn how to improve your RAG system with Text2SQL, filtered search, structured extraction, and eval-driven development.
https://www.timescale.com/blog/rag-is-more-than-just-vector-search/
FARM Stack Course – Full Stack Development with FastAPI, React MongoDB
Learn full stack stack development with the FARM stack. You will learn to quickly create an application using FastAPI, React, and MongoDB.
https://www.youtube.com/watch?v=PWG7NlUDVaA
Some tricks with UV
UV can be seen as an alternative to pip, but that might be a limiting way to think about the tool. Instead of looking at faster builds, which are still super nice, it might also make sense to rethink the stuff that we might be able to do from Python going forward.
https://www.youtube.com/watch?v=jXWIxk2brfk
MiniLang
A type-safe C successor that compiles directly to various platforms.
https://github.com/NICUP14/MiniLang
Python Hub Weekly Digest for 2024-09-22
https://pythonhub.dev/digest/2024-09-22/
Rust for the small things? but what about Python?
https://dataengineeringcentral.substack.com/p/rust-for-the-small-things
What do you think about Harvard CS50’s Introduction to Programming with Python – Full University Course?
https://www.reddit.com/r/learnpython/comments/1faltb1/what_do_you_think_about_harvard_cs50s/
FluxMusic
Text-to-Music Generation with Rectified Flow Transformers.
https://github.com/feizc/FluxMusic
Build a Translation Application Using Tkinter and OpenAI
In this tutorial, we'll build a desktop translator application to translate natural language using ChatGPT APIs. We'll be building the UI using the Tkinter library from the Python standard library.
https://www.pythonguis.com/examples/translator-app-tkinter-ai-chatgpt/
ostris / ai-toolkit
Various AI scripts. Mostly Stable Diffusion stuff.
https://github.com/ostris/ai-toolkit
DBOS transact – Ultra-lightweight durable execution in Python
https://github.com/dbos-inc/dbos-transact-py
Python HTTP Clients: Requests vs. HTTPX vs. AIOHTTP
Learn about the differences between Requests, HTTPX, and AIOHTTP, and when to use each library for your Python projects.
https://www.speakeasy.com/post/python-http-clients-requests-vs-httpx-vs-aiohttp