Skip to main content

Persistent runtime config

Project description

License PyPI Build CodeQL pre-commit.ci status codecov.io readthedocs.org python3.8 Black isort docformatter pylint Security Status Known Vulnerabilities arcon

Persistent runtime config

Child class of argparse.ArgumentParser

Includes version argument as a default

Default values are defined through pyproject.toml

Includes additional argument adding methods

>>> __version__ = "0.1.0"
>>> from arcon import ArgumentParser

Parsing comma separated list

>>> parser = ArgumentParser(__version__)
>>> parser.add_list_argument("-l", "--list")
>>> parser.parse_args(["--list", "comma,separated,list"])
Namespace(list=['comma', 'separated', 'list'])

Parsing dict of comma separated lists

>>> parser = ArgumentParser(__version__)
>>> parser.add_dict_argument("-d", "--dict")
>>> parser.parse_args(["--dict", "key=comma,separated,list"])
Namespace(dict={'key': ['comma', 'separated', 'list']})

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

arcon-0.3.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

arcon-0.3.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file arcon-0.3.0.tar.gz.

File metadata

  • Download URL: arcon-0.3.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.13 Darwin/22.6.0

File hashes

Hashes for arcon-0.3.0.tar.gz
Algorithm Hash digest
SHA256 90699c8e04ceb2e5fb361d025a06fa0882484ce82dfa0a2440a95603b7f7cf40
MD5 6a85f7a136fc74beefab26f377fb4b71
BLAKE2b-256 577827e69510dde7a78881dc7b72877e97b1be8be420eb2798e48208d7f5bf5b

See more details on using hashes here.

File details

Details for the file arcon-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: arcon-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.13 Darwin/22.6.0

File hashes

Hashes for arcon-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1aa243bb2df8413636ea734b0fa36496dc1b47c4c72fcd7a9efe9450ce2d59ec
MD5 df765773f483f1223ec6e044f9b9540e
BLAKE2b-256 4100fb1f35a0f0084197f8191f3374e67ce675ef740e54f52ef2d52f5e7f739d

See more details on using hashes here.

Supported by

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