[go: up one dir, main page]

Skip to content

zhangt58/PyArchAppl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyArchAppl

Python client for Archiver Appliance.

Installation

pip install pyarchappl [--upgrade]

User Guide

Command line tool pyarchappl-get is the best tool that could be used for data retrieval, read the usage help message by -h option.

Development

[Optional] Set up Archiver Appliance testing environment

Data Retrieval Client

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


plt.style.use('ggplot')

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

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

data.plot()
plt.show()

Data (PV) Management Client

from archappl.client import ArchiverMgmtClient


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

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