Skip to main content

urlz

GitHub Workflow Status PyPI - Python Version PyPI

urlz is a simple URL parsing library that provides Pathlib-like usage to URLs in Python:

>>>> from urlz import URL
>>>> url = URL("https://wordbrew.io")
>>>> str(url / "about" / "index.html")
'https://wordbrew.io/about/index.html'

It also provides a special URL-building function urlify:

>>>> from urlz import urlify
>>>> urlify("https://wordbrew.io", "about", "index.html")
'https://wordbrew.io/about/index.html'

# with querystring params:
>>>> urlify("https://wordbrew.io", "search", params={"q": "hello world"})
'https://wordbrew.io/search?q=hello+world'

Installation

pip install urlz

TODO

  • QS param helpers
  • Path replacements (e.g. url.replace(path="/new/stuff/"))
  • Validation helpers

Alternatives

For more URL-parsing fun, check out these libraries:

Metadata

Release files for urlz 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urlz 0.1.2
File Size Uploaded
urlz-0.1.2.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for urlz 0.1.2
File Interpreter ABI Platform
urlz-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 7.8 kB

Release files / urlz-0.1.2.tar.gz

Download URL urlz-0.1.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c6430923d482db11301208cd04f10496627da71f9fdde79acfa8d648af9ef3b6
BLAKE2b-256 checksum
How to use checksums
f1df62bb2e98c675c2929d993a2d17e9dce00fd8c194283b9f11e801e229bb70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.2

Release files / urlz-0.1.2-py2.py3-none-any.whl

Download URL urlz-0.1.2-py2.py3-none-any.whl
Size 3.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f75138004f70b1c372d0a1b30d07288a8a3dcb19b4bddd4a60ea7c795a511e69
BLAKE2b-256 checksum
How to use checksums
63b5e06e2df672768c62b950d0b47ff15098b7512e98d4bbf79b4c9c518fe8fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page