r/learnpython • • Sep 18 '26

What does a “normal” professional Python stack look like in 2026?

Hi! I’m trying to speedrun learning Python and its ecosystem.

I’m already a senior Node.js / TypeScript engineer, so I’m less interested in programming fundamentals and more in the things you usually only learn after working with Python professionally for a while.

I’m using AI plus courses/tutorials, but I’d love some community perspective on what people actually use in real teams.

Some areas I’m trying to understand:

  • uv vs pip / pip-tools / Poetry for project and dependency management
  • FastAPI vs Flask vs Django
  • Pyright vs mypy for static type checking
  • Pydantic for runtime validation/parsing
  • Ruff / Black / Flake8 / isort
  • pytest vs unittest
  • anything else I should definitely know?

A few specific questions:

  1. Do Python devs actually use type hints heavily nowadays? How common is fully typed Python in professional codebases? Do teams usually run mypy/Pyright in CI, or is typing more informal/partial?
  2. What toolset am I most likely to encounter in an established company? For example, I like uv, but should I expect most existing codebases to still use pip + requirements.txt, Poetry, etc.?
  3. What would you consider “must know” ecosystem knowledge for someone joining a Python team? Not necessarily your favorite modern stack, but the things I should recognize immediately when opening an unfamiliar repo.
  4. Framework-wise, what’s worth learning first? FastAPI seems very natural coming from Node, but I assume Django is still much more common in mature product companies. How much Flask should I care about?
  5. Any “Python-specific” practices that surprise experienced JS/TS engineers? Things like virtual environments, import/package layout, sync vs async conventions, typing culture, packaging, etc.
  6. What about design patterns? Is OOP (Object oriented programming) or FP (Functional Programming) more common? Does it depend on the type of application?

I’m basically trying to optimize for:

“I can join a Python team and not look completely lost in the ecosystem.”

Would love to hear what your team actually uses, especially in production.

183 Upvotes

61 comments sorted by

117

u/Diapolo10 Sep 18 '26

Some areas I’m trying to understand:

  • uv vs pip / pip-tools / Poetry for project and dependency management

uv is the clear winner here, feature-wise. It has the fastest dependency resolution/download, and it also both manages Python versions for you (meaning you don't need pyenv or manual Python installations) and has a growing number of handy features, like uv audit (meaning you don't need tools like pip-audit for auditing your dependencies).

The others simply don't even compare, though Poetry is the closest.

  • FastAPI vs Flask vs Django

Depends entirely on what your goals are, no clear winner. I like to use FastAPI by default unless I have specific requirements other tools work better for.

  • Pyright vs mypy for static type checking

This is a toss-up, people tend to use a mix of both. There's also ty which is growing in popularity, and will likely eventually replace both of these, but it's still in alpha.

  • Pydantic for runtime validation/parsing

Pydantic is great, but mostly reserved for handling API data, since you shouldn't need to clean up internal data.

  • Ruff / Black / Flake8 / isort

Ruff, no doubt. It's all of these in one fast tool with no additional dependencies, and more.

  • pytest vs unittest

Pytest is the industry standard, unittest is more like a stepping stone to it or used for legacy reasons.

  • Do Python devs actually use type hints heavily nowadays? How common is fully typed Python in professional codebases? Do teams usually run mypy/Pyright in CI, or is typing more informal/partial?

It's definitely growing in popularity. Old projects might lack them, but you can still type them yourself using type stub files if you want to. Personally I use them everywhere, both in personal and work projects.

  • What toolset am I most likely to encounter in an established company? For example, I like uv, but should I expect most existing codebases to still use pip + requirements.txt, Poetry, etc.?

I can't speak for every company, but when I joined we used Poetry, and I convinced our technical lead we should switch to uv, and we did. I'd say both are common.

  • What would you consider “must know” ecosystem knowledge for someone joining a Python team? Not necessarily your favorite modern stack, but the things I should recognize immediately when opening an unfamiliar repo.

That depends almost entirely on which field you'd be working in. Still, can't go wrong with knowing some important bits of the standard library (like pathlib, functools, itertools, collections).

  • Framework-wise, what’s worth learning first? FastAPI seems very natural coming from Node, but I assume Django is still much more common in mature product companies. How much Flask should I care about?

All three are in common use. FastAPI and Flask are quite similar, Django is a much bigger thing and takes longer to learn.

  • Any “Python-specific” practices that surprise experienced JS/TS engineers? Things like virtual environments, import/package layout, sync vs async conventions, typing culture, packaging, etc.

I'm a Python dev first, and have only really used JS/TS at my dayjob, so I don't have much insight that'd be useful to you, probably. But maybe project structuring (src vs flat layout) and making the project installable so you can import things in your tests like your project was any other package.

14

u/Resident-Donut-4905 Sep 18 '26

Thanks for the detailed response mate! Helps a ton

12

u/proverbialbunny Sep 18 '26

Also PyCharm Community does pretty much all of these by default. (The community version if free.) You can create a new uv base python project with it and not have to think too much about the finer details.

