osprey-connectors
Lean control-system and archiver connectors for OSPREY: EPICS, DOOCS, and mock/virtual-accelerator connectors for reading and writing control-system channels, plus matching archiver connectors (EPICS Archiver Appliance, DOOCS local history, MongoDB, mock) for historical data. The package also carries the small set of support modules those connectors depend on — configuration loading, logging setup, the error/exception taxonomy, and the data-driven simulation core used by the mock connectors — without pulling in the rest of the OSPREY framework (agents, capabilities, web UI, etc.).
Install
pip install osprey-connectors
Public API
Every public module lists its public names in __all__, and a module whose
name starts with an underscore is internal and can change in any release.
Most modules are their own API, each imported by its own path: config,
workspace, dotenv, yaml_loader, connection, types, factory,
call_timeout, errors, logger, log_filter, identity, relative_time,
control_context, posture_env, posture_store, safety_file, settle,
process, standin and honesty. So are the simulation package and its modules
(simulation.state, simulation.view, simulation.archive, ...): its root
imports neither numpy nor lume, and the heavier modules are imported by their
own names.
Three subpackages gather their implementation modules behind one namespace, and their names are imported from the subpackage itself:
| Namespace | What it holds |
|---|---|
osprey_connectors.control_system |
The control-system connector contract (ControlSystemConnector, ChannelValue, ChannelWriteResult, WriteOutcome, values_match, ...) and LimitsValidator |
osprey_connectors.archiver |
The archiver connector contract (ArchiverConnector, ArchiverMetadata), the shared time-range helpers, the field name a channel is stored under, the MongoDB client arguments |
osprey_connectors.ipc |
What a connector-host supervisor needs: launching and stopping a child, the proxy and the pool, endpoint derivation and verification, and the errors a frame raises (the wire codec itself is internal) |
osprey_connectors.control_system.write_door, the door a connector opens around
its own write, is a public module of its own.
The read-only run — POSTURE_ENV_VAR, SANDBOX_MODE and is_readonly_run() —
lives in osprey_connectors.posture_env, a leaf that imports nothing from the
package. osprey_connectors.control_system exported is_readonly_run before
2026.10.0 and no longer does.
The concrete connectors are internal (control_system._epics_connector,
archiver._mongodb_archiver_connector, ...): a caller builds one through
ConnectorFactory from its registered type name.
osprey-framework imports these subpackages only through their namespaces, and
takes from every module only names its __all__ lists. lint-imports
(import-linter, configured in the repository's root pyproject.toml) holds the
first, and ruff's PLC2701 and tests/connectors/test_public_api.py the
second. import-linter also holds this package to never importing osprey, and
holds every top-level module of it in layers: the connector host above the
factory, the factory above the archivers, the archivers above the
control-system connectors, those above the simulation core, and the posture
store, config loading and the bottom layer (posture_env, types,
identity, ...) below them all.
Import map
These modules used to live under osprey.*. The old paths have been
removed; the table maps each old path to the public spelling that replaces it.
Old path (osprey.*) |
Import from (osprey_connectors.*) |
|---|---|
osprey.connectors |
osprey_connectors |
osprey.connectors.factory |
osprey_connectors.factory |
osprey.connectors.types |
osprey_connectors.types |
osprey.connectors.honesty |
osprey_connectors.honesty |
osprey.connectors.control_system, .control_system.base, .control_system.limits_validator |
osprey_connectors.control_system |
osprey.connectors.control_system.*_connector |
built through osprey_connectors.factory.ConnectorFactory |
osprey.connectors.archiver, .archiver.base, .archiver._timerange |
osprey_connectors.archiver |
osprey.connectors.archiver.*_archiver_connector |
built through osprey_connectors.factory.ConnectorFactory |
osprey.errors |
osprey_connectors.errors |
osprey.utils.config |
osprey_connectors.config |
osprey.utils.dotenv (reading the env chain) |
osprey_connectors.dotenv |
osprey.utils.identity |
osprey_connectors.identity |
osprey.utils.workspace (config and agent-data resolution) |
osprey_connectors.workspace |
osprey.utils.logger |
osprey_connectors.logger |
osprey.utils.log_filter |
osprey_connectors.log_filter |
osprey.utils.relative_time |
osprey_connectors.relative_time |
Not everything those modules held moved here. The deployment repo's layout
(layer directories, the image staging area, the audit and archive zones)
belongs to the framework, in a new osprey.utils.workspace that holds only
those names. The executor's vocabulary and the
facility timestamp formatter are the framework's osprey.utils.execution_method
and osprey.utils.facility, and writing .env files is
osprey.deployment.dotenv.
Optional runtime dependencies
Only the connectors you actually use need their backing libraries installed;
none of the following are declared as hard dependencies of this package, so
importing osprey_connectors never requires them:
- EPICS Channel Access —
EPICSConnectorspeaks Channel Access throughaioca, a declared dependency, which loads the per-architecturelibcathatepicscorelibsships. Nothing else is needed to talk to real IOCs. pymongo— required byMongoDBArchiverConnector. Installed with this package; the connector imports it insideconnect()so registration stays cheap, not because it is optional.doocs4py— required byDOOCSConnectorandDOOCSArchiverConnector. Install separately (it is not on PyPI in all environments) if you connect to a DOOCS control system.
Stability
osprey-connectors versions by calendar, YYYY.M.P (with bN / rcN for
pre-releases), on its own release tags: osprey-connectors-vYYYY.M.P, cut when
the package changes rather than with every framework release. Its numbers are
not the framework's, and no framework release requires a matching one. (The
0.1.0 release on PyPI predates this scheme; its tag is retired.)
Each release stays backward-compatible with every supported osprey-framework
release, and CI enforces that in its connectors-compat and
framework-at-connectors-floor lanes. The framework therefore declares only a
floor on this package, never a pin.
The exception taxonomy in osprey_connectors.errors is public API: the class
names ChannelError, ChannelWriteBlockedError, ChannelWriteFailedError,
ChannelLimitsViolationError and ChannelNotFoundError, and their reason
codes, are load-bearing for callers that branch on them.
ChannelError— the base of every failure about one channel; the classes below andChannelUnreachableErrorare one.channel_addressnames the channel, in process and across the connector host.ChannelWriteBlockedError— the write was refused and no value was written.reasonis aRefusalReason, one ofWRITES_DISABLED,LIMITS,VALIDATION_ERROR,CONTROL_SYSTEM_REFUSED,RAW_CLIENT_WRITE, orCHANNEL_NOT_FOUND; each member names who refused (refuser) and what to do about it (remedy). The first three are refused before anycaput;CONTROL_SYSTEM_REFUSEDmeans the control system was asked and denied the write itself (EPICS access security, for instance);RAW_CLIENT_WRITEmeans user code called a client library's put directly instead ofosprey.runtime.write_channel; andCHANNEL_NOT_FOUNDmeans the address is not a channel of the facility. Nothing was sent in any of these cases exceptCONTROL_SYSTEM_REFUSED.ChannelWriteFailedError— the write was attempted but did not verifiably succeed.reasonis one ofFAILED(the control system did not take the value),MISMATCH(the channel holds a different value), orUNCONFIRMED(sent, but not acknowledged in time or the confirming re-read itself failed). The codes are theWriteOutcomewords that raise; the exception also carriesoutcome,value_writtenandobserved_value.ChannelLimitsViolationError— a channel write violated configured safety limits (range, read-only, step size, or unlisted channel).ChannelNotFoundError— a read named an address that is not a channel of the facility. Only a connector that holds the facility's whole address set raises it;reasonisCHANNEL_NOT_FOUND, the refusal reason a write to such an address carries.
Adding classes or reason codes is compatible. Removing or renaming one breaks the compatibility guarantee above, so it waits until no supported framework release relies on it.
Metadata
Release files for osprey-connectors 2026.11.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| osprey_connectors-2026.11.2.tar.gz | 797.0 kB | With provenance | Details for osprey_connectors-2026.11.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| osprey_connectors-2026.11.2-py3-none-any.whl | Python 3 | none | any | Details for osprey_connectors-2026.11.2-py3-none-any.whl |
Total release size: 1.2 MB
Release files / osprey_connectors-2026.11.2.tar.gz
| Download URL | osprey_connectors-2026.11.2.tar.gz |
|---|---|
| Size | 797.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b30cce5e17dedf8617a075d2e1d2f350de58eb893402689a6e42ab80e5a5c34e
|
|
BLAKE2b-256 checksum How to use checksums |
51692d56e313018801481bc2f7014dc801c904089bfe1ad610dbb903763fc039
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / osprey_connectors-2026.11.2-py3-none-any.whl
| Download URL | osprey_connectors-2026.11.2-py3-none-any.whl |
|---|---|
| Size | 449.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
217ba9c622808c2c9f133e69a6c1a2a78d22d8fe7f142516f4d5839dd4c531aa
|
|
BLAKE2b-256 checksum How to use checksums |
471c5ad74955216b17795f5428473457bd0d8e712a737edee3ff1fd9961a0719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for osprey-connectors 2026.11.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for osprey_connectors-2026.11.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.