Cli Override
Project description
This library lets you pass arbitrary over arguments from the cli like so:
from cli_override import parse_extra_args args, unknown_args = parser.parse_known_args() extra_args = parse_extra_args(unknown_args) my_override_value = extra_args.get["my_override_flag"]
Invocation of your program with:
python my_script.py --x:my_override_flag 14
results in my_override_value being 14.
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
cli-override-0.0.1.tar.gz
(4.5 kB
view details)
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 cli-override-0.0.1.tar.gz.
File metadata
- Download URL: cli-override-0.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4116dbcee93062615748e56f5ad8267931b43cc5c0e7563f72209890a446e24
|
|
| MD5 |
8a011bbcbadda718fc7f4169555267d7
|
|
| BLAKE2b-256 |
9d669be4a64c0926b82ae0a2dc42a097103f89fb0451f4068fc3a7e1da46b910
|
File details
Details for the file cli_override-0.0.1-py3-none-any.whl.
File metadata
- Download URL: cli_override-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ab3bfc22dafed6b614db478903c843a7ed6403cd11d2108da5e3dc82c178a2
|
|
| MD5 |
ab552f7b14671c7986b4c0233eceb057
|
|
| BLAKE2b-256 |
d33dce8814410a00057034f868a2a25d2f0b3ea46a3d5a28cc865b3eeefdea9d
|