url-sanitize
Python wrapper for the native url-sanitize CLI, which uses the merged
ClearURLs, AdGuard, Brave, and Firefox catalog by default.
pip install url-sanitize
cargo install url-sanitize
python -m url_sanitize "https://example.com/?utm_source=x"
from url_sanitize import sanitize
result = sanitize("https://example.com/?utm_source=x")
print(result["url"])
The package shells out to the same Rust binary used by crates.io,
Homebrew/Scoop, and GitHub Release downloads. Set
URL_SANITIZE_BIN=/path/to/url-sanitize or put url-sanitize on PATH.
See the root README for OS-specific native binary commands.
Metadata
Release files for url-sanitize 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| url_sanitize-2.0.2.tar.gz | 337.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| url_sanitize-2.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 341.6 kB
Release files / url_sanitize-2.0.2.tar.gz
| Download URL | url_sanitize-2.0.2.tar.gz |
|---|---|
| Size | 337.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3dba709b8c904dd24cbad350700bcd2cc62e50505fa0ad981663752eadc6102
|
|
BLAKE2b-256 checksum How to use checksums |
93e086d7358f3f8064357d31bfbd169c76cf070e61506e84ee96398d17e6743e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.
Transparency logRelease files / url_sanitize-2.0.2-py3-none-any.whl
| Download URL | url_sanitize-2.0.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e52f7a924b30c23547446dbceaea8befb74bfae5921c5778b3fea68cc2dd28c9
|
|
BLAKE2b-256 checksum How to use checksums |
2f0ec835dd98067f925bd54089988f5198edbbe770d75b856640f824ad68b76f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.
Transparency log