WireLog analytics client — zero dependencies
Project description
wirelog
WireLog analytics client for Python. Zero dependencies — stdlib only.
Install
pip install wirelog
Quick Start
from wirelog import WireLog
wl = WireLog(api_key="sk_your_secret_key")
# Track an event
wl.track("signup", user_id="u_123", event_properties={"plan": "free"})
# Query analytics (returns Markdown by default)
result = wl.query("signup | last 7d | count by day")
print(result)
# Identify a user (bind device → user, set profile)
wl.identify("alice@acme.org", device_id="dev_abc", user_properties={"plan": "pro"})
# Track forwarded client-origin events from your backend
wl.track(
"ai_usage_charged",
user_id="u_123",
event_properties={"amount": 1.23},
origin="client",
client_originated=True,
)
API
wl.track(event_type, *, user_id, device_id, session_id, event_properties, user_properties, insert_id, origin, client_originated)
Track a single event. Auto-generates insert_id and time if not provided.
wl.track_batch(events, *, origin=None, client_originated=None)
Track multiple events in one request (up to 2000).
wl.query(q, *, format="llm", limit=100, offset=0)
Run a pipe DSL query. Format: "llm" (Markdown), "json", or "csv".
wl.identify(user_id, *, device_id, user_properties, user_property_ops)
Bind a device to a user and/or update profile properties.
Zero Dependencies
This library uses only the Python standard library (urllib.request, json, time, uuid, os). No requests, no httpx, no urllib3. It works out of the box on any Python 3.9+ installation.
Learn More
- WireLog — headless analytics for agents and LLMs
- Query language docs
- API reference
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 wirelog-0.1.1.tar.gz.
File metadata
- Download URL: wirelog-0.1.1.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea49bbc4feae578113f1bbb5a472e787db6bdabea0692c7548dbf01f0e19b3b
|
|
| MD5 |
82642c125aefa506f83c451af33acbfc
|
|
| BLAKE2b-256 |
53eddc20826723ee2677cbb46f3b45f686af210a3cd2d49c15a287a4b409dabe
|
File details
Details for the file wirelog-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wirelog-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4f75228c56a2748e3587a472171f76dc65dfd8eb660fe471d3da74dd27f10da
|
|
| MD5 |
6bd2e7e883695267918936f5141e7b4c
|
|
| BLAKE2b-256 |
4bd17dfdc836bcec75952def9e8a245467630b4ad2984dd41ee8f4934ce92538
|