快速构建自己的命令行工具包。 Quickly develop your command line interface(CLI) toolkit.
Project description
likeshell
likeshell 快速构建自己的命令行工具,扩展性强、可配置、开箱即用。
要求
Python >= 3.6
安装
使用pip安装
$ pip install likeshell
简单使用
创建demo.py文件
import likeshell
class MyTasks(likeshell.Shell):
def test(self, s1: str, i1: int, f1: float):
print(f's1 is {s1}')
print(f'i1 is {i1}')
print(f'f1 is {f1}')
>> python demo.py test str1 100 10.01
<< s1 is str1
<< i1 is 100
<< f1 is 10.01
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
likeshell-0.0.2.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for likeshell-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25950930ea29bf7bb43d56a2e911bbd1b446b0efcf074899cc7ac5114a6dc68d |
|
MD5 | 5070bd62036038ce4dd925f3cf61a973 |
|
BLAKE2b-256 | f590d87c3c842079db8bb8c6e6065c00c418faa97b0e07ea08b8bd7d09469cf4 |