Skip to main content

Fast UTM parameter parsing library for Python

Project description

tanstack-utm-parse

Fast UTM parameter parsing library for Python

PyPI License: MIT

🌐 Links

Installation

pip install tanstack-utm-parse

Quick Start

from utm_parse import parse_utm_from_url

# Parse UTM from URL
params = parse_utm_from_url("https://example.com?utm_source=google&utm_campaign=spring")

print(params.source)    # google
print(params.medium)    # cpc
print(params.campaign)  # spring

Features

  • 🚀 Fast parsing
  • 🔍 Auto-detect platform from click IDs (gclid, fbclid, etc.)
  • 📦 Zero dependencies
  • 🐍 Pure Python

API

parse_utm_from_url(url)

Parse UTM parameters from a URL string.

params = parse_utm_from_url("https://example.com?utm_source=twitter&utm_medium=social")

normalize(params)

Trim whitespace from parameters.

from utm_parse import parse_utm_from_url, normalize

params = normalize(parse_utm_from_url(url))

License

MIT © Huifer

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

tanstack_utm_parse-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

tanstack_utm_parse-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file tanstack_utm_parse-0.1.0.tar.gz.

File metadata

  • Download URL: tanstack_utm_parse-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for tanstack_utm_parse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9584f68c275f1d54e0599a2eb63c00f85f2403a024ec96fd59e77ea0a271e79a
MD5 3538fada6cf58570ee37221a27f1aa68
BLAKE2b-256 ccdfb5d7e51f8bbe021a9205cf3d92a0aca93fb65214cfc62b9bc965a4b6aa31

See more details on using hashes here.

File details

Details for the file tanstack_utm_parse-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tanstack_utm_parse-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d501d06dd1cf6ec8c4f36c1a451be689a46a6f308ca6e99baafb27ed9a5927f5
MD5 0b0d9168ad491ce7655baf6f045259d2
BLAKE2b-256 0bb5db5225a27b5381c70a0b8fe75755753ba42c17fd0879d7783b5bad24c9c7

See more details on using hashes here.

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