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.0.0.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for argumentor-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3421ba1a64b65891fe8b66ffb90f410a7c3d6eb8088c018adf8ecdc8095c4853 |
|
MD5 | 7c19395418e5f8f9481f452ce9eb0461 |
|
BLAKE2b-256 | c737a8f8d485dd1c5b6a0332417175174f09b290887bbb7bcab93f61ce301c40 |