wadllib

A Python library for navigating WADL files
Download

wadllib Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL v3
  • Price:
  • FREE
  • Publisher Name:
  • LAZR Developers
  • Publisher web site:
  • https://launchpad.net/~lazr-developers

wadllib Tags


wadllib Description

A Python library for navigating WADL files The Web Application Description Language is an XML vocabulary for describing the capabilities of HTTP resources. wadllib can be used in conjunction with an HTTP library to navigate and manipulate those resources.An Application object represents a web service described by a WADL file.>>> import os>>> import sys>>> import pkg_resources>>> from wadllib.application import ApplicationThe first argument to the Application constructor is the URL at which the WADL file was found. The second argument may be raw WADL markup.>>> wadl_string = pkg_resources.resource_string(... 'wadllib.tests.data', 'launchpad-wadl.xml')>>> wadl = Application("http://api.launchpad.dev/beta/", wadl_string)Or the second argument may be an open filehandle containing the markup.>>> wadl_stream = pkg_resources.resource_stream(... 'wadllib.tests.data', 'launchpad-wadl.xml')>>> wadl = Application("http://api.launchpad.dev/beta/", wadl_stream) Requirements: · Python What's New in This Release: · Remove unnecessary build dependencies. · Add missing dependencies to setup file. · Remove sys.path hack from setup.py.


wadllib Related Software