Metadata-Version: 2.1
Name: argparse_action
Version: 0.1.1
Summary: untility module for argparse to create cli 
Home-page: https://github.com/nyirog/argparse_action
Maintainer: Nyiro Gergo
Maintainer-email: gergo.nyiro@gmail.com
License: Apache 2
Project-URL: Documentation, https://argparse-action.readthedocs.io/en/latest/
Project-URL: Source, https://github.com/nyirog/argparse_action
Project-URL: Tracker, https://github.com/nyirog/argparse_action/issues
Description: # argparse_action
        
        `argparse_action` aims to be a minimalistic extension of `argparse` and creates
        cli options from the function signature given by `inspect.signature`.
        
        ```python
        import argparse
        import argparse_action
        
        parser = argparse.ArgumentParser()
        action = argparse_action.Action(parser)
        
        @action.add("e")
        def echo(word, upper=False):
            print(word.upper() if upper else word)
        
        namespace = pasrer.parse_args()
        namespace.action(namespace)
        ```
        
        Asumes that the code above is saved as `my_script.py`:
        
        ```
        $ python3 my_script.py echo hello
        hello
        
        $ python3 my_script.py e hello
        hello
        
        $ python3 my_script.py echo --upper hello
        HELLO
        ```
        
        ## Installation
        
        ```
        pip install argparse_action
        ```
        
        ## Testing
        
        ```
        make test
        ```
        
        ## Documentation
        
        Documentation can be build with the `doc` make target:
        
        ```
        make doc
        ```
        
        Online version can be read at [readthedocs.org](https://argparse-action.readthedocs.io/en/latest/index.html).
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Requires-Python: >=3.6
Description-Content-Type: text/markdown
