PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
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.

https://jnsgr.uk/2024/09/pytouchlinesl/
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.

https://www.youtube.com/watch?v=VuKK0bEkSdo
Adding syntax to the CPython interpreter

https://leontrolski.github.io/grammar.html
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.

https://github.com/TEN-framework/TEN-Agent
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.

https://www.da.vidbuchanan.co.uk/blog/dram-emfi.html
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...

https://www.coryzue.com/writing/kamal-django/
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...

https://www.youtube.com/watch?v=ESrWYoXZc8s
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

https://medium.com/techtofreedom/9-levels-of-asynchronous-programming-in-python-3755f80403c9
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.

https://slack.engineering/were-all-just-looking-for-connection/
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?

https://pythonspeed.com/articles/uv-python-production/