Skip to main content

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.7

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

Source distribution (sdist)

Source distribution for url-sanitize 2.0.7
File Size Uploaded Provenance Actions
url_sanitize-2.0.7.tar.gz 357.6 kB With provenance Details for url_sanitize-2.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for url-sanitize 2.0.7
File Interpreter ABI Platform Actions
url_sanitize-2.0.7-py3-none-any.whl Python 3 none any Details for url_sanitize-2.0.7-py3-none-any.whl

Total release size: 361.7 kB

Release files / url_sanitize-2.0.7.tar.gz

Download URL url_sanitize-2.0.7.tar.gz
Size 357.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1c3401030a4f6f1cf90bcb9d5932b842fdcc3abd0bf16f911dd1daa0e313e692
BLAKE2b-256 checksum
How to use checksums
fe38f898d15c4efe3b79c702bf723c48324948a8faaa9c9de71f4f429e5e07be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / url_sanitize-2.0.7-py3-none-any.whl

Download URL url_sanitize-2.0.7-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c15b260a872d8005d73e6361fe43af6e091a353d06cf9f20b6fe5d083606010c
BLAKE2b-256 checksum
How to use checksums
4775cbd9a05f9a13f5f3a5bab2ebe336f9c4420d6b7a7d0e4641b01a9840ea09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Security for url-sanitize 2.0.7

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for url_sanitize-2.0.7.tar.gz

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 Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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