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.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for pyepics_asyncio-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78dc0eacb4d44ceaad114aeef78529b56eff2ae366a4325e73cb9d4ae381449d |
|
MD5 | f1045b840174467838eb0f9798a31e8d |
|
BLAKE2b-256 | ae217e3832d3f9501182a4dc6a0363bcb83f98a75bccfd869d059d3425d91798 |