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 can be performed using either ODBC or REST API queries. ODBC queries require the installation of proprietary drivers from AspenTech and OSIsoft.
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 >= 1.0.0
- pytables
- pyodbc (if using ODBC connections)
- requests (if using REST-API connections)
- If using ODBC connections, you must also install proprietary drivers for PI ODBC and/or Aspen IP.21 SQLPlus. These drivers are only available for Microsoft Windows.
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)
Also see the quickstart document at gitlab.
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-2.0.0.tar.gz
(22.0 kB
view hashes)
Built Distribution
tagreader-2.0.0-py3-none-any.whl
(21.7 kB
view hashes)
Close
Hashes for tagreader-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d7605badb41055f9cb0601912e21501219fdc874d855994f741e623ca0f8ae |
|
MD5 | d85aadec1d48a715c582721b506b2ee9 |
|
BLAKE2b-256 | f083b095e32cbe2798331a5663afe35ccdcb255887549ee2833a1d791a1c8b0b |