→ More replies (1)
→ More replies (1)

6

u/Fenzik Sep 19 '26 edited Sep 19 '26

These are the exact answers I would have given after 10 years working with Python professionally. Listen to this comment OP.

Maybe with only minor thing that although flask is in use, most new projects will start with FastAPI because it’s async-first.

→ More replies (4)
→ More replies (11)

11

u/qlkzy Sep 18 '26

There is a huge legacy cross-section. The underlying ecosystem is quite unopinionated on tools, so you get the same variation you do with libraries in other languages.

Type hints: varies, but fully-typed with strict typechecking as part of CI is definitely common in serious projects.

Tools etc: uv is most popular at the moment, there's still a long tail of poetry. You need to be able to understand pyproject.toml and requirements.txt. I think ruff has largely subsumed the separate tools.

Frameworks: I would say you just need to know one "heavy" one and one "light" one. Django is by far the most popular "heavy" framework. FastAPI has by far overtaken Flask for new projects, but knowledge is very portable between them: FastAPI is basically "what if we ported all the mistakes of Flask to the current fashions"

Pytest is substantially more popular than unittest from what I have seen.

Pydantic exists alongside data classes and attrs (+ cattrs). Personally I like Pydantic the least, but FastAPI has made it the most popular. You should be aware of the others, though.

In general any sane Python shop will be aware of the variation and account for it in new hires, the same way people account for variations in libraries.

1

u/Resident-Donut-4905 Sep 18 '26

Many thanks! Helpful insights

7

u/nog642 Sep 18 '26
  1. It varies. I don't think "fully typed" is that common, but at least for some functions it's decently common. Definitely worth knowing how typing works. If a team wants to enforce typing they'll use linting, so you don't need to worry about having it as a habit.

  2. Many companies will have their own systems built on top of pip/whatever. And I'm not totally sure but I think uv isn't broadly adopted, yeah.

1

u/Resident-Donut-4905 Sep 18 '26

Thanks! I understand that the greatest value lies in typing some domain/model entities not just "str" and primitives. What's the usual approach for typing? Like Python has native typing and/or Mypy/Pyright for static typing? what about Pydantic for runtime validations (although that's another topic maybe more related to validating request shapes etc?)

→ More replies (3)
→ More replies (1)

9

u/Rain-And-Coffee Sep 18 '26

My company uses FastAPI for some Python API.

We don’t use Django since we prefer to keep UI separate with things like React or NextJS

1

u/Resident-Donut-4905 Sep 18 '26

Gotcha. Thanks!

3

u/enigma_0Z Sep 18 '26

to answer your bullet points —

Just about anything is better than raw pip for development environment management, which is where the deps will really bite you in the ass. I really like uv, its usage patterns parallel npm pretty well. Managed to convert a whole shop raw dogging it with just pip and virtualenvs to uv.

I started with flask on a personal project and when it came to productionalizing it, it kinda started melting down. I switched over to fastapi and haven’t looked back. Conveniently my current job also uses FastAPI and made that decision independently.

I like pyright. Specifically I use the basedpyright plugin in codium.

I like pydantic for shaping api data. If you go with FastAPI you pretty much have to use it but it works well for other purposes including validating and loading data from json/yank cleanly and relatively quickly. Watch out for recursion though. I had a bad model with a circular reference and managed to generate a multi-GB JSON file accidentally. (no that is not a typo)

Ruff etc — we use ruff on our team but I kinda feel it’s too prescriptive. Some style / linting is better than none but i don’t use a linter on personal projects.

I like pytest but have used both. Pytest is less prescriptive IME but YMMV.

1

u/Resident-Donut-4905 Sep 18 '26

Thanks for the insights!

→ More replies (1)

3

u/replicant86 Sep 19 '26

We do uv, ruff, pydantic, fast api, pytest and everything is fully typed using mypy on a project with over 500k lines of code. I yearn for ty release

1

u/Resident-Donut-4905 Sep 19 '26

Sounds like a modern stack. Had to look for “ty” because I didn’t know about it. Thanks!

2

u/fay-jai Sep 18 '26

Just wanted to thank you for asking this detailed question - this is something that I’ve been thinking about in my recent Python learning as well and I’m following this question so I can learn more as well!

2

u/Resident-Donut-4905 Sep 18 '26

Glad it helps other people too!

2

u/enigma_0Z Sep 18 '26

