Skip to main content

opinionated, simple arg parsing

Project description

🗣️ argumentative

simple, opinionated command line parser

features

  • simple, opinionated
  • automatically generates help and usage messages
  • uses msgspec for structs and type coercion
  • secret fourth feature

usage

pip install argumentative
from argumentative import argumentative

@argumentative
class Args:
    config: str # path to a config file
    verbose: bool = False # whether to print verbose output

args = Args.from_args()
print(args)
python basic.py config.json --verbose
# Args(config='config.json', verbose=True)

python basic.py --help
# basic.py - example of using argumentative
#
# Options:
# --config <str> - path to a config file
# --verbose <bool> - whether to print verbose output

license

hippocratic license 3.0. (c) allura-org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argumentative-0.0.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

argumentative-0.0.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file argumentative-0.0.1.tar.gz.

File metadata

  • Download URL: argumentative-0.0.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.0

File hashes

Hashes for argumentative-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f8c3113227fc987c6fa7fedc997ef32c8a22812b359cd07006a92457be4d1e3a
MD5 1e824c6defc1616b977a236d038b5ad6
BLAKE2b-256 5b0971ca52b96dd35762514d9b5625f7105dc1facebe00c83d8133f41e3a59b9

See more details on using hashes here.

File details

Details for the file argumentative-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for argumentative-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32d47b02c2920f025fca9cb596c4b373005c3dd21de4d8d89023f57a3e985501
MD5 dd0c12e8f1a5cb41e1d27cd908d00f92
BLAKE2b-256 fbcb7e2be0cb1a322bec0b71fe0de2a6ee3de57ea624c927330b90b6466bf3d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page