A pyswagger wrapper for pythonic swagger client bindings
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pyswaggerclient
.gitignore
LICENSE
README.md
requirements.txt
setup.py

README.md

PySwaggerClient

A pyswagger wrapper for pythonic swagger client bindings. Exposes the API to python complete with tab-completion, documentation, and seamless programatic access.

Installation

# stable
pip install https://github.com/u8sand/PySwaggerClient/archive/v1.0.zip
# optional for openapi-3 version handling
npm install -g api-spec-converter

Edge

pip install --upgrade https://github.com/u8sand/PySwaggerClient/archive/master.zip

Usage

from pyswaggerclient import SwaggerClient

client = SwaggerClient('your_swagger_url', headers={
  'auth': 'whatever',
  'if': 'necessary'
})
client.actions.your_op_id.call(your=params)

Development

Install dependencies

pip install -r requirements.txt

api-spec-converter is an optional npm dependency for openapi 3 spec conversions. You can get it with:

npm install -g api-spec-converter