Object-oriented URL classes built on urllib.parse and pathlib for Python 3.9+. Version 2.0.0 switches license from PSF to MIT, drops support for Python 3.4-3.8, and restructures from a single-file module to a multi-module package. Generally stable with infrequent releases.
pip install urlpathVerified import paths — ran on the pinned version, not inferred.
Basic usage of URL class with path joining and query parameters.
Update imports to use the public API from 'urlpath' (e.g., 'from urlpath import URL').
Upgrade Python to 3.9 or later.
Convert URL to string with str(url) or use .url attribute to get the full string representation.
Use 'from urlpath import URL' instead of 'import urlpath' then 'urlpath.URL'.
Create a URL object first: url = URL('https://example.com') then call url.parent().Convert URL to string via str(url) or url.url before passing to non-urlpath functions.
No dependency data recorded yet.