#cappa — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cappa, aggregated by home.social.
-
Raiders recent OL shuffling makes Pete Carroll look even more foolish https://www.rawchili.com/nfl/560543/ #Alex #AlexCappa #American #AmericanFootball #browns #Cappa #cleveland #ClevelandBrowns #Football #Hub #Jackson #JacksonPowersJohnson #Jordan #JordanMeredith #kolton #KoltonMIller #Las #LasVegas #LasVegasRaiders #LasVegas #LasVegasRaiders #meredith #Miller #Negative #news #NFL #NFLHub #Overall #OverallNegative #PowersJohnson #Putnam #Raiders #Sports #SportsNews #Vegas #will #WillPutnam
-
Jackson Powers-Johnson to be placed on IR with ankle injury https://www.rawchili.com/nfl/515584/ #10 #Alex #AlexCappa #American #AmericanFootball #Big #Big10Hub #Cappa #College #CollegeSports #Ducks #Football #Hub #Jackson #JacksonPowersJohnson #Las #LasVegas #LasVegasRaiders #LasVegas #LasVegasRaiders #Negative #Neutral #news #NFL #NV #oregon #OregonDucksFootball #Overall #OverallNegative #OverallNeutral #PowersJohnson #Raiders #Sports #SportsNews #Vegas
-
Also, use #Cappa 😛 Cappa leaves your functions/dataclasses (commands) intact.
-
Also, use #Cappa 😛 Cappa leaves your functions/dataclasses (commands) intact.
-
Rewriting an argparse-based CLI with #Cappa. It's much cleaner:
- less verbose
- better contained (single module instead of using submodules for subcommands)
- better typed (dataclasses!)
- as reusable, or more reusable in other CLIs (classes instead of functions that modify an argparse parser)
- much easier to use programmatically (no need to call `main` or build an `argparse.Namespace` manually)
- better documented
- better output (rich!) -
Rewriting an argparse-based CLI with #Cappa. It's much cleaner:
- less verbose
- better contained (single module instead of using submodules for subcommands)
- better typed (dataclasses!)
- as reusable, or more reusable in other CLIs (classes instead of functions that modify an argparse parser)
- much easier to use programmatically (no need to call `main` or build an `argparse.Namespace` manually)
- better documented
- better output (rich!) -
@dancardin I'm now recommending #Cappa in my docs: https://mkdocstrings.github.io/griffe/guide/users/recommendations/public-apis/#the-cli-is-api-too (just a quick mention at the end of the section) 😄
-
@dancardin I'm now recommending #Cappa in my docs: https://mkdocstrings.github.io/griffe/guide/users/recommendations/public-apis/#the-cli-is-api-too (just a quick mention at the end of the section) 😄
-
#Cappa is awesome. @dancardin does a fantastic job on this project.
Command descriptions can be written in Markdown and are rendered with #Rich, so code blocks are syntax highlighted, and you can even add links. Amazing CLI experience.
Look at this beauty:
-
What a rabbit hole. Even though #Cappa uses #Rich internally, forcing colors with `FORCE_COLOR=1` did not work.
After a super painful investigation, turns out my #Python code imports a module from #Copier which uses `colorama.init()`.
Changing that to `colorama.just_fix_windows_console()` fixed it, but the output still had an extra reset sequence at the end.
Turns out Copier imports #Plumbum colors module, which registers a function to reset styles at exit.
Don't run things at import time!
-
I started sponsoring @dancardin (@[email protected]?) for their great work on #Cappa, a super elegant declarative CLI argument parser for Python: https://github.com/DanCardin/cappa. It makes all the right choices, allowing users to build good, reusable CLIs for their libraries, with #Rich support!
-
I started sponsoring @dancardin (@[email protected]?) for their great work on #Cappa, a super elegant declarative CLI argument parser for Python: https://github.com/DanCardin/cappa. It makes all the right choices, allowing users to build good, reusable CLIs for their libraries, with #Rich support!
-
#Cappa puts the finger on what I dislike about #Click: https://cappa.readthedocs.io/en/latest/comparison.html#why-not-click. I'll try Cappa right now in a new project.
I was also strongly tempted by #arguably (https://github.com/treykeown/arguably), but Cappa's use of `Annotated` instead of docstrings makes it super attractive given my recent work on supporting PEP 727 (from @tiangolo) with a #Griffe extension.