Skip to main content

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.

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.

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

url_sanitize-0.1.2.tar.gz (123.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

url_sanitize-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file url_sanitize-0.1.2.tar.gz.

File metadata

  • Download URL: url_sanitize-0.1.2.tar.gz
  • Upload date:
  • Size: 123.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for url_sanitize-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c5afcb4ae84288038efb399d283026b6a44bcf7337e719a5b26d5ff3d5c5c1f8
MD5 7a60c1144eafd6d2dbe5db4e7a3713b1
BLAKE2b-256 fe96dbd0a54a59ce1f9f455be35656368dec025b4fdb03a9e42108b436f471d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for url_sanitize-0.1.2.tar.gz:

Publisher: release.yml on antonio-orionus/url-sanitize

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file url_sanitize-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: url_sanitize-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for url_sanitize-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d9fe87a7ebf4bc43ae4bed4ff06fc2d5d29a8dd13579c818081f7722c50641
MD5 49b282d9fef5b105887de3e66e99124d
BLAKE2b-256 265dad23cb64400d765157ade74aa4cc1c454148ce70d375fc804c3a385357bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for url_sanitize-0.1.2-py3-none-any.whl:

Publisher: release.yml on antonio-orionus/url-sanitize

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page