Skip to main content

logo

A CLI tool that generates HTTP clients from an OpenAPI specification.


Installation

pip install gadopenapiconverter

Usage

gadopenapiconverter --file {config.toml} --context "{}"

General Structure

workdir = "myproject"

[[specifications]]
path = "{{name}}.py"
content = "file:openapi.json"
client = "httpx"
model = "pydantic"
async = true
operations = []

[[scripts]]
command = "isort {{workdir}}"
check = true

Sections Overview

Section Format Description
workdir "" Uses the current directory
"myproject" Uses the current directory + /myproject
"/home/myproject" Uses an absolute path
[[specifications]] Defines file creation rules
mode = "a" File writing mode: "a" (append), "w" (overwrite)
path = "src/__init__.py" Relative to workdir, specifies file location.
content = """ ... """ / path / url Raw content, local file path, or URL for remote content.
model = "pydantic" Type of models created (pydantic, dataclasses, typing, msgspec)
client = "httpx" Type of http-client created (requests, httpx, aiohttp, urllib, urllib3, http.client)
async = "true" Type of methods (true, false)
operations = [] Filtering methods by operation_id
[[scripts]] Defines commands to be executed after generation.
command = "isort {{workdir}}" Command to execute, supports dynamic variables.
check = True\False" If true, raises an error if the command fails, otherwise logs output.

Metadata

Release files for gadopenapiconverter 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gadopenapiconverter 0.0.2
File Size Uploaded Provenance Actions
gadopenapiconverter-0.0.2.tar.gz 15.2 kB Without provenance Details for gadopenapiconverter-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gadopenapiconverter 0.0.2
File Interpreter ABI Platform Actions
gadopenapiconverter-0.0.2-py3-none-any.whl Python 3 none any Details for gadopenapiconverter-0.0.2-py3-none-any.whl

Total release size: 38.1 kB

Release files / gadopenapiconverter-0.0.2.tar.gz

Download URL gadopenapiconverter-0.0.2.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9ed91f85badde6f2ed340d5d7f1093c428baea5af0517e89de1050eb66cb4b19
BLAKE2b-256 checksum
How to use checksums
4407f0ad9988a45ab7e3fe59bb904ca231fcc9bc53b07f30f843082bb5d27a0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / gadopenapiconverter-0.0.2-py3-none-any.whl

Download URL gadopenapiconverter-0.0.2-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fe8e32de8436772fadca5400246693294130210d3cbca12597f90bceeefe16d
BLAKE2b-256 checksum
How to use checksums
637d1c10de272f8a85e5fbe3a3f7af35f0a520833b2fe91bcdd2400259ce84cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for gadopenapiconverter 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page