OpenAPI-codec is a Python library that functions as a codec for the OpenAPI schema format (also known as Swagger) within the Core API framework. It enables Python clients to interact with services exposing OpenAPI schemas and automatically integrates with the Core API command-line client upon installation. The project's last update on GitHub was 7 years ago, and its latest release on PyPI was in July 2017, indicating that it is no longer actively maintained.
pip install openapi-codecVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize a Core API client with the `OpenAPICodec` to interact with services exposing OpenAPI schemas. It highlights the need to explicitly specify `format='openapi'` if the server does not correctly use the `application/openapi+json` content type.
Consider migrating to actively maintained alternatives or custom parsing solutions if full OpenAPI v3+ support is required.
Explicitly include `format='openapi'` in your `client.get()` or `coreapi` CLI command to force the use of `OpenAPICodec`.
Evaluate the current maintenance status of `coreapi` and consider its implications for your project's long-term stability and security.