{"id":18662116,"url":"https://github.com/yelp/bravado","last_synced_at":"2025-04-29T18:51:00.407Z","repository":{"id":17524991,"uuid":"20313056","full_name":"Yelp/bravado","owner":"Yelp","description":"Bravado is a python client library for Swagger 2.0 services","archived":false,"fork":false,"pushed_at":"2025-02-13T08:53:35.000Z","size":1846,"stargazers_count":606,"open_issues_count":83,"forks_count":118,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-04-29T07:02:37.107Z","etag":null,"topics":["openapi","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yelp.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-30T01:03:02.000Z","updated_at":"2025-04-14T15:20:31.000Z","dependencies_parsed_at":"2023-02-12T09:00:35.281Z","dependency_job_id":"ae142a57-cbd9-4806-a784-f76c7c491742","html_url":"https://github.com/Yelp/bravado","commit_stats":{"total_commits":763,"total_committers":57,"mean_commits":"13.385964912280702","dds":0.7496723460026212,"last_synced_commit":"8be7100a431e379b848663f8e277f1b3788ca3f4"},"previous_names":[],"tags_count":96,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yelp%2Fbravado","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yelp%2Fbravado/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yelp%2Fbravado/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yelp%2Fbravado/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yelp","download_url":"https://codeload.github.com/Yelp/bravado/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251564819,"owners_count":21609964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openapi","python"],"created_at":"2024-11-07T08:09:59.400Z","updated_at":"2025-04-29T18:51:00.385Z","avatar_url":"https://github.com/Yelp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://github.com/Yelp/bravado/workflows/build/badge.svg?branch=master\n  :target: https://github.com/Yelp/bravado/actions?query=workflow%3Abuild\n\n.. image:: https://img.shields.io/coveralls/Yelp/bravado.svg\n  :target: https://coveralls.io/r/Yelp/bravado\n\n.. image:: https://img.shields.io/pypi/v/bravado.svg\n    :target: https://pypi.python.org/pypi/bravado/\n    :alt: PyPi version\n\n.. image:: https://img.shields.io/pypi/pyversions/bravado.svg\n    :target: https://pypi.python.org/pypi/bravado/\n    :alt: Supported Python versions\n\nBravado\n==========\n\nAbout\n-----\n\nBravado is a Yelp maintained fork of `digium/swagger-py \u003chttps://github.com/digium/swagger-py/\u003e`__\nfor use with `OpenAPI Specification version 2.0 \u003chttps://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md\u003e`__ (previously\nknown as Swagger).\n\nFrom the OpenAPI Specification project:\n\n    The goal of The OpenAPI Specification is to define a standard,\n    language-agnostic interface to REST APIs which allows both humans and\n    computers to discover and understand the capabilities of the service\n    without access to source code, documentation, or through network traffic\n    inspection.\n\nClient libraries can automatically be generated from the OpenAPI specification,\nhowever Bravado aims to be a complete replacement for code generation\n(`swagger-codegen \u003chttps://github.com/wordnik/swagger-codegen\u003e`__).\n\nExample Usage\n-------------\n\n.. code-block:: Python\n\n    from bravado.client import SwaggerClient\n    client = SwaggerClient.from_url('http://petstore.swagger.io/v2/swagger.json')\n    pet = client.pet.getPetById(petId=1).response().result\n\nExample with Basic Authentication\n---------------------------------\n\n.. code-block:: python\n\n    from bravado.requests_client import RequestsClient\n    from bravado.client import SwaggerClient\n\n    http_client = RequestsClient()\n    http_client.set_basic_auth(\n        'api.yourhost.com',\n        'username', 'password'\n    )\n    client = SwaggerClient.from_url(\n        'http://petstore.swagger.io/v2/swagger.json',\n        http_client=http_client,\n    )\n    pet = client.pet.getPetById(petId=1).response().result\n\nExample with Header Authentication\n----------------------------------\n\n.. code-block:: python\n\n    from bravado.requests_client import RequestsClient\n    from bravado.client import SwaggerClient\n\n    http_client = RequestsClient()\n    http_client.set_api_key(\n        'api.yourhost.com', 'token',\n        param_name='api_key', param_in='header'\n    )\n    client = SwaggerClient.from_url(\n        'http://petstore.swagger.io/v2/swagger.json',\n        http_client=http_client,\n    )\n    pet = client.pet.getPetById(petId=1).response().result\n\nExample with Fido Client (Async Http Client)\n--------------------------------------------\n\n.. code-block:: python\n\n    # Install bravado with fido extra (``pip install bravado[fido]``)\n    from bravado.fido_client import FidoClient\n    from bravado.client import SwaggerClient\n\n    http_client = FidoClient()\n    client = SwaggerClient.from_url(\n        'http://petstore.swagger.io/v2/swagger.json',\n        http_client=http_client,\n    )\n    pet = client.pet.getPetById(petId=1).response().result\n\nDocumentation\n-------------\n\nMore documentation is available at http://bravado.readthedocs.org\n\nInstallation\n------------\n\n.. code-block:: bash\n\n    # To install bravado with Synchronous Http Client only.\n    $ pip install bravado\n\n    # To install bravado with Synchronous and Asynchronous Http Client (RequestsClient and FidoClient).\n    $ pip install bravado[fido]\n\nDevelopment\n===========\n\nCode is documented using `Sphinx \u003chttp://sphinx-doc.org/\u003e`__.\n\n`virtualenv \u003chttps://virtualenv.readthedocs.io/en/latest/\u003e`__. is\nrecommended to keep dependencies and libraries isolated.\n\nSetup\n-----\n\n.. code-block:: bash\n\n    # Run tests\n    tox\n\n    # Install git pre-commit hooks\n    tox -e pre-commit install\n\nContributing\n------------\n\n1. Fork it ( http://github.com/Yelp/bravado/fork )\n2. Create your feature branch (``git checkout -b my-new-feature``)\n3. Add your modifications\n4. Commit your changes (``git commit -m \"Add some feature\"``)\n5. Push to the branch (``git push origin my-new-feature``)\n6. Create new Pull Request\n\nReleasing a new version (Yelpers only)\n--------------------------------------\nSee https://yelpwiki.yelpcorp.com/pages/viewpage.action?pageId=19022447\n\nLicense\n-------\n\nCopyright (c) 2013, Digium, Inc. All rights reserved.\nCopyright (c) 2014-2021, Yelp, Inc. All rights reserved.\n\nBravado is licensed with a `BSD 3-Clause\nLicense \u003chttp://opensource.org/licenses/BSD-3-Clause\u003e`__.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyelp%2Fbravado","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyelp%2Fbravado","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyelp%2Fbravado/lists"}