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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file openapi_drf_codegen-1.0.0.tar.gz.

File metadata

  • Download URL: openapi_drf_codegen-1.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.16 Linux/5.15.0-1038-azure

File hashes

Hashes for openapi_drf_codegen-1.0.0.tar.gz
Algorithm Hash digest
SHA256 526afb574c27806155023ab4eab779dc8a2b5c3bf8e7856ded2d686c2f726819
MD5 4e0c6bc644ae8734cdf4ce408e66d678
BLAKE2b-256 9ce04867ebbec503f9f41493178aa20d1fe911fcec19ff02d502e4946b10179a

See more details on using hashes here.

File details

Details for the file openapi_drf_codegen-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openapi_drf_codegen-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f0fba9de0091f3aa31f14d0672cbd8c98830ab4833edc782570114e026aefd7
MD5 3639a92e430ce95f9c4ea444cce166b5
BLAKE2b-256 ba3f763025f43fc56da93f757a45432ed1db709bcf4588e88c97a8b00e98c6ec

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