skillfed

URLObject

A utility class for manipulating URLs.

urlobject v3.0.0 561.5K downloads/30d#5,995 on PyPI188
Permissive license AGING released

What it is and what it does

URLObject is a utility library for working with URLs in Python. It provides a class-based interface to parse, inspect, and construct URLs by exposing their components (scheme, host, path, query parameters, etc.) as properties and methods. The library aims for a clearer, more explicit API compared to its predecessor, avoiding operator overloads in favor of named methods. It has no runtime dependencies and supports Python 3.8 through 3.13.

The package is useful when you need to programmatically build or decompose URLs, extract or modify query parameters, or validate URL structure. It sits between the standard library's urllib and more specialized URL libraries, offering a middle ground of convenience without heavy dependencies.

Use it for:

  • Extract and modify query parameters from URLs in web scrapers or API clients.
  • Programmatically construct URLs with dynamic paths and query strings in web applications.
  • Parse and validate URL components in request handlers or URL routers.
  • Normalize or transform URLs for logging, caching, or comparison purposes.
  • Build URLs for HTTP requests in integration tests or automation scripts.

Worth the install?

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

URLObject provides a utility class for parsing, constructing, and manipulating URLs with a clear API focused on proper method names rather than operator overloads.

Yes, for straightforward URL manipulation tasks. The package is stable (Production/Stable classifier), has no dependencies, installs easily, and carries no licensing restrictions. The aging maintenance status (399 days since release) is a minor concern but not a blocker—the code is mature and the repository remains active. Install it if you prefer a cleaner API over urllib for URL construction and inspection.

Install

urlobject on PyPI

pip

pip install urlobject

uv

uv add urlobject

poetry

poetry add urlobject

Installing URLObject

Before you install

Low friction installation with no runtime dependencies. Maintenance status is aging—last release was 399 days ago, though the repository remains active with a recent commit on 2025-07-11 and 188 stars.

License in practice

Released into the public domain under the Unlicense, with bundled six library under MIT. No licensing restrictions on use, modification, or distribution for any purpose.

Quickstart

pip install URLObject

from urlobject import URLObject

url = URLObject('https://example.com/path?key=value')
print(url.scheme, url.host, url.path)

Verify before relying

  • Whether the aging maintenance status (399 days since last release) affects compatibility with the latest Python versions listed in classifiers.
  • Performance characteristics when handling very large or malformed URLs.
  • Whether the bundled six library is still necessary given modern Python 3 support.

Package facts

License not declared (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance aging — 399 days since the last release
Last repo commit
First released
Downloads 561,457/month — #5,995 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: urlobject-3.0.0-py3-none-any.whl

Keywords: URLObject

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: Public DomainProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

url parsing and manipulationurl builder utilityconstruct urls programmaticallyurl query string handlingurl component extractionurl validation and normalizationhttp url utilities
url-handlingno-dependencies

More Utilities packages