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.

See the install guide 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

url_sanitize-0.1.3.tar.gz (132.1 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.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: url_sanitize-0.1.3.tar.gz
  • Upload date:
  • Size: 132.1 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.3.tar.gz
Algorithm Hash digest
SHA256 a5597365da3b107a656500d877c469dda6f3654da1b1ce3e33e23fbef3d2291c
MD5 bf9f24341dd7c1539e576c2df53c7e92
BLAKE2b-256 bb9ab9ffa257b878ca59f2f6be8be42dd3f72bca99e5b12ab9b99eff5b422737

See more details on using hashes here.

Provenance

The following attestation bundles were made for url_sanitize-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: url_sanitize-0.1.3-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

Hashes for url_sanitize-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bee446ab28cada55564fada02f31c6a4f68943a2fbb5c376a79b071406cc60a0
MD5 978213da402152017de3fc3b5ad54d99
BLAKE2b-256 6af375288377742f3941f1016378a7872a1b0d009ad3bb4191d79d2dd12f30bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for url_sanitize-0.1.3-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