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.2.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for pyepics_asyncio-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dc95c0e656397d33dd4d6f5887f1d6d6e89a7a27ac6480c71d9240d2fccbefb |
|
MD5 | 792cbf83b25ef0cafb1bbda55b085091 |
|
BLAKE2b-256 | c0b29b90dc0d03ce8f35c96796d2c247af71bdbd8e413bf94bbbff10d04ca523 |