Async/await wrapper for PyEpics
Project description
pyepics-asyncio
Simple async
/await
wrapper for PyEpics.
Overview
There are two main types:
PvMonitor
- subscribed to PV updates,get
returns last received value.Pv
- connected but not subscribed, eachget
requests PV value over network.
Usage
Read PV value
from pyepics_asyncio import Pv
pv = await Pv.connect("pvname")
print(await pv.get())
Monitor PV
from pyepics_asyncio import PvMonitor
pv = await PvMonitor.connect("pvname")
async for value in pv:
print(value)
Write value to PV
await pv.put(3.1415)
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
pyepics_asyncio-0.2.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for pyepics_asyncio-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b3b056269aea2d0027741109166da4a77f1aab48f321177295e520a3361997f |
|
MD5 | 7f64c1db533177daf233849fe6ef85f7 |
|
BLAKE2b-256 | d3a4a39f1f4a5ad7ed7655bd9c3a6ae981c56ddecfd470211e9abf8e57e51d91 |