12
Typer, build great CLIs. Easy to code. Based on Python type hints
(typer.tiangolo.com)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
Typer and Pydantic are absolutely mandatory on any Python project I write. A million times better than
argparse
and dicts everywhere.Apples and oranges comparison
typer under the hood is click. Which you are right click is better than argparse cuz it's optparse.
Left scratching my head, are you praising, click? What is your typer sales point over plain ol' click.
Some questions
combining typer and click. Shows how to use click and/or typer to group sub-commands.
wake up, trio (and as a crutch anyio) is a thing. Making click and typer (and pathlib.Path) immediately legacy. No matter what it does. Here is the click trio port trio-click. Which i just checked, is actively maintained.
Where is the typer trio port?
I have no idea what you're talking about. Typer adds a nice type annotation based interface which is both nice to use and means all your arguments are statically typed checked.
I don't use async Python normally (IMO it's one of those "if you need this you shouldn't be using Python" features).
Great! The Ludwicks have been waiting for a champion of blocking I/O to emerge. Where
world+dog-FizzyOrange
preference lies is 100% clear and has been since before we were born. Even us lowly Python devs prefer fast over idle CPUs.This is why initially liked fastapi. It says
fast
right there in the name. It's curiously not named, abandonwareapi.Typer adds a maintenance burden that, as SQLModel 70+ PRs attest, the author does not have time for. No other details are necessary to know. Abandonware is really just a time sink hurting everyone pulled in.
I'm not unreasonable. Fix the situation with SQLModel and my attitude will flip from critic --> supporter. And then will appreciate and look forward to posts about: fastapi, SQLModel, and Typer. Past grievances will be memory holed.
Are you.. ok? I think maybe you should see a psychiatrist.
Projection huh? I expect this in a political, not a python community. Vet psyche techniques somewhere else.
Instead of attacking the messenger, why not follow advice and just do the maintenance work?
I'm warning others away from an author that has neglected to do package maintenance, but then continues to do marketing?
In any other market, this is the pattern of a con artist. Gaslighting is also expected from a con artist.