Skip to main content

xy_work 模块

Project description

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])

许可证

xy_work 根据 <木兰宽松许可证, 第2版> 获得许可。有关详细信息,请参阅 LICENSE 文件。

捐赠

如果小伙伴们觉得这些工具还不错的话,能否请咱喝一杯咖啡呢?
Pay-Total

联系方式

微信: yuyangiit
邮箱: yuyangit.0515@qq.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xy_work-1.0.10.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

xy_work-1.0.10-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file xy_work-1.0.10.tar.gz.

File metadata

  • Download URL: xy_work-1.0.10.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for xy_work-1.0.10.tar.gz
Algorithm Hash digest
SHA256 5dc390c92d6ce9d72b72abb67852cecf62821d90b575ba84dd5eab1d40d3dffe
MD5 2b8878a171a9e3a2f4fddd20da9b1d8f
BLAKE2b-256 4a0606acae39c20230b8602af6eb2b5bcc33eb016c456f3c39d260be60db1d63

See more details on using hashes here.

File details

Details for the file xy_work-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: xy_work-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for xy_work-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba22be8b2763c1946b0bffc9bc47b70f31ad1129cf89241b417df022816fc61
MD5 b566bbba4e4d2b4f1e8836dfbe31be7e
BLAKE2b-256 a2abf37084621cfac67f1223c164f856728c0d142fbd45fff3e451416219efb5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page