Skip to main content

Python interface to Archiver Appliance

Project description

PyArchAppl

PyPI - Version PyPI - License Python 3.9+

PyArchAppl is a Python client library for the EPICS Archiver Appliance, providing easy data access, management, and automation for control system data.


Features

  • Retrieve and plot time-series data from Archiver Appliance
  • Management interface for PVs (Process Variables)
  • Command-line tools for data access and inspection
  • Flexible site configuration
  • Python 3.9, 3.10, 3.11 support

Installation

pip install pyarchappl

To upgrade:

pip install --upgrade pyarchappl

Quick Start

Data Retrieval Example

from archappl.client import ArchiverDataClient
import matplotlib.pyplot as plt

client = ArchiverDataClient()
client.url = 'http://127.0.0.1:17665'  # Optional, default provided

pv = 'TST:gaussianNoise'
data = client.get_data(pv)

data.plot()
plt.show()

Example Plot

Management Example

from archappl.client import ArchiverMgmtClient

client = ArchiverMgmtClient()
client.url = 'http://127.0.0.1:17665'

all_pvs = client.get_all_pvs(pv="TST*")
print(all_pvs)
# [u'TST:fakeGaussianNoise', u'TST:gaussianNoise', u'TST:uniformNoise']

Command Line Tools

PyArchAppl provides convenient CLI tools:

  • pyarchappl-get — Retrieve data (use -h for help)
  • pyarchappl-inspect — Inspect archiver information (use -h for help)

Configuration

PyArchAppl uses an INI-style configuration file to define service connection and behavior.

Config file search order:

  1. ~/.pyarchappl/config.ini
  2. /etc/pyarchappl/config.ini
  3. Package default: main/config/default.ini

Override with the environment variable: PYARCHAPPL_CONFIG_FILE.

See the default.ini for all options.


Development

  • Clone the repo and install dependencies from requirements.txt and requirements-dev.txt.
  • [Optional] Set up a local Archiver Appliance for testing.

License

This project is licensed under the GPLv3+ License. See the LICENSE file for details.


Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pyarchappl-1.0.0.post1-py2.py3-none-any.whl (43.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyarchappl-1.0.0.post1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyarchappl-1.0.0.post1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 51095ee54fa0df668c4d18c34fe9253d36070fdfa63959fbf3b5f59a866b3a60
MD5 998ab0026109f9dd1f5291cc3d6784dc
BLAKE2b-256 037d4479b1fececd0de82d11246fdb24f79ae40c4e34303da2b5e7a5b962c18f

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 Pingdom Monitoring Sentry Error logging StatusPage Status page