Skip to content

vemetric/vemetric-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
)

About

Official Python SDK for Vemetric

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages