Skip to main content

青橄榄Django OpenAPI框架

Project description

青橄榄Django OpenAPI框架

框架简述

在django的基础上,保留django的便利ORM,以开发RESTful风格的接口为目标,构建一个支持输出openapi文档的框架。

最早本框架只用于OA的开发,因为数据平台相关开发类似,为避免重复维护框架代码,故而把框架代码抽象出来单独成库。

功能点

  • 输出RESTful风格的openapi接口文档。支持Django原生的Model,兼容大部分常用字段类型。
  • 接口输入输出的类型校验+转换,使接口与文档定义一致。
  • 内置redoc,可直接配置文档展示。
  • 接口URL路由根据目录结构自动索引,规避冗长的url.py配置文件。
  • 多项核心附加工具:可输出的状态机,支持结构定义的JSONField等等。

核心依赖

  • Django
  • Pydantic

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

golive-django-openapi-0.5.6.tar.gz (50.2 kB view details)

Uploaded Source

File details

Details for the file golive-django-openapi-0.5.6.tar.gz.

File metadata

  • Download URL: golive-django-openapi-0.5.6.tar.gz
  • Upload date:
  • Size: 50.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for golive-django-openapi-0.5.6.tar.gz
Algorithm Hash digest
SHA256 886d3d7d1fd66e91afb25cfb9c0ac99da4cd6db38b452e8848d93109368acf26
MD5 24296aa0d6a5b1e3c63c78d142a9a387
BLAKE2b-256 e89ebde7ad60af92ba8fe5f2c650bd8812b02325e726a7eaff2fd9e04d11d491

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