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

Uploaded Source

File details

Details for the file golive_django_openapi-0.5.9.tar.gz.

File metadata

  • Download URL: golive_django_openapi-0.5.9.tar.gz
  • Upload date:
  • Size: 50.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for golive_django_openapi-0.5.9.tar.gz
Algorithm Hash digest
SHA256 74749c99eea150505e49766640702d4722bcccd524ef5dfe5a71b3e1acab7a6f
MD5 581c781d4f80bf67cddc35946587d475
BLAKE2b-256 c43686991ea560492e3ea9507d887aafeff7bcb9e6412d52021630de04f2867e

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