--- id: event-model version: "1.24.0" license: BSD 3-Clause License Copyright (c) 2015, Brookhaven National Laboratory Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following… (full text in the JSON record) license_treatment: permissive maintenance: active --- # event-model — Data model used by the bluesky ecosystem. License: permissive · Maintenance: active · Downloads: 89.9K/mo ## What it is and what it does event-model is the formal data schema and validation toolkit for the bluesky scientific data ecosystem. It defines how experimental metadata, measurements, and device state are organized into structured documents (Start, Event, EventDescriptor, Stop, etc.) that flow through data collection and analysis pipelines. The package provides Python tools to compose, validate, and transform these documents according to the bluesky specification. The model is designed around the principle that rich metadata recorded alongside measured data enables better research and reproducibility. Documents capture sample information, experimental intent, detector calibrations, device configurations, and the actual measured data in a standardized format. This package is the foundation for any tool or workflow that needs to work with bluesky-collected data or emit data in bluesky-compatible format. Use it for: - Validate experiment documents produced by bluesky beamline control systems before storage or analysis. - Compose properly-structured Start, Event, and Stop documents when building custom data acquisition workflows. - Transform or migrate experiment data between different storage backends while maintaining schema compliance. - Build analysis pipelines that consume bluesky-formatted streaming data with guaranteed document structure. - Integrate external data sources into bluesky workflows by wrapping them in compliant document schemas. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Defines and validates the formal data model for bluesky's streaming scientific data ecosystem, providing schemas and Python tools for composing, validating, and transforming experiment documents. Yes. If you work with bluesky data or need to emit data in bluesky-compatible format, this is a required dependency. Low install friction, active maintenance, permissive license, no known vulnerabilities, and supports current Python versions. Even as a transitive dependency it is stable and lightweight. ## Install pip install event-model uv add event-model poetry add event-model ## Installing event-model Before you install: Low friction installation with three lightweight runtime dependencies (jsonschema, numpy, typing_extensions). Active maintenance with a release 72 days ago and recent commits; supports Python 3.10 through 3.13. License in practice: BSD 3-Clause License permits commercial and private use with attribution and liability disclaimers; no restrictions on derivative works or redistribution. Quickstart: pip install event-model import event_model # Validate a Start document start_doc = {"uid": "...", "time": 0.0} event_model.compose_run(metadata={"proposal": "..."}) Requires Python 3.10 or later. Verify before relying: - Whether the package provides runtime document composition helpers beyond schema validation. - What transformations between document formats are supported beyond validation. - Whether numpy is used for data handling or only as a transitive dependency. ## Package facts - License: BSD 3-Clause License Copyright (c) 2015, Brookhaven National Laboratory Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following… (full text in the JSON record) (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 89.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags bluesky data model schema, scientific experiment metadata validation, streaming data document model, experiment metadata schema, bluesky ecosystem data format, scientific data validation, experiment document schema, bluesky-ecosystem, scientific-data, schema-validation [View on SkillFed](https://skillfed.io/packages/event-model) · [View on PyPI](https://pypi.org/project/event-model/)