bravado
Library for accessing Swagger-enabled API's
Decision gist · record as of 2026-08-14
Yes, with conditions. Bravado is stable (Production/Stable status, 609 GitHub stars, active repository) and solves a real problem—eliminating code generation for OpenAPI 2.0 clients. However, high install friction and a 464-day release gap warrant checking that your environment can satisfy its dependencies and that OpenAPI 2.0 is your target (not 3.0+). If you need dynamic REST clients and your APIs publish OpenAPI 2.0 specs, it is worth the setup cost.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later; the OpenAPI Specification document must be accessible at the provided URL.
- High install friction: no runtime dependencies listed, but the package itself is marked as high-friction.
- Last release was 464 days ago; repository is active with recent commits (2026-04-02) and 609 stars, suggesting ongoing maintenance despite the release gap.
License · maintenance · safety
BSD 3-Clause License (permissive) — BSD 3-Clause License is permissive and poses no restrictions on commercial or private use. You may use, modify, and distribute Bravado freely provided you include the license notice.
last release 2025-05-07 (464 days) · last repo commit 2026-04-02 · 609 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 328,167 downloads/mo, #7,558 on PyPI
Alternatives
Verify before relying
from bravado.client import SwaggerClient
client = SwaggerClient.from_url('http://petstore.swagger.io/v2/swagger.json')
pet = client.pet.getPetById(petId=1).response().result- Whether high install friction stems from compiled dependencies, system library requirements, or network access during installation.
- Current compatibility with OpenAPI 3.0+ specifications (fact sheet only mentions 2.0 support).
- Whether the 464-day gap since last release indicates maintenance slowdown or stability-driven infrequent updates.
What it is and what it does
Bravado is a Python library that reads an OpenAPI Specification 2.0 document and constructs a live REST client from it, letting you call API operations as Python method calls without writing boilerplate or running a code generator. It was created by Yelp as a maintained fork of the original swagger-py project and aims to replace the need for swagger-codegen in Python workflows.
The library handles HTTP communication, authentication (basic auth, API keys, custom headers), and response parsing automatically. It supports both synchronous HTTP clients (via RequestsClient) and asynchronous clients (via FidoClient when installed with the fido extra). You point it at a Swagger JSON URL, and it builds a client object whose attributes and methods mirror the API structure defined in the specification.
Use it for
- Build a Python client for a third-party REST API that publishes an OpenAPI 2.0 spec without writing manual HTTP code.
- Integrate with internal microservices that expose OpenAPI specifications, generating clients on the fly at runtime.
- Test or prototype against a Swagger-documented API without waiting for code generation or maintaining hand-written client stubs.
- Add basic or header-based authentication to API calls through a simple configuration interface.
- Use asynchronous HTTP requests to a Swagger API by swapping in FidoClient for concurrent operations.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Bravado is stable (Production/Stable status, 609 GitHub stars, active repository) and solves a real problem—eliminating code generation for OpenAPI 2.0 clients. However, high install friction and a 464-day release gap warrant checking that your environment can satisfy its dependencies and that OpenAPI 2.0 is your target (not 3.0+). If you need dynamic REST clients and your APIs publish OpenAPI 2.0 specs, it is worth the setup cost.
Install
bravado on PyPI
Before you install
High install friction: no runtime dependencies listed, but the package itself is marked as high-friction. Last release was 464 days ago; repository is active with recent commits (2026-04-02) and 609 stars, suggesting ongoing maintenance despite the release gap.
Requires Python 3.8 or later; the OpenAPI Specification document must be accessible at the provided URL.
License in practice
BSD 3-Clause License is permissive and poses no restrictions on commercial or private use. You may use, modify, and distribute Bravado freely provided you include the license notice.
Quickstart
from bravado.client import SwaggerClient
client = SwaggerClient.from_url('http://petstore.swagger.io/v2/swagger.json')
pet = client.pet.getPetById(petId=1).response().result
Verify before relying
- Whether high install friction stems from compiled dependencies, system library requirements, or network access during installation.
- Current compatibility with OpenAPI 3.0+ specifications (fact sheet only mentions 2.0 support).
- Whether the 464-day gap since last release indicates maintenance slowdown or stability-driven infrequent updates.
Package facts
| License | BSD 3-Clause License permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Actively maintained 464 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 328,167 / month, #7,558 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Software Development :: Libraries :: Python Modules |
Evidence: bravado-12.0.1.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “openapi client library python”
- bravadoBravado generates a dynamic REST client from an OpenAPI Specification…
- aiopenapi3Parses and validates OpenAPI 3 specifications (3.0.3, 3.1.0, 3.2.0)…
- openapi-python-clientGenerates type-annotated Python HTTP clients from OpenAPI 3.0 and 3.1…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also bravado-core · drf-yasg · apispec · yelpapi · connexion · sphinxcontrib-openapi · django-rest-swagger · essentials-openapi · openapi-codec · turnkey-http