Skip to main content

Example

import chainop, argparse

parser = argparse.ArgumentParser()
chop = chainop(parser).add_argument("--arg0")("--arg1")("--foobar")("--arg3", type=int)

foobar_arg:argparse.Action = chop[2] # Get the returned value for the 3rd add_argument call
print(foobar_arg.dest)

chop[3].default = 0

args = parser.parse_args()

Metadata

Release files for chainop 1.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 chainop 1.0.1
File Size Uploaded Provenance
chainop-1.0.1.tar.gz 1.5 kB Without provenance Details

Release files / chainop-1.0.1.tar.gz

Download URL chainop-1.0.1.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
89b73e0d7a5db60efbd343d1f411af38fd1d359d6cd4b34a302e2e4785668925
BLAKE2b-256 checksum
How to use checksums
622ac82346070ae769281d6bb7f8ec771751f9324e2072db396f3f1c29606009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

Security for chainop 1.0.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.

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