A small argument parser for dedicated environments with support for env and file based arguments
Project description
Pargs
[!WARNING] This is not yet production ready, please wait for the 1.0.0 release
A small python extensible argument system.
Supported sources
Native supported sources are command arguments, file (json and toml) and
environment variables.
You can glue them together with the MultiParser and give them priorities,
to control which arguments may overwrite each other.
Syntax
Simple example:
params = [
KwParam.new_simple("hello"),
KwParam.new_simple("world")
]
config = CliParser().add_params(params).vars()
Roadmap
In the near future, a parsing of a (data)class as a configuration object, which is then collected via all three native collectors.
Comparison
Compared to the argparse module provided in the standard library,
this provides much fewer features.
This allows for a very small runtime-footprint (>10x faster).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pargs_sfe-0.1.1.tar.gz.
File metadata
- Download URL: pargs_sfe-0.1.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
446c69f6ed74ee276a64edea64084ee80b5f029bc1ab65ebc40b6e5241135017
|
|
| MD5 |
0fe5b90d0d3803898595056dae096916
|
|
| BLAKE2b-256 |
f162460e2a0b025e095d575d2376ed906125cfd8ccab0a8a3cf4fdc571f8445f
|
File details
Details for the file pargs_sfe-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pargs_sfe-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c4c86e8de11319c8a352713a2c70a72097b8e94c9a4ed99291d4f0a80646733
|
|
| MD5 |
2567e5e199a50008fe6727ecaeeb1b70
|
|
| BLAKE2b-256 |
6ad6427e7faeb988962146ddecbfa5c875429a08e766e1a43a11f86be676f81b
|