To answer your specifics

  1. In my professional experience it’s pretty commonly pydantic but not always. FastAPI works well with it and i’ve only really seen FastAPI projects professionally though. Personally, i tend to use pydantic if type safety matters a lot, and not if it doesn’t or it’s not a class which would be serialized anyway. Pydantic is particularly good for things you want to get into JSON for APIs

  2. YMMV. The company I’m at now was just using pip and virtualenv like masochists but I converted them to uv after spending a lot of time untangling their old CI. it was a mess. In FOSS projects these days i mostly see uv but seeing any of these would not surprise me.

  3. How does a virtualenv work. How can you build one from a pyproject.toml without uv, poetry, or similar. How does the pyproject.toml work. Do you know how to build a dist for a python project? What about an egg? Knowing these things will make your CICD or DevOps engineer very very happy.

  4. FastAPI is nice. Flask betrayed me right before i went to production with a personal project (and converted to FastAPI). I also work with FastAPI professionally. No opinion or experience on Django

  5. Not using a tool that takes the place of npm in python (i like uv) is absolutely wild but 100% a thing in some places. Get ready for development environment management hell. And dependency hell. And cicd orchestration hell. All in a big dumpster fire. Typing, type safety etc are similar — at least IME — TS / JS / React is one of my other languages. TS can be a bit more persnickety than typehinted PY but less than Pydantic.

  6. OOP and FP in equal parts honestly. since the top level object in a given python file is the actual file (as a module) you’ll see lots of tools which implement both patterns wherever it makes sense. Kinda depends, but i’ve seen both OOP (with multiple inheritance even) and FP with composition.

1

u/Resident-Donut-4905 Sep 19 '26

Thanks! Definitely need to dive deeper on #3

2

u/whipdancer Sep 19 '26

uv + ruff + FastAPI (unless there's something specific that needs Flask)

Mix of pyright and mypy

Pydantic since we use FastAPI so heavily

Pytest

We build pre-commit hooks that enforce the linting rules - we require types.

Our TS stuff has an equivalent setup.

1

u/Resident-Donut-4905 Sep 19 '26

Cool! I still don't understand why mypy and pyright coexist?

2

u/Ragoo_ Sep 19 '26

Pydantic for runtime validation/parsing

In my opinion only if you are required to use it (e.g. FastAPI) or you really need some advanced validation rules. Otherwise msgspec serves the same purpose but much faster and lighter.

Ruff / Black / Flake8 / isort

These are all bundled in Ruff.

Pyright vs mypy for static type checking

Basedpyright if you want a mature type checker, Pyrefly (or in the future ty) if you want something from the next generation of type checkers.

FastAPI vs Flask vs Django

Flask is probably not really worth using anymore, but FastAPI and Django serve different purposes and you most likely want FastAPI for most use-cases. Litestar sits in the middle but it's not nearly as popular.

Some other common ones where I have a clear preference for the newer one:

  • Polars instead of Pandas for speed and syntax

  • zensical as an mkdocs replacement (mkdocs is no longer updated)

  • niquests instead of requests or httpx

  • marimo instead of Jupyter notebooks

  • and for the last one I will say that Typer and pydantic-settings are quite popular but I prefer the syntax and flexibility of cappa and dataclass-settings. But these are much smaller, so that's a niche opinion

As for your other questions: If a project doesn't have a pyproject.toml file and instead uses requirements.txt, that immediately feels outdated. Any modern project should also be fully type hinted which includes using dataclasses (/pydantic/msgspec) over dicts whenever possible and Literal/Enum. It should also use uv, ruff and a modern type checker and pytest.

OOP is still around and can be abused (Langchain is painful for me). Personally I'd prefer shallow inheritance, more composition, dataclasses for data and functions over methods.

2

u/Resident-Donut-4905 Sep 19 '26

Thanks for the inputs!

1

u/GoguGeorgescu Sep 19 '26 edited Sep 19 '26

I am amazed no one mentioned PDM as the project manager, if you're a node guy, you'll love it's scripts in pyproject.toml, just like npm scripts in package.json. UV will probably get them at some point as there is an open issue on their github, but if you want it now you can get it. You can also swap it's dependency resolver with UV and get the best of both worlds.

One more thing that it does, which neither uv or cookiecutter do is run find and replace after you make a new project based off a repo template. Set up a fastapi project in a repo, configure some stuff, add some scripts like a watch script that runs uvicorn on your api with the --reload flag so you do pdm run watch, and save it all in a repo, want a spike to test out something, why run the whole setup and config again, you do pdm new <template_repo[@branch]> new-name, go through the wizard and presto, a configured base api to just start working. Oh, and everything that contains the template name in its path gets renamed to the new name. The branch name is gold, I use it all the time when I have some setup I want to test out before pushing it back into main.

For the rest, mypy, pyright, pydantic, ruff and pytest, there is nothing else you should need in 99% of use cases.

Edit: forgot to mention, setup.py and requirements.txt are dead, PyPA strongly recommends any new projects use pyproject.toml, requirements.txt is left for legacy projects

Edit 2: saw someone mention ty, also excited about it, pyright and mypy have some overlaps but also have some divergence, as with ruff I'm expecting ty to cover both of them across the board.

1

u/Resident-Donut-4905 Sep 19 '26

Will look at PDM! Thanks. Why did you mention both mypy and Pyright? Don’t they serve the same purpose?

Also is anything from this stack used if, let’s say, Django is used?

→ More replies (1)
→ More replies (2)

2

u/cmxthirtysixhundred Sep 21 '26

As far as dependency management, I've been writing Python for 15 years and I've never needed anything more than pip and venv, but maybe my use case is different. I mostly write Pyside6 desktop applications these days.