Umami Analytics Client for Python
Project description
Umami Analytics Client for Python
Analytics client for privacy-preserving, open source Umami platform based on
httpx
and pydantic
.
Partially implemented
Implemented endpoints:
POST /api/auth/login
aslogin_async
andlogin
POST /api/auth/verify
asverify_token_async
andverify_token
GET /api/websites
aswebsites_async
andwebsites
POST /api/send
asnew_event_async
andnew_event
See the API documentation for the remaining endpoints to be added (PRs welcome).
Installation
Just pip install umami-analytics
Usage
import umami
umami.set_url_base(analytics_server_url)
login = umami.login(user, password)
websites = umami.websites()
site = [w for w in websites if w.domain == site_domain][0]
event_resp = umami.new_event(
website_id=site.id,
event_name='Umami-Test',
title='Umami-Test',
hostname=site.domain,
url='/users/actions',
custom_data={'client': 'umami-tester-v1'},
referrer='https://some_url')
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
umami_analytics-0.1.5.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file umami_analytics-0.1.5.tar.gz
.
File metadata
- Download URL: umami_analytics-0.1.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb6f85bbaa0127ccc4708ebaec4aae92e18aa4b71957ad26eab52b0680afb5f9 |
|
MD5 | 1ccc68f644060aebbcf4ac8e6c048b0d |
|
BLAKE2b-256 | 94cdefdd5a4fdf60f863c2f49094106f2c1c70b89d7d625b70b9bbd6fe7affb4 |
File details
Details for the file umami_analytics-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: umami_analytics-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87fe910ed465d3422d2a89540db3aa4009447d2ec956647bb15c7b6021cde43e |
|
MD5 | 71e4f593b2e40d539e676cb6a9d2b387 |
|
BLAKE2b-256 | ab49075d3f12c3dd9051710c570a0603ed39f4a4b6fabbc69b2f381a0cebdd7d |