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.

Installation

pip install vemetric

Usage

from vemetric import VemetricClient

vemetricClient = VemetricClient(token="YOUR_PROJECT_TOKEN")

vemetricClient.track_event(
  "SignupCompleted",
  user_identifier="user-id",
  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.0.4.tar.gz (3.2 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.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vemetric-0.0.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for vemetric-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b0e3da74ffd8a217b27afade1a0dd7614a4f21f09923a12066df6304614d4e90
MD5 7f4c437d20fc59aab0f14ab7d34f53aa
BLAKE2b-256 96d9a1e204baae462fca5ce5cbfc43430a4ce1b7fde9812001fbca46c6b2c00f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vemetric-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for vemetric-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ddeb03a5cfdbd3e51d61242cc6b361378804fc565df514d24d128f438ae84159
MD5 80663a500b207ae5a1cc54908bde9fd5
BLAKE2b-256 4d1ce2672a14304d9f1bd5e1a3ed3e7f00fe44ba73ece1fd2548bd1e8d7523bc

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