diazona,
@diazona@techhub.social avatar

I remember having a discussion about argument parsing in a while ago where someone recommended a small library that was kind of like argparse except that instead of returning an argparse.Namespace, it returns a fully typed object (which you define), a dataclass or something similar. Anyone know what I'm talking about? I wanted to try that library but I forgot what it is and I can't find the discussion.

pawamoy,
@pawamoy@fosstodon.org avatar
pawamoy,
@pawamoy@fosstodon.org avatar

@diazona and the original discussion might be this one: https://fosstodon.org/@mycorrhiza@post.lurk.org/112101883052987223

diazona,
@diazona@techhub.social avatar

@pawamoy Yep that's the one. Thanks for finding it! I have too much in my posting history 😅

ehmatthes,
@ehmatthes@fosstodon.org avatar

@diazona @pawamoy I'm glad you asked about this, Cappa looks really interesting. I've been looking for something more than argparse, without going all the way to Click.

ehmatthes,
@ehmatthes@fosstodon.org avatar

@diazona Was it Click, or something much smaller than that?

https://click.palletsprojects.com/en/8.1.x/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • kavyap
  • cubers
  • megavids
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • JUstTest
  • lostlight
  • All magazines