Persistent runtime config
Project description
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.4.0.tar.gz
(5.4 kB
view details)
Built Distribution
arcon-0.4.0-py3-none-any.whl
(5.5 kB
view details)
File details
Details for the file arcon-0.4.0.tar.gz
.
File metadata
- Download URL: arcon-0.4.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.13 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b243f265d5f1eacf0025d072ef4d3385b0f33c20b247d017a25948b3b19805b1 |
|
MD5 | 509379342d9d197808f5c71f0e0b3834 |
|
BLAKE2b-256 | 5be726fec91ce4ea7a91f7e21d786d060d6e9f515a9338623e4f2c0efcd86995 |
File details
Details for the file arcon-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: arcon-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.13 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19488bca11b6facb59c2d3f587e8685aa6afc99764b0956fa2c2837fc0fff6a9 |
|
MD5 | 7f24109f9bf0a265699bb3aba9df6c87 |
|
BLAKE2b-256 | 7250f1afe9243c872454e9273b95616ab5d4ca795ca8c5675d21db473b2f6bef |