Skip to main content
Code style: black

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.

Metadata

Release files for cli-override 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cli-override 0.0.1
File Size Uploaded
cli-override-0.0.1.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cli-override 0.0.1
File Interpreter ABI Platform
cli_override-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / cli-override-0.0.1.tar.gz

Download URL cli-override-0.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4116dbcee93062615748e56f5ad8267931b43cc5c0e7563f72209890a446e24
BLAKE2b-256 checksum
How to use checksums
9d669be4a64c0926b82ae0a2dc42a097103f89fb0451f4068fc3a7e1da46b910
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / cli_override-0.0.1-py3-none-any.whl

Download URL cli_override-0.0.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6ab3bfc22dafed6b614db478903c843a7ed6403cd11d2108da5e3dc82c178a2
BLAKE2b-256 checksum
How to use checksums
d33dce8814410a00057034f868a2a25d2f0b3ea46a3d5a28cc865b3eeefdea9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page