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
tagreader-1.1.0.tar.gz
(37.7 kB
view hashes)
Built Distribution
tagreader-1.1.0-py3-none-any.whl
(15.6 kB
view hashes)
Close
Hashes for tagreader-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbdac8513268e165c8608fe8d798b5637953066341d2a5a4e8733ac1e1b37c65 |
|
MD5 | 6868b5f1b8c776d36f711d71f3e6e7a0 |
|
BLAKE2b-256 | ec5a11d7ba705e4ff9bafb2c40a9d6e007ae74e7c20146d262cd0b7f13a32bbc |