xy_work
说明
通用工作模块.
源码仓库
安装
# bash
pip install xy_work
使用
1.常用
# bash
xy_work -h
# usage: xy_work [-h] [-c [{project,runner}]]
#
# >>>>>>>>>>>> xy_work - v1.0.1 <<<<<<<<<<<<<
#
# options:
# -h, --help show this help message and exit
# -c [{project,runner}], --command [{project,runner}]
# 命令: -----project => 项目 -----runner => 运行启动器
# 请输入 -c/--command 命令参数
xy_work -n xy_test_work -c project
# 创建项目 [ xy_test_work ] 成功!!!
# 项目路径 ==>>> /mnt/bs-media/Workspace/project/opensource/xy-base/xy_work/test/xy_test_work
cd xy_test_work
xy_work -c runner
# >>>>>>>>>>>> xy_test_work - v0.0.1 <<<<<<<<<<<<<
# Hello World!!!
2.扩展
# main.py
from xy_work.Work import Work
class DemoExtWork(Work):
def __init__(self):
self.prog = "xy_work扩展"
self.description = f""">>>>>>>>>>>> ext_work - v1.0.0 <<<<<<<<<<<<<"""
if __name__ == "__main__":
work = DemoExtWork()
work.main()
# bash
python main.py -h
# usage: xy_work扩展 [-h] [-c [COMMAND]] [-n [NAME]]
# >>>>>>>>>>>> ext_work - v1.0.0 <<<<<<<<<<<<<
# options:
# -h, --help show this help message and exit
# -c [COMMAND], --command [COMMAND]
# 命令: -----project => 项目 -----runner => 运行启动器
# -n [NAME], --name [NAME]
# 项目名称 仅支持英文(当[command=project])
3.配置定制
许可证
xy_work 根据 <木兰宽松许可证, 第2版> 获得许可。有关详细信息,请参阅 LICENSE 文件。
捐赠
如果小伙伴们觉得这些工具还不错的话,能否请咱喝一杯咖啡呢?
联系方式
微信: yuyangiit
邮箱: yuyangit.0515@qq.com
Release files for xy-work 1.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xy_work-1.0.16.tar.gz | 12.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xy_work-1.0.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.4 kB
Release files / xy_work-1.0.16.tar.gz
| Download URL | xy_work-1.0.16.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
373180b9b5b6471344e1f8671fcd07d567951355db7a0159d4aeb6da0aee6dc3
|
|
BLAKE2b-256 checksum How to use checksums |
5590df5d29460ce97b929e73ce4d89492031e024c3e9cb4a891edd7c0c862777
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Release files / xy_work-1.0.16-py3-none-any.whl
| Download URL | xy_work-1.0.16-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bb1ec1b694610e79957ea71bb3ae3eaf6fe02767446c8121b265b975976f16e
|
|
BLAKE2b-256 checksum How to use checksums |
4eb23fdbb185a0c4676f2aa550f5719c9d27a962ddae010b82cfb6a10071af28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|