Faker Events

Release v2.0.1

PyPI Version Supported Python Versions CI Status Documentation Status License

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

Events and flows

Define transforms, sequences, branches, grouping, limits, and shared event state.

Events and flows
Timing and schedules

Configure independent event pacing, random variance, virtual time, and deterministic generation.

Event timing
State and profiles

Choose the correct lifecycle for run-scoped state and durable entity fields.

State lifecycle and persistence
Generate data with Faker

Use Faker providers, locales, and custom generators for realistic, reproducible profile and event fields.

Generate realistic data with Faker
Outputs

Deliver events to the console, memory, Kafka, Kinesis, or a custom async destination.

Outputs
AI workflows

Design scenarios with an LLM, enrich synthetic data, analyse streams, and build deterministic AI evaluation datasets.

AI-assisted generation and analysis

User guide

Upgrading and reference

Indices