python开发模块
Project description
xy_pydev
说明
简单Python模块开发工具.
源码仓库
安装
# bash
pip install xy_pydev
说明
1. 清理缓存
# bash
# 删除缓存
xy_pydev -w clean
# ======================================
# 开始清理模块缓存...
# ======================================
# ======================================
# 即将清理包含以下列表中名称的目录或者文件:
# ['dist', '.egg-info', 'build']
# ======================================
# ======================================
# 检测到以下缓存
# ======================================
# build
# ======================================
# xy_pydev.egg-info
# ======================================
# dist
# ======================================
# ======================================
# 是否确定删除缓存?
# Y ==> [确定]
# 其他 ==> [取消]
# 请输入[Y/n]
2. 创建简易模块
# 当前目录在 /home/helios/workspace/project/opensource/xy-base/xy_pydev/test
xy_pydev
# 出现引导,也可以按需提前设置参数
# ======================================
# 请输入新模块名称, 不能包含中文
# xy_demo
# ======================================
# 新模块名称为: xy_demo
# ======================================
# 是否需要修改模块入口类名称?
# 当前为: Runner
# 不能包含中文
# Y=>代表[需要];
# 其他=>代表[不需要]
# 请输入[ Y/n ]
# ======================================
# 是否需要添加全局命令?
# Y=>代表[添加];
# 其他=>代表[不添加]
# 请输入[ Y/n ]
# ======================================
# 新模块创建完成!!!
3. 创建包含全局命令的模块
xy_pydev
# ======================================
# 请输入新模块名称, 不能包含中文
# xy_full_demo
# ======================================
# 新模块名称为: xy_full_demo
# ======================================
# 是否需要修改模块入口类名称?
# 当前为: Runner
# 不能包含中文
# Y=>代表[需要];
# 其他=>代表[不需要]
# 请输入[ Y/n ]
# ======================================
# 是否需要添加全局命令?
# Y=>代表[添加];
# 其他=>代表[不添加]
# 请输入[ Y/n ]
# Y
# ======================================
# 新模块创建完成!!!
4. 指定参数创建模块
xy_pydev -h
# usage: xy_pydev-1.0.8 [-h] [-w [WORK]] [-n [NAME]] [-m [MODULE_CLASS_NAME]] [-s [SCRIPTS]]
# python模块开发工具
# options:
# -h, --help show this help message and exit
# -w [WORK], --work [WORK]
# 工作方式: 1.clean | c => 清理模块缓存, 2.build | b => 编译, 3.utpi | ut => 提交到test.pypi.org, upload to test.pypi.org, 4.upi | u => 提交到pypi.org, upload to pypi.org, 5.其他 => 创建项目
# -n [NAME], --name [NAME]
# Python模块名称 不能包含中文
# -m [MODULE_CLASS_NAME], --module_class_name [MODULE_CLASS_NAME]
# 模块入口类名称 不能包含中文
# -s [SCRIPTS], --scripts [SCRIPTS]
# 是否开启全局命令
xy_pydev -n xy_arg_demo -m ARG_DEMO -s 1
# ======================================
# 新模块名称为: xy_arg_demo
# ======================================
# 新模块创建完成!!!
提示
在使用 xy_pydev 创建模块后可以引入 xy_argparse.github xy_argparse.gitee 或者 xy_work.github xy_work.gitee 进行定制和扩展模块的功能.
许可证
xy_pydev 根据 <木兰宽松许可证, 第2版> 获得许可。有关详细信息,请参阅 LICENSE 文件。
捐赠
如果小伙伴们觉得这些工具还不错的话,能否请咱喝一杯咖啡呢?
联系方式
微信: 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_pydev-1.0.8.tar.gz
(16.9 kB
view details)
Built Distribution
xy_pydev-1.0.8-py3-none-any.whl
(21.2 kB
view details)
File details
Details for the file xy_pydev-1.0.8.tar.gz
.
File metadata
- Download URL: xy_pydev-1.0.8.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09c61fe7555cded55005c8b80c1308dbb492a1e73d1d8a66ab8d2a8e1a8d17aa |
|
MD5 | 19499d0d61e1b5a32a38facf23d9da32 |
|
BLAKE2b-256 | df82808aca1bebff8b9c53ec15f64b62a8f79ea851dadf4b8ef9ebfcf9a586ba |
File details
Details for the file xy_pydev-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: xy_pydev-1.0.8-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb45e3a25a75384e24c2ee2cec6b982004454b983899b888459e367b8f1156e4 |
|
MD5 | f8596724736e0195681be819a357afc0 |
|
BLAKE2b-256 | b7de0f4d318c2b85d558d2140b264db82f6ed7f6f9e8eeb38aedb75ef94d88c2 |