Async/await wrapper for PyEpics
Project description
pyepics-asyncio
Simple async
/await
wrapper for PyEpics.
Currently there is a wrapper only for PV
class.
Usage
Import
from pyepics_asyncio import Pv
Connect to PV
pv = await Pv.connect("pvname")
Read PV value
print(await pv.get())
Write value to PV
await pv.put(3.1415)
Monitor PV
async with pv.monitor() as mon:
async for value in mon:
print(value)
NOTE: By default values are yielded only on PV update.
If you need monitor to also provide current value on start use pv.monitor(current=True)
.
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.1.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyepics_asyncio-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b84d7389702894a3f5962290fdbd3765a692d2accfd158f49ae56fe605d1afde |
|
MD5 | ecd48df5e2a6c2abf889548aa11a1c88 |
|
BLAKE2b-256 | 31850ca4c9298e775b942e48809cd93f82effdb5a5ee972f5d1f71a66a9e6d60 |