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.2.tar.gz (50.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: golive-django-openapi-0.5.2.tar.gz
  • Upload date:
  • Size: 50.0 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.2.tar.gz
Algorithm Hash digest
SHA256 795ef1177c814ed6b61a43739db65b6ce350f167be0c5785f35c8a6f41f70c52
MD5 8a486e1463401c053ed51a4dcf2ea9e0
BLAKE2b-256 df84cf2715ff0752e06d27d75684acc11514c6cb94a16ac8e8cd56ee6a9f4637

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