purl
An immutable URL class for easy URL-building and manipulation
Decision gist · record as of 2026-08-14
Yes, if you need lightweight URL manipulation without dependencies and can accept that the project is no longer maintained. The API is clean and the library is stable for basic URL building and parsing. No, if you require active maintenance, security updates, or support for the latest Python features—consider urllib.parse for standard library alternatives or a more actively maintained URL library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with no runtime dependencies.
- The project is marked abandoned with the last commit in 2023, so expect no active maintenance or security updates.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2021-05-15 (1917 days) · last repo commit 2023-08-04 · 303 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 476,992 downloads/mo, #6,444 on PyPI
Alternatives
Verify before relying
from purl import URL
u = URL('https://www.google.com/search?q=testing')
print(u.query_param('q')) # 'testing'
new_url = u.path('/new').query_param('q', 'updated')
print(new_url.as_string())- Whether the package remains compatible with Python versions released after 2021.
- Whether RFC 6570 template expansion handles all edge cases in modern use.
- Current stability and real-world usage patterns given the abandoned maintenance status.
What it is and what it does
purl is a lightweight URL manipulation library that wraps Python's URL handling in an immutable, fluent API. You construct URLs from strings or keyword arguments, then interrogate or mutate them through chainable methods—each mutation returns a new instance, so URLs can safely be used as dictionary keys or pickled. The library also implements RFC 6570 URI template expansion for dynamic URL generation.
Typical use is building query strings, extracting URL components, or transforming URLs step-by-step without managing raw strings. It has no runtime dependencies and was designed to work across Python 2.7 and Python 3 versions, though the project has not been actively maintained since its latest release on 2021-05-15.
Use it for
- Build query strings and URLs programmatically without string concatenation or manual encoding.
- Extract and manipulate URL components (scheme, host, path, query params) with a readable API.
- Use URLs as dictionary keys or in sets, since instances are immutable and hashable.
- Expand RFC 6570 URI templates with variable substitution for dynamic endpoint construction.
- Parse and modify existing URLs while preserving structure and handling special characters.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need lightweight URL manipulation without dependencies and can accept that the project is no longer maintained.
The API is clean and the library is stable for basic URL building and parsing. No, if you require active maintenance, security updates, or support for the latest Python features—consider urllib.parse for standard library alternatives or a more actively maintained URL library.
Install
purl on PyPI
Before you install
Installation is straightforward with no runtime dependencies. The project is marked abandoned with the last commit in 2023, so expect no active maintenance or security updates.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
from purl import URL
u = URL('https://www.google.com/search?q=testing')
print(u.query_param('q')) # 'testing'
new_url = u.path('/new').query_param('q', 'updated')
print(new_url.as_string())
Verify before relying
- Whether the package remains compatible with Python versions released after 2021.
- Whether RFC 6570 template expansion handles all edge cases in modern use.
- Current stability and real-world usage patterns given the abandoned maintenance status.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,917 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 476,992 / month, #6,444 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: purl-1.6-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “URL parsing and building”
- purlProvides an immutable, chainable URL class for constructing, parsing,…
- can-adaParses and manipulates URLs according to the WHATWG specification,…
- furlfurl parses and manipulates URLs by providing a simple…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also packageurl-python · uritemplate · uri-template · std-uritemplate · hyperlink · URLObject · furl · query-string · urlpath · url-normalize