python-eigen-ingenuity 0.5.6b2__tar.gz → 0.5.6b4__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.6b2 → python_eigen_ingenuity-0.5.6b4}/MANIFEST.in +3 -1
- {python_eigen_ingenuity-0.5.6b2/python_eigen_ingenuity.egg-info → python_eigen_ingenuity-0.5.6b4}/PKG-INFO +6 -1
- python_eigen_ingenuity-0.5.6b4/README-nocli.md +8 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/README.md +5 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/processors/relationshipfileprocessor.py +8 -4
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4/python_eigen_ingenuity.egg-info}/PKG-INFO +6 -1
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/python_eigen_ingenuity.egg-info/SOURCES.txt +2 -0
- python_eigen_ingenuity-0.5.6b4/python_eigen_ingenuity.egg-info/entry_points.txt +2 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/setup.py +7 -2
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/assetmodel.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/auth.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/core/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/elastic.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/events.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/historian.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/historianmulti.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/settings.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/smartdash.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/sql.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/util.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/assetmodelbuilder.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/assetmodelcsvwriter.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/assetmodelutilities.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/configmanager.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/connectors/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/connectors/boltconnector.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/connectors/dbconnectors.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/connectors/genericconnector.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/connectors/httpsconnector.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/csvcontentsmanager.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/csvwriter.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/fileanalyser.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/filemanager.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/messages.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/processors/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/processors/cypherfileprocessor.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/processors/labelmanager.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/processors/nodefileprocessor.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/processors/propertymanager.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/processors/relationshipmanager.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/queries/__init__.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/queries/cypherbuilder.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/queries/query.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/queries/typedefs.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/versionmanager.py +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/pyproject.toml +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/python_eigen_ingenuity.egg-info/dependency_links.txt +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/python_eigen_ingenuity.egg-info/requires.txt +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/python_eigen_ingenuity.egg-info/top_level.txt +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/requirements.txt +0 -0
- {python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-eigen-ingenuity
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.6b4
|
|
4
4
|
Summary: A python library used to query data from the Eigen Ingenuity system
|
|
5
5
|
Home-page: https://www.eigen.co/
|
|
6
6
|
Author: Murray Callander
|
|
@@ -75,6 +75,11 @@ This library supports python 3.10 onwards. It may work for earlier versions of p
|
|
|
75
75
|
|
|
76
76
|
The python-eigen-ingenuity library contains 2 modules:
|
|
77
77
|
|
|
78
|
+
# Note <!-- omit in toc -->
|
|
79
|
+
This version of the library includes a CLI tool for building assetmodels on Eigen Systems (See [ModelBuilder Section](#asset-model-builder)). On some secured machines this cli tool may cause the library to fail to install, or raise an error.
|
|
80
|
+
|
|
81
|
+
if this occurs, install the version without the CLI tool [here](https://pypi.org/project/python-eigen-ingenuity-nocli/)
|
|
82
|
+
|
|
78
83
|
### 1. Eigen Ingenuity <!-- omit in toc -->
|
|
79
84
|
This module is used to query data from many of the databases in the Ingenuity Platform, including:
|
|
80
85
|
- timeseries historians (influx, PI, IP21, cognite)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# About<a id="about"></a>
|
|
2
|
+
|
|
3
|
+
This is a version of the Eigen python library [python-eigen-ingenuity](#https://pypi.org/project/python-eigen-ingenuity/) without the cli tool for building assetmodels. The model builder is still available in the code, but the always-active cli functionality is removed.
|
|
4
|
+
|
|
5
|
+
Th reason for this is that on some user computers that are locked down for security reasons, the library will fail to install with the cli present.
|
|
6
|
+
|
|
7
|
+
For the full documentation on how to use the library please refer to the ReadMe of the [Main Project](#https://pypi.org/project/python-eigen-ingenuity/)
|
|
8
|
+
|
|
@@ -53,6 +53,11 @@ This library supports python 3.10 onwards. It may work for earlier versions of p
|
|
|
53
53
|
|
|
54
54
|
The python-eigen-ingenuity library contains 2 modules:
|
|
55
55
|
|
|
56
|
+
# Note <!-- omit in toc -->
|
|
57
|
+
This version of the library includes a CLI tool for building assetmodels on Eigen Systems (See [ModelBuilder Section](#asset-model-builder)). On some secured machines this cli tool may cause the library to fail to install, or raise an error.
|
|
58
|
+
|
|
59
|
+
if this occurs, install the version without the CLI tool [here](https://pypi.org/project/python-eigen-ingenuity-nocli/)
|
|
60
|
+
|
|
56
61
|
### 1. Eigen Ingenuity <!-- omit in toc -->
|
|
57
62
|
This module is used to query data from many of the databases in the Ingenuity Platform, including:
|
|
58
63
|
- timeseries historians (influx, PI, IP21, cognite)
|
|
@@ -109,7 +109,7 @@ class RelationshipFileProcessor:
|
|
|
109
109
|
query_text = query_text.on_create().set_literal(create_time).set_literal(update_time)
|
|
110
110
|
|
|
111
111
|
if len(properties) > 0:
|
|
112
|
-
query_text = query_text.set(properties=properties)
|
|
112
|
+
query_text = query_text.set(properties=properties, property_ref=relation_ref_dot)
|
|
113
113
|
query_text = query_text.toStr()
|
|
114
114
|
query = Neo4jQuery('relationship', query_text, time_now)
|
|
115
115
|
|
|
@@ -177,8 +177,9 @@ class RelationshipFileProcessor:
|
|
|
177
177
|
for relation in relationship.split(':'):
|
|
178
178
|
if relation:
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
explicit_properties, calculated_properties = pm.split_out_functional_properties(properties)
|
|
181
|
+
new_labels = [from_labels, to_labels, relation, list(from_node)[0], list(to_node)[0], calculated_properties]
|
|
182
|
+
query_data = [list(from_node.values())[0], list(to_node.values())[0], explicit_properties, calculated_properties, time_now]
|
|
182
183
|
|
|
183
184
|
# So now we know all about this particular update. Let's put it in the query dictionary
|
|
184
185
|
try:
|
|
@@ -220,10 +221,11 @@ class RelationshipFileProcessor:
|
|
|
220
221
|
# Combine all the update data...
|
|
221
222
|
update = updates[(batch_num - 1) * self.batch_rate + this_size]
|
|
222
223
|
update_properties = update[2] or {} # In case update_properties[2] is {}
|
|
224
|
+
func_properties = update[3] or {} # In case update_properties[3] is {}
|
|
223
225
|
update_properties[from_ref + from_type] = update[0]
|
|
224
226
|
update_properties[to_ref + to_type] = update[1]
|
|
225
227
|
if self.add_system_properties:
|
|
226
|
-
update_properties[self.update_time_property] = update[
|
|
228
|
+
update_properties[self.update_time_property] = update[4]
|
|
227
229
|
payload.append(update_properties)
|
|
228
230
|
this_size += 1
|
|
229
231
|
query_count += 1
|
|
@@ -253,6 +255,8 @@ class RelationshipFileProcessor:
|
|
|
253
255
|
query_text = query_text.on_create().set_literal(create_time)
|
|
254
256
|
|
|
255
257
|
query_text = query_text.set_literal(relation_ref + ' += ' + payload_ref)
|
|
258
|
+
if func_properties:
|
|
259
|
+
query_text = query_text.set_functional(func_properties, relation_ref_dot)
|
|
256
260
|
|
|
257
261
|
if self.add_system_properties:
|
|
258
262
|
query_text = query_text.set_literal(update_time)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-eigen-ingenuity
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.6b4
|
|
4
4
|
Summary: A python library used to query data from the Eigen Ingenuity system
|
|
5
5
|
Home-page: https://www.eigen.co/
|
|
6
6
|
Author: Murray Callander
|
|
@@ -75,6 +75,11 @@ This library supports python 3.10 onwards. It may work for earlier versions of p
|
|
|
75
75
|
|
|
76
76
|
The python-eigen-ingenuity library contains 2 modules:
|
|
77
77
|
|
|
78
|
+
# Note <!-- omit in toc -->
|
|
79
|
+
This version of the library includes a CLI tool for building assetmodels on Eigen Systems (See [ModelBuilder Section](#asset-model-builder)). On some secured machines this cli tool may cause the library to fail to install, or raise an error.
|
|
80
|
+
|
|
81
|
+
if this occurs, install the version without the CLI tool [here](https://pypi.org/project/python-eigen-ingenuity-nocli/)
|
|
82
|
+
|
|
78
83
|
### 1. Eigen Ingenuity <!-- omit in toc -->
|
|
79
84
|
This module is used to query data from many of the databases in the Ingenuity Platform, including:
|
|
80
85
|
- timeseries historians (influx, PI, IP21, cognite)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
MANIFEST.in
|
|
2
|
+
README-nocli.md
|
|
2
3
|
README.md
|
|
3
4
|
pyproject.toml
|
|
4
5
|
requirements.txt
|
|
@@ -46,5 +47,6 @@ modelbuilder/src/queries/typedefs.py
|
|
|
46
47
|
python_eigen_ingenuity.egg-info/PKG-INFO
|
|
47
48
|
python_eigen_ingenuity.egg-info/SOURCES.txt
|
|
48
49
|
python_eigen_ingenuity.egg-info/dependency_links.txt
|
|
50
|
+
python_eigen_ingenuity.egg-info/entry_points.txt
|
|
49
51
|
python_eigen_ingenuity.egg-info/requires.txt
|
|
50
52
|
python_eigen_ingenuity.egg-info/top_level.txt
|
|
@@ -24,5 +24,10 @@ setup(
|
|
|
24
24
|
long_description_content_type="text/markdown",
|
|
25
25
|
packages=find_packages("."),
|
|
26
26
|
license='Apache License 2.0',
|
|
27
|
-
install_requires=[install_requires]
|
|
28
|
-
|
|
27
|
+
install_requires=[install_requires],
|
|
28
|
+
entry_points={
|
|
29
|
+
'console_scripts': [
|
|
30
|
+
'assetmodelbuilder=modelbuilder:__cli_entrypoint__',
|
|
31
|
+
],
|
|
32
|
+
}
|
|
33
|
+
)
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/__init__.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/assetmodel.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/core/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/historian.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/historianmulti.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/settings.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/eigeningenuity/smartdash.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/configmanager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/csvwriter.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/fileanalyser.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/filemanager.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/messages.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/queries/query.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.5.6b2 → python_eigen_ingenuity-0.5.6b4}/modelbuilder/src/versionmanager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|