Skip to main content

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, each get 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)

Uploaded Source

Built Distribution

pyepics_asyncio-0.2.1-py3-none-any.whl (2.8 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