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

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

Uploaded Python 3

File details

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

File metadata

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

Hashes for url_sanitize-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c1096d05a60ba33e8e09cf9f9a9274418e9561156784db168fe983ae862bb1c1
MD5 9e2c1aa6957c18b347b4e92be44d6133
BLAKE2b-256 cbfd60ccb4094d91f0104db0a2166675b5d26e71d850443cb8f42c752d7e88eb

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: url_sanitize-2.0.0-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-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73994ca348d40e26574407c5c097d35b5b921e49422e1cabd9f916f5f650ea21
MD5 6af345eb880c87d7b25674c23764856d
BLAKE2b-256 7fc9061e0eee4f72ba21543c8d431efac5cdd7789e011643497fb68cf222c6d3

See more details on using hashes here.

Provenance

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