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.

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.3.tar.gz (4.8 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.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vemetric-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5917bdd482f418763c7276cbc76f5bd95eadd5aacf903de44262d4fcb4f921a0
MD5 5a375c225d0121fa58944f7cdab37825
BLAKE2b-256 98b28549c826b8aaebde64b48a689c1968e9e8d7918c77067b763164f0775b09

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for vemetric-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f7ba2c93619825d035267e7a979ade3501d9d8f454ea87228c270ac5b835b2be
MD5 605ba598136cbc54576b66770168fdff
BLAKE2b-256 2aaa6a39ea83b5053ed01a49add56219c763c106837e9d41881a58a7743c039f

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