Lightweight, local-first event analytics SDK for Python applications
Project description
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
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 eventa-0.1.0.tar.gz.
File metadata
- Download URL: eventa-0.1.0.tar.gz
- Upload date:
- Size: 36.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1b6f9c59f7aa0ad55a0045302cd9df4576138d6042a522d6d836b120f1131a5
|
|
| MD5 |
0f7162535109b75a761c6be7a29f3195
|
|
| BLAKE2b-256 |
04cd77b83e6df7575bcc0b3e4c5420ab44e8dda8e36b671c0cfde3bd5a300ad6
|
File details
Details for the file eventa-0.1.0-py3-none-any.whl.
File metadata
- Download URL: eventa-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e3483d5d9288658c0f7746a3b803a419385dc623b46c6a50d52d64e67b92b36
|
|
| MD5 |
0c339c09be1c110aef4cd2ce51675519
|
|
| BLAKE2b-256 |
997988b763655e17bcc7a830a78ba9b6e5a202357b2d88fb3a90669d8205e960
|