Why Nostr? What is Njump?
2023-11-23 23:35:16

Miro Hrončok :fedora: :python: on Nostr: When writing command line tools in Python, always assume people will need to use them ...

When writing command line tools in Python, always assume people will need to use them from their own Python scripts. Don't force them call subprocess or use complex APIs. Please, provide a high-level CLI-like Python function and create the CLI by wrapping that in argparse/click/etc.

I wish I could just call fedpkg.build(), spectool.get("foo.spec"), or dnf.repoquery(whatrequires="bar", repo="rawhide") instead of copy-pasting boring wrappers from script to stript.
Author Public Key
npub1l262erlkljdkv59lt4r2x7f3wmz9d2c3a6fwca9q4aer2ryqyrss5fuj5k