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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6c52ee195152ae8a5355599eef9cdf5381260abdc3854e3fc87232579340943
|
|
| MD5 |
94522979b0008e362112dfac9dbe5dd7
|
|
| BLAKE2b-256 |
f0fd3ea7f6839c09609d00d1e09f90d8154cfe3c8c05c1c7b75c202df6522aa5
|
Provenance
The following attestation bundles were made for altertable-0.2.0.tar.gz:
Publisher:
release-please.yml on altertable-ai/altertable-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
altertable-0.2.0.tar.gz -
Subject digest:
a6c52ee195152ae8a5355599eef9cdf5381260abdc3854e3fc87232579340943 - Sigstore transparency entry: 1068103317
- Sigstore integration time:
-
Permalink:
altertable-ai/altertable-python@a803350870ab327828e52a7cd06aa73cdaceaee4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/altertable-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@a803350870ab327828e52a7cd06aa73cdaceaee4 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff6a8d2ce662f5994f8c4120635a3b20787d43973af95345d9a27f0df06b1234
|
|
| MD5 |
242e431c9c8b0a326fd4d3242bb4e646
|
|
| BLAKE2b-256 |
504e5ab9a6897f97d21f671c5174a429000c8df753235f2fe30a093b440cf05f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
altertable-0.2.0-py3-none-any.whl -
Subject digest:
ff6a8d2ce662f5994f8c4120635a3b20787d43973af95345d9a27f0df06b1234 - Sigstore transparency entry: 1068103363
- Sigstore integration time:
-
Permalink:
altertable-ai/altertable-python@a803350870ab327828e52a7cd06aa73cdaceaee4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/altertable-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@a803350870ab327828e52a7cd06aa73cdaceaee4 -
Trigger Event:
push
-
Statement type: