argmark-0.3
توضیحات
Convert argparse based executable scripts to markdown documents.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | argmark-0.3 |
| نام | argmark |
| نسخه کتابخانه | 0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Devansh Agarwal |
| ایمیل نویسنده | devansh.kv@gmail.com |
| آدرس صفحه اصلی | https://github.com/devanshkv/argmark |
| آدرس اینترنتی | https://pypi.org/project/argmark/ |
| مجوز | - |
# argmark
[](https://github.com/devanshkv/argmark/issues)
[](https://github.com/devanshkv/argmark/forks)
[](https://github.com/devanshkv/argmark/stars)
[](https://github.com/devanshkv/argmark/LICENSE)
[](https://pypi.org/project/argmark)
[](https://pypi.org/project/argmark)
[](https://github.com/psf/black)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fdevanshkv%2Fargmark?ref=badge_shield)
[](https://codecov.io/gh/devanshkv/argmark)
Convert argparse based executable scripts to markdown documents. It is based on [argdown](https://github.com/9999years/argdown) but has a simpler interface and a cleaner code.
### Installation
```bash
pip install argmark
```
### Usage
Using `argmark` is very simple. For a sample python file [sample_argparse.py](tests/sample_argparse.py):
```python
import argparse
parser = argparse.ArgumentParser(
prog="sample_argparse.py",
description="Just a test",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
parser.add_argument(
"-f", "--files", help="Files to read.", required=True, nargs="+",
)
values = parser.parse_args()
```
Run `argmark -f sample_argparse.py` and it would generate:
```markdown
sample_argparse.py
==================
# Description
Just a test
# Usage:
```bash
usage: sample_argparse.py [-h] -f FILES [FILES ...]
```
# Arguments
|short|long|default|help|
| :---: | :---: | :---: | :---: |
|`-h`|`--help`||show this help message and exit|
|`-f`|`--files`|`None`|Files to read.|
```
## License
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fdevanshkv%2Fargmark?ref=badge_large)
نیازمندی
| مقدار | نام |
|---|---|
| >=1.2.2 | mdutils |
| >=46.4.0.post20200518 | setuptools |
نحوه نصب
نصب پکیج whl argmark-0.3:
pip install argmark-0.3.whl
نصب پکیج tar.gz argmark-0.3:
pip install argmark-0.3.tar.gz