Skip to main content

一个高性能的API服务框架

Project description

使用示例:

examples_of_Use.py

功能特性:

  1. 路由系统

    • 支持动态路由
    • 支持多种HTTP方法
    • 路由缓存优化
  2. 中间件支持

    • CORS中间件
    • 限流中间件
    • CSRF防护
    • 可自定义中间件
  3. 缓存系统

    • LRU缓存
    • Redis缓存
    • 可扩展的缓存接口
  4. 模板引擎

    • 支持异步渲染
    • 缓存支持
    • 自定义过滤器
  5. 文件处理

    • 文件上传
    • 静态文件服务
    • 安全检查
  6. WebSocket支持

    • 实时通信
    • 广播功能
    • 消息处理器
  7. 数据库支持

    • 异步数据库操作
    • 事务支持
    • 连接池管理
  8. 国际化

    • 多语言支持
    • 动态翻译
    • 本地化配置
  9. 任务队列

    • 异步任务处理
    • 状态跟踪
    • 并发控制
  10. 服务注册与发现

    • 服务注册
    • 服务发现
    • 心跳检测
  11. API文档

    • OpenAPI规范
    • Swagger UI
    • 自动文档生成
  12. 监控和追踪

    • 性能监控
    • 分布式追踪
    • 指标收集

安装依赖:

pip install -r requirements.txt

快速开始:

  1. 创建应用实例
  2. 配置必要选项
  3. 添加路由和处理函数
  4. 启动应用

配置说明:

见 config/settings.py

API文档:

访问 /docs 查看API文档

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

flawlessapi-0.2.6.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FlawlessAPI-0.2.6-py3-none-any.whl (71.0 kB view details)

Uploaded Python 3

File details

Details for the file flawlessapi-0.2.6.tar.gz.

File metadata

  • Download URL: flawlessapi-0.2.6.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for flawlessapi-0.2.6.tar.gz
Algorithm Hash digest
SHA256 139129c99dc103de1b03dfc7e8e51362d509e4d5f8d4c51c87141460e6d312fb
MD5 6587d02dc1145ded7381400d0e3bd85d
BLAKE2b-256 260b782617f085bd99d1620fa4438da2f9a46db54be0733ae956334b100d7d48

See more details on using hashes here.

File details

Details for the file FlawlessAPI-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: FlawlessAPI-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 71.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for FlawlessAPI-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4353d9ecaa6364dc9a9aae8bc3193827c3d0a1bde847b6f1f07c61d9c5bc0486
MD5 6e2127a6e9cf8f56d52e04cae7ff543f
BLAKE2b-256 46db8db55e294c604a6231df08b7a6980b3e32489b800f190fa8f34e7fa8be99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page