python-eigen-ingenuity 0.5.24b2__tar.gz → 0.5.25__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_eigen_ingenuity-0.5.25/PKG-INFO +252 -0
- python_eigen_ingenuity-0.5.25/README.md +221 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/assetmodel.py +96 -76
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/auth.py +4 -2
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/commonmenu.py +82 -78
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/elastic.py +20 -5
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/events.py +91 -60
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/historian.py +134 -28
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/historianmulti.py +244 -152
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/logformatter.py +46 -1
- python_eigen_ingenuity-0.5.25/eigeningenuity/settings.py +128 -0
- python_eigen_ingenuity-0.5.25/eigeningenuity/sql.py +184 -0
- python_eigen_ingenuity-0.5.25/python_eigen_ingenuity.egg-info/PKG-INFO +252 -0
- python_eigen_ingenuity-0.5.24b2/PKG-INFO +0 -901
- python_eigen_ingenuity-0.5.24b2/README.md +0 -870
- python_eigen_ingenuity-0.5.24b2/eigeningenuity/settings.py +0 -116
- python_eigen_ingenuity-0.5.24b2/eigeningenuity/sql.py +0 -132
- python_eigen_ingenuity-0.5.24b2/python_eigen_ingenuity.egg-info/PKG-INFO +0 -901
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/MANIFEST.in +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/README-nocli.md +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/core/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/eigeningenuity/util.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/common.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/config.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/demo.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historian/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historian/test_getCurrentDataPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historian/test_getInterpolatedPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historian/test_getInterpolatedRange.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historian/test_getMetaData.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historian/test_getRawDataPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historian/test_listDataTags.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historian/test_writePoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/common_multi.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/test_getClosestRawPoint.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/test_getCurrentDataPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/test_getInterpolatedPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/test_getInterpolatedRange.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/test_getMetaData.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/test_getRawDatapoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/test_listDataTags.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/test_tagManagement.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/historianmulti/test_writePoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/local-tests/run_tests.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/assetmodelbuilder.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/assetmodelcsvwriter.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/assetmodelutilities.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/configmanager.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/connectors/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/connectors/boltconnector.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/connectors/dbconnectors.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/connectors/genericconnector.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/connectors/httpsconnector.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/csvcontentsmanager.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/csvwriter.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/fileanalyser.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/filemanager.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/messages.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/processors/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/processors/cypherfileprocessor.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/processors/labelmanager.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/processors/nodefileprocessor.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/processors/propertymanager.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/processors/relationshipfileprocessor.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/processors/relationshipmanager.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/property.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/queries/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/queries/cypherbuilder.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/queries/query.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/modelbuilder/src/versionmanager.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/pyproject.toml +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/python_eigen_ingenuity.egg-info/SOURCES.txt +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/python_eigen_ingenuity.egg-info/dependency_links.txt +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/python_eigen_ingenuity.egg-info/entry_points.txt +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/python_eigen_ingenuity.egg-info/requires.txt +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/python_eigen_ingenuity.egg-info/top_level.txt +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/common.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/common_multi.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian/common.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian/test_getCurrentDataPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian/test_getInterpolatedPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian/test_getInterpolatedRange.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian/test_getMetaData.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian/test_getRawDataPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian/test_listDataTags.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian/test_writePoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/common_multi.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/test_getClosestRawPoint.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/test_getCurrentDataPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/test_getInterpolatedPoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/test_getInterpolatedRange.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/test_getMetaData.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/test_getRawDatapoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/test_listDataTags.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/test_tagManagement.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/regressiontests/eigeningenuity/historian-multi/test_writePoints.py +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/requirements.txt +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/setup.cfg +0 -0
- {python_eigen_ingenuity-0.5.24b2 → python_eigen_ingenuity-0.5.25}/setup.py +0 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: python-eigen-ingenuity
|
|
3
|
+
Version: 0.5.25
|
|
4
|
+
Summary: A python library used to query data from the Eigen Ingenuity system
|
|
5
|
+
Home-page: https://www.eigen.co/
|
|
6
|
+
Author: Murray Callander
|
|
7
|
+
Author-email: info@eigen.co
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: numpy
|
|
11
|
+
Requires-Dist: pandas
|
|
12
|
+
Requires-Dist: pyserial
|
|
13
|
+
Requires-Dist: setuptools
|
|
14
|
+
Requires-Dist: urllib3
|
|
15
|
+
Requires-Dist: msal
|
|
16
|
+
Requires-Dist: cryptography
|
|
17
|
+
Requires-Dist: keyring
|
|
18
|
+
Requires-Dist: pyarrow
|
|
19
|
+
Requires-Dist: neo4j>=5.17.0
|
|
20
|
+
Requires-Dist: requests>=2.31.0
|
|
21
|
+
Requires-Dist: dateparser
|
|
22
|
+
Requires-Dist: importlib-metadata>=1.0; python_version < "3.8"
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: author-email
|
|
25
|
+
Dynamic: description
|
|
26
|
+
Dynamic: description-content-type
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: license
|
|
29
|
+
Dynamic: requires-dist
|
|
30
|
+
Dynamic: summary
|
|
31
|
+
|
|
32
|
+
# Python Eigen Ingenuity SDK
|
|
33
|
+
|
|
34
|
+
## Overview
|
|
35
|
+
|
|
36
|
+
**Python Eigen Ingenuity** is a comprehensive Python library for accessing industrial data from Eigen Ingenuity instances. It enables seamless integration with time-series data, asset models, event logs, and SQL databases for analytics, automation, and ML workflows.
|
|
37
|
+
|
|
38
|
+
Supports Python 3.12+
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Table of Contents
|
|
43
|
+
|
|
44
|
+
- [Python Eigen Ingenuity SDK](#python-eigen-ingenuity-sdk)
|
|
45
|
+
- [Overview](#overview)
|
|
46
|
+
- [Table of Contents](#table-of-contents)
|
|
47
|
+
- [Core Modules](#core-modules)
|
|
48
|
+
- [1. Historian Multi](#1-historian-multi)
|
|
49
|
+
- [2. Asset Model](#2-asset-model)
|
|
50
|
+
- [3. Eventlog](#3-eventlog)
|
|
51
|
+
- [4. SQL](#4-sql)
|
|
52
|
+
- [5. Common Menu](#5-common-menu)
|
|
53
|
+
- [6. Elastic (Deprecated)](#6-elastic-deprecated)
|
|
54
|
+
- [7. Historian (Deprecated)](#7-historian-deprecated)
|
|
55
|
+
- [Authentication](#authentication)
|
|
56
|
+
- [Key Features](#key-features)
|
|
57
|
+
- [Further Documentation](#further-documentation)
|
|
58
|
+
- [Support](#support)
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Core Modules
|
|
63
|
+
|
|
64
|
+
Each module is queried by first instantiating a client object that manages onnection to a certain api. e.g. `get_histoiran_multi()` then all queries are performed as methods on the returned class
|
|
65
|
+
|
|
66
|
+
e.g.
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
hm = get_historian_multi("demo.eigen.co", "Demo-influxdb")
|
|
70
|
+
current = hm.getCurrentDataPoints("DEMO_02TI301.PV")
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 1. Historian Multi
|
|
74
|
+
|
|
75
|
+
Query time-series data from multiple historians simultaneously. Handles reading, writing, and managing data point metadata.
|
|
76
|
+
|
|
77
|
+
**Connection Function:**
|
|
78
|
+
|
|
79
|
+
- `get_historian_multi` — Initialize Historian Multi client
|
|
80
|
+
|
|
81
|
+
**Reading Data Functions:**
|
|
82
|
+
|
|
83
|
+
- `getCurrentDataPoints` — Fetch the latest tag values instantly
|
|
84
|
+
- `getInterpolatedPoints` — Retrieve interpolated data at specific timestamps
|
|
85
|
+
- `getInterpolatedRange` — Get interpolated data across a time range
|
|
86
|
+
- `getRawDatapoints` — Fetch raw historian data without interpolation
|
|
87
|
+
- `getClosestRawPoint` — Find the nearest raw data point to a specific time
|
|
88
|
+
|
|
89
|
+
**Aggregation Functions:**
|
|
90
|
+
|
|
91
|
+
- `getAggregates` — Compute statistics (min, max, avg, stdDev, median, count, etc.)
|
|
92
|
+
- `getAggregateIntervals` — Calculate aggregates over regular time intervals
|
|
93
|
+
|
|
94
|
+
**Metadata Functions:**
|
|
95
|
+
|
|
96
|
+
- `listHistorians` — List all available historian connections
|
|
97
|
+
- `listDataTags` — Retrieve all data tags from a historian
|
|
98
|
+
- `getMetaData` — Fetch metadata for specific tags
|
|
99
|
+
- `createTag` — Create a new data tag
|
|
100
|
+
- `updateTag` — Modify existing tag configuration
|
|
101
|
+
|
|
102
|
+
**Writing Data Functions:**
|
|
103
|
+
|
|
104
|
+
- `writePoints` — Write individual data points to tags
|
|
105
|
+
- `writePointsBatch` — Batch write multiple data points efficiently
|
|
106
|
+
- `createPoint` — Create a formatted data point object
|
|
107
|
+
- `createAndPopulateTag` — Create a new tag and immediately populate it with data
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
### 2. Asset Model
|
|
112
|
+
|
|
113
|
+
Navigate the Neo4J asset model to browse assets, their properties, related assets, and associated measurements.
|
|
114
|
+
|
|
115
|
+
**Connection Function:**
|
|
116
|
+
|
|
117
|
+
- `get_assetmodel` — Initialize Asset Model Client
|
|
118
|
+
|
|
119
|
+
**Core Functions:**
|
|
120
|
+
|
|
121
|
+
- `getRelatedAssets` — Retrieve all instruments or components related to an asset
|
|
122
|
+
- `getProperties` — Get metadata fields and custom properties from assets
|
|
123
|
+
- `getMeasurements` — Fetch all timeseries measurements configured for an asset
|
|
124
|
+
- `executeRawQuery` — Run custom Neo4J Cypher queries against the asset model
|
|
125
|
+
- `getDocuments` — Retrieve reference documents attached to assets
|
|
126
|
+
- `getLabels` — Get asset classification labels
|
|
127
|
+
- `getMatchingNodes` — Find assets matching specific criteria
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### 3. Eventlog
|
|
132
|
+
|
|
133
|
+
Query, filter, and manage event records in the Ingenuity event log system.
|
|
134
|
+
|
|
135
|
+
**Connection Function:**
|
|
136
|
+
|
|
137
|
+
- `get_eventlog` — Initialize Eventlog client
|
|
138
|
+
|
|
139
|
+
**Query Functions:**
|
|
140
|
+
|
|
141
|
+
- `getEvents` — Execute raw queries with filters (severity, type, source, etc.)
|
|
142
|
+
- `getEventsBySource` — Filter events by source identifier (partial or exact match)
|
|
143
|
+
- `getEventsByType` — Filter events by event type
|
|
144
|
+
- `getEventsById` — Retrieve events by event ID, external ID, or episode ID
|
|
145
|
+
|
|
146
|
+
**Management Functions:**
|
|
147
|
+
|
|
148
|
+
- `pushToEventlog` — Create and push new events to the event log
|
|
149
|
+
- `deleteEventsById` — Remove unwanted events in bulk
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
### 4. SQL
|
|
154
|
+
|
|
155
|
+
Execute read-only queries against SQL databases connected to Ingenuity instances.
|
|
156
|
+
|
|
157
|
+
**Connection Function:**
|
|
158
|
+
|
|
159
|
+
- `get_sql` — Initialize SQL client
|
|
160
|
+
|
|
161
|
+
**Query Functions:**
|
|
162
|
+
|
|
163
|
+
- `executeRawQuery` — Execute raw SQL queries with multiple output formats (JSON, DataFrame, CSV file)
|
|
164
|
+
- `listDatabases` — Retrieve list of available SQL databases
|
|
165
|
+
- `listTables` — List tables within a specific database
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
### 5. Common Menu
|
|
170
|
+
|
|
171
|
+
Query asset relationships, measurements, properties, and documents through a unified interface.
|
|
172
|
+
|
|
173
|
+
**Connection Function:**
|
|
174
|
+
|
|
175
|
+
- `get_common_menu` — Initialize Common Menu client
|
|
176
|
+
|
|
177
|
+
**Functions:**
|
|
178
|
+
|
|
179
|
+
- `getRelatedAssets` — Query related assets
|
|
180
|
+
- `getProperties` — Fetch asset properties
|
|
181
|
+
- `getMeasurements` — Get measurements for assets
|
|
182
|
+
- `getDocuments` — Retrieve associated documents
|
|
183
|
+
- `getEvents` — Query events from the Common Menu perspective
|
|
184
|
+
- `getDrivers` — Get driver information
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
### 6. Elastic (Deprecated)
|
|
189
|
+
|
|
190
|
+
Legacy module for querying Elasticsearch-backed data sources. Flagged for removal in a future release. **Use Eventlog instead.**
|
|
191
|
+
|
|
192
|
+
**Connection Function:**
|
|
193
|
+
|
|
194
|
+
- `get_elastic` — Initialize legacy Elastic client
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
### 7. Historian (Deprecated)
|
|
199
|
+
|
|
200
|
+
Legacy single-historian client. Flagged for removal in a future release. **Use Historian Multi instead.**
|
|
201
|
+
|
|
202
|
+
**Connection Function:**
|
|
203
|
+
|
|
204
|
+
- `get_historian` — Initialize legacy Historian client for a single data source
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## Authentication
|
|
209
|
+
|
|
210
|
+
The library supports Azure authentication with:
|
|
211
|
+
|
|
212
|
+
- **User Credentials Flow** — Interactive authentication
|
|
213
|
+
- **CLIENT_CREDENTIALS Flow** — Service principal authentication
|
|
214
|
+
- **API Token** — Direct token-based access
|
|
215
|
+
|
|
216
|
+
**Configuration Functions:**
|
|
217
|
+
|
|
218
|
+
- `set_azure_tenant_id` — Specify Azure tenant
|
|
219
|
+
- `set_azure_client_id` — Specify client/application ID
|
|
220
|
+
- `set_azure_client_secret` — Specify client secret (for CLIENT_CREDENTIALS)
|
|
221
|
+
- `set_api_token` — Set API token alternative to Azure auth
|
|
222
|
+
- `set_auth_scope` — Configure OAuth scope
|
|
223
|
+
- `disable_azure_auth` — Skip Azure authentication
|
|
224
|
+
- `disable_auth_token_cache` — Disable token caching for security
|
|
225
|
+
- `clear_auth_token_cache` — Remove cached tokens
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## Key Features
|
|
230
|
+
|
|
231
|
+
✅ **Multi-Source Data Access** — Query historians, asset models, SQL, and events in one library
|
|
232
|
+
✅ **Aggregations & Statistics** — Built-in support for min, max, average, standard deviation, median, and more
|
|
233
|
+
✅ **Batch Operations** — Efficient bulk writes and queries
|
|
234
|
+
✅ **Azure Authentication** — Enterprise authentication support
|
|
235
|
+
✅ **Flexible Output** — JSON, DataFrames, files, or raw responses
|
|
236
|
+
✅ **Time-Series Focused** — Purpose-built for industrial data workflows
|
|
237
|
+
✅ **Neo4J Integration** — Direct access to asset model graph database
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## Further Documentation
|
|
242
|
+
|
|
243
|
+
For complete function signatures, detailed parameters, and code examples, visit:
|
|
244
|
+
|
|
245
|
+
**📖 [https://docs.eigeningenuity.co/developing-with-eigen/python-library/](https://docs.eigeningenuity.co/developing-with-eigen/python-library/)**
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Support
|
|
250
|
+
|
|
251
|
+
- **Documentation Portal:** https://docs.eigeningenuity.co/
|
|
252
|
+
- **Support Tickets:** https://eigen.freshdesk.com
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# Python Eigen Ingenuity SDK
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
**Python Eigen Ingenuity** is a comprehensive Python library for accessing industrial data from Eigen Ingenuity instances. It enables seamless integration with time-series data, asset models, event logs, and SQL databases for analytics, automation, and ML workflows.
|
|
6
|
+
|
|
7
|
+
Supports Python 3.12+
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Table of Contents
|
|
12
|
+
|
|
13
|
+
- [Python Eigen Ingenuity SDK](#python-eigen-ingenuity-sdk)
|
|
14
|
+
- [Overview](#overview)
|
|
15
|
+
- [Table of Contents](#table-of-contents)
|
|
16
|
+
- [Core Modules](#core-modules)
|
|
17
|
+
- [1. Historian Multi](#1-historian-multi)
|
|
18
|
+
- [2. Asset Model](#2-asset-model)
|
|
19
|
+
- [3. Eventlog](#3-eventlog)
|
|
20
|
+
- [4. SQL](#4-sql)
|
|
21
|
+
- [5. Common Menu](#5-common-menu)
|
|
22
|
+
- [6. Elastic (Deprecated)](#6-elastic-deprecated)
|
|
23
|
+
- [7. Historian (Deprecated)](#7-historian-deprecated)
|
|
24
|
+
- [Authentication](#authentication)
|
|
25
|
+
- [Key Features](#key-features)
|
|
26
|
+
- [Further Documentation](#further-documentation)
|
|
27
|
+
- [Support](#support)
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Core Modules
|
|
32
|
+
|
|
33
|
+
Each module is queried by first instantiating a client object that manages onnection to a certain api. e.g. `get_histoiran_multi()` then all queries are performed as methods on the returned class
|
|
34
|
+
|
|
35
|
+
e.g.
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
hm = get_historian_multi("demo.eigen.co", "Demo-influxdb")
|
|
39
|
+
current = hm.getCurrentDataPoints("DEMO_02TI301.PV")
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 1. Historian Multi
|
|
43
|
+
|
|
44
|
+
Query time-series data from multiple historians simultaneously. Handles reading, writing, and managing data point metadata.
|
|
45
|
+
|
|
46
|
+
**Connection Function:**
|
|
47
|
+
|
|
48
|
+
- `get_historian_multi` — Initialize Historian Multi client
|
|
49
|
+
|
|
50
|
+
**Reading Data Functions:**
|
|
51
|
+
|
|
52
|
+
- `getCurrentDataPoints` — Fetch the latest tag values instantly
|
|
53
|
+
- `getInterpolatedPoints` — Retrieve interpolated data at specific timestamps
|
|
54
|
+
- `getInterpolatedRange` — Get interpolated data across a time range
|
|
55
|
+
- `getRawDatapoints` — Fetch raw historian data without interpolation
|
|
56
|
+
- `getClosestRawPoint` — Find the nearest raw data point to a specific time
|
|
57
|
+
|
|
58
|
+
**Aggregation Functions:**
|
|
59
|
+
|
|
60
|
+
- `getAggregates` — Compute statistics (min, max, avg, stdDev, median, count, etc.)
|
|
61
|
+
- `getAggregateIntervals` — Calculate aggregates over regular time intervals
|
|
62
|
+
|
|
63
|
+
**Metadata Functions:**
|
|
64
|
+
|
|
65
|
+
- `listHistorians` — List all available historian connections
|
|
66
|
+
- `listDataTags` — Retrieve all data tags from a historian
|
|
67
|
+
- `getMetaData` — Fetch metadata for specific tags
|
|
68
|
+
- `createTag` — Create a new data tag
|
|
69
|
+
- `updateTag` — Modify existing tag configuration
|
|
70
|
+
|
|
71
|
+
**Writing Data Functions:**
|
|
72
|
+
|
|
73
|
+
- `writePoints` — Write individual data points to tags
|
|
74
|
+
- `writePointsBatch` — Batch write multiple data points efficiently
|
|
75
|
+
- `createPoint` — Create a formatted data point object
|
|
76
|
+
- `createAndPopulateTag` — Create a new tag and immediately populate it with data
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
### 2. Asset Model
|
|
81
|
+
|
|
82
|
+
Navigate the Neo4J asset model to browse assets, their properties, related assets, and associated measurements.
|
|
83
|
+
|
|
84
|
+
**Connection Function:**
|
|
85
|
+
|
|
86
|
+
- `get_assetmodel` — Initialize Asset Model Client
|
|
87
|
+
|
|
88
|
+
**Core Functions:**
|
|
89
|
+
|
|
90
|
+
- `getRelatedAssets` — Retrieve all instruments or components related to an asset
|
|
91
|
+
- `getProperties` — Get metadata fields and custom properties from assets
|
|
92
|
+
- `getMeasurements` — Fetch all timeseries measurements configured for an asset
|
|
93
|
+
- `executeRawQuery` — Run custom Neo4J Cypher queries against the asset model
|
|
94
|
+
- `getDocuments` — Retrieve reference documents attached to assets
|
|
95
|
+
- `getLabels` — Get asset classification labels
|
|
96
|
+
- `getMatchingNodes` — Find assets matching specific criteria
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
### 3. Eventlog
|
|
101
|
+
|
|
102
|
+
Query, filter, and manage event records in the Ingenuity event log system.
|
|
103
|
+
|
|
104
|
+
**Connection Function:**
|
|
105
|
+
|
|
106
|
+
- `get_eventlog` — Initialize Eventlog client
|
|
107
|
+
|
|
108
|
+
**Query Functions:**
|
|
109
|
+
|
|
110
|
+
- `getEvents` — Execute raw queries with filters (severity, type, source, etc.)
|
|
111
|
+
- `getEventsBySource` — Filter events by source identifier (partial or exact match)
|
|
112
|
+
- `getEventsByType` — Filter events by event type
|
|
113
|
+
- `getEventsById` — Retrieve events by event ID, external ID, or episode ID
|
|
114
|
+
|
|
115
|
+
**Management Functions:**
|
|
116
|
+
|
|
117
|
+
- `pushToEventlog` — Create and push new events to the event log
|
|
118
|
+
- `deleteEventsById` — Remove unwanted events in bulk
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
### 4. SQL
|
|
123
|
+
|
|
124
|
+
Execute read-only queries against SQL databases connected to Ingenuity instances.
|
|
125
|
+
|
|
126
|
+
**Connection Function:**
|
|
127
|
+
|
|
128
|
+
- `get_sql` — Initialize SQL client
|
|
129
|
+
|
|
130
|
+
**Query Functions:**
|
|
131
|
+
|
|
132
|
+
- `executeRawQuery` — Execute raw SQL queries with multiple output formats (JSON, DataFrame, CSV file)
|
|
133
|
+
- `listDatabases` — Retrieve list of available SQL databases
|
|
134
|
+
- `listTables` — List tables within a specific database
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
### 5. Common Menu
|
|
139
|
+
|
|
140
|
+
Query asset relationships, measurements, properties, and documents through a unified interface.
|
|
141
|
+
|
|
142
|
+
**Connection Function:**
|
|
143
|
+
|
|
144
|
+
- `get_common_menu` — Initialize Common Menu client
|
|
145
|
+
|
|
146
|
+
**Functions:**
|
|
147
|
+
|
|
148
|
+
- `getRelatedAssets` — Query related assets
|
|
149
|
+
- `getProperties` — Fetch asset properties
|
|
150
|
+
- `getMeasurements` — Get measurements for assets
|
|
151
|
+
- `getDocuments` — Retrieve associated documents
|
|
152
|
+
- `getEvents` — Query events from the Common Menu perspective
|
|
153
|
+
- `getDrivers` — Get driver information
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### 6. Elastic (Deprecated)
|
|
158
|
+
|
|
159
|
+
Legacy module for querying Elasticsearch-backed data sources. Flagged for removal in a future release. **Use Eventlog instead.**
|
|
160
|
+
|
|
161
|
+
**Connection Function:**
|
|
162
|
+
|
|
163
|
+
- `get_elastic` — Initialize legacy Elastic client
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
### 7. Historian (Deprecated)
|
|
168
|
+
|
|
169
|
+
Legacy single-historian client. Flagged for removal in a future release. **Use Historian Multi instead.**
|
|
170
|
+
|
|
171
|
+
**Connection Function:**
|
|
172
|
+
|
|
173
|
+
- `get_historian` — Initialize legacy Historian client for a single data source
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Authentication
|
|
178
|
+
|
|
179
|
+
The library supports Azure authentication with:
|
|
180
|
+
|
|
181
|
+
- **User Credentials Flow** — Interactive authentication
|
|
182
|
+
- **CLIENT_CREDENTIALS Flow** — Service principal authentication
|
|
183
|
+
- **API Token** — Direct token-based access
|
|
184
|
+
|
|
185
|
+
**Configuration Functions:**
|
|
186
|
+
|
|
187
|
+
- `set_azure_tenant_id` — Specify Azure tenant
|
|
188
|
+
- `set_azure_client_id` — Specify client/application ID
|
|
189
|
+
- `set_azure_client_secret` — Specify client secret (for CLIENT_CREDENTIALS)
|
|
190
|
+
- `set_api_token` — Set API token alternative to Azure auth
|
|
191
|
+
- `set_auth_scope` — Configure OAuth scope
|
|
192
|
+
- `disable_azure_auth` — Skip Azure authentication
|
|
193
|
+
- `disable_auth_token_cache` — Disable token caching for security
|
|
194
|
+
- `clear_auth_token_cache` — Remove cached tokens
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Key Features
|
|
199
|
+
|
|
200
|
+
✅ **Multi-Source Data Access** — Query historians, asset models, SQL, and events in one library
|
|
201
|
+
✅ **Aggregations & Statistics** — Built-in support for min, max, average, standard deviation, median, and more
|
|
202
|
+
✅ **Batch Operations** — Efficient bulk writes and queries
|
|
203
|
+
✅ **Azure Authentication** — Enterprise authentication support
|
|
204
|
+
✅ **Flexible Output** — JSON, DataFrames, files, or raw responses
|
|
205
|
+
✅ **Time-Series Focused** — Purpose-built for industrial data workflows
|
|
206
|
+
✅ **Neo4J Integration** — Direct access to asset model graph database
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Further Documentation
|
|
211
|
+
|
|
212
|
+
For complete function signatures, detailed parameters, and code examples, visit:
|
|
213
|
+
|
|
214
|
+
**📖 [https://docs.eigeningenuity.co/developing-with-eigen/python-library/](https://docs.eigeningenuity.co/developing-with-eigen/python-library/)**
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Support
|
|
219
|
+
|
|
220
|
+
- **Documentation Portal:** https://docs.eigeningenuity.co/
|
|
221
|
+
- **Support Tickets:** https://eigen.freshdesk.com
|