Python interface to Archiver Appliance
Project description
PyArchAppl
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
- Support Python 3.9, 3.10, 3.11, 3.12, 3.13
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()
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-hfor help)pyarchappl-inspect— Inspect archiver information (use-hfor help)
Configuration
PyArchAppl uses an INI-style configuration file to define service connection and behavior.
Config file search order:
~/.pyarchappl/config.ini/etc/pyarchappl/config.ini- 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.txtandrequirements-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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyarchappl-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pyarchappl-1.0.1-py3-none-any.whl
- Upload date:
- Size: 48.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a27240354d35e9238675608fb61db3965c37f9e3a7f669786d1a259c742c293e
|
|
| MD5 |
ac0aeb3f494587ead8e7f379e56e5e79
|
|
| BLAKE2b-256 |
e31ffde4a4c996c7494938d75d0eaa9e2f8513bd0071da2079d462aa47f5ded2
|