Skip to main content

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 文件。

捐赠

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

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_request_handler_base-1.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

xy_request_handler_base-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file xy_request_handler_base-1.0.0.tar.gz.

File metadata

File hashes

Hashes for xy_request_handler_base-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0eaea5553a7ec0ad01313e9ce0833704e25b37fa440bc74e046c0e411cd7f782
MD5 1b11065f4332e28cc46b2e7069226adf
BLAKE2b-256 0e02cad3dc45475ea6ec6b93ab735d114a7c3073f8c7487c5e7076d2fcc13ed2

See more details on using hashes here.

File details

Details for the file xy_request_handler_base-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xy_request_handler_base-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b91dcffe64388f59b4cba429de6bdc52b8defc6ebfdddf68a9c388cfe1268776
MD5 81659ce0fe45c0c8c5e7afa1db6ae4b9
BLAKE2b-256 59d71116c6aa90cc3b3b30d06ff080e6d610737f41906fb6bf9e5120b1e6ed6c

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