Skip to main content

Python interface to Archiver Appliance

Project description

PyArchAppl

PyPI - Version PyPI - License Static Badge Static Badge Static Badge

The Python client library for Archiver Appliance.

Installation

pip install pyarchappl [--upgrade]

User Guide

Site Configuration

A site configuration file is an INI file which defines how the package work with the service. The full version of the configuration file could be found at default.init

The search priority follows:

  1. ~/.pyarchappl/config.ini
  2. /etc/pyarchappl/config.ini
  3. <package-default>: default.ini

However, it could be overridden via an env PYARCHAPPL_CONFIG_FILE.

CLI Tools

PyArchAppl provides convenient command line interface tools as console apps:

  • pyarchappl-get: the tool for data retrieval, read the usage help message by -h option
  • pyarchappl-inspect: the tool for inspect the information, -h for help

Development

[Optional] Set up Archiver Appliance testing environment

Data Retrieval Interface

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()

Management Interface

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']

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-py2.py3-none-any.whl (43.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pyarchappl-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 43.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for pyarchappl-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6a069e96721713b84f172e31f4b38e14227501318db1f2b67f30a179fdbd535d
MD5 f97ce346debc030539cef021393ea799
BLAKE2b-256 9c27f97326362e624a64a62c5d52980c1b72154d5c5dae9e04355fae13c66fda

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