argparse-to-json-0.0.1
توضیحات
Convert argparse.ArgumentParser to json compatible with JSON Form
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | argparse-to-json-0.0.1 |
| نام | argparse-to-json |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Liam H. Childs |
| ایمیل نویسنده | liam.h.childs@gmail.com |
| آدرس صفحه اصلی | https://github.com/childsish/argparse-to-json |
| آدرس اینترنتی | https://pypi.org/project/argparse-to-json/ |
| مجوز | - |
# argparse-to-json
Convert Python argparse parsers to json compatible with [JSON Form](https://github.com/jsonform/jsonform).
## Usage
```python
import argparse
from argparse_to_json import convert_parser_to_json
parser = argparse.ArgumentParser()
parser.add_argument('input')
json_schema = convert_parser_to_json(parser)
```
See the `example` folder for a [Flask](https://flask.palletsprojects.com) app that renders forms for command line interfaces using [JSON Form](https://github.com/jsonform/jsonform). You can run the example as follows:
```shell
pip install flask
FLASK_APP=app.py
flask run
```
## Why?
Because maybe I wanted to have a simple way to create GUIs for my Python CLI's.
نحوه نصب
نصب پکیج whl argparse-to-json-0.0.1:
pip install argparse-to-json-0.0.1.whl
نصب پکیج tar.gz argparse-to-json-0.0.1:
pip install argparse-to-json-0.0.1.tar.gz