Skip to content

A pyswagger wrapper for pythonic swagger client bindings

License

Notifications You must be signed in to change notification settings

soltanoff/PySwaggerClient

 
 

Repository files navigation

PySwaggerClient v2.0

Supported Versions

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

Installation

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

Edge

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

Usage

from pyswaggerclient import SwaggerClient


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

Development

Install dependencies

pip install -r requirements-dev.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

flake8

flake8 - a Python tool that combines pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of Python code.

flake8 .

pylint

pylint - a static code analyzer for Python 2 or 3. It checks for errors, enforces coding standards, attempts to find issues in the code, and can suggest code refactoring options.

pylint pyswaggerclient

safety

safety - a tool designed to check installed dependencies for known vulnerabilities.

echo 'Ignore 70612 / CVE-2019-8341, Jinja2 is a safety dep, not ours'
python -m safety check --ignore 70612

About

A pyswagger wrapper for pythonic swagger client bindings

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%