What is Nostr?
Miro Hrončok :fedora: :python: /
npub1l26…uj5k
2023-11-23 22: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