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

Uploaded Source

File details

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

File metadata

  • Download URL: golive-django-openapi-0.5.7.tar.gz
  • Upload date:
  • Size: 50.3 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.7.tar.gz
Algorithm Hash digest
SHA256 d90985fc19f25c36369175da09dfcc77f2724860501ff788e33cb6462562be8a
MD5 5da0775cbf4845308ddef6e4897a73e8
BLAKE2b-256 7d63b45c6880ee5d5dbe8560a490b124ab8db78a37d3b5cd6f8a41dcca6c857a

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