Remove tracking parameters and unwrap tracking redirects from URLs with ClearURLs-compatible rules.
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file url_sanitize-2.0.1.tar.gz.
File metadata
- Download URL: url_sanitize-2.0.1.tar.gz
- Upload date:
- Size: 337.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b38032b2ad5c3ecd2aed8b910e45c711c5b72a1618c681b70fd4a5f93b2e08e
|
|
| MD5 |
c90bc4b9437fb36cfef6d816f732ce4e
|
|
| BLAKE2b-256 |
0ba0e1cf6238b3387daa65acf69123304089ff26d7273f7fee1b17e7ecb5ca0c
|
Provenance
The following attestation bundles were made for url_sanitize-2.0.1.tar.gz:
Publisher:
release.yml on antonio-orionus/url-sanitize
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
url_sanitize-2.0.1.tar.gz -
Subject digest:
1b38032b2ad5c3ecd2aed8b910e45c711c5b72a1618c681b70fd4a5f93b2e08e - Sigstore transparency entry: 1711823621
- Sigstore integration time:
-
Permalink:
antonio-orionus/url-sanitize@8ec7b2b0959bc34e4ae57329457981f0c3f97dc5 -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/antonio-orionus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8ec7b2b0959bc34e4ae57329457981f0c3f97dc5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file url_sanitize-2.0.1-py3-none-any.whl.
File metadata
- Download URL: url_sanitize-2.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6179f2f4754b59391ba9c4243d6262a311fc908d1994c67877b59019090410e8
|
|
| MD5 |
a714b7738267ccd1745a5a5407932d5d
|
|
| BLAKE2b-256 |
fe75a221b8567709988ca308fd3fc8357fd883470bc65d9a6be31611903761f7
|
Provenance
The following attestation bundles were made for url_sanitize-2.0.1-py3-none-any.whl:
Publisher:
release.yml on antonio-orionus/url-sanitize
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
url_sanitize-2.0.1-py3-none-any.whl -
Subject digest:
6179f2f4754b59391ba9c4243d6262a311fc908d1994c67877b59019090410e8 - Sigstore transparency entry: 1711823685
- Sigstore integration time:
-
Permalink:
antonio-orionus/url-sanitize@8ec7b2b0959bc34e4ae57329457981f0c3f97dc5 -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/antonio-orionus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8ec7b2b0959bc34e4ae57329457981f0c3f97dc5 -
Trigger Event:
workflow_dispatch
-
Statement type: