r/Python • • Sep 19 '26

Discussion State of the art in Python 2026?

What would you guys consider the state of the art in python in 2026, or what do you expect from modern python codebases?

Heres my list, would be happy to hear some inputs or domain expert advice:

Domain specific:

  • Scientific: NumPy, Matplotlib, SciPy, Jax, Pytorch, Scikit-learn, polars/pandas
  • CLI: Typer, rich, click, fire, textual, questionary
  • PDF extraction: PyMuPDF, pdfplumber, pypdf, Unstructured
  • Excel interop: python-calamine, openpyxl, XlsxWriter, xlwings, pandas
  • data: PyArrow / PySpark, Narwhals, SQLMesh, Polars/Pandas, DuckDB, dlt, Ibis, Dagster, PyIceberg & deltalake
  • Logging?
  • backend: fastapi / django?
  • Markets: Alpha Vantage, Finnhub, EODHD, Tiingo?
  • Webscraping / data acquisition: Crawl4AI, Playwright, Scrapy, selectolax, HTTPX?
  • APIs?
  • RAG / agentic orchestration?
621 Upvotes

242 comments sorted by

•

u/coderanger Sep 20 '26

It's cool to discuss this but putting on my mod hat I would like to make it clear that every one of these categories doesn't have a single "best" option and no one should represent them as such.

→ More replies (3)

5

u/techhelper1 Sep 20 '26

1/3 of that list are packages created in C, rust, or some other language that isn't Python.

The state of the art for performance requires going around the interpreter.

25

u/fiddle_n Sep 20 '26

You say that like it’s a bad thing. Having the ability to write your high level logic in Python and then being able to dip into C/Rust performance for perf-critical parts is a superpower, not something to be derided.

6

u/RevRagnarok Sep 20 '26

FR. Isn't like half of CPython's standard library also C with the provided python equivalent for reference?

→ More replies (7)

2

u/Several-Marsupial-27 Sep 20 '26

Yes, that’s kind of the point of Python.

→ More replies (2)

181

u/profcube Sep 19 '26

`polars` for data wrangling.

5

u/coderarun Sep 22 '26

pyarrow.Table if all you want is a dataframe. Then you can choose from many excellent tabular/graph based query engines.

4

u/Grouchy-Friend4235 Sep 20 '26

This is Python. We're all adults. There is no state of the art, just preferences.

4

u/Several-Marsupial-27 Sep 20 '26

Yes and no. There are newer, better and more well maintained repositories and there are new technologies emerging constantly. There are also old, objectively worse, or abandoned repos. However the state of the art is very wide and the details are preferences.

177

u/bossExtremeSwag Sep 19 '26

Pandas is definitely not state of the art in the big 2026

14

u/BPAnimal Sep 20 '26

Really? Honest question

70

u/johnnymo1 Sep 20 '26

I reach for Polars immediately these days. Faster, more efficient, and its syntax is more straightforward generally.

8

u/Tigalopl Sep 20 '26

Does it interfaces well with geopandas?

→ More replies (5)

23

u/me_myself_ai Sep 20 '26

Id argue that pandas is absolutely still a valid choice in a new project —especially if the data is small-ish and devs already know pd— but it’s definitely not SoTA.

Polars is supposedly a lot faster, and more importantly requires fewer weird tricks for stuff that feels like it should be easy. If that makes sense? Hopefully I haven’t just been especially bad at pd this whole time 😬

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

141

u/me_myself_ai Sep 19 '26 edited Sep 19 '26 • Bravo

Ok this is a really fun question!

