Skip to main content

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)

Uploaded Source

Built Distribution

pyepics_asyncio-0.2.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page