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 钩子
  • token-auth 中间件,提供标准的 jwt 鉴权模式

安装

使用 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.1.tar.gz (35.3 kB view details)

Uploaded Source

File details

Details for the file simple_starlette-2.1.tar.gz.

File metadata

  • Download URL: simple_starlette-2.1.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.0

File hashes

Hashes for simple_starlette-2.1.tar.gz
Algorithm Hash digest
SHA256 30180634c774df153ee954fa88ef816153338f21a48212e5877f40c6cecbe030
MD5 ab2bd3b5bad889425fe07e07000930d2
BLAKE2b-256 c2024f5f38714ab9df90043edb4615427501f25d3d90e9a1812d875e26b190df

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