Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattdoug604/argsimple
Build a command line interface with as little configuration as possible.
https://github.com/mattdoug604/argsimple
Last synced: about 1 month ago
JSON representation
Build a command line interface with as little configuration as possible.
- Host: GitHub
- URL: https://github.com/mattdoug604/argsimple
- Owner: mattdoug604
- License: mit
- Created: 2020-04-27T04:09:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T04:12:31.000Z (over 4 years ago)
- Last Synced: 2024-11-01T17:47:59.246Z (about 2 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
argsimple
=========Argsimple is Python package for making clean and useful command line interfaces with as little configuration as humanly possible.
Some of the key features of the packages are:
- Automatic generation of a help page
- Easy declaration of mutually exclusive arguments
- Lazy loading of arguments during runtime# How to install
Argsimple requires Python version 3.6 or higher.
Install using [pip](https://pip.pypa.io/en/stable/quickstart):
```shell
pip install argsimple
```# How to use
Here's a simple example:
```python
import argsimpleargsimple.add("-w", "--word", help="a word to print")
argsimple.add("-c", "--count", type=int, help="print this many times")print(argsimple.word * argsimple.count)
``````shell
$ python my_scipt.py -w spam -c 3
spamspamspam
```