Skip to main content

Small package for creating command line interfaces

Project description

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.

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clite-0.2.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

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

Hashes for clite-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f6cc54fd399c34c9a526d1332dbaeca327df3c7c94f81e8019f717d591784d76
MD5 2395c8699fe0bfec55be400f51e5bfcf
BLAKE2b-256 f0d131b68c61ebce94eb79d8dbba591971b38811182a7764a5fa63a6038b39ad

See more details on using hashes here.

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

Hashes for clite-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afdb06b6d7c13306b82688098d217d7d6e4a73f9e36103761ceb6b431169f312
MD5 42e20827837c6a3a750e2b24e523a5ff
BLAKE2b-256 bc052f48296e39adc242f0d07b529c5f79b9a735f1c00406d0bd2ad4e24b645c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page