Faker Events¶
Release v2.0.1
Faker Events generates realistic, stateful event streams for development, demos, load tests, and data-pipeline validation without copying production data. Inspired by Faker, it pairs Faker’s realistic field values with event flows, state, timing, and delivery.
Model human activity and scheduled system operations against shared per-profile state, then deliver immutable event snapshots to JSON Lines, Kafka, Kinesis, or a custom destination.
Quickstart¶
Install from PyPI:
$ pip install faker-events
Create profiles and a stateful flow:
from faker_events import Event, EventGenerator, ProfileGenerator, State
profiles = ProfileGenerator(seed=42).create(10)
account = State({"balance": 0})
def deposit(context, profile):
context.state["balance"] += 100
return {
"type": "account.deposit",
"user_id": profile.id,
"balance": context.state["balance"],
}
deposited = Event(
{"type": "account.deposit"},
deposit,
state=account,
rate=12,
variance=0.25,
)
EventGenerator(profiles, deposited).start()
Or run the built-in example:
$ faker-events run --profiles 10 --max-events 100 --seed 42
Explore¶
Define transforms, sequences, branches, grouping, limits, and shared event state.
Configure independent event pacing, random variance, virtual time, and deterministic generation.
Choose the correct lifecycle for run-scoped state and durable entity fields.
Use Faker providers, locales, and custom generators for realistic, reproducible profile and event fields.
Deliver events to the console, memory, Kafka, Kinesis, or a custom async destination.
Design scenarios with an LLM, enrich synthetic data, analyse streams, and build deterministic AI evaluation datasets.