Python runtime (protocol, client, server core) for devman-gen generated device-manager bridges
Project description
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/releaseresource ownership,invoke, link-group registration (set_link_groups/list_link_groups).devman_runtime.server—ManagerCoreandserve_manager: request dispatch with ownership enforcement, device lifecycle/periodic hooks, client leases. Hook files receivecorein 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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devman_runtime-0.4.0.tar.gz.
File metadata
- Download URL: devman_runtime-0.4.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc6dba86b51f765f3b829ece0cd06656f351d24ed267a0dc3651bd6d562ccddf
|
|
| MD5 |
c8382286c7034090c1529120a54393a0
|
|
| BLAKE2b-256 |
94a270165a0de6b21a05d507be229257fa3c508aefe57b2723cbc08711c195cc
|
Provenance
The following attestation bundles were made for devman_runtime-0.4.0.tar.gz:
Publisher:
publish.yml on kenji0923/devman-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devman_runtime-0.4.0.tar.gz -
Subject digest:
fc6dba86b51f765f3b829ece0cd06656f351d24ed267a0dc3651bd6d562ccddf - Sigstore transparency entry: 2129129617
- Sigstore integration time:
-
Permalink:
kenji0923/devman-runtime@3c0bb8a87be2c41aa9511aa93fe9ef3872f055c3 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/kenji0923
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3c0bb8a87be2c41aa9511aa93fe9ef3872f055c3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file devman_runtime-0.4.0-py3-none-any.whl.
File metadata
- Download URL: devman_runtime-0.4.0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c0d453bea11d6a44b7dd2f255dbe0b1853186b734c9725171c1e93420772d7a
|
|
| MD5 |
76ef9d2453a9b740532180594d1e2a94
|
|
| BLAKE2b-256 |
e72481d0697ba1850b17c5a482a8a53a10317d96c26b0334393ab31a7e199556
|
Provenance
The following attestation bundles were made for devman_runtime-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on kenji0923/devman-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devman_runtime-0.4.0-py3-none-any.whl -
Subject digest:
5c0d453bea11d6a44b7dd2f255dbe0b1853186b734c9725171c1e93420772d7a - Sigstore transparency entry: 2129129828
- Sigstore integration time:
-
Permalink:
kenji0923/devman-runtime@3c0bb8a87be2c41aa9511aa93fe9ef3872f055c3 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/kenji0923
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3c0bb8a87be2c41aa9511aa93fe9ef3872f055c3 -
Trigger Event:
push
-
Statement type: