a micro server
Project description
Simple-Starlette
一个简单的微服务api框架,基于 starlette
框架实现:
- 支持视图模式:
cbv
,fbv
- 请求参数添加类型注解,参数自动校验
- 全局错误处理
- 开箱即用
websocket
- 提供请求内全局临时
g
对象 include
类flask.blueprint
- 数据库
sqlalchemy.db
, 使用async.io
特性,提供连接配置,开箱即用 - 缓存提供
Memory Cache
,Redis Cache
, 适应不同业务场景,部署方式 - 提供http_client 模块 ,基于 requests 提供
before
,after
钩子
安装
使用 pip
直接安装
pip install simple-starlette
example
LICENSE
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
simple_starlette-2.0.tar.gz
(20.2 kB
view details)
File details
Details for the file simple_starlette-2.0.tar.gz
.
File metadata
- Download URL: simple_starlette-2.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db8bbabcb5da9c2057a3bc2479b8ae2c8cb86fd7d26ee01351b3a8a87948b67f |
|
MD5 | 26dca098fe2f2a02a7aad1d3b2efad13 |
|
BLAKE2b-256 | c49bab73b4145106eeee771dbee4e0b276d66d90aaf3f11e5f76cfbc5bee7465 |