Python Bytes

#422 You need 4 spaces

Mar 3, 2025
Get ready for a deep dive into a future where Python thrives in the browser! Discover how a new project layout using `pyproject.toml` is set to revolutionize production apps. The hosts break down aiolimiter, an exciting tool for controlling rate in asyncio tasks. Plus, there's a light-hearted look at coding humor, including the classic tabs versus spaces debate. Tune in for innovative web development tips and a peek into fresh ideas like Reloadium, enhancing your coding journey!
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
ADVICE

Modern Python Project Layout

  • Watch Hynek Schlawack's video on UV-based Python project layouts.
  • It covers UV, pyproject.toml, project layout, and uv.lock.
ADVICE

UV Project Structure

  • Use a source layout and put requirements in pyproject.toml.
  • Check in the uv.lock file for consistent dependencies.
ADVICE

Using UV Sync

  • Check in the uv.lock file, and use uv sync.
  • This ensures consistent virtual environments.
Get the Snipd Podcast app to discover more snips from this episode
Get the app