semvec/pypi-packages huggingface dataset:
makeargs 0.0.1
Streaming video data via networks
Keywords: yaml,boilerplate,command-line,command-line-tool


# makeargs

A tool to create a command-line interface for your app using python

## Installation

**Requirements**

- PyYAML==6.0.1 (`pip install`)
- argparse


```bash
git clone github.com/danielmuringe/makeargs
```

## Usage

- Import the package into python file
```python
import makeargs
```

- Define argument tree using YAML format
```python
yaml_tree = """
git:
    args:
        path:
            atype: flag
            help: Path of the repo
    subparsers:
        parsers:
            clone:
                args:
                    quiet-clone:
                        atype: flag
                        help: Operate quietly. Progress is not reported to the standard error stream.
                    no-checkout:
                        help: No checkout of HEAD is performed after the clone is complete
            init:
                args:
                    quiet-init:
                        atype: flag
                        help: Operate quietly. Progress is not reported to the standard error stream.
"""
```

- Convert YAML to command line argument parser
```python
makeargs.create_arguments(yaml_tree)
```