Skip to main content

Clite

Small package for creating command line interfaces

The name is inspired by the SQLite

PyPI - Version PyPI - Downloads PyPI - Python Version

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.

Metadata

Release files for clite 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clite 0.2.2
File Size Uploaded
clite-0.2.2.tar.gz 52.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clite 0.2.2
File Interpreter ABI Platform
clite-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 59.7 kB

Release files / clite-0.2.2.tar.gz

Download URL clite-0.2.2.tar.gz
Size 52.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f6cc54fd399c34c9a526d1332dbaeca327df3c7c94f81e8019f717d591784d76
BLAKE2b-256 checksum
How to use checksums
f0d131b68c61ebce94eb79d8dbba591971b38811182a7764a5fa63a6038b39ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.23

Release files / clite-0.2.2-py3-none-any.whl

Download URL clite-0.2.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afdb06b6d7c13306b82688098d217d7d6e4a73f9e36103761ceb6b431169f312
BLAKE2b-256 checksum
How to use checksums
bc052f48296e39adc242f0d07b529c5f79b9a735f1c00406d0bd2ad4e24b645c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.23

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page