xy_web_work
说明
xy-web-service服务设置模块.
源码仓库
安装
# bash
pip install xy_web_work
使用
1. 通用
# 创建项目
xy_web_server -c project -n xy_web_demo
cd xy_web_demo
xy_web_server
# >>>>>>>>>>>> xy_web_demo - v0.0.1 <<<<<<<<<<<<<
#
# xy_web_work Hello World!!!
2. 扩展或者定制
# main.py
from xy_web_work.WebWork import WebWork as xyWebWork
from xy_web_work.Settings.Settings import Settings
class WebServerWork(xyWebWork):
settings: Settings | None = Settings()
def __init__(self):
self.prog = "xy_test_demo"
self.description = f""">>>>>>>>>>>> xy_test_demo - v1.0.0 <<<<<<<<<<<<<"""
if __name__ == "__main__":
web_server_work = WebServerWork()
web_server_work.main()
# bash
python main.py -c project -n xy_web_work_demo
# 创建项目 [ xy_web_work_demo ] 成功!!!
# 项目路径 ==>>> /mnt/bs-media/Workspace/project/opensource/xy-web-service/xy_web_work/test/xy_web_work_demo
cp main.py xy_web_work_demo
cd xy_web_work_demo
python main.py -c runner
# >>>>>>>>>>>> xy_web_work_demo - v1.0.1 <<<<<<<<<<<<<
# xy_web_work Hello World!!!
许可证
xy_web_work 根据 <木兰宽松许可证, 第2版> 获得许可。有关详细信息,请参阅 LICENSE 文件。
捐赠
如果小伙伴们觉得这些工具还不错的话,能否请咱喝一杯咖啡呢?
联系方式
微信: yuyangiit
邮箱: yuyangit.0515@qq.com
Release files for xy-web-work 1.0.7
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_web_work-1.0.7.tar.gz | 17.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xy_web_work-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.4 kB
Release files / xy_web_work-1.0.7.tar.gz
| Download URL | xy_web_work-1.0.7.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c217dd220677091704d28618e1e7c6da5ea44160849dbdf31070a1d357a9259a
|
|
BLAKE2b-256 checksum How to use checksums |
b56e0abfaf0c616019765914a47fd623aa01414c31016baf80042491c0dae61d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Release files / xy_web_work-1.0.7-py3-none-any.whl
| Download URL | xy_web_work-1.0.7-py3-none-any.whl |
|---|---|
| Size | 44.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff3b06ce1775191fa29e5ea267599922c702505cb2a49f1514a82b3d3ffa95aa
|
|
BLAKE2b-256 checksum How to use checksums |
43a256958ab20e24cd6970044b4b77c829d8b7d2c50e7c0d4230f7b96eaafd7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|