First, I'd quibble/specify that we're talking about Python libraries in particular. Obvious, but sometimes that's helpful! Now, my biased takes as a dev mostly working on text processing, typing, TUIs, and AI:

  • Scientific: numpy, matplotlib, scipy, sympy. The (ana)Conda ecosystem is still quite healthy in science spaces, despite their new ultrafast competitors. Scientists seem to be the only people that remember Jupyter without Google Colab, frustratingly...
  • Basic ML: pytorch, scikit-learn.
  • Deep ML: hf_api & transformers from HuggingFace; VLLM and llama.cpp dominate hosting, though they're not really mere libraries
  • Dataframes; pandas is the status quo, polars is the new hotness.
  • TUI: textual is the status quo, pyratatui is the new hotness.[1]
  • CLI: click gets usage, but IME argparse is still dominant. Stuff like rich & better_exceptions pops up, but not it's pretty optional.
  • Text: re is a MUST for non-trivial regex. Otherwise: jinja is everywhere. Literally everywhere. I bet there's jinja running in my browser rn, in some obscure subprocess! Tons of impressive libraries are lowkey just jinja wrappers. [Oh and pandoc is so huge I forgot to mention it -- the world runs on pandoc!]
  • Docs: sphinx is still the GOAT and we should all use it (it was made for Python docs, after all!), but I do see mkdocs a lot, too. In terms of Sphinx themes readthedocs and furo win for basic and semifancy projects respectively, but anything other than the default is nice. MyST/myst-parser is the mature path for rendering Sphinx docs from markdown, though I'm biased there. Sadly the super-impressive sphinx.autodoc and sphinx.apidoc seem to have lost their luster, as people decide they prefer writing docs in separate files rather than directly into docstrings.
  • Logging: highly usecase dependent, but logfire feels the most modern.
  • Observability: OpenTelemetry ("otel") is the overwhelming norm, but from there it depends
  • Serving: fastapi for simple CRUD apps, bare starlette for others; I love flask (quart, even!), but it has a django vibe, now. There are quite mature options that integrate w/ a frontend framework, but I don't use them myself.
  • Concurrency: asyncio is just reaching it's prime IMO, and I learned about really impressive engines to go below it like greenlet and uvloop from reading others' advanced codebases. There's a million tie-ins, but aiohttp deserves a shoutout above all others.
  • Browser testing: playwright is still the GOAT, along with a growing ecosystem of AI-focused wrappers & competitors like steel-browser. I used Selenium back in the day but I'm not sure I've seen it near Python...
  • APIs: anything not published by Google. A shocking number of projects just rawdog it with httpx, or even just requests (!). The openai is also everywhere, as their API format has become lingua franca.
  • Security: python-oath2 for basic auth. Technology-wise, Keycloak dominates for self-hosted, and JWTs seem to still be common.
  • LLMs: pydantic_ai and dspy are leagues ahead of the competition IMHO, but the number of new tools here obviously outweighs the whole rest of the list combined.
  • Remote inference: Google Colab is the lingua franca, no doubt about it -- DigitalOcean tried to unseat them w/ Paperspace/Gradient, but seem to have mostly abandoned the project. In pure library terms modal is crazy impressive and fairly mature, but this depends more on who you're willing to pay (and how much direct python-level integration is worth to you).
  • OCR: marker is the most successful and pythonic OCR system IMHO, but the ones you mention (PyMuPDF, pdfplumber, pypdf, Unstructured) all seem reasonable, too.
  • RAG: Pinecone had early dominance over embedding search ("vector databases"), but IME has rightfully lost to the humble pgvector.
  • Databases: SQLite & PostgreSQL dominate for light and prod workflows respectively, and sqlalchemy is the unquestioned omnissiah of Pythonic ORM (sqlmodel is a fun extension by the guy who makes fastapi, but it's young and targeted at simple CRUD usecases). Unsure about nonrelational DBs, but I've heard second-hand that MongoDB is still used in the corporate world, at least.

I wonder if you could make an objective list with GitHub star data for projects written (mostly) in Python...

[1]: In general, "Python layer that talks to an underlying Rust program" is the metahotness! Tree-sitter is the big example, backing all the coolest new LSP gadgets and formatters and stuff like that.

41

u/Icy_Peanut_7426 Sep 20 '26

Docs: NOT mkdocs (since 2.0 and maintainers abandoning the project). Great Docs or Zensical is “state of the art” for Python docs.

→ More replies (3)

24

u/me_myself_ai Sep 19 '26 edited Sep 19 '26

Oh and I forgot some absolute GOATS that make coding itself so much more ergonomic and fun: more-itertools and toolz allow for the best functional programming this side of the LISP, and pydantic is like magic as long as you keep it out of hot loops.

pytest is another that is so common it feels weird that there's still technically a stdlib competitor.

Finally: YAML. YAML all the things!

10

u/NeilGirdhar Sep 20 '26

> pytest is another that is so common it feels weird that there's still technically a stdlib competitor.

The stdlib usually can't keep up with libraries. Libraries can release as quickly as they want and the stdlib has limited maintenance resources.

→ More replies (2)

9

u/Epsilon_void Sep 20 '26

Finally: YAML. YAML all the things!

God please no.

→ More replies (2)

3

u/Agrado3 Sep 21 '26

Friends don't let friends use YAML. Indeed, I have always assumed that YAML is a joke that got out of control, like the Flat Earth Society. It's like they chose a list of goals and then set themselves a challenge to design a solution that fails at meeting those goals in the most spectacular way possible. I mean, the original point of it was that it was a simpler replacement for XML but the YAML spec is larger than the XML spec... that can't happen by accident, right?

→ More replies (2)
→ More replies (5)

9

u/brianly Sep 20 '26

Selenium was popular with Django devs, but tools like that were very dependent on organizational buy-in years ago. Playwright was more modern and reintroduced the concept so it crossed the chasm and became more mainstream.

→ More replies (1)

6

u/turbothy It works on my machine Sep 19 '26

No love for typer CLIs?

11

u/wingtales Sep 20 '26

I prefer cyclopts these days, which is a fork with more functionality merged. Haven't compared them directly for feature parity in some time though.

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

3

u/maryjayjay Sep 20 '26

Did you mean openapi rather then openai under APIs?

2

u/PrLNoxos Sep 20 '26

Agree with pydantic ai for agent Development. We use it in production and the library is simple and „just works“.

2

u/alchninja Sep 22 '26

anything not published by Google

Sorry if this is a silly question, but is there a reason for staying away from Google? I pretty much just use Python for small personal projects, TUI/CLI utilities, notebooks, etc. - so I rarely find myself needing anything more than requests. What does Google do in the Python API space anyway? (protobufs are the only thing that immediately come to my mind, is there more?)

→ More replies (2)
→ More replies (4)

47

u/NeilGirdhar Sep 19 '26

I'd choose Ty over pyright personally, but yes to the rest.

Also, for modern numeric programming (NumPy, etc.), limit yourself to the Array API.

43

u/CampAny9995 Sep 19 '26

Ty isn’t there yet for production pipelines (I think astral said that’s how the 1.0 release is defined), but it’s fine to use as an LSP.

18

u/zurtex Sep 19 '26

I think astral said that’s how the 1.0 release is defined

I assume you are mistaking it for 0.1.

For whatever reason, Astral are not keen on making "1.0" software, neither uv nor ruff are and they are described as production ready.

I switched to ty recently in "production" (i.e. enforced CI check) at work and have been quite happy with it. Especially looking through some of their recent rules, I really like disjoint-cast: https://docs.astral.sh/ty/reference/rules/#disjoint-cast

In general with type checkers I suggest you try all of them and see which one works best for you. For me ty produced error messages that were the most actionable.

7

u/CampAny9995 Sep 20 '26

> ty uses 0.0.x versioning. ty does not yet have a stable API; breaking changes, including changes to diagnostics, may occur between any two versions.

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

13

u/NeilGirdhar Sep 19 '26

Also, I like Zensical for modern documentation over Sphinx. And you mentioned both Jax and Pytorch—I'd just go with Jax.

23

u/me_myself_ai Sep 19 '26

IME pyrefly is the GOAT, after trying all of them. I'm loathe to support microsoft but I'll be damned if they didn't cook! It helps that it's longer-running and better-staffed than ty, it seems.

(ty is nice too and has Astral's usual attention to detail, but it's just so radically far from the spec that it becomes counterproductive for advanced code. IMHO)

16

u/2K_HOF_AI Sep 19 '26

Pyrefly is from Meta

4

u/me_myself_ai Sep 20 '26

Omg I'm dumb, thanks for the correction, was remembering pyright. Thank you! I'm a bit happier about supporting them then, and don't ask me to justify - I just wanna take a little win.

7

u/Sea-Fishing4699 Sep 19 '26

Pyrefly ==🦀🔥

4

u/FrickinLazerBeams Sep 19 '26

Also, for modern numeric programming (NumPy, etc.), limit yourself to the Array API.

Why?

7

u/NeilGirdhar Sep 19 '26

Because code that uses a smaller API is easier to read. It requires the reader to learn less.

Also, the Array API has superior design. The corner cases have been eliminated, and nearly every operation supports broadcasting in the obvious way.

Finally, if you ever decide to change your backend from NumPy to another Array API library like Pytorch, you can do that without changing your code.

→ More replies (1)

3

u/Aggressive-Prior4459 Sep 20 '26

Have you checked out zuban? https://github.com/zubanls/zuban

3

u/gizzm0x Sep 20 '26

Big +1 for zuban. Still on mypy for CI at work, but zuban is my lsp of choice atm.

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

37

u/gogonzo Sep 19 '26

Loguru and litestar

6

u/dratnew43 Sep 20 '26

litestar is so much better than fastapi imo

7

u/fiddle_n Sep 20 '26

I suspect most new “modern” Python codebases would still use stdlib logging, and for web use something more mainstream like FastAPI.

4

u/Ok_Raspberry5383 Sep 20 '26 edited Sep 20 '26

What is wrong with argparse for CLI?

I've started using msgspec more instead of dataclasses for large data collections and JSON due to superior memory and serde performance (even beats orjson).

Python provides logging in the stdlib with deep integrations into everything. Why would you want something different for this?

Why is APIs and web scraping different categories?

Honestly, this list looks like a junior learnt a few tools superficially and vomitted them all onto a pointless Reddit post

7

u/Several-Marsupial-27 Sep 20 '26

I feel like the post hurt some fragile egos in a way I didn’t intend. The point of the post was not to authoritatively list the best python technologies and say that the other technologies are shit and their users are idiots like some people read it…

The point of the post was to open up discussion about preferences in different python technologies. ”What is wrong with X for Y”, the post does not say that anything is wrong, that’s your interpretation. I have never used argparse so that’s the reason it didn’t land MY LIST.

Junior and junior, I have written python for >8 years, but I don’t work with python as I’m an embedded developer, which is also why I am asking for inputs and discussion about new python technologies from different perspectives. If I was a greybeard principal python developer who understands the nuances of every python library then making the post would be redundant.

So if your not looking for information about new logging libraries and keen on using the stdlib (which is absolutely fine, no one is thinking less of you for that), then why are you leaving a hate comment on an informative discussion post on the domain specific forum?

→ More replies (1)

21

u/Manhigh Sep 19 '26

Pixi as an alternative to uv if you have a lot of non-python dependencies (MPI, PETSc, compilers).

I've been liking structlog.

→ More replies (1)

7

u/BigBlackCough Sep 19 '26

VapourSynth for video processing.

18

u/cblegare Sep 19 '26

Unpopular opinion : ReStructuredText and Sphinx for documentation

I know, people love Markdown and recent document processors. You can even MyST tour Markdown info Sphinx nowadays, but Markdown was design for textual readability and one-page single document to minimal HTML.

ReST was built with scalability and extensibility in mind. As a LaTeX user (math teacher), ReST's syntax feel great to me and I can easily do anything with it. There are so many tools trying to mimic parts of Sphinx, and nothing beats intersphinx.

Shameless plug: I wrote Sphinx-Compendia while using Sphinx as a knowledge base for my tabletop roleplaying game, an extension you use when you document specific kinds of things that are not just python classes and fonctions, such as NPCs, locations and factions!

2

u/agoose77 Sep 20 '26

FWIW MyST is designed for multi-document projects. It was created for Jupyter Book! (a Jupyter book core contributor)

2

u/cblegare Sep 20 '26

Yes I know, but the hacks for directives and roles feels awkward to me.

```{directivename} arguments
:key1: val1
:key2: val2

This is
directive content
```

{role-name}`role content`

While this looks like it was designed that way (on my opinion)

.. directivename:: arguments
    :key1: val1
    :key2: val2

    This is
    directive content

:role-name:`role content`

I might feel that way because I am an old user of Markdown and I hate how every implementation has its one quirks. Or reminds of the age of IE and Netscape where every browser tried to lock you in with not-standard "features"

I love Markdown for what it was designed for

The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.

https://daringfireball.net/projects/markdown/

→ More replies (3)

5

u/Goldarr85 Sep 20 '26

I’ve been appreciating Dynaconf to handle configuration files.

2

u/silksong_when Sep 21 '26

can you expand more on how you're using it? are you using it in prod as well?

Also, did you try out pydantic-settings, how do you think dynaconf does better?

5

u/Informal-Butterfly78 Sep 21 '26

I second litestar over fastapi

basedpyright >> pyright imo. Pyrefly is also great.

The Sphinx comment is delusional lol. zensical, mkdocs, mkapi, any one of the 100 other SSG's outside of the Python sphere...

matplottrash is still trash no matter how much they try to revitalize it, though seaborn makes it bearable. I will always wonder why people don't use things like bokeh or plotly

9

u/andrewcooke Sep 19 '26

what happened to flask?

kinda related, has django evolved much?

→ More replies (4)

18

u/busybody124 Sep 19 '26

I would definitely not use fire for CLIs. It's slow and hasn't been updated in a year. I'd also skip Pydantic for most things—it's overkill, slow for ser/de, and can usually be replaced with a dataclass. Hypothesis is really cool in theory but I've never found a need for it in practice.

12

u/spigotface Sep 20 '26

Pydantic pulls its weight when you want auto-generated OpenAPI docs. Outside of that, use dataclasses with slots=True and __post_init__ data validation methods. Its sooooo much lighter weight than Pydantic models.

5

u/Mr_Again Sep 20 '26

Yeah but doesn't pydantic do validation for you? Isn't that the whole point of it?

4

u/Trey_Antipasto Sep 19 '26

Replace with msgspec and json schema.

2

u/mwesthelle Sep 19 '26

I honestly believe Pydantic is overrated. Yes, it's slow, it has an opaque API which is easy to shoot yourself in the foot with in the form of a bunch of reserved field names which you have to remember, and it's overall unintuitive (tell me off the top of your head what's the difference between a model constructor and using the model_validate method).

→ More replies (1)

4

u/justanothersnek Sep 20 '26

Long time pandas and pyspark user. I just converge on using sqlframe instead of learning yet another dataframe library. If I was starting out, I would definitely learn polars over pandas. But for old timers like me that started with pandas and pyspark many years ago, sqlframe fits the bill.

2

u/TheOneWhoPunchesFish Sep 22 '26

Are their APIs that different? I've only used Pandas. And I think you can query both pandas and polars can be queried over SQL.

3

u/justanothersnek Sep 22 '26

Polars API is more similar to PySpark from my understanding.  Ive seen complaints from ex Pandas users who love Polars API, really sh*t on pandas API syntax.  So take that as you wish.  Ive never bothered learning Polars myself as I just use sqlframe.  Seen some sample code here and there, from what I saw, Polars looked really similar to PySpark.

2

u/justanothersnek Sep 22 '26

Pandas have great features for data analysis like time series functions and being able to filter on time-based attributes.  Not sure if recent versions of Polars have them now.  Also, Polars lack geospatial support.  Even if you're not into geospatial or GIS, if you work in logistics or transportation space, those geospatial libraries are really handy.  So its not "niche".   Being able to work with location data is very common.

4

u/protolords Sep 20 '26

Agentic Orchestration

Used pydantic-ai personally and so far it covered everything i needed.

4

u/DatabentoHQ Sep 20 '26

Saw that you listed financial markets as a category. Self-plug for databento, which is now the most downloaded package in this category on PyPI, after yfinance.

7

u/laCH37 Sep 20 '26

Stupid question here I am used to use venv for pretty much everything. What am I missing with UV ?

9

u/fiddle_n Sep 20 '26

One tool that combines the functionality of pip and venv and gives locked builds (a functionality of older tools like pip-tools/pipenv/Poetry anyway), the ability to install tools separately (a functionality of pipx) and the ability to manage the Python environment itself (a functionality of pyenv). Also it’s very fast too.

Using proper lock files is worth the price of admission.

→ More replies (2)

1

u/spartanOrk Sep 21 '26

I mean... sure... Or delete all of that and use OpenCode to write your python. :) Before you downvote me, think if I'm saying the truth here. I know for a fact, at work, nobody writes code by hand anymore.

3

u/Several-Marsupial-27 Sep 21 '26

This list is not about who is writing the code, but about what technologies to use. I sure hope your agent is not reinventing numpy or uv. Especially since all performant python libs are written in C/Rust.

The design decisions in coding will not only effect the development, but also the end product.

→ More replies (1)

3

u/Proof-Win5461 Sep 20 '26

using basedpyright

1

u/fnord123 Sep 21 '26

It's very slow on large projects. 

3

u/DigThatData Sep 20 '26

logging: I personally like loguru. a newer library I haven't tried yet but which I understand is popular and looks interesting is structlog

2

u/fnord123 Sep 21 '26

I've used structlog. It's very good. You can bind context variables with context managers that make it so some values are logged without needing to repeat them on every log call.

3

u/TryAffectionate8728 Sep 20 '26

ClickHouse for working with data

5

u/FrickinLazerBeams Sep 19 '26

If you're using numpy, it's almost criminal to not mention numba. Numba is awesome.

2

u/RevRagnarok Sep 20 '26

I spent all day yesterday trying to move a pretty trivial thing to numba and ended up giving up. If you can keep most stuff in one domain or the other, it's probably great. But not supporting numpy's __array__ was killing me.

8

u/jsabater76 Sep 19 '26

I use Django Ninja for APIs. DRF is also a strong candidate. And then there is FastAPI.

1

u/ColdPorridge Sep 20 '26

Ninja is dead, getting essentially no updates last few years despite significant issue list. I submitted several PRs to resolve blatant bugs that have been waiting for meteor years.

It’s an incredible idea but it’s not the future, and it’s only the governance that kills it. Shinobi and ninja extras are good examples of how languishing issues cause further ecosystem fracture. 

→ More replies (1)

1

u/trollsmurf Sep 20 '26

"State of the art" but no mention of GUI.

1

u/Several-Marsupial-27 Sep 20 '26 edited Sep 20 '26

I simply don’t have enough experience with python gui programming

6

u/protolords Sep 20 '26

I've used PySide which is a wrapper for Qt and i think it's very close/same to C/C++ native speed in terms of rendering and event handling.

5

u/trollsmurf Sep 20 '26

I use Tkinter for desktop.

But even for web you realistically need a framework. I've mostly used Streamlit and Flask.

6

u/quintenrosseel Sep 19 '26

Logfire (observability), Marimo (notebooks)

9

u/highnorthhitter Sep 19 '26

FastAPI

9

u/jirka642 It works on my machine Sep 20 '26

Litestar

2

u/BertrandBolero Sep 20 '26

Is dask still the standard for distributed/parallel computing? I don’t see that category in the lists 😅.

2

u/DeepAnimeGirl Sep 20 '26 edited Sep 20 '26

tyro is the best lib for CLIs that I have used, it provides much better developer experience, performance, modularity than alternatives such as cyclopts, typer, click, etc

2

u/Hendrik-Lorentz Sep 20 '26

Seems pretty good.

2

u/OrthelToralen Sep 20 '26

Great thread. I’ll throw a newcomer into the mix for databases: pyturso, the Python binding for Turso.

Turso is a ground-up, open-source Rust database engine that targets SQLite compatibility while adding things SQLite was never designed to do: concurrent writes via MVCC, remote sync, native async I/O, CDC, vector operations, and eventually multiple SQL front ends.
It is compatible with SQLAlchemy (my contribution to the project). Initial support for PostgreSQL syntax was recently introduced as well.

It’s still early days, but Turso has a lot of promise. It combines the simplicity of working with an in-process local database like SQLite with production features more commonly associated with remote-hosted databases like PostgreSQL.

2

u/Ok_Option_3 Sep 20 '26

Is anyone still using the Conda ecosystem? If so, why?

2

u/joshbranchaud Tuple unpacking gone wrong Sep 20 '26

Can you weigh in on when you use Pydantic over Dataclasses? Or do you treat them interchangeably for data modeling?

2

u/messedupwindows123 Sep 21 '26

typing.namedtuple

2

u/spinwizard69 Sep 26 '26

This is a really nice thread but one thing I've found that works for me and my limited use of Python, is to rely upon the distro's package manager as much as possible. In this case Fedora, and DNF, this has several advantages, one is that you are kept off the bleeding edge, it prevents the use of virtual environments in many cases as you are focused on system supplied and MAINTAINED libs. This has the side effect of really having to think if you need to use a lib outside of the system supported offerings and thus the need to create a virtual environment.

Obviously if one is involved in heavy web development this might feel restrictive and frankly that is part of the allure. Since most of the scripts I've written are used locally, the need to be on the bleeding edge is greatly reduced. That has the follow on that you are not constantly in maintenance mode as the bleeding edge dries up and your usage gets deprecated So yeah a big plus plus for the systems package manager and the base such mangers provide.

As for domain specific adds, anything to do with instrument communications from pyserial on up would be on my list. Pyserial is the base line communications library. With things like PyVisa, pymodbus and similar libs, for more advanced communications solutions.

8

u/Smallpaul Sep 19 '26

Pydantic AI for LLM

9

u/fast-pp Sep 19 '26

Curious why people are downvoting? I liked it well enough, certainly better than langchain IMO

4

u/OkProfessional8364 Sep 19 '26

I would love a YouTube video on this topic every year. Any aspiring coding YouTubers out there?

3

u/semi-finalist2022 Sep 19 '26

Docling for pdf extraction and langchain/langgrap/deep agents stack for RAG

3

u/awgl Sep 19 '26

Seaborn for most data viz

14

u/NeilGirdhar Sep 19 '26

I think Seaborn is poorly designed, same with Matplotlib. I wouldn't consider either of them modern, personally. Still waiting for someone to build something great. In the mean time, I dump the data as json, and visualize it in other tools.

2

u/AntisthenesCat Sep 20 '26

How do you feel about plotnine? https://plotnine.org/

1

u/NeilGirdhar Sep 20 '26

Looks very cool.

But if you want your plots to match your publication, I think it's better to do them in Typst (if you're using Typst for text) or Latex. They'll match and you'll have access to all your typesetting functions.

