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
Metadata
Release files for openapi-drf-codegen 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openapi_drf_codegen-1.0.0.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openapi_drf_codegen-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / openapi_drf_codegen-1.0.0.tar.gz
| Download URL | openapi_drf_codegen-1.0.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
526afb574c27806155023ab4eab779dc8a2b5c3bf8e7856ded2d686c2f726819
|
|
BLAKE2b-256 checksum How to use checksums |
9ce04867ebbec503f9f41493178aa20d1fe911fcec19ff02d502e4946b10179a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.16 Linux/5.15.0-1038-azure
|
Release files / openapi_drf_codegen-1.0.0-py3-none-any.whl
| Download URL | openapi_drf_codegen-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f0fba9de0091f3aa31f14d0672cbd8c98830ab4833edc782570114e026aefd7
|
|
BLAKE2b-256 checksum How to use checksums |
ba3f763025f43fc56da93f757a45432ed1db709bcf4588e88c97a8b00e98c6ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.16 Linux/5.15.0-1038-azure
|