Skip to main content

Official Python SDK for Altertable Product Analytics

Project description

Altertable Python SDK

Official Python SDK for Altertable Product Analytics.

Installation

You can install the package via pip:

pip install altertable

Or using poetry:

poetry add altertable

Usage

Initialization

from altertable import Altertable

client = Altertable("your_api_key")

Tracking Events

client.track(
    event="button_clicked",
    distinct_id="user_123",
    options={
        "properties": {
            "button_id": "signup_btn",
            "page": "home"
        }
    }
)

Identifying Users

client.identify(
    distinct_id="user_123",
    options={
        "traits": {
            "email": "user@example.com",
            "name": "John Doe"
        },
        "anonymous_id": "previous_anon_id"
    }
)

Alias

client.alias(
    distinct_id="previous_anonymous_id",
    new_user_id="new_user_id"
)

License

The package is available as open source under the terms of the MIT License.

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

altertable-0.2.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

altertable-0.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: altertable-0.2.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for altertable-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a6c52ee195152ae8a5355599eef9cdf5381260abdc3854e3fc87232579340943
MD5 94522979b0008e362112dfac9dbe5dd7
BLAKE2b-256 f0fd3ea7f6839c09609d00d1e09f90d8154cfe3c8c05c1c7b75c202df6522aa5

See more details on using hashes here.

Provenance

The following attestation bundles were made for altertable-0.2.0.tar.gz:

Publisher: release-please.yml on altertable-ai/altertable-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: altertable-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for altertable-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff6a8d2ce662f5994f8c4120635a3b20787d43973af95345d9a27f0df06b1234
MD5 242e431c9c8b0a326fd4d3242bb4e646
BLAKE2b-256 504e5ab9a6897f97d21f671c5174a429000c8df753235f2fe30a093b440cf05f

See more details on using hashes here.

Provenance

The following attestation bundles were made for altertable-0.2.0-py3-none-any.whl:

Publisher: release-please.yml on altertable-ai/altertable-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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