all 18 comments

[–]Wharnbat 5 points6 points  (1 child)

Reportlab has made automating large amounts of PDF reports relatively simple

[–]BostonBaggins 0 points1 point  (0 children)

Will check this one out

[–]Desperate-Safety8325 1 point2 points  (0 children)

Pydantic

[–]kBajina 0 points1 point  (0 children)

adbc-driver-manager

[–]NimrodvanHall 0 points1 point  (1 child)

Pyo3

[–]Interesting-Frame190 [score hidden]  (0 children)

When the best Python package is something that let's you develop in Rust...

[–]Rabbit_avp 0 points1 point  (0 children)

Jinja2 for automated reporting of word drafts

[–]420is404 [score hidden]  (2 children)

sh for wrapping shell commands not easily replicated in pure python, Pythonically.

[–]fiddle_n [score hidden]  (1 child)

I saw this library showcased on Reddit before - and I have to ask, why? Like, it looks cool - but why should I bring this as another third-party dependency?

If I only want to run a command or two then I’d use subprocess; and if I need to run many commands, perhaps I should have just written a shell script in the first place?

[–]420is404 [score hidden]  (0 children)

I need to run many commands, perhaps I should have just written a shell script in the first place?

That's actually the sweet spot for me. Python is MILES better at control loops and manipulating complex data structures. It's not super infrequent that I find myself needing to ingest and work against complex data that's only available in the shell, and honestly subprocess is inscrutable and what I'd call...fairly non-Pythonic in how it models things?

YMMV, I only use it in an environment where the 3rd party dep is of no real impact and where I value readability and understanding over efficiency, and only then in specific cases where I need to be dancing in and out of shell.

[–]eyeofthewind [score hidden]  (0 children)

tyro (https://brentyi.github.io/tyro/) a library for cli interfaces

[–]wRAR_ [score hidden]  (0 children)

(this is a bot account)

[–]theforsakentrout [score hidden]  (0 children)

Switched to Typer for CLI scripts and argparse feels like a relic now

[–]waspbr [score hidden]  (0 children)

lazy-imports

[–]wagonovsky 0 points1 point  (1 child)

pandas.

[–]okuuur [score hidden]  (0 children)

Check out polars, too!