tornado request基础请求封装模块
Project description
xy_request_handler_base
简体中文 | 繁體中文 | English |
---|
说明
基于Tornado的RequestHandler基础类,封装了常用功能,方便快速开发,主要重置django模型和请求结束时候关闭数据库连接.
源码仓库
Github | Gitee | GitCode |
---|
安装
# bash
pip install xy_request_handler_base
使用
详情请查看 Demoes.py
# Demoes.py
from xy_request_handler_base.Base import Base
class Demo(Base):
def get(self):
self.write("Hello, xy_request_handler_base !")
运行 样例工程
样例工程具体使用方式请移步 xy_web_server.git 下列仓库
Github | Gitee | GitCode |
---|
# bash
# 当前目录为xy_request_handler_base的git本地仓库所在目录
# 切换到工程目录
cd ./samples/xy_web_server_demo
# 启动样例工程的Tornado服务
xy_web_server -w tornado start
# 默认启动的Tornado服务url地址是: http://127.0.0.1:8400
# 浏览器打开访问 http://127.0.0.1:8400/demo 进行验证
许可证
xy_request_handler_base 根据 <木兰宽松许可证, 第2版> 获得许可。有关详细信息,请参阅 LICENSE 文件。
捐赠
如果小伙伴们觉得这些工具还不错的话,能否请咱喝一杯咖啡呢?
联系方式
微信: yuyangiit
邮箱: yuyangit.0515@qq.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xy_request_handler_base-1.0.0.tar.gz
.
File metadata
- Download URL: xy_request_handler_base-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eaea5553a7ec0ad01313e9ce0833704e25b37fa440bc74e046c0e411cd7f782 |
|
MD5 | 1b11065f4332e28cc46b2e7069226adf |
|
BLAKE2b-256 | 0e02cad3dc45475ea6ec6b93ab735d114a7c3073f8c7487c5e7076d2fcc13ed2 |
File details
Details for the file xy_request_handler_base-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: xy_request_handler_base-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.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 | b91dcffe64388f59b4cba429de6bdc52b8defc6ebfdddf68a9c388cfe1268776 |
|
MD5 | 81659ce0fe45c0c8c5e7afa1db6ae4b9 |
|
BLAKE2b-256 | 59d71116c6aa90cc3b3b30d06ff080e6d610737f41906fb6bf9e5120b1e6ed6c |