Skip to main content

Async library for accessing Swagger-enabled APIs

Project description

https://img.shields.io/travis/sjaensch/aiobravado.svg https://img.shields.io/coveralls/sjaensch/aiobravado.svg PyPi version Supported Python versions

Aiobravado

About

Aiobravado is the asyncio version of the bravado library for use with the OpenAPI Specification (previously known as Swagger).

aiobravado requires Python 3.5+ and allows you to use asynchronous programming when interacting with OpenAPI-enabled services. Here’s the breakdown of bravado packages and their use case:

  • bravado - Library to dynamically interact with OpenAPI/Swagger-enabled services. Supports Python 2.7+.

  • fido - HTTP client to enable asynchronous network requests for bravado. Supports Python 2.7+. Depends on twisted. Spins up a separate thread to handle network requests.

  • bravado-asyncio - asyncio-powered asynchronous HTTP client for bravad. Requires Python 3.5+. Spins up a separate thread to handle network requests.

  • aiobravado - asyncio-enabled library to dynamically interact with OpenAPI/Swagger-enabled services. Supports basically all of the features of bravado. Requires Python 3.5+. No additional threads are created.

Example Usage

from aiobravado.client import SwaggerClient
client = await SwaggerClient.from_url('http://petstore.swagger.io/v2/swagger.json')
pet = await client.pet.getPetById(petId=42).result(timeout=5)

Documentation

More documentation is available at http://aiobravado.readthedocs.org

Installation

# To install aiobravado
$ pip install aiobravado

# To install aiobravado with optional packages recommended by aiohttp
$ pip install aiobravado[aiohttp_extras]

Development

Code is documented using Sphinx.

virtualenv is recommended to keep dependencies and libraries isolated.

Setup

# Run tests
tox

# Install git pre-commit hooks
tox -e pre-commit install

Contributing

  1. Fork it ( http://github.com/sjaensch/aiobravado/fork )

  2. Create your feature branch (git checkout -b my-new-feature)

  3. Add your modifications

  4. Add short summary of your modifications on changelog.rst under Upcoming release. Add that entry at the top of the file if it’s not there yet.

  5. Commit your changes (git commit -m "Add some feature")

  6. Push to the branch (git push origin my-new-feature)

  7. Create new Pull Request

License

Copyright (c) 2013, Digium, Inc. All rights reserved. Copyright (c) 2014-2015, Yelp, Inc. All rights reserved.

Aiobravado is licensed with a BSD 3-Clause License.

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

aiobravado-0.9.1.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

aiobravado-0.9.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file aiobravado-0.9.1.tar.gz.

File metadata

  • Download URL: aiobravado-0.9.1.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aiobravado-0.9.1.tar.gz
Algorithm Hash digest
SHA256 7e7aaa1270ece7d00daf28d284785afb44a3ff2a41297b8a248227d437ea02e7
MD5 23ab12b1a70647bd9e2e9922e837d6b0
BLAKE2b-256 3c0d129d1e410edbcbadf62d310b37c4a9f0beb7a1bdcdaa8bfd067431aea4f9

See more details on using hashes here.

Provenance

File details

Details for the file aiobravado-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aiobravado-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e0ec0c2d45ee6306b916f649ac8692488455940cd5d11fc55708f51e64c7313
MD5 65e177ffc0e5dfb64f49dffd79302bfd
BLAKE2b-256 6c3ea32facc03fc6d21af2133288d0e5cc4ed3fcfa7247af0b7a9d1faa6ff5ff

See more details on using hashes here.

Provenance

Supported by

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