Swagger.py is a Python library to writing Swagger clients and servers.
The code is documented using Epydoc, which allows IntelliJ IDEA to do a better job at inferring types for autocompletion.
To keep things isolated, I also recommend installing (and using) virtualenv. Some scripts are provided to help keep the environments manageable
$ sudo pip install virtualenv
$ ./make-env.sh
$ . activate-env.sh
Setuptools is used for building.
$ ./setup.py develop # prep for development (install deps, launchers, etc.)
$ ./setup.py nosetests # run unit tests
$ ./setup.py bdist_egg # build distributable
Nose is used for unit testing, with the coverage plugin
installed to generated code coverage reports. Pass --with-coverage
to generate the code coverage report. HTML versions of the reports are
put in cover/index.html
.
Copyright (c) 2013, Digium, Inc. All rights reserved.
Swagger.py is licensed with a BSD 3-Clause License.