A zero-dependency package for building CLIs. Based on type hints.
The name is inspired by the SQLite
Documentation: https://axemanofic.github.io/clite
Source Code: https://github.com/axemanofic/clite
pip install clite
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()
python main.py hello Alice
Output:
Hello, Alice!
This project is licensed under the terms of the MIT license.