PythonHub Logo Python Hub Weekly Digest for 2024-10-27

This week in Python, popular projects included Chunkr, a vision model based PDF chunker, and TEN-Agent, the world's first real-time multimodal agent integrated with OpenAI Realtime API. Interesting articles covered gaining root access on a Linux system using a cigarette lighter and the 9 levels of asynchronous programming in Python. Python 3.13 was released with exciting updates, including the option to disable the Global Interpreter Lock (GIL). Lastly, a tutorial on writing FUSE-based filesystems in Python was highlighted. Have a great week and happy coding!

💖 Most Popular

Chunkr
Vision model based PDF chunking.

Can You Get Root With Only a Cigarette Lighter?
The article describes how to gain root access on a Linux system using only a cigarette lighter through electromagnetic fault injection (EMFI) attacks on DRAM. The author demonstrates how precisely timed electromagnetic pulses can flip bits in memory, allowing an attacker to modify critical system data and escalate privileges without traditional software vulnerabilities.

TEN-Agent
TEN Agent is the world’s first real-time multimodal agent integrated with the OpenAI Realtime API, RTC, and features weather checks, web search, vision, and RAG capabilities.

9 Levels of Asynchronous Programming in Python
In this article, I’ll take you step-by-step through 9 levels from the basics to advanced concurrency techniques. Whether you’re new to async or looking to sharpen your skills, this guide will provide

JameSQL
An in-memory NoSQL database implemented in Python.


📖 Articles

Adding syntax to the CPython interpreter

Should you use uv’s managed Python in production?
The uv package manager can also install Python for you. Should you use this feature in production?

Writing a Home Assistant Core Integration: Part 1
The article details the development of pytouchlinesl, a Python library for interacting with Roth Touchline SL underfloor heating systems. It covers the design process, API implementation, testing strategies, CI/CD setup, and publishing to PyPI, highlighting the use of modern Python tools like uv, pydantic, and ruff.

Python 3.12 vs. Python 3.13 – performance testing

Build your first Web App with Cursor AI, Python, Virtual Machines, and Neon Postgres
Learn how to create a modern web application using Cursor AI, which allows developers to build robust applications by converting English instructions into code. The course covers a wide range of topics, including full-stack web development, integrating with GitHub, building a Python and Django web app, and deploying a production-ready server, all achievable in about 5 hours and at minima...

The New Python 3.13 Is FINALLY Here!
Python 3.13 is here with exciting updates! Dive into the key new features, including the game-changing option to disable the Global Interpreter Lock (GIL).

Custom Dictionary Types in Pydantic
A quick primer on leveraging custom root types for this task.

We’re All Just Looking for Connection
We’ve been working to bring components of Quip’s technology into Slack with the canvas feature, while also maintaining the stand-alone Quip product. Quip’s backend, which powers both Quip and canvas, is written in Python. This is the story of a tricky bug we encountered last July and the lessons we learned along the way about being careful with TCP state.

The Uncertain Art of Accelerating ML Models
This podcast episode features Sylvain Gugger, a machine learning engineer at Jane Street, discussing techniques for accelerating ML models. The conversation covers topics like learning rate schedules, performance optimization in PyTorch, GPU utilization, and the unique challenges of applying ML in trading environments.

Deploying (Multiple) Django Apps to a Single Server with Kamal 2
Cory Zue describes migrating two Django apps to a shared Hetzner VPS using Kamal 2, detailing the process of setting up a production Dockerfile, creating a Kamal deploy configuration, and addressing challenges with health checks and Django's security settings. The article highlights the ease of deploying multiple apps on a single server with Kamal 2, resulting in cost savings and improve...

A hand-holding guide to writing FUSE-based filesystems in Python
This video tutorial provides a step-by-step guide to writing FUSE-based filesystems in Python. It starts with a simple example and gradually adds more features, making it suitable for beginners.

Austin 3.7 – Python frame stack sampler for CPython

Python Hub Weekly Digest for 2024-10-20


⚙️ Projects

ditto
The simplest self-building coding agent.

Swarm
Educational framework exploring ergonomic, lightweight multi-agent orchestration. Managed by OpenAI Solution team.

Pyloid
Pyloid is the Python backend version of Electron and Tauri, providing an open-source project that allows you to easily utilize various Python integration features. With Pyloid, developing desktop applications becomes simple, enabling you to effortlessly build apps by integrating Python's powerful capabilities.

Parsera
Lightweight library for scraping web-sites with LLMs.

Tabled
Detect and extract tables to markdown and csv.


👾 Reddits

Why do widely used frameworks in python use strings instead of enums for parameters?

My first python package got 844 downloads 😭😭


← Previous

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