wadllib
Navigate HTTP resources using WADL files as guides.
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 wadllibuv
uv add wadllibpoetry
poetry add wadllibInstalling 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
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
lazr.restfulclientA programmable HTTP client library for…
copyleft · top 15,000 on PyPI
lazr.uriParse, manipulate, and generate URIs with a…
copyleft · top 15,000 on PyPI
httptoolshttptools provides Python bindings for parsing…
permissive · top 1,000 on PyPI
pyactiveresourcePyActiveResource maps Python classes to remote…
permissive · top 5,000 on PyPI
python-http-clientProvides a simplified Python interface for…
permissive · top 1,000 on PyPI
wgetDownloads files from HTTP URLs with progress…
permissive · top 5,000 on PyPI
launchpadliblaunchpadlib provides a Python client library…
copyleft · top 15,000 on PyPI
peakrdl-systemrdlExports a compiled register model into…
copyleft · top 15,000 on PyPI
tls-parserParses TLS records from binary data, extracting…
unclear · top 15,000 on PyPI
redfishA Python library for interacting with…
permissive · top 15,000 on PyPI