Skip to main content

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

Release files for xy-request-handler-base 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xy-request-handler-base 1.0.0
File Size Uploaded
xy_request_handler_base-1.0.0.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xy-request-handler-base 1.0.0
File Interpreter ABI Platform
xy_request_handler_base-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / xy_request_handler_base-1.0.0.tar.gz

Download URL xy_request_handler_base-1.0.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0eaea5553a7ec0ad01313e9ce0833704e25b37fa440bc74e046c0e411cd7f782
BLAKE2b-256 checksum
How to use checksums
0e02cad3dc45475ea6ec6b93ab735d114a7c3073f8c7487c5e7076d2fcc13ed2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.3

Release files / xy_request_handler_base-1.0.0-py3-none-any.whl

Download URL xy_request_handler_base-1.0.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b91dcffe64388f59b4cba429de6bdc52b8defc6ebfdddf68a9c388cfe1268776
BLAKE2b-256 checksum
How to use checksums
59d71116c6aa90cc3b3b30d06ff080e6d610737f41906fb6bf9e5120b1e6ed6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page