1140
News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
openai / weak-to-strong
https://github.com/openai/weak-to-strong
1 TB of RAM saved with a single line of code
Anthony Sottile shows off a small change he made at work with a huge impact and explains how it works!
https://www.youtube.com/watch?v=Hgw_RlCaIds
Yet Another Password Reset Tutorial in Flask
Implementation of the password reset flow, with a twist.
https://freelancefootprints.substack.com/p/yet-another-password-reset-tutorial
pathway
Pathway is a high-throughput, low-latency data processing framework that handles live data & streaming for you.
https://github.com/pathwaycom/pathway
Python Hub @ Discord
Join Python Hub Discord Feed
https://discord.gg/jmMXEH2s
microsoft / LLMLingua
To speed up LLMs' inference and enhance LLM's perceive of key information, compress the prompt and KV-Cache, which achieves up to 20x compression with minimal performance loss.
https://github.com/microsoft/LLMLingua
Python-Redlines
Docx tracked change redlines for the Python ecosystem.
https://github.com/JSv4/Python-Redlines
4 Tips for Building a Production-Ready FastAPI Backend
This video talks about 4 things that you typically won’t find in most FastAPI tutorials online. These tips are really useful, especially if you want to create a backend that’s used in a production setting.
https://www.youtube.com/watch?v=XlnmN4BfCxw
friuns2 / Leaked-GPTs
Leaked GPTs Prompts Bypass the 25 message limit or to try out GPTs without a Plus subscription.
https://github.com/friuns2/Leaked-GPTs
phidata
Build Autonomous Assistants using LLM function calling.
https://github.com/phidatahq/phidata
7 Python Memory Optimization Tricks To Enhance Your Code’s Efficiency
https://medium.com/techtofreedom/7-python-memory-optimization-tricks-to-enhance-your-codes-efficiency-5ef65bf415e7?sk=df088bcfb5315fe1fca54d22dc57a1bb
Memory Optimization Techniques for Python Developers
https://www.reddit.com/r/Python/comments/19789aq/memory_optimization_techniques_for_python/
apple / ml-ferret
https://github.com/apple/ml-ferret
Introduction to Polars
The article provides an overview of the Polars DataFrame library, highlighting its goal to offer a lightning-fast DataFrame library that optimizes queries, handles large datasets, and maintains a consistent and predictable API. It compares Polars to other solutions and introduces its design choices, making it a compelling option for high-performance data manipulation and analysis in Python.
https://pbpython.com/polars-intro.html
cumulo-autumn / StreamDiffusion
StreamDiffusion: A Pipeline-Level Solution for Real-Time Interactive Generation
https://github.com/cumulo-autumn/StreamDiffusion
How well-structured should your data code be?
The post explores the tradeoff between speed and system reliability, particularly in the context of data science. It delves into the challenges faced by those who prototype ML models, discussing the pressure to move quickly and the decision-making process between handing off work or taking on the role of a Machine Learning Engineer in production.
https://blog.dagworks.io/p/how-well-structured-should-your-data
An Intuitive Guide to Self-attention in GPT: the Venetian Masquerade
https://twiecki.io/blog/2024/01/04
fishaudio / fish-speech
Brand new TTS solution
https://github.com/fishaudio/fish-speech
Type information for faster Python C extensions
PyPy is an alternative implementation of the Python language. PyPy’s C API compatibility layer has some performance issues. Carl Friedrich Bolz-Tereick and I are working on a way to make PyPy’s C API interactions much faster. It’s looking very promising. Here’s a sketch of how it works.
https://bernsteinbear.com/blog/typed-c-extensions/
surya
Accurate line-level text detection and recognition (OCR) in any language.
https://github.com/VikParuchuri/surya
Python Hub @ Whatsapp
Join Python Hub Whatsapp Channel
https://whatsapp.com/channel/0029VaJrpbhKWEKiXQ2tOT0q
How We Executed a Critical Supply Chain Attack on PyTorch
https://johnstawinski.com/2024/01/11/playing-with-fire-how-we-executed-a-critical-supply-chain-attack-on-pytorch/
Python Packaging, One Year Later: A Look Back at 2023 in Python Packaging
https://chriswarrick.com/blog/2024/01/15/python-packaging-one-year-later/
Running Python on air-gapped systems
How to reproducibly run python code on a system with no internet access.
https://iahmed.me/post/python-air-gapped/
The curious case of Pydantic and the 1970s timestamps
https://dev.arie.bovenberg.net/blog/pydantic-timestamps/
Performance Analysis of Python's Dict() and {}
https://madebyme.today/blog/python-dict-vs-curly-brackets/
DataMapPlot
Creating beautiful plots of data maps.
https://github.com/TutteInstitute/datamapplot
Synchronized in Python
In Java, you can make a variable thread safe by just adding the synchronized keyword. Is there anything that can achieve the same results in Python?
https://thiagowfx.github.io/2024/01/synchronized-in-python/
UIs with Python – Use PyQt5 to Create a Music Player
Learn how to create UIs with Python by creating a Modern Music Player with the PyQt5 framework. Some of the features of the app are: Beautiful and modern user interface, Playlists and favorite songs functionalities, Custom context menus for different pages and Background slideshow for every song.
https://www.youtube.com/watch?v=DjutoyfCl2c
Eschewing black box API calls
https://rednafi.com/misc/eschewing_black_box_api_calls/