argumentor-1.1.0
توضیحات
A library to work with command-line arguments
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | argumentor-1.1.0 |
| نام | argumentor |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Twann |
| ایمیل نویسنده | tw4nn@disroot.org |
| آدرس صفحه اصلی | https://codeberg.org/twann/python-argumentor |
| آدرس اینترنتی | https://pypi.org/project/argumentor/ |
| مجوز | LGPLv3 |
# argumentor
## Description
A simple, copylefted, lightweight library to work with command-line arguments in Python
## Features
- No external dependency
- Easy to use
- Automatic help page generation
- Support for default values
- Published under LGPLv3, a copyleft license that still lets you use the library in a project that is not under the same license
## Installation
```shell
$ pip install argumentor
```
## Usage
```python
from argumentor import Arguments
parser = Arguments()
parser.add_operation(
operation="--help",
value_type=bool,
description="Print help page"
)
operations, options = parser.parse()
if operations["--help"]:
print(parser.help_page)
```
More usage can be found [in the documentation](https://twann.codeberg.page/python-argumentor/)
## License
[](https://codeberg.org/twann/python-argumentor/src/branch/main/LICENSE)
This repository and its content (unless specified otherwise) are released under the terms of the [GNU Lesser General Public License version 3](https://codeberg.org/twann/python-argumentor/src/branch/main/LICENSE).
نحوه نصب
نصب پکیج whl argumentor-1.1.0:
pip install argumentor-1.1.0.whl
نصب پکیج tar.gz argumentor-1.1.0:
pip install argumentor-1.1.0.tar.gz