https://github.com/axemanofic/clite
Small package for creating command line interfaces
https://github.com/axemanofic/clite
cli click python python3 shell terminal typehints typer typing
Last synced: 2 days ago
JSON representation
Small package for creating command line interfaces
- Host: GitHub
- URL: https://github.com/axemanofic/clite
- Owner: axemanofic
- Created: 2024-06-22T14:04:37.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-19T09:34:54.000Z (7 months ago)
- Last Synced: 2025-03-19T10:34:55.616Z (7 months ago)
- Topics: cli, click, python, python3, shell, terminal, typehints, typer, typing
- Language: Python
- Homepage: https://pypi.org/project/clite/
- Size: 681 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
![]()
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
---
## Installation
```sh
pip install clite
```## Usage
### Example
```python
from clite import Cliteapp = 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
```sh
python main.py hello Alice
```Output:
```
Hello, Alice!
```## License
This project is licensed under the terms of the MIT license.