2

u/Icy_Peanut_7426 Sep 20 '26

Altair or plotly

1

u/mwesthelle Sep 19 '26

I personally much prefer Altair's API for viz

2

u/cudmore Sep 20 '26

And a gui?

1

u/Hesirutu Sep 21 '26

Apart from web, there is no alternative to Qt/pyside.

1

u/cudmore Sep 22 '26

And now nicegui

1

u/Hesirutu Sep 22 '26

...which is web.

1

u/iterlab Sep 29 '26

there is now ;-)

1

u/iterlab Sep 29 '26

reinvented! check out iterlab :-)

-6

u/Ok_Raspberry5383 Sep 20 '26

Why are you using python if you're building GUI apps

5

u/cudmore Sep 20 '26

I use python for scientific data analysis like image and 1d timeseries, python is great for this with scipy, numpy, etc.

Then i make desktop and web gui clients to use the python backend api.

For desktop gui clients staying in a python runtime allows me to use the api directly, no url endpoints. For that, would use pyqt/pyside, so those are two python packages that could be added to the list. Then if you use nicegui you can have the same python gui code for end user desktop app and in a browser.

For my work developing an ios or android app is never considered. We give users either a desktop app (pyqt/pyside, or nicegui) or a static spa web app that can use the python url endpoints api.

Now, more recently, starting to use webassembly/pyodide to run our python code in the client browser.

For me the backend python code is the easy part, it is how to make a gui that takes some time. We often do desktop apps in python with pyqt/pyside, or niceguigui.

That is why i use python to make gui apps.

Maybe the difference is the scientific community, especially research biology, has a lot of data on their local drive (1000’s of files from GB to TB) and can not be bothered with having that actual raw data pushed to the cloud.

Serious question, what am i missing?

→ More replies (2)

1

u/david-vujic Sep 20 '26

In the category Developer (and Agent) Productivity, I would suggest to have a look at Polylith. It is a Monorepo architecture with Python-specific tooling (I'm the maintainer of the Open Source tool). The main use case is one or more microservices (or apps) in a Monorepo, and easily share code between the services without dependency and versioning headaches.

For agentic development, this kind of setup is really good too: you and your agent(s) have all the context right there. The tooling (a CLI) is for humans, agents and CI: the basics, such as adding components and projects, visualize the contents of the monorepo and how the different parts connect. Also, making sure the interfaces between components are clear and correct, and to deploy only the projects affected by changes.

As a maintainer of the Open Source Polylith CLI tool, it's a Life Goal of mine that the tool will be in many, many more developer teams list of "must have" Python tooling than today (even if there are a lot of Python teams already using it today). 😁

1

u/AndreuCodina Sep 20 '26

wirio-settings to work with settings.

1

u/Mr_Again Sep 20 '26

What I really want to know i what are we using instead of requests and httpx?

1

u/spiker611 Sep 20 '26

trio for structured concurrency (async) if you can, anyio if you have to use asyncio libraries. asyncio still has a lot of rough edges for structured concurrency.

1

u/SnooShortcuts9877 Sep 21 '26

SOTA for ocr is not what you mentioned. Mistral, deepseek, paddle(i prefer paddle because its free)

1

u/Lost-Dragonfruit-663 Sep 21 '26

aadya940/scikit-verify for testing numerical Python

1

u/jimbiscuit Sep 21 '26

Plone for backend

1

u/coderarun Sep 22 '26

pydantic yes, BaseModel no.

Also use decorator magic to use dataclass in most of the code and switch to pydantic only at API boundaries where you have untrusted data.

https://github.com/adsharma/fquery/blob/main/tests/test_pydantic.py

1

u/BravestCheetah Sep 22 '26

For typechecking, use ty. Same devs as ruff and uv

1

u/Academic_Delivery_gg Sep 22 '26

For logging use loguru

1

u/Inevitable_Earth_265 Sep 22 '26

granian instead of guvicorn or unicorn

1

u/quotemycode Sep 24 '26

I hate pydantic, rather use dataclasses instead - no external dependency. Pydantic seems to be preferred by ai code tools so it seems to get injected into everything these days.

1

u/_Fragoso_ Sep 24 '26

Structlog for logging

1

u/iterlab Sep 29 '26

As for scientific matplotlib - Perhaps no one knows iterlab in 2026. Fair enough, it was just released. But by 2027 your next SOTA post will have Matplotlib+iterlab !

1

u/manu_h3 Oct 02 '26

I would say langChain/langGraph for the last point

1

u/Serhii-Drozdov Oct 02 '26

One thing I’d add is keeping I/O boundaries explicit.

A lot of Python projects become difficult to test because database access, HTTP calls, filesystem operations and business logic all end up mixed together.

I’ve found it much easier to keep the core logic deterministic and put API/database/LLM calls behind small interfaces. Then most tests can run without network or external services, and integration tests can focus specifically on those boundaries.

This matters even more once LLM calls are involved, because you generally don’t want nondeterministic model behavior deciding whether the underlying business logic is correct.

1

u/Atmosck Oct 03 '26

My stack is the same except I've moved to ty instead of pyright for type checking.

Also DuckDB is the goat

1

u/Entuaka Sep 20 '26

I hate AI agents adding tons of new unit tests using hypothesis in our project, we now have flaky tests...

2

u/ToddBradley Sep 20 '26

Have any of the AI tools gotten smart enough yet that you can tell them "don't add a unit test unless it can pass 1000 times in a row"?

1

u/Entuaka Sep 20 '26

Everything is possible, but i also have humans in my team, it can be harder to deal with

1

u/ugh_my_ Sep 20 '26

Asyncio

0

u/Grouchy-Friend4235 Sep 20 '26

Antipattern

2

u/ugh_my_ Sep 20 '26

What else am I supposed to use then?

1

u/gbrennon Sep 20 '26 edited Sep 20 '26

i agreed.

i prefer to use python's built-in test frameworkbut i didnt saw any modern project using it.

about specific i woudl say:

Scientific: pytorch

CLI: typer

PDF extraction: pypdf

Excel interop: pandas

data: pyspark

Logging?: builtin

backend: litestar, imnho, does provide the best experience as possible

Markets: idk

Webscraping / data acquisition: httpx

APIs: httpx

RAG / agentic orchestration: pydantic ai

1

u/EconomySerious Sep 20 '26

A WYSWYG editor

1

u/Legendary-69420 It works on my machine Sep 20 '26 • Popcorn
  • Package Manager: uv
  • Linting/formatting: ruff
  • Static Type Checker: ty
  • Testing: Pytest
  • CLI: Typer, Rich
  • TUI: Textual
  • Scientific: NumPy, Numba, Pandas/Polars, Matplotlib/Seaborn/Plotly, SciPy, JAX, PyTorch, Scikit-learn
  • Data: DuckDB
  • HTTP Client: httpx
  • Logging: Structlog, Loguru
  • Backend: FastAPI, Django, Streamlit (Only for prototypes or data apps)

0

u/gerardwx Sep 20 '26

State of the art in 2026 is writing good LLM prompts and detecting LLM when misses the mark.

-4

u/bulaybil Sep 20 '26 edited Sep 20 '26

People who make lists like this don’t actually work with Python if they have enough time to compile them.

“even just requests” lol GTFO, it works that’s why I use it. If you’re gonna recommend Google Colab, I know you have never actually seriously used it and the word “script kiddie” suddenly rise from the depths of my Gen-X brain. Jupyter notebooks are shit and have always been shit for serious development. “most modern” “new hotness” - buddy boy, that’s not a good thing.

Also, I don’t think you know what “lingua franca” means.

4

u/Several-Marsupial-27 Sep 20 '26

I feel like the post hurt some fragile egos in a way I didn’t intend. The point of the post was not to authoritatively list the best python technologies and say that the other technologies are shit and their users are idiots like some people read it…

The point of the post was to open up discussion about preferences in different python technologies. However you seem to be referring to imaginary discussions completely outside of what I posted, so it’s pretty hard to meet your comment.

Also obviously I understand what lingua Franca means… but I don’t understand how that’s connected to anything else here?

So if your not looking for information about new libraries, then why are you leaving a hate comment on an informative discussion post on the domain specific forum?

-2

u/__hyphen Sep 20 '26

Vibe code and delegate these choices to our ai overlords

-2

u/ShelLuser42 It works on my machine Sep 19 '26

What would you guys consider the state of the art in python in 2026

I might not make friends with this, but => ComfyUI for me, the AI platform is IMO amazing. Thing is, it's not even necessarily about the platform itself for me, but the way they fully utilize and respect the platforms.

Referring to comfy-cli, which is how I'm using all this: it all started with a venv in which I simply ran python -m pip install comfy-cli.

And yah, firing up Comfy on my PC takes a bit more effort: open PowerShell, activate the venv, fire up comfy_cli (not with a - ;)) and from there on I use my browser to interact.

