Skip to main content

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.

Metadata

Release files for altertable 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for altertable 0.2.0
File Size Uploaded Provenance Actions
altertable-0.2.0.tar.gz 3.0 kB With provenance Details for altertable-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for altertable 0.2.0
File Interpreter ABI Platform Actions
altertable-0.2.0-py3-none-any.whl Python 3 none any Details for altertable-0.2.0-py3-none-any.whl

Total release size: 6.9 kB

Release files / altertable-0.2.0.tar.gz

Download URL altertable-0.2.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a6c52ee195152ae8a5355599eef9cdf5381260abdc3854e3fc87232579340943
BLAKE2b-256 checksum
How to use checksums
f0fd3ea7f6839c09609d00d1e09f90d8154cfe3c8c05c1c7b75c202df6522aa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 9, 2026.

Transparency log

Release files / altertable-0.2.0-py3-none-any.whl

Download URL altertable-0.2.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff6a8d2ce662f5994f8c4120635a3b20787d43973af95345d9a27f0df06b1234
BLAKE2b-256 checksum
How to use checksums
504e5ab9a6897f97d21f671c5174a429000c8df753235f2fe30a093b440cf05f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 9, 2026.

Transparency log

Security for altertable 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for altertable-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page