Skip to main content

OpenAPI 3.0 specs parser and client/server generator

Project description

OpenAPI 3.0 Parser

This package provides functionality to analyze OpenAPI 3.0 Specification files and build clients and servers from that specification.

For more details, please refer the Project Documentation

Example Usage

From the command line:

$ python -m openapi_parser data/petstore.yaml 

From the Python:

from openapi_parser.exporter import PackageWriter
from openapi_parser.parser.loader import OpenApiParser

def main():
    parser = OpenApiParser.open('data/petstore.yaml')
    parser.load_all()
    
    package_writer = PackageWriter(parser)
    package_writer.write_package()
    
    return 0

if (__name__ == '__main__'):
    exit_code = main()
    exit(exit_code)

TODOs:

  • Model generator:
    • Core functionality
    • Class inheritance support
    • Enums support
    • Required properties in combination with readOnly/writeOnly
    • Discriminator property support
    • Cyclic refs resolution
    • Support of additionalProperties inside class
  • Client generator
    • Core functionality
    • Smart body encoding
    • Smart response decoding
    • style-encoding
    • schema and content inside parameters conflict support
    • Enums for parameters support
    • Cookies parameters support
    • Methods descriptions
    • Authorization support
  • Metadata extractor
    • Version
    • Licence
    • Description
    • Servers
    • Security definitions
  • Server generator
  • Test coverage
  • Documentation
  • Command-line interface
    • Basic CLI support
    • Extended CLI support

See Also:

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_parser-0.3.0.tar.gz (40.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openapi_parser-0.3.0-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file openapi_parser-0.3.0.tar.gz.

File metadata

  • Download URL: openapi_parser-0.3.0.tar.gz
  • Upload date:
  • Size: 40.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for openapi_parser-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d50183356b869204e9e3f6c3b22aeceb39ef10aed3bbb4eb2d9b760b2057b387
MD5 19fccd5115b3256068611bf6fd309f4b
BLAKE2b-256 3fcb77dea14f2998e761c88b89e0031c0117bec1e85aefa63e03fc4fc462cc52

See more details on using hashes here.

File details

Details for the file openapi_parser-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: openapi_parser-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 52.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for openapi_parser-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c83fdc6d43b0ddd2cda122a2086d5a1c2c07ee7ee8fd1b15e99551f5954b5a90
MD5 2551e5f36c1be06633de6d4755e7ed04
BLAKE2b-256 e0a221d39c7e3bd52364f4d01d076e301c9a813d1c843e653d98c36ba8087f86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page