No project description provided
Project description
aparse
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
Release history Release notifications | RSS feed
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.1.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file aparse-0.0.1.tar.gz
.
File metadata
- Download URL: aparse-0.0.1.tar.gz
- Upload date:
- Size: 5.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c836e0f6d67482df888dbb4ae9935527014b036c5ac6cc8bb85d04bfd538ac39 |
|
MD5 | b46981abe3c0404ee17f7f4aa20dcdad |
|
BLAKE2b-256 | 59abd2fcdc3c6ea15451fa97765363fa09e8e9cf091a9339bdafe869fd292953 |
File details
Details for the file aparse-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: aparse-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdefc1dda99e61d93a0c230e0962ec8a2c581f97f2d6775ba9ec5eca7d0c76c0 |
|
MD5 | 2e523e63a04039097ab9e1ba8b816b0c |
|
BLAKE2b-256 | 861421af8a4dfffcb2e9e8971716f6f610d5256b3802afc991db32f36cab1bd8 |