Skip to content

axemanofic/clite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clite

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

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages