Skip to main content

A CLI tool for automated DTO generation using OpenAPI schema

Project description

openapi-dto

This small library allows generating Python DTOs from the OpenAPI schema definition. By default, it uses dataclasses, but it's open for extensions and using libraries like pydantic instead.

After installation, it might be called in the following way:

openapi_dto \
  --naming-convention=camel \
  https://foobar.com/api/schema/

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_dto-0.1.8.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

openapi_dto-0.1.8-py3-none-any.whl (12.8 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