Python Bytes

#447 Going down a rat hole

Sep 2, 2025
Discover the benefits of a lightweight reverse proxy tool called rathole, designed for seamless access to local web applications. Learn how to optimize server resources and enhance tool installations with pre-commit and UV integration. Dive into the exciting features of Python 3.14, especially functools placeholders, and hear about the challenges of migrating old blog content using AI. Plus, explore innovative podcasting techniques and the fun of dynamic QR codes while reminiscing about movie nights and coding mishaps.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Self-Hosted Rathole For Webhooks

  • Michael Kennedy described self-hosting Rathole as a tiny Rust binary running in Docker that maps public URLs to local ports for webhooks and debugging.
  • He left it running on his server using only about 11 MB memory and uses a Docker compose setup to auto-start it.
ADVICE

Install Pre-commit With uv

  • Use pre-commit with uv by installing pre-commit via uv-tools and the pre-commit-uv helper to speed up Python tool installation.
  • This ensures Python-based hooks and linters get installed with the fast uv installer instead of pip alone.
INSIGHT

functools.Placeholder Solves Positional Binding

  • functools.placeholder in Python 3.14 complements functools.partial by marking positional slots to fill later, solving positional-argument binding limitations.
  • Rodrigo's example showed using placeholder with str.translate to build reusable punctuation-removal partials.
Get the Snipd Podcast app to discover more snips from this episode
Get the app