SIMple OPTion parser
Project description
# simopt, the SIMple OPTion parser
Simopt is a lightweight module for parsing command line options in python programs. The options can be written in a separate file or at the top of a script. They are (currently) written in a list of tuples, with each entry corresponding to an option consisting of
int: the option level (allowing differentiating help levels)
str: the option name (command line)
str: the option target (option class attribute)
class: the option unit type (parser)
int: the number of parameters for the option
object: the default value (None if no default)
int: flags (MULTI, MANDATORY, …)
str: description (help text)
String items in the option list are part of the help and allow sectioning options.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file simopt-0.4.0.tar.gz
.
File metadata
- Download URL: simopt-0.4.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9fc29d4746d3e16f8db940675ec6d895a7d14265deb828a4bbdca18f5a2f476 |
|
MD5 | 943281ed44ec5408d7c026ba3ba1c6f5 |
|
BLAKE2b-256 | f5f11dcce3e49c66e19de42798ffc3d9a2b71dd48c09417e7dba6eed87cdabd3 |
File details
Details for the file simopt-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: simopt-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14b53a1d70aee70562d98ad1bd1335821f4c258c7808a99f686dfe81dc3e72cb |
|
MD5 | 5676c9ac04fb87ba6d9a10496e616458 |
|
BLAKE2b-256 | fff3952060c92ce1b2fda05f9391ada6fb2ca8da571cc77cbda2dbc95400a1ee |