Skip to main content

Channel Access server library

Project description

This library contains a low-level binding to the cas library in EPICS base and a thread-safe high level interface to create channel access servers.

Installation

Before installing the library, the environment variables EPICS_BASE and EPICS_HOST_ARCH must be set.

Then the library can be installed with pip:

pip install channel_access.server

Example

This example shows a simple server with a PV counting up:

import time
import channel_access.common as ca
import channel_access.server as cas

with cas.Server() as server:
    pv = server.createPV('CAS:Test', ca.Type.LONG)
    while True:
        pv.value += 1
        time.sleep(1.0)

Documentation

The documentation is available online or it can be generated from the source code with sphinx:

cd /path/to/repository
pip install -e .
python setup.py build_sphinx

Then open build/sphinx/html/index.html.

Get the source

The source code is available in a Github repository:

git clone https://github.com/delta-accelerator/channel_access.server

Tests

Tests are run with pytest:

cd /path/to/repository
pytest -v

To run the tests for all supported version use tox:

cd /path/to/repository
tox

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

channel_access.server-0.1.1.tar.gz (22.0 kB view details)

Uploaded Source

File details

Details for the file channel_access.server-0.1.1.tar.gz.

File metadata

  • Download URL: channel_access.server-0.1.1.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for channel_access.server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 875b64091ecd2975c7ba9246315a857eff1aa2857eca1813b5d508761c3ae58a
MD5 7de18a40ec786ddec480dba5424fdda1
BLAKE2b-256 c06bea86210996690501f29c4c0ffdc9b7653b7bb000b09182f8442248e9c889

See more details on using hashes here.

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