xy_web_service web工作模块
Project description
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
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_web_work-1.0.7.tar.gz
(17.8 kB
view details)
Built Distribution
File details
Details for the file xy_web_work-1.0.7.tar.gz
.
File metadata
- Download URL: xy_web_work-1.0.7.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c217dd220677091704d28618e1e7c6da5ea44160849dbdf31070a1d357a9259a |
|
MD5 | ecbf1791a2e156941c0f91ba9dd97130 |
|
BLAKE2b-256 | b56e0abfaf0c616019765914a47fd623aa01414c31016baf80042491c0dae61d |
File details
Details for the file xy_web_work-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: xy_web_work-1.0.7-py3-none-any.whl
- Upload date:
- Size: 44.6 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 | ff3b06ce1775191fa29e5ea267599922c702505cb2a49f1514a82b3d3ffa95aa |
|
MD5 | 55c4f7dd834a66b96911c9aa40b4c737 |
|
BLAKE2b-256 | 43a256958ab20e24cd6970044b4b77c829d8b7d2c50e7c0d4230f7b96eaafd7e |