Small package for creating command line interfaces
Project description
Documentation: https://axemanofic.github.io/clite
Source Code: https://github.com/axemanofic/clite
Installation
pip install clite
Usage
Example
from clite import Clite
app = Clite(
name="myapp",
description="A small package for creating command line interfaces",
)
@app.command()
def hello(name: str = "world"):
print(f"Hello, {name}!")
if __name__ == "__main__":
app()
Run it
python main.py hello Alice
Output:
Hello, Alice!
License
This project is licensed under the terms of the MIT license.
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
clite-0.2.2.tar.gz
(52.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
clite-0.2.2-py3-none-any.whl
(7.0 kB
view details)
File details
Details for the file clite-0.2.2.tar.gz.
File metadata
- Download URL: clite-0.2.2.tar.gz
- Upload date:
- Size: 52.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6cc54fd399c34c9a526d1332dbaeca327df3c7c94f81e8019f717d591784d76
|
|
| MD5 |
2395c8699fe0bfec55be400f51e5bfcf
|
|
| BLAKE2b-256 |
f0d131b68c61ebce94eb79d8dbba591971b38811182a7764a5fa63a6038b39ad
|
File details
Details for the file clite-0.2.2-py3-none-any.whl.
File metadata
- Download URL: clite-0.2.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afdb06b6d7c13306b82688098d217d7d6e4a73f9e36103761ceb6b431169f312
|
|
| MD5 |
42e20827837c6a3a750e2b24e523a5ff
|
|
| BLAKE2b-256 |
bc052f48296e39adc242f0d07b529c5f79b9a735f1c00406d0bd2ad4e24b645c
|