Official Python SDK for Vemetric
Project description
The Vemetric SDK for Python
Learn more about the Vemetric Python SDK in the official docs.
You can also checkout the package on PyPI.
Installation
pip install vemetric
Usage
from vemetric import VemetricClient
vemetricClient = VemetricClient(token="YOUR_PROJECT_TOKEN")
vemetricClient.track_event(
"SignupCompleted",
user_identifier="user-id",
user_display_name="John Doe",
event_data={"key": "value"},
)
vemetricClient.update_user(
"user-id",
user_data={
"set": {"key1": "value1"},
"setOnce": {"key2": "value2"},
"unset": ["key3"]
},
)
Configuration
The client can be configured with the following options:
vemetricClient = VemetricClient(
token="YOUR_PROJECT_TOKEN", # Required
host="https://hub.vemetric.com", # Optional, defaults to https://hub.vemetric.com
timeout=2.0, # Optional, default to 2 seconds
session=requests.Session(), # Optional, defaults to None, creating a new one
)
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
vemetric-0.1.0.tar.gz
(3.3 kB
view details)
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 vemetric-0.1.0.tar.gz.
File metadata
- Download URL: vemetric-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8134576214b32da2fa4a5b6021f8ffab41ae0a759812016657bcfa47b9e9988e
|
|
| MD5 |
95aa8b6775d4aaae5521fadefc3ecb43
|
|
| BLAKE2b-256 |
54ac9bac6a81085cc3e9e583afbfdaac7ac6f61f455ca376baab43a8744ea1d3
|
File details
Details for the file vemetric-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vemetric-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0b15ae521014fa7aff9287b3b3764d72d8f29f282fd3c32ddc32de57e876b41
|
|
| MD5 |
2a1bbbd3629569509dbe06fe8a3a9980
|
|
| BLAKE2b-256 |
f0c3692b12e62cf43051e1a90ea5d5188b3827c300801ec05e58ec76c01b33f4
|