Command-line interface creation for lazy people using type hints.
Quickstart
This code snippet:
# ls.py
def ls(filename, *, long=False, all=False, human_readable=False, limit: int=None):
"""
Fake command for listing.
:param filename: filename, what else did you expect?
:param long: long listing or something
:param all: all, like including hidden files dude
:param human_readable: show human readable stats
:param limit: limit the number of files printed
"""
...
generates this command line interface:
$ python ls.py --help
usage: ls [-h] [-l] [-a] [-H] [-L LIMIT] filename
Fake command for listing.
positional arguments:
filename filename, what else did you expect?
optional arguments:
-h, --help show this help message and exit
-l, --long long listing or something
-a, --all all, like including hidden files dude
-H, --human-readable show human readable stats
-L LIMIT, --limit LIMIT
limit the number of files printed
Clizy simplifies command line interface creation by using things we all use, know and love - arguments names, default values, docstrings and type hints - without unnecessary complexities and overwhelming documentation.
Interested? See docs and comparison with other libraries.
Metadata
Release files for clizy 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clizy-1.0.1.zip | 9.3 kB | Without provenance | Details for clizy-1.0.1.zip |
Release files / clizy-1.0.1.zip
| Download URL | clizy-1.0.1.zip |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd16ff9345bedad4204c07933c50fc516c9246a9b777c8cb082d27c2d1cad7d4
|
|
BLAKE2b-256 checksum How to use checksums |
a10fda156b383b4e3820dcb67f9c3e0de76cace1a526a59db2c2a54278f3b9f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for clizy 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.