cli-lite-0.5.1


توضیحات

A simple framework to build a cli tool, base on Alconna
ویژگی مقدار
سیستم عامل OS Independent
نام فایل cli-lite-0.5.1
نام cli-lite
نسخه کتابخانه 0.5.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده RF-Tar-Railt <rf_tar_railt@qq.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/cli-lite/
مجوز MIT
# Cli-Lite A simple framework to build a cli tool. Base on [`Alconna`](https://github/ArcletProject/Alconna) ## install ```powershell pip install cli-lite ``` ## example write as sample: ```python from clilte import BaseCommand, CommandLine, CommandMetadata from arclet.alconna import Alconna, Arparma, Args class MyCommand(BaseCommand): def init(self) -> Alconna: return Alconna("hello", Args["name", str]) def dispatch(self, result: Arparma): return print(f"Hello! {result.name}") def meta(self) -> CommandMetadata: return CommandMetadata("hello", "0.0.1", "my first plugin", ["dev"], ["john"]) if __name__ == '__main__': cli = CommandLine( "test", "My first CLI", "0.0.1" ) cli.add(MyCommand) cli.main() ``` and execute the line: ```powershell python test.py hello world ```


نیازمندی

مقدار نام
- arclet-alconna-tools>=0.3.3
- arclet-alconna>=1.4.3


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl cli-lite-0.5.1:

    pip install cli-lite-0.5.1.whl


نصب پکیج tar.gz cli-lite-0.5.1:

    pip install cli-lite-0.5.1.tar.gz