Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Convert WADL to Swagger

Project Description

wadl2swagger |PyPI|

wadl2swagger is a command line tool for converting WADL_ description of an API into Swagger_. It's intended to work with generic WADL documents as much as possible, but some of the conversion is mapped to conventions used in OpenStack WADL rather concepts defined in the WADL standard itself.


wadl2swagger can be installed (and updated) from PyPI using `pip`_:

.. code-block:: bash

$ pip install --upgrade wadl2swagger

Conversely, it can be uninstalled using `pip`_ as well.

.. code-block:: bash

$ pip uninstall wadl2swagger


wadl2swagger provides two utilities. The ``wadlcrawler`` utility can be used to fetch WADL files off a website. For example:

.. code-block:: bash

$ wadlcrawler
INFO:root:Downloading to wadls/OS-KSADM-admin.wadl
INFO:root:Downloading to wadls/RAX-AUTH.wadl
INFO:root:Downloading to wadls/RAX-KSKEY-admin.wadl
INFO:root:Downloading to wadls/autoscale.wadl
INFO:root:Downloading to wadls/cbd-devguide.wadl
INFO:root:Downloading to wadls/cloud_monitoring.wadl
INFO:root:Downloading to wadls/cq-devguide.wadl

Now that you have a set of WADL files, you can use wadl2swagger to convert them:

.. code-block:: bash

$ wadl2swagger --autofix wadls/*.wadl --swagger-dir swagger/
Saving swagger to swagger/OS-KSADM-admin.yaml
Saving swagger to swagger/RAX-AUTH.yaml
Saving swagger to swagger/RAX-KSKEY-admin.yaml
Saving swagger to swagger/autoscale.yaml
Saving swagger to swagger/cbd-devguide.yaml
Saving swagger to swagger/cq-devguide.yaml


See ``wadlcrawler -h`` and ``wadl2swagger -h`` for a full list of options. Some important options are below.


Tells wadl2swagger to detect and attempt to fix common problems, like inferring a default value for a required Swagger concept that is optional and not specified in one of the WADLs. If you don't use this option than wadl2swagger may fail until you clean up your WADL files.

``--wadl-dir WADL_DIR``

The directory to save WADL files to when downloading via wadlcrawler.

``--swagger-dir SWAGGER_DIR``

The directory to save Swagger files to when converting via wadl2swagger.




wadl2swagger is licensed under the `Apache License`_.

.. |PyPI| image::
:alt: PyPI Version

.. _pip:
.. _WADL:
.. _Swagger:
.. _Apache License:

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(15.1 kB) Copy SHA256 Hash SHA256
any Dumb Binary Nov 13, 2014
(10.2 kB) Copy SHA256 Hash SHA256
2.7 Wheel Nov 13, 2014
(8.0 kB) Copy SHA256 Hash SHA256
Source Nov 13, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting