Library for reading from Aspen InfoPlus.21 and OSIsoft PI IMS servers
Project description
tagreader
Tagreader is a Python package for reading trend data from the OSIsoft PI and Aspen Infoplus.21 IMS systems. It is intended to be easy to use, and present as similar as possible interfaces to the backend historians.
Queries are performed using ODBC using proprietary drivers from Aspen and OSIsoft, but code has been structured in such a way as to allow for other interfaces, e.g. REST APIs, in the future. Stay tuned!
Tagreader outputs trend data as Pandas Dataframes, and uses the HDF5 file format to cache results.
Requirements
- Python >= 3.6 with the following packages:
- pandas >= 0.23
- pytables
- pyodbc
- PI ODBC driver and/or Aspen IP.21 SQLPlus ODBC driver
- Microsoft Windows (Sorry. This is due to the proprietary ODBC drivers for OSIsoft PI and Aspen IP.21)
Installation
To install and/or upgrade:
pip install --upgrade tagreader
Usage example
import tagreader
c = tagreader.IMSClient("mysource", "ip21")
print(c.search("mytag%"))
df = s.read_tags(["mytag_1", "mytag_2;with map"], "18.06.2020 08:00:00", "18.06.2020 09:00:00", 60)
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 Distribution
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 tagreader-1.1.0.tar.gz.
File metadata
- Download URL: tagreader-1.1.0.tar.gz
- Upload date:
- Size: 37.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcce67e11c6a444440421347a45d8e43f639d1562c6f474f490fbfce14d08558
|
|
| MD5 |
4779a879ee73168c7b2409498bee1afd
|
|
| BLAKE2b-256 |
285dfc36bca5a75661df17d36e7aff8b6d56272351d88da4ed17fcca7d617484
|
File details
Details for the file tagreader-1.1.0-py3-none-any.whl.
File metadata
- Download URL: tagreader-1.1.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbdac8513268e165c8608fe8d798b5637953066341d2a5a4e8733ac1e1b37c65
|
|
| MD5 |
6868b5f1b8c776d36f711d71f3e6e7a0
|
|
| BLAKE2b-256 |
ec5a11d7ba705e4ff9bafb2c40a9d6e007ae74e7c20146d262cd0b7f13a32bbc
|