bdpycmd-1.2.0
توضیحات
Run Python`s file as command line
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bdpycmd-1.2.0 |
| نام | bdpycmd |
| نسخه کتابخانه | 1.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | biandoucheng |
| ایمیل نویسنده | biandoucheng@outlook.com |
| آدرس صفحه اصلی | https://github.com/biandoucheng/bd-py-cmd |
| آدرس اینترنتی | https://pypi.org/project/bdpycmd/ |
| مجوز | - |
# Python command tool
## Require
+ python3.5 +
## Description
`
It is used to run your Python code as a command line .
It only works on class methods .
Add as_cmder decorator on your class method and create command class in command file directory .
In your project root directory, create a pycmd.py file and import everything under the bdpycmd.pycmd module .
Add initialization code and execution entry to your pycmd.py .
Open the command line interface, go to your project root directory (the same level as your pycmd.py file), and run python pycmd.py .
`
## Use the example project url
<https://github.com/biandoucheng/open-example/tree/main/bdpycmd-example>
## Source Codd url
<https://github.com/biandoucheng/bd-py-cmd>
## Annotation Specification
`
When adding comments to the command method, the following rules must be followed, otherwise the command parameters will not be parsed correctly
@base.BaseCommand.as_cmder
def your_func(p1,p2):
"""
your function`s description
:param p1: type #describe
:param p2: type #describe
:return: type
"""
your_func_content ...
`
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl bdpycmd-1.2.0:
pip install bdpycmd-1.2.0.whl
نصب پکیج tar.gz bdpycmd-1.2.0:
pip install bdpycmd-1.2.0.tar.gz