A library to work with command-line arguments
Project description
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
$ pip install argumentor
Usage
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
License
This repository and its content (unless specified otherwise) are released under the terms of the GNU Lesser General Public License version 3.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
argumentor-1.1.0.tar.gz
(15.3 kB
view details)
Built Distribution
File details
Details for the file argumentor-1.1.0.tar.gz
.
File metadata
- Download URL: argumentor-1.1.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
41a88c542f3f780c9c41da3af7380491252049f4158cf0dd2fa0fd69c0903d11
|
|
MD5 |
69eee97d130d1f0a6fc267dee93c08c1
|
|
BLAKE2b-256 |
135a966355c01d15da1f90e9b9d9b010afb47998f6824dfc90b264256a7e8af6
|
File details
Details for the file argumentor-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: argumentor-1.1.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9e6eaf15d89ddf3c80d5d9a73817858f57b9c3e89db538df59eaa67da4f18ff5
|
|
MD5 |
249519235cdd75d91a67d96adaf4d3c9
|
|
BLAKE2b-256 |
169c9852ba88582be4700cf2066880eee4771aa0fb1d46067e9861558f346d7d
|