Skip to main content

No project description provided

Project description

aparse

build pypi

Python argparse extension with support for typing.

Getting started

Install the library from pip:

$ pip install aparse

Extend a function with @add_argparse_arguments decorator to add arguments automatically:

import argparse
from aparse import add_argparse_arguments

@add_argparse_arguments()
def example(arg1: str, arg2: int = 5):
    pass

parser = argparse.ArgumentParser()
parser = example.add_argparse_arguments(parser)
args = parser.parse_args()

# Call example with args
example.from_argparse_arguments(args)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aparse-0.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

aparse-0.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file aparse-0.0.2.tar.gz.

File metadata

  • Download URL: aparse-0.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for aparse-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bd80d66399922e6e4764441a8d8d748efdbc8f3b72d0847306b5bd8f9388ec3e
MD5 47c01e71c36fbe09416f547ad414aaa0
BLAKE2b-256 54108341435c773a2380b0ff96c1a57f9da9c6e966123e2b0a79e9df49ccf31e

See more details on using hashes here.

File details

Details for the file aparse-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: aparse-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for aparse-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 30a139951aa8fb6683214f7517daf7e81f21e970f0a109ad71a0b5cdc92c98d1
MD5 00d585474886a2f883548ebf32e590d8
BLAKE2b-256 fb8b12c49de9161bc8dd2abcf3ff0a853466563aa230a9795918972711bfc402

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page