Skip to content

A pyswagger wrapper for pythonic swagger client bindings

License

Notifications You must be signed in to change notification settings

u8sand/PySwaggerClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A pyswagger wrapper for pythonic swagger client bindings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages