All Episodes

September 2, 2025 35 mins
Topics covered in this episode:
Watch on YouTube

About the show

Sponsored by DigitalOcean: pythonbytes.fm/digitalocean-gen-ai Use code DO4BYTES and get $200 in free credit

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.

Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.

Michael #1: rathole

  • A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
  • Features
    • High Performance Much higher throughput can be achieved than frp, and more stable when handling a large volume of connections.
    • Low Resource Consumption Consumes much fewer memory than similar tools. See Benchmark. The binary can be as small as ~500KiB to fit the constraints of devices, like embedded devices as routers.
      • On my server, it’s currently using about 2.7MB in Docker (wow!)
    • Security Tokens of services are mandatory and service-wise. The server and clients are responsible for their own configs. With the optional Noise Protocol, encryption can be configured at ease. No need to create a self-signed certificate! TLS is also supported.
    • Hot Reload Services can be added or removed dynamically by hot-reloading the configuration file. HTTP API is WIP.

Brian #2: pre-commit: install with uv

  • Adam Johnson
  • pre-commit doesn’t natively support uv, but you can get around that with pre-commit-uv
  • $ uv tool install pre-commit --with pre-commit-uv
  • Installing pre-commit like this
    • Installs it globally
    • Installs with uv
    • adds an extra plugin “pre-commit-uv” to pre-commit, so that any Python based tool installed via pre-commit also uses uv
  • Very cool. Nice speedup

Brian #3: A good example of what functools.Placeholder from Python 3.14 allows

  • Rodrigo Girão Serrão
  • Remove punctuation functionally
  • Also How to use functools.Placeholder, a blog post about it.
  • functools.partial is cool way to create a new function that partially binds some parameters to another function.
  • It doesn’t always work for functions that take positional arguments.
  • functools.Placeholder fixes that with the ability to put in placeholders for spots where you want to be able to pass that in from the oute
Mark as Played

Advertise With Us

Popular Podcasts

Stuff You Should Know
Dateline NBC

Dateline NBC

Current and classic episodes, featuring compelling true-crime mysteries, powerful documentaries and in-depth investigations. Follow now to get the latest episodes of Dateline NBC completely free, or subscribe to Dateline Premium for ad-free listening and exclusive bonus content: DatelinePremium.com

The Breakfast Club

The Breakfast Club

The World's Most Dangerous Morning Show, The Breakfast Club, With DJ Envy, Jess Hilarious, And Charlamagne Tha God!

Music, radio and podcasts, all free. Listen online or download the iHeart App.

Connect

© 2025 iHeartMedia, Inc.