Metadata-Version: 2.4
Name: repro-events
Version: 1.6.0
Summary: Repro event schema tooling: schema registry, validation, and agent-output schema derivation.
Keywords: event-sourcing,json-schema,pydantic
License-Expression: Apache-2.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Dist: jsonschema>=4.26.0
Requires-Dist: referencing>=0.37.0
Requires-Dist: pydantic>=2.14.1
Requires-Python: >=3.12
Project-URL: Homepage, https://github.com/DuhItzAniket/Repro
Project-URL: Documentation, https://github.com/DuhItzAniket/Repro/blob/main/docs/guide/README.md
Project-URL: Repository, https://github.com/DuhItzAniket/Repro
Project-URL: Issues, https://github.com/DuhItzAniket/Repro/issues
Project-URL: Changelog, https://github.com/DuhItzAniket/Repro/blob/main/CHANGELOG.md
Project-URL: DOI, https://doi.org/10.5281/zenodo.23524047
Description-Content-Type: text/markdown

# repro-events

The event schema of [Repro](https://github.com/DuhItzAniket/Repro), as Python tooling. Repro's
engine only emits events, and its cockpit and its Reproduction Card are projections of them, so
this schema is the contract between them. Most users install
[repro-engine](https://pypi.org/project/repro-engine/), which brings this package.

- `repro_events.schemas`: loads the JSON Schema files into a `referencing` registry, lists the
  event kinds, and builds validators for events and models.
- `repro_events.models`: Pydantic models generated from the schema.
- `repro_events.agent_schema`: draft-07, `$ref`-free variants of schemas, for an LLM's structured
  output.

```bash
repro-events validate run.jsonl    # the schema and the log's invariants: order, IDs, evidence before citation
repro-events normalise run.jsonl   # canonical JSONL, with IDs and times normalised
```

The schema itself, its examples and the rules for changing it are in
[packages/events](https://github.com/DuhItzAniket/Repro/tree/main/packages/events).

Licensed under the [Apache License 2.0](https://github.com/DuhItzAniket/Repro/blob/main/LICENSE).
