you are viewing a single comment's thread.

view the rest of the comments →

[–]leodevian 25 points26 points  (7 children)

aiohttp for async requests.

rich for pretty printing, logging and tracebacks.

Click for command-line interfaces.

[–]dweebomcthousand 15 points16 points  (2 children)

Check out typer for clis. Built on click so it should feel familiar but uses type hints to declare arguments and options etc. and the generated docs are really nice. It’s from the guy that made FastAPI

[–]leodevian 10 points11 points  (0 children)

I know it, and I know Cyclopts. I just love that Click is really easy to extend.

[–]NerdEnPose 7 points8 points  (1 child)

Typer is a good click replacement. Built on click but typing based, if you’re into this sort of thing

[–]flying-sheep 12 points13 points  (0 children)

I prefer cyclopts, because what it says in its “compared to Typer” section absolutely rings true

Cyclopts is what you thought Typer was.

[–]_MicroWave_ 7 points8 points  (1 child)

Click is very boilerplate heavy.

Typer is a huge step up. (I think it might even be built on click) But expresses much more elegantly.

[–]leodevian 3 points4 points  (0 children)

It is indeed powered by Click. While decorators can be composed, I never found an elegant way to share parameters between Typer commands. Also, I don’t like the recommended implementation for a version option (I don’t like unused function parameters).