News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
llm-jq
Write and execute jq programs with the help of LLM.
https://github.com/simonw/llm-jq
Be Careful With Removing Code Duplication
This video refactors some tricky, hard-to-detect code duplication, provides an example of when it’s best to leave duplicated code as is, and shares a few tips on how to avoid duplication altogether.
https://www.youtube.com/watch?v=6AGDnJ_26uw
Zero Downtime Django Deployments with Multistep Database Changes
Preventing downtime during deployments is crucial for maintaining service availability and ensuring a positive user experience. Blue-green deployments have emerged as a popular strategy to achieve this goal. However, they introduce challenges, especially when dealing with database changes. This article delves into what blue-green deployments are, why database changes can be tricky in thi...
https://johnnymetz.com/posts/multistep-database-changes/
Adding keyboard shortcuts to the Python REPL
The article discusses how to enhance the Python REPL (Read-Eval-Print Loop) by adding custom keyboard shortcuts to improve efficiency and user experience. It provides step-by-step instructions for implementing these shortcuts, enabling users to navigate and execute commands more effectively.
https://treyhunner.com/2024/10/adding-keyboard-shortcuts-to-the-python-repl/
Venvstacks: Virtual Environment Stacks for Python
https://lmstudio.ai/blog/venvstacks
State of the Art Python in 2024
https://www.reddit.com/r/Python/comments/1ghiln0/state_of_the_art_python_in_2024/
Avaiga / taipy
Turns Data and AI algorithms into production-ready web applications in no time.
https://github.com/Avaiga/taipy
Mochi 1
The best OSS video generation models.
https://github.com/genmoai/models
PyBay 2024 Videos
The talks from PyBay 2024 are now available online.
https://www.youtube.com/playlist?list=PL85KuAjbN_gvx5b_BgLVcKfccnlZAVPMk
Python Threading Tutorial: Basic to Advanced (Multithreading, Pool Executors, Daemon, Lock, Events)
https://www.reddit.com/r/Python/comments/1gj177a/python_threading_tutorial_basic_to_advanced/
Python Hub Weekly Digest for 2024-11-03
https://pythonhub.dev/digest/2024-11-03/
meta-llama / llama-stack-apps
Agentic components of the Llama Stack APIs
https://github.com/meta-llama/llama-stack-apps
BitNet
Official inference framework for 1-bit LLMs.
https://github.com/microsoft/BitNet
ClickHouse User Defined Table Function in Python
https://github.com/auxten/SQL-On-Everything
Replacing Callbacks with Generators: A Case Study in Computer-Assisted Live Music
Watch how Matthieu Amiguet transforms a complex callback mess into a readable and efficient system using generators in computer-assisted live music.
https://www.youtube.com/watch?v=PkAE6dsqIJw
Moonshine
Fast and accurate automatic speech recognition (ASR) for edge devices.
https://github.com/usefulsensors/moonshine
Tinylangs: Programming languages in 50 lines of Python
https://github.com/zserge/tinylangs
Algorithmic Music Generation with Python
https://github.com/atiriko/Music
Embeddings are underrated
https://technicalwriting.dev/data/embeddings.html
ClickPy
PyPI analytics powered by ClickHouse.
https://clickpy.clickhouse.com/
Investigation of a Workbench UI Latency Issue
Netflix engineers investigated a JupyterLab UI latency issue in their Workbench product, tracing it to an unexpected interaction between a resource usage extension and memory allocation. The root cause was identified as the extension's performance degrading linearly with increased virtual memory usage, despite available physical memory.
https://netflixtechblog.com/investigation-of-a-workbench-ui-latency-issue-faa017b4653d
From Python to CPU instructions: Part 1
In the first part of a two-part series, we’ll compare the same program written in C and Python to reveal what Python hides from us.
https://dilovan.substack.com/p/from-python-to-cpu-instructions-part
DS4SD / docling
Get your docs ready for gen AI
https://github.com/DS4SD/docling
You Should Probably Pay Attention to Tokenizers
This article emphasizes the importance of understanding tokenizers in AI applications, particularly for Retrieval-augmented generation (RAG) systems. The author demonstrates how different tokenizers handle various types of text input, including emojis and misspelled words, and explains how tokenization affects embedding quality and overall performance in natural language processing tasks.
https://cybernetist.com/2024/10/21/you-should-probably-pay-attention-to-tokenizers/
We're thinking of rewriting our go / java API in python, what do we need to think about?
https://www.reddit.com/r/Python/comments/1gdavp9/were_thinking_of_rewriting_our_go_java_api_in/
Async Rate Limiter
Rate limit async requests to API using credits, computation unit per second (CUPS) or request units
https://github.com/Elnaril/credit-rate-limit
meme_search
Index your memes by their content and text, making them easily retrievable for your meme warfare pleasures. Find funny fast.
https://github.com/neonwatty/meme_search
mini-omni2
Towards Open-source GPT-4o with Vision, Speech and Duplex Capabilities.
https://github.com/gpt-omni/mini-omni2
BugGPT
LLM powered vulnerable web page generator for testing and educational purposes.
https://github.com/Trivulzianus/BugGPT