Loading...

My 2025 uv-based Python Project Layout for Production Apps

19642 1056________

In 2025, all you need to take a #Python application from a simple script to production is: uv. But, how do you setup your project directory structure for success? How do take advantage of the latest development in Python packaging tooling like dependency groups? I'll walk you step-by-step to my proven project layout that we use for our vital production applications. We start with a simple FastAPI view and we end up with a nice local project that's fun to work on and that's easy to give to other people.

🔗 Links

► My employer, the best German-speaking web host and domain registrar: www.variomedia.de/
► OrbStack: the MUCH better drop-in alternative to Docker Desktop: orbstack.dev/
► uv: docs.astral.sh/uv/
   • Is UV the FUTURE of Python PACKAGING? 🐍📦  
   • uv IS the Future of Python Packaging! 🐍📦  
   • Master Flaky Systems With Retries in Pytho...  
► FastAPI fastapi.tiangolo.com/
► Testing & Packaging aka Why src? hynek.me/articles/testing-packaging/
► Production-ready Python Docker Containers with uv: hynek.me/articles/docker-uv/
► Me 360-noscoping PEP 751 discuss.python.org/t/pep-751-now-with-graphs/69721…

🤓 ME ELSEWHERE

🏡: hynek.me/
🐘: mastodon.social/@hynek/
🦋: bsky.app/profile/hynek.me
🅇: twitter.com/hynek
🧵: www.threads.net/@the_hynek
✉️ Newsletter: buttondown.email/hynek
❤️ Support my work: hynek.me/say-thanks/

🙏 CREDITS

Outro Music:    / @rplktr   / rplktr.com/
Other music and material licensed from Envato.

📖 Chapters

0:00:00 Is this video for you?
0:00:54 Who am I?
0:01:26 The goal of THIS video
0:03:26 uv in under 60s
0:05:00 The App
0:09:00 Scenic detour: Entrypoints
0:13:02 Configuration
0:15:35 brief meltdown
0:15:53 Dependency groups
0:17:41 Build backend
0:18:27 RUN!
0:21:04 What have we achieved?
0:21:23 Up next!
0:21:41 Thank you

コメント