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 hashes)