# PyArchAppl
Python client for [Archiver Appliance](https://slacmshankar.github.io/epicsarchiver_docs/index.html).
# 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
```Python
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()
```
![](tests/data_plot1.png?raw=true)
### Data (PV) Management Client
```Python
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']
```
Raw data
{
"_id": null,
"home_page": "https://github.com/archman/pyarchappl",
"name": "pyarchappl",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Archiver EPICS CA PVA",
"author": "Tong Zhang",
"author_email": "zhangt@frib.msu.edu",
"download_url": null,
"platform": null,
"description": "# PyArchAppl\n\nPython client for [Archiver Appliance](https://slacmshankar.github.io/epicsarchiver_docs/index.html).\n\n# Installation\n\n`pip install pyarchappl [--upgrade]`\n\n# User Guide\n\nCommand line tool ``pyarchappl-get`` is the best tool that could be used for\ndata retrieval, read the usage help message by `-h` option.\n\n# Development\n\n## [Optional] Set up Archiver Appliance testing environment\n\n## Data Retrieval Client\n```Python\nfrom archappl.client import ArchiverDataClient\nimport matplotlib.pyplot as plt\n\n\nplt.style.use('ggplot')\n\nclient = ArchiverDataClient()\nclient.url = 'http://127.0.0.1:17665' # default url, optional.\n\npv = 'TST:gaussianNoise'\ndata = client.get_data(pv)\n\ndata.plot()\nplt.show()\n```\n![](tests/data_plot1.png?raw=true)\n\n### Data (PV) Management Client\n```Python\nfrom archappl.client import ArchiverMgmtClient\n\n\nclient = ArchiverMgmtClient()\nclient.url = 'http://127.0.0.1:17665'\n\nall_pvs = client.get_all_pvs()\nprint(all_pvs)\n# [u'TST:fakeGaussianNoise', u'TST:gaussianNoise', u'TST:uniformNoise']\n```\n\n\n",
"bugtrack_url": null,
"license": "GPL3+",
"summary": "Python interface to Archiver Appliance",
"version": "0.10.7",
"project_urls": {
"Homepage": "https://github.com/archman/pyarchappl"
},
"split_keywords": [
"archiver",
"epics",
"ca",
"pva"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "204a856efa4e78b7a73926f32f64a54ec79aa12992daca8c4d8963e789252483",
"md5": "5b84de1260e7f152c7abd980d080109f",
"sha256": "29e0d038bf1feac2d6181935c16187247505922c39e506942ca0a43b06cac876"
},
"downloads": -1,
"filename": "pyarchappl-0.10.7-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "5b84de1260e7f152c7abd980d080109f",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 37311,
"upload_time": "2024-05-10T18:22:49",
"upload_time_iso_8601": "2024-05-10T18:22:49.788150Z",
"url": "https://files.pythonhosted.org/packages/20/4a/856efa4e78b7a73926f32f64a54ec79aa12992daca8c4d8963e789252483/pyarchappl-0.10.7-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-10 18:22:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "archman",
"github_project": "pyarchappl",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "pandas",
"specs": [
[
"==",
"1.5.3"
]
]
},
{
"name": "tqdm",
"specs": [
[
"==",
"4.66.4"
]
]
},
{
"name": "tzlocal",
"specs": [
[
"==",
"4.2"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.31.0"
]
]
},
{
"name": "simplejson",
"specs": [
[
"==",
"3.19.2"
]
]
},
{
"name": "tables",
"specs": [
[
"==",
"3.9.2"
]
]
},
{
"name": "protobuf",
"specs": [
[
"==",
"3.20.3"
]
]
}
],
"lcname": "pyarchappl"
}