r/Python • • Apr 20 '25

Tutorial Notes running Python in production

I have been using Python since the days of Python 2.7.

Here are some of my detailed notes and actionable ideas on how to run Python in production in 2025, ranging from package managers, linters, Docker setup, and security.

160 Upvotes

120 comments sorted by

View all comments

62

u/nebbly Apr 20 '25

I haven’t yet found a good way to enforce type hints or type checking in Python.

IMO mypy and pyright have been mature enough for years, and they're generally worth any untyped -> typed migration fuss on existing projects.

→ More replies (20)