Skip to main content

snekot-events

The Snekot SDK for Python. Post product events, get them as push notifications, identify users and set insights.

One module, standard library only. Python 3.8 or newer.

pip install snekot-events

Use

from snekot_events import Client

events = Client(token=token, project="acme-store")

events.track(channel="payments", event="New subscription", icon="💰", notify=True, tags={"plan": "pro"})
events.identify(user_id="user-123", properties={"plan": "pro"})
events.group("acme", user_id="user-123", properties={"name": "Acme"})
events.subscribe("jane@example.com", name="Jane Park")
events.insight.track(title="MRR", value="$1,289")
events.insight.increment(title="Orders", value=1)

experiment asks which variant of an A/B test a person gets:

variant = events.experiment("pricing-page", ["control", "annual-first"], user_id="user-123")

Use a private key (sk_…) on a server. Keys are made in the app under Setup; see Keys.

Behaviour

  • Calls block, and one attempt may take 10 seconds (timeout, in seconds).
  • A network failure or a server error is retried once, after a quarter of a second, then raises Unreachable.
  • A refusal (a 4xx, such as a bad channel name) is never retried. It raises Refused with the server's own sentence for what to fix, the status and the JSON answer as data.
  • Both are a FailedToPublish, so catching that catches everything this SDK raises.
  • disable_tracking=True, or events.disable_tracking(), makes every call succeed without sending anything, for tests and local runs.
  • endpoint defaults to https://api.snekot.co.

Develop

python -m unittest discover -s tests

Publishing a release here publishes its version to PyPI; the release's tag must be the version in pyproject.toml.

The test runs the cases in tests/conformance.json, the wire contract every Snekot SDK is tested against, through a stub server on your machine.

Licence

MIT

Metadata

Release files for snekot-events 0.3.1

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

Source distribution (sdist)

Source distribution for snekot-events 0.3.1
File Size Uploaded Provenance Actions
snekot_events-0.3.1.tar.gz 7.5 kB With provenance Details for snekot_events-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snekot-events 0.3.1
File Interpreter ABI Platform Actions
snekot_events-0.3.1-py3-none-any.whl Python 3 none any Details for snekot_events-0.3.1-py3-none-any.whl

Total release size: 13.7 kB

Release files / snekot_events-0.3.1.tar.gz

Download URL snekot_events-0.3.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ae99d5b55839e8262b9c12cf5d83cbdfee4baa8ad595068aed11f23c8736dfc9
BLAKE2b-256 checksum
How to use checksums
588f27c08413c93dfcc3a436c164b8813d127be35f6ec8a73c2c831cb4217611
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / snekot_events-0.3.1-py3-none-any.whl

Download URL snekot_events-0.3.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7ba7b7926cc192ef3f906e67bf6b12932e28fb3ec399b8e8115c5d4b9cab163
BLAKE2b-256 checksum
How to use checksums
6602b1bbe1104d97e7b068008043aba815ca176e30920b27df84e509044450df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for snekot-events 0.3.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for snekot_events-0.3.1.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 Nov 23, 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.3.1 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