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 | Provenance | Actions |
|---|---|---|---|---|
| openapi_drf_codegen-1.0.0.tar.gz | 6.7 kB | Without provenance | Details for openapi_drf_codegen-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openapi_drf_codegen-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for openapi_drf_codegen-1.0.0-py3-none-any.whl |
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
|
Security for openapi-drf-codegen 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.