Skip to content

axemanofic/clite

Repository files navigation

Clite

A zero-dependency package for building CLIs. Based on type hints.

The name is inspired by the SQLite

PyPI - Downloads PyPI - Version PyPI - Status PyPI - License PyPI - Types PyPI - Python Version GitHub Actions Workflow Status


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.

About

A zero-dependency package for building CLIs. Based on type hints.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages