Skip to main content

Official Python SDK for Vemetric

Project description

Vemetric Python SDK

The Vemetric SDK for Python

Learn more about the Vemetric Python SDK in the official docs.

You can also checkout the package on PyPI.

PyPI - Version

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.2.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

vemetric-0.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file vemetric-0.2.0.tar.gz.

File metadata

  • Download URL: vemetric-0.2.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

Hashes for vemetric-0.2.0.tar.gz
Algorithm Hash digest
SHA256 06e9488396f22488021289da7eff6928cea18fd4a8b405239ab13557b489bb78
MD5 43085a04be4c7e3ae580c510e5b64dfe
BLAKE2b-256 276c197d04f831a601c339bed056f6e9ac29e542120fb58f10d10dba5ecd7a56

See more details on using hashes here.

File details

Details for the file vemetric-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: vemetric-0.2.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

Hashes for vemetric-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54ac66ada0a3b3a16a20da6feb04edbcd412f058d25ed9af3ceadee59d5dea8d
MD5 8de32baaac63f770c28136a6fa870741
BLAKE2b-256 cdb1914bb78a8fc2d57ac9716429042c6202e1364fa5df24174a64f3bb2a4490

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