PythonHub Logo Python Hub Weekly Digest for 2024-01-28

Cover by

💖 Most Popular

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.

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!

7 Python Memory Optimization Tricks To Enhance Your Code’s Efficiency

Python Packaging, One Year Later: A Look Back at 2023 in Python Packaging

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.

📖 Articles

How We Executed a Critical Supply Chain Attack on PyTorch

Lamport's Bakery Algorithm, Demonstrated in Python

Python Hub @ Discord
Join Python Hub Discord Feed

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.

Performance Analysis of Python's Dict() and {}

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.

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.

Yet Another Password Reset Tutorial in Flask
Implementation of the password reset flow, with a twist.

Running Python on air-gapped systems
How to reproducibly run python code on a system with no internet access.

The curious case of Pydantic and the 1970s timestamps

cumulo-autumn / StreamDiffusion
StreamDiffusion: A Pipeline-Level Solution for Real-Time Interactive Generation

openai / weak-to-strong

Eschewing black box API calls

friuns2 / Leaked-GPTs
Leaked GPTs Prompts Bypass the 25 message limit or to try out GPTs without a Plus subscription.

fishaudio / fish-speech
Brand new TTS solution

Python Hub Weekly Digest for 2024-01-21

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.

An Intuitive Guide to Self-attention in GPT: the Venetian Masquerade

apple / ml-ferret

Python Hub @ Whatsapp
Join Python Hub Whatsapp Channel

⚙️ Projects

Build Autonomous Assistants using LLM function calling.

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?

Accurate line-level text detection and recognition (OCR) in any language.

Creating beautiful plots of data maps.

Docx tracked change redlines for the Python ecosystem.

Pathway is a high-throughput, low-latency data processing framework that handles live data & streaming for you.

👾 Reddits

Memory Optimization Techniques for Python Developers

← Previous Next →

Project by Ruslan Keba. Since 2012. Powered by Python. Made in 🇺🇦Ukraine.