Skip to main content

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

Connect to PV

from pyepics_asyncio import Pv

pv = await Pv.connect("pvname")

Write value to PV

await pv.put(3.1415)

Read value from PV

print(await pv.get())

Monitor PV value updates

with pv.monitor() as mon:
    async for value in mon:
        print(value)

Testing

To run tests you need to have dummy IOC running (located in ioc dir):

  • Set appropriate EPICS_BASE path in configure/RELEASE.
  • Build with make.
  • Go to iocBoot/iocTest/ and run script st.cmd and don't stop it.

In separate shell run uv run pytest --verbose.

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.4.0.tar.gz (122.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyepics_asyncio-0.4.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pyepics_asyncio-0.4.0.tar.gz.

File metadata

  • Download URL: pyepics_asyncio-0.4.0.tar.gz
  • Upload date:
  • Size: 122.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pyepics_asyncio-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ef7f5f381bcab5d3b69e205ecd44cf511f3dced38f520c40c3488f314ec20ddd
MD5 31085d3f1417292167e5cd324cbf7cfd
BLAKE2b-256 e965a97f774a2d2765010d5c9ba7c7f0030875181062c27096e94d76d22ef497

See more details on using hashes here.

File details

Details for the file pyepics_asyncio-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pyepics_asyncio-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pyepics_asyncio-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 116de1fca6568499577cf611e2b3f8aea87110f218aba2233d38376588f90238
MD5 e1ac027e287884bd7222083740770a02
BLAKE2b-256 48601bfd38eea9523759e1b04c07f35887d3cad6ad8d40887ec5be0f3169bb6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page