spvirit-py 0.1.7

Python bindings for spvirit PVAccess client and server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
"""Example usage of the spvirit Python bindings."""

import spvirit

# ─── Discover servers ────────────────────────────────────────────────────────

servers = spvirit.py_discover_servers(timeout =10)
client = spvirit.Client()
for srv in servers:
    print(f"Found server at {srv.tcp_addr}")
    pvs = client.pvlist(srv.tcp_addr)
    print(f"  PVs: {pvs[:10]}")