urlpy
Simple URL parsing, canonicalization and equivalence.
Decision gist · record as of 2026-08-14
Yes, if you need URL normalization and equivalence testing in a lightweight package with low install friction and permissive licensing. However, dormant maintenance (last release 2020-04-28) means you should verify compatibility with your Python version and be prepared to fork or patch if issues arise. Not suitable if you require active support or expect the package to evolve.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single pure-Python dependency.
- Maintenance is dormant—last release was 2020-04-28 with no commits since 2024-08-21—so expect no active bug fixes or feature updates.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions; you may use, modify, and distribute freely provided you retain the license notice.
last release 2020-04-28 (2299 days) · last repo commit 2024-08-21 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 125,109 downloads/mo, #11,836 on PyPI
Alternatives
Verify before relying
import urlpy
myurl = urlpy.parse('http://foo.com/?b=2&a=1#fragment')
result = str(myurl.defrag().deparam(['b']).canonical())- Whether the package works reliably on modern Python versions (python_support is unspecified)
- Whether publicsuffix2 dependency remains actively maintained and compatible with current ecosystems
What it is and what it does
urlpy is a pure-Python URL parser and normalizer that provides a chainable API for manipulating and comparing URLs. At its core is a URL object created by parsing a string; you can then chain methods like defrag(), deparam(), escape(), punycode(), and abspath() to transform the URL into a canonical form. The package also supports URL equivalence testing via the equiv() method, which treats URLs as functionally equivalent even when they differ in case, parameter order, default ports, or punycode encoding.
The library depends on publicsuffix2 for domain suffix handling and is designed to work on both Python 2 and Python 3 using only pure Python code. It offers fine-grained control over URL components (scheme, host, port, path, query, fragment) and supports operations like removing tracking parameters, normalizing paths with .. and . resolution, and converting non-ASCII characters to percent-encoded UTF-8.
Use it for
- Deduplicate URLs by using equiv() to identify functionally identical URLs despite cosmetic differences
- Clean tracking parameters like utm_source and session IDs from URLs before storing or comparing
- Normalize URLs to canonical form for indexing, caching, or URL-based deduplication in data pipelines
- Escape and punycode international domain names and paths for consistent HTTP requests
- Resolve relative URL paths with .. and . segments to absolute paths for validation or comparison
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need URL normalization and equivalence testing in a lightweight package with low install friction and permissive licensing.
However, dormant maintenance (last release 2020-04-28) means you should verify compatibility with your Python version and be prepared to fork or patch if issues arise. Not suitable if you require active support or expect the package to evolve.
Install
urlpy on PyPI
Before you install
Low install friction with a single pure-Python dependency. Maintenance is dormant—last release was 2020-04-28 with no commits since 2024-08-21—so expect no active bug fixes or feature updates.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions; you may use, modify, and distribute freely provided you retain the license notice.
Quickstart
import urlpy
myurl = urlpy.parse('http://foo.com/?b=2&a=1#fragment')
result = str(myurl.defrag().deparam(['b']).canonical())
Verify before relying
- Whether the package works reliably on modern Python versions (python_support is unspecified)
- Whether publicsuffix2 dependency remains actively maintained and compatible with current ecosystems
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepublicsuffix2 |
| Maintenance | Dormant 2,299 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 125,109 / month, #11,836 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseTopic :: Internet :: WWW/HTTP |
Evidence: urlpy-0.5-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 canonicalization”
- urlpyurlpy parses, normalizes, and compares URLs with support for…
- urlcanonParses and normalizes URLs according to WHATWG browser standards,…
- courlanValidates, normalizes, filters, and samples URLs for web crawling and…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also url-normalize · urlcanon · furl · urlpath · domain2idna · pyfaup-rs · pyuri · rfc3986-validator · publicsuffixlist · tldextract