openapi-codec
An OpenAPI codec for Core API.
What it is and what it does
openapi-codec is a serialization bridge between OpenAPI/Swagger API specifications and the Core API framework's internal document representation. It registers as a codec plugin for the Core API ecosystem, allowing the coreapi Python client library and command-line tool to read and write Swagger schemas.
The package provides an OpenAPICodec class that encodes coreapi.Document objects into OpenAPI format and decodes OpenAPI schemas back into Core API documents. It integrates transparently with coreapi's client and CLI tools when installed, but has received no updates since 2019 and its repository is archived. Its utility is entirely dependent on active use of the Core API framework, which itself appears dormant.
Use it for:
- Integrating a Core API client with legacy or third-party services that expose Swagger/OpenAPI schemas.
- Converting OpenAPI specifications into Core API Document objects for programmatic API interaction.
- Using the coreapi command-line tool to explore and interact with Swagger-documented APIs.
- Building API clients that need to work with both Core API and OpenAPI schema formats.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts between OpenAPI/Swagger schemas and Core API's internal document format, enabling codec-based serialization and deserialization of API specifications.
No. The package is abandoned (last commit 2019-02-02, repository archived) and tightly coupled to Core API, which itself shows no recent activity. Unless you are maintaining legacy code that already depends on coreapi and openapi-codec, there is no reason to adopt it. Modern alternatives for OpenAPI/Swagger handling are actively maintained.
Install
openapi-codec on PyPI
pip
pip install openapi-codecuv
uv add openapi-codecpoetry
poetry add openapi-codecInstalling openapi-codec
Before you install
High install friction: the package has no runtime dependencies but has been abandoned since 2019 with no commits since 2019-02-02. It is tightly coupled to the Core API ecosystem, which itself appears to have stalled. Installation will succeed, but the package receives no maintenance.
License in practice
BSD license is permissive and poses no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install openapi-codec
from openapi_codec import OpenAPICodec
codec = OpenAPICodec()
schema = codec.encode(document)
Requires a coreapi.Document object to encode; the package is only useful within the Core API ecosystem and depends on coreapi being installed separately.
Verify before relying
- Whether Core API itself is still maintained or recommended for new projects, as openapi-codec's utility depends entirely on it.
- Current compatibility with modern OpenAPI/Swagger specification versions beyond those supported at the 2019 abandonment date.
- Whether the coreapi-cli command-line integration still functions with current Python versions.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,313 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 358,909/month — #7,257 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openapi-codec-1.3.2.tar.gz
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
coreapiA Python client library for interacting with…
permissive · top 5,000 on PyPI
apispecGenerates OpenAPI specification documents from…
permissive · top 5,000 on PyPI
swagger-spec-validatorValidates Swagger/OpenAPI specifications…
permissive · top 15,000 on PyPI
mkdocs-render-swagger-pluginRenders Swagger and OpenAPI schemas as…
permissive · top 15,000 on PyPI
essentials-openapiGenerates OpenAPI v2 and v3 documentation in…
permissive · top 15,000 on PyPI
django-rest-swaggerGenerates Swagger UI documentation and OpenAPI…
permissive · top 15,000 on PyPI
prancePrance parses and validates Swagger/OpenAPI 2.0…
unclear · top 5,000 on PyPI
mkdocs-swagger-ui-tagA MkDocs plugin that embeds Swagger UI directly…
permissive · top 15,000 on PyPI
dataclasses-jsonschemaGenerates JSON Schema from Python dataclasses…
permissive · top 15,000 on PyPI
flask-swagger-uiAdds Swagger UI to Flask applications as a…
permissive · top 5,000 on PyPI