Skip to main content

msw-core

PyPI

Murine Shift Work acquisition stack: CLI, hardware drivers, session hooks, and task logic.

Provides the murineshiftwork.cli, murineshiftwork.hardware, murineshiftwork.hooks, and murineshiftwork.logic namespace sub-packages. Installs the msw / murineshiftwork CLI entry points.

Part of the MurineShiftWork namespace package ecosystem.

Running a session

msw run -s <subject> -t <task> --setup <setup> [--simulate]

Before any hardware opens, the run refuses a subject YAML whose schema_version is missing or older than this software's (msw config migrate-subjects upgrades it; the loader alone would migrate only in memory).

One session per setup. msw run holds ~/.murineshiftwork/locks/<setup>.lock (YAML: pid, host, started_at, setup, session_container) from before the first device opens until it exits, normally or on an exception. A lock held by a live process on this host, or by another host, refuses the run. A lock left by a dead process means that session was killed: the run warns, resets the setup's camera groups whose backend implements ResettableCameraBackend (each camera saves what it recorded), marks that session's running acquisitions interrupted, then takes the lock. A simulated run takes no lock.

--simulate opens no hardware: every device the task requires (required_devices) is a stand-in, also one the setup lacks; no camera group starts and CameraSession refuses real camera backends; a Stimulation that connects its own PulsePal gets a SimPulsePal.

record_video: false starts no with_video camera group and gives the deprecated make_camera_client no camera config; record: always groups still run.

Acquisition status in session_manifest.yaml at exit: complete (the task ended by itself), stopped (the operator ended it, Ctrl-C), aborted (the task or the session raised). running left behind means the process died; the next run on the setup sets it to interrupted.

Every session's .msw.session.yaml holds the resolved task_settings; a task may overwrite the section.

Exit codes: 0 completed, 1 failed (including a Bpod that does not connect and a setup in use), 3 completed degraded: record_video was on, camera_failure: continue let the run go on, and no camera recorded.

Checking the cameras of a setup

msw cameras check <setup> [--task <task>] [--json]

Loads, configures and preflights the setup's camera groups through their backends and never records; no Bpod or other device is needed. Without --task every group is checked; with it, only the groups a run of that task starts (record: always groups, and the video groups when record_video is on, narrowed by record_cameras). The camera_failure policy is not applied: every camera is listed with its group, backend and version, hw_id, state and error, and the backends are closed afterwards.

Exit codes: 0 every camera ready, 1 a camera missing or failed, 2 a config error (unknown backend, settings the backend refuses, missing RCE ensemble YAML or Bonsai executable).

Metadata

Release files for msw-core 0.38.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for msw-core 0.38.3
File Size Uploaded Provenance Actions
msw_core-0.38.3.tar.gz 220.9 kB Without provenance Details for msw_core-0.38.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for msw-core 0.38.3
File Interpreter ABI Platform Actions
msw_core-0.38.3-py3-none-any.whl Python 3 none any Details for msw_core-0.38.3-py3-none-any.whl

Total release size: 393.3 kB

Release files / msw_core-0.38.3.tar.gz

Download URL msw_core-0.38.3.tar.gz
Size 220.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f8ee2199e8a908069be81b5a5bd2acb2eed5d608aa20fd169a8398c1b65df908
BLAKE2b-256 checksum
How to use checksums
c361223e1b4b46654a4992c38ef1eb92874edfb10c70bf923d71e41ad1270e9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / msw_core-0.38.3-py3-none-any.whl

Download URL msw_core-0.38.3-py3-none-any.whl
Size 172.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91fc9af0e67a70fc822141c2ea8574ab6c40cc313b3ffca4600c721c4fd7a8e7
BLAKE2b-256 checksum
How to use checksums
0302815e89fc9b56fd2e9cc7eff75f73ce5165e7e5746129ea9fb785db8f7d28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for msw-core 0.38.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.38.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page