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.2.tar.gz
(5.4 kB
view hashes)
Built Distribution
aparse-0.0.2-py3-none-any.whl
(6.0 kB
view hashes)