skillfed

wadllib

Navigate HTTP resources using WADL files as guides.

wadllib v2.1.0 316.3K downloads/30d#7,678 on PyPI
Copyleft license LGPL v3 Active released

What it is and what it does

wadllib is a Python library for working with WADL files—XML documents that formally describe HTTP web services. It parses WADL markup and builds an object model representing the service's resources, methods, parameters, and representations, letting you navigate and query the service structure programmatically.

The library is designed for clients that need to discover and interact with HTTP APIs whose structure is defined in WADL. You load a WADL file by URL or file handle, then navigate from a root resource through linked resources, retrieve method definitions, build request URLs with parameters, and bind actual HTTP response data to WADL resource descriptions to extract typed values. It depends on importlib-resources for resource loading and lazr.uri for URL handling.

Use it for:

  • Build a dynamic HTTP client that discovers API endpoints and methods from a WADL file at runtime.
  • Extract and validate parameter definitions for HTTP requests before making them to a WADL-described service.
  • Navigate a complex REST API by following WADL-defined links between resources without hardcoding URLs.
  • Parse WADL metadata to generate documentation or code stubs for a web service.
  • Bind JSON or XML response data to WADL resource descriptions to access typed fields and linked resources.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Parses and navigates HTTP web services described by WADL (Web Application Description Language) files, allowing you to discover resources, methods, and parameters programmatically.

Yes, if you are working with a WADL-described web service. The package is stable, actively maintained, has low install friction, and carries no known vulnerabilities. However, WADL adoption is limited in modern APIs; verify that your target service actually uses WADL before adding it as a dependency. The copyleft license (LGPL v3) requires derivative works to be similarly licensed.

Install

wadllib on PyPI

pip

pip install wadllib

uv

uv add wadllib

poetry

poetry add wadllib

Installing wadllib

Before you install

Low friction install with only two runtime dependencies (importlib-resources and lazr.uri). Actively maintained as of 44 days ago with stable status.

License in practice

Licensed under LGPL v3 (copyleft). You may use and modify wadllib freely, but any derivative work must also be distributed under LGPL v3 or compatible terms.

Quickstart

pip install wadllib

from wadllib.application import Application

wadl_bytes = open('service.wadl', 'rb').read()
app = Application('http://api.example.com/', wadl_bytes)
resource = app.get_resource_by_path('')

Requires Python 3.8 or later.

Verify before relying

  • Whether WADL is still actively used in modern REST API ecosystems or primarily for legacy systems.
  • Real-world performance characteristics when parsing large or deeply nested WADL documents.

Package facts

License LGPL v3 (copyleft)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 2 — importlib-resources, lazr.uri
Maintenance actively maintained — 44 days since the last release
First released
Downloads 316,275/month — #7,678 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: wadllib-2.1.0-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

WADL parserweb service description languageHTTP API navigationWADL resource discoveryREST API description parsingweb service metadataWADL application client
wadlweb-service-descriptionapi-client

More WWW/HTTP packages