Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Python argparse.ArgumentParser subclass(es)

Quick example of argparser declaration from dictionary:

import sys
from argparse.extra import DictArgumentParser

def run_testarg_processing(args, argv):
    print 'testarg argument used'

ARGUMENTS = {'--use-something':{'dest':'use_something',
                               'action':'store_true',
                               'default':False},
             'sub:testarg':{
                 #sub:testarg will create subparser 'testarg'
                 #depth of subargs is unlimited
                 'description':'Test arg subcommand',
                 'help':'Test help'
                 'func':run_testarg_processing,
                 '--use-sub-something':{'dest':'use_sub_something',
                                               'action':'store_true',
                                               'default':False},
             }}

DEFAULTS_ONLY = ['func',]
def get_argparser(argsdict=ARGUMENTS):
    #always create get_argparser function for your cli apps
    #this will enable easy integration of subsequent applications
    #with your argparser
    return DictArgumentParser(argsdict, DEFAULTS_ONLY)

def main(args=sys.argv):
    args, argv = get_argparser().parse_known_args(args[1:])
    args.func(args, argv)

if __name__ == '__main__':
    main()

Installation

Try one of these:

python setup.py install

easy_install argparse.extra

pip install argparse.extra

Metadata

Release files for argparse.extra 0.0.2

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

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for argparse.extra 0.0.2
File Size Uploaded Provenance Actions
argparse.extra-0.0.2.tar.gz 122.2 kB File added late: Without provenance Details for argparse.extra-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for argparse.extra 0.0.2
File Interpreter ABI Platform Actions
argparse.extra-0.0.2-py2.7.egg Legacy Egg format - - Details for argparse.extra-0.0.2-py2.7.egg

Total release size: 128.8 kB

Release files / argparse.extra-0.0.2.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL argparse.extra-0.0.2.tar.gz
Size 122.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ca84a705caeac5cb5dd0246e03555ca71f2facd63da16954b620658dc18e836e
BLAKE2b-256 checksum
How to use checksums
0c1e22b27ee1b049232f7571039603cf9f95016482430458cac9741a11a804c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / argparse.extra-0.0.2-py2.7.egg

Download URL argparse.extra-0.0.2-py2.7.egg
Size 6.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
bf3fea1b6025e904ca42a974e67181ea7478fceefc7e3b3b854591297e030902
BLAKE2b-256 checksum
How to use checksums
b17aabb4f767a4a590de54f4c12c251aea1bc209432c4d1e02876105d91b2a70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for argparse.extra 0.0.2

Upload timing

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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