Skip to main content

a micro server

Project description

Simple-Starlette


一个简单的微服务api框架,基于 starlette 框架实现

  • 支持视图模式:cbv, fbv
  • 请求参数添加类型注解,参数自动校验
  • 全局错误处理
  • 开箱即用 websocket
  • 提供请求内全局临时 g 对象
  • includeflask.blueprint
  • 数据库 sqlalchemy.db, 使用 async.io 特性,提供连接配置,开箱即用
  • 缓存提供 Memory Cache , Redis Cache , 适应不同业务场景,部署方式
  • 提供http_client 模块 ,基于 requests 提供before, after 钩子

安装

使用 pip 直接安装

pip install simple-starlette

example

example usage


LICENSE

GPL-3.0 License

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

simple_starlette-2.0.tar.gz (20.2 kB view hashes)

Uploaded Source

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