Skip to main content

No project description provided

Project description

OpenAPI DRF Codegen

CLI application for generating DRF serializers from openapi.yaml files

NOTE: This program was mostly written for personal use. You may also find it useful

Installation:

pip install openapi-drf-codegen

# or

poetry add openapi-drf-codegen

Usage:

openapi-drf-codegen -i /path/to/openapi/ -p package-name -v 0.0.1

A new 'build' directory will be created in your directory where you are. To build a python package for installation, you can do the following:

cd build/ && poetry build

Important: at the moment, the generator does not provide all possible cases for code generation. Maybe I'll add them in the future if I find them

Contribution

If you want to participate in the project and fix some details or add functionality - feel free to contribute

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

openapi_drf_codegen-1.0.0.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

openapi_drf_codegen-1.0.0-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

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