Skip to main content

Eventa

Lightweight, local-first event analytics for Python applications — no external services required.

from eventa import Analytics

analytics = Analytics(database="sqlite:///eventa.db")

analytics.track(
    event="payment_success",
    user="telegram:123456",
    properties={"plan": "premium", "price": 299},
)

Install

pip install eventa

Usage

from eventa import Analytics

analytics = Analytics()  # defaults to sqlite:///eventa.db

analytics.track(event="login", user="user_123")
analytics.track(event="button_click", user="user_123", properties={"button": "buy"})

analytics.count_events()                 # total events
analytics.count_events(event="login")    # events of a given name

user is just a string identifier you control — Eventa doesn't manage user accounts or profiles. Events are stored in their own eventa_events table, so Eventa never touches your application's existing models or migrations.

Storage

Any SQLAlchemy connection URL works:

analytics = Analytics(database="sqlite:///eventa.db")

SQLite is supported today; other SQL databases (e.g. PostgreSQL) work through the same mechanism once tested and documented.

Development

uv sync --extra dev
uv run pytest
uv run ruff check .
uv run mypy

License

MIT

Metadata

Release files for eventa 0.1.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 eventa 0.1.0
File Size Uploaded
eventa-0.1.0.tar.gz 36.0 kB Details

Built distribution (wheel)

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

Total release size: 42.7 kB

Release files / eventa-0.1.0.tar.gz

Download URL eventa-0.1.0.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c1b6f9c59f7aa0ad55a0045302cd9df4576138d6042a522d6d836b120f1131a5
BLAKE2b-256 checksum
How to use checksums
04cd77b83e6df7575bcc0b3e4c5420ab44e8dda8e36b671c0cfde3bd5a300ad6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / eventa-0.1.0-py3-none-any.whl

Download URL eventa-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e3483d5d9288658c0f7746a3b803a419385dc623b46c6a50d52d64e67b92b36
BLAKE2b-256 checksum
How to use checksums
997988b763655e17bcc7a830a78ba9b6e5a202357b2d88fb3a90669d8205e960
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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