-8

u/TheBinkz Sep 20 '26

Poetry can do the job for dependency management.

4

u/fiddle_n Sep 20 '26

Poetry is definitely not “state of the art” any more. I say this as a Poetry 2 fan. There are some niche reasons to stick with Poetry but if you can do so at all, use uv.

-2

u/TheBinkz Sep 20 '26

Niche reasons? Buddy, poetry does still work. We use it in all our repos. On my personal stuff I use uv but my post stands that it can get the job done. Poor IQ on the downvotes.

1

u/Ok_Raspberry5383 Sep 20 '26

COBOL is still in use in some repos, that doesn't make it state of the art

0

u/TheBinkz Sep 20 '26

Never said it was state of the art.

1

u/Ok_Raspberry5383 Sep 20 '26

Your suggested poetry on a post that specifically asks for state of the art

What would you guys consider the state of the art in python in 2026,

Poetry can do the job for dependency management.

You may not have said it, but it's implied

1

u/fiddle_n Sep 20 '26

OP was asking “state of the art” not “get the job done”.

-2

u/HEROgoldmw Sep 20 '26 edited Sep 20 '26

Use httpxyz over httpx as an maintained alternative. Drop in replacement. Support for http2, bug fixes and more. confkit (my own lib), automatically manage and type cast configuration files for you. Supports all common primitives and has support to customize the data validation/casting.

1

u/[deleted] Sep 20 '26

[removed] — view removed comment

1

u/chub79 Sep 20 '26

pydantic claiming stewardship of httpx as a new version is not great IMO. niquests is much better bet.

0

u/HEROgoldmw Sep 20 '26

That's what I said, use httpxyz fork, instead of httpx Great other alternatives u gave too!

7

u/[deleted] Sep 20 '26

[removed] — view removed comment

5

u/fiddle_n Sep 20 '26

Probably worth mentioning the drawbacks of replacing httpx with the latter two.

aiohttp isn’t a drop-in replacement if you were using httpx in sync mode as aiohttp is async only.

niquests replaces urllib3 with urllib3-future, and if you want the opportunity to override this behaviour you must install from source which is not an option available to many.

-1

u/[deleted] Sep 21 '26

[removed] — view removed comment

1

u/Mast3rCylinder Sep 21 '26

2 installs is surely the state of the art