Fast UTM parameter parsing library for Python
Project description
tanstack-utm-parse
Fast UTM parameter parsing library for Python
🌐 Links
- Website: https://tanstackship.com
- Documentation: https://tanstackship.com/docs
- PyPI: https://pypi.org/project/tanstack-utm-parse
- Issues: https://github.com/tanstackship/packages/issues
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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9584f68c275f1d54e0599a2eb63c00f85f2403a024ec96fd59e77ea0a271e79a
|
|
| MD5 |
3538fada6cf58570ee37221a27f1aa68
|
|
| BLAKE2b-256 |
ccdfb5d7e51f8bbe021a9205cf3d92a0aca93fb65214cfc62b9bc965a4b6aa31
|
File details
Details for the file tanstack_utm_parse-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tanstack_utm_parse-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d501d06dd1cf6ec8c4f36c1a451be689a46a6f308ca6e99baafb27ed9a5927f5
|
|
| MD5 |
0b0d9168ad491ce7655baf6f045259d2
|
|
| BLAKE2b-256 |
0bb5db5225a27b5381c70a0b8fe75755753ba42c17fd0879d7783b5bad24c9c7
|