Skip to main content

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.clientManagerClient: sessions, acquire/release resource ownership, invoke, link-group registration (set_link_groups / list_link_groups).
  • devman_runtime.serverManagerCore 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.

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

devman_runtime-0.2.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devman_runtime-0.2.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file devman_runtime-0.2.0.tar.gz.

File metadata

  • Download URL: devman_runtime-0.2.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for devman_runtime-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0003c7347890bafcef5e83fc4d3ad29f24037ce4bda56d12b8531e6a88571400
MD5 67570e4b0eb33464185a5e4c9a57c2f8
BLAKE2b-256 3da88beb5088fe316e88bf2cb64eddd9c8126b93b2784b673feb248c4976b661

See more details on using hashes here.

Provenance

The following attestation bundles were made for devman_runtime-0.2.0.tar.gz:

Publisher: publish.yml on kenji0923/devman-runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devman_runtime-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: devman_runtime-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for devman_runtime-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0e0ce31195bc04f8655428086a3c574565ebb4eb9a2d845f78f1fffed71ba31
MD5 de44035d4bb2dd603ceba92ec2247b42
BLAKE2b-256 21df6f8d5a4ebba9e4001dd3384f4a2bb921da196b14fef8e85ac30a99565ca9

See more details on using hashes here.

Provenance

The following attestation bundles were made for devman_runtime-0.2.0-py3-none-any.whl:

Publisher: publish.yml on kenji0923/devman-runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page