Skip to main content

devman-runtime

Python runtime library for bridges generated by devman-gen.

devman-gen is a language-agnostic generator that wraps a device-control library (e.g. caen_libs for CAEN HV crates) in a client/server pair with resource-ownership management. This package is the Python-side runtime that those generated packages import, so runtime fixes reach every bridge through a normal dependency upgrade instead of regeneration.

Contents

  • devman_runtime.protocol — length-prefixed JSON over TCP.
  • devman_runtime.client — ManagerClient: sessions, acquire/release resource ownership, invoke, link-group registration (set_link_groups / list_link_groups).
  • devman_runtime.server — ManagerCore and serve_manager: request dispatch with ownership enforcement, device lifecycle/periodic hooks, client leases. Hook files receive core in their context, so device-specific safety monitors (e.g. the CAEN trip watchdog in caenhv-devman's server_hooks.py) can use the registry and leases.
  • devman_runtime.db — SQLite-backed ownership and link-group registry.

Server features

  • client_lease_sec / --client-lease-sec: any authenticated request renews a client lease; core.is_client_live(name) exposes it to hooks (used e.g. for janitoring stale link groups).
  • Periodic hook (periodic_file / periodic_function + periodic_interval_sec): run a user callback on an interval with access to the device singleton and the core.

Device-specific policies (what a "trip" means, when to power off partners) belong in per-bridge hook files, not in this package.

This package is used by, e.g., caenhv-devman-client.

Metadata

Release files for devman-runtime 0.4.0

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

Source distribution (sdist)

Source distribution for devman-runtime 0.4.0
File Size Uploaded Provenance Actions
devman_runtime-0.4.0.tar.gz 15.0 kB With provenance Details for devman_runtime-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for devman-runtime 0.4.0
File Interpreter ABI Platform Actions
devman_runtime-0.4.0-py3-none-any.whl Python 3 none any Details for devman_runtime-0.4.0-py3-none-any.whl

Total release size: 31.0 kB

Release files / devman_runtime-0.4.0.tar.gz

Download URL devman_runtime-0.4.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fc6dba86b51f765f3b829ece0cd06656f351d24ed267a0dc3651bd6d562ccddf
BLAKE2b-256 checksum
How to use checksums
94a270165a0de6b21a05d507be229257fa3c508aefe57b2723cbc08711c195cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / devman_runtime-0.4.0-py3-none-any.whl

Download URL devman_runtime-0.4.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c0d453bea11d6a44b7dd2f255dbe0b1853186b734c9725171c1e93420772d7a
BLAKE2b-256 checksum
How to use checksums
e72481d0697ba1850b17c5a482a8a53a10317d96c26b0334393ab31a7e199556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Security for devman-runtime 0.4.0

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.

Select from 2 files

Attestation for devman_runtime-0.4.0.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 Jul 9, 2026.

Transparency log

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.

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