Skip to main content

Argpar

A simple argument parser.

Usage

import argpar
import copy
import sys
opts = {"o": None, "g": "foo", "w": None}
flags = ["t", "u"]
posarg = {"path": "/home"}
argpar.parse(opts, copy.copy(sys.argv), flags, posarg)

Vaules in opts and posarg dictionaries are default values.

Will automaticaly print help message if a h flag is found and exit.

We recomend copying sys.argv, as arguments get removed during parsing.

Metadata

Release files for argpar 1.2.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 argpar 1.2.1
File Size Uploaded Provenance Actions
argpar-1.2.1.tar.gz 1.8 kB Without provenance Details for argpar-1.2.1.tar.gz

Release files / argpar-1.2.1.tar.gz

Download URL argpar-1.2.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fad12a56c04d1f46380f7c4c05089c68cad7ab539b58c07e21934bc2d4802360
BLAKE2b-256 checksum
How to use checksums
dce4d7d7660a3d50dc3fac7e391946338fdff4b4df8a462229c2c4bd1de54eb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for argpar 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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