python-eigen-ingenuity 0.4.37b1__tar.gz → 0.4.37b2__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.4.37b1/python_eigen_ingenuity.egg-info → python_eigen_ingenuity-0.4.37b2}/PKG-INFO +1 -1
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/processors/relationshipfileprocessor.py +9 -5
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/processors/relationshipmanager.py +10 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2/python_eigen_ingenuity.egg-info}/PKG-INFO +1 -1
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/MANIFEST.in +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/README.md +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/__init__.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/assetmodel.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/auth.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/core/__init__.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/elastic.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/events.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/historian.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/historianmulti.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/settings.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/smartdash.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/sql.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/util.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/__init__.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/__init__.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/assetmodelbuilder.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/assetmodelcsvwriter.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/assetmodelutilities.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/configmanager.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/connectors/__init__.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/connectors/boltconnector.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/connectors/dbconnectors.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/connectors/genericconnector.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/connectors/httpsconnector.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/csvcontentsmanager.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/csvwriter.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/fileanalyser.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/filemanager.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/fileprocessors.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/messages.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/processors/__init__.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/processors/cypherfileprocessor.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/processors/labelmanager.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/processors/nodefileprocessor.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/processors/propertymanager.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/queries/__init__.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/queries/cypherbuilder.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/queries/query.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/queries/typedefs.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/versionmanager.py +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/pyproject.toml +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/python_eigen_ingenuity.egg-info/SOURCES.txt +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/python_eigen_ingenuity.egg-info/dependency_links.txt +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/python_eigen_ingenuity.egg-info/entry_points.txt +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/python_eigen_ingenuity.egg-info/requires.txt +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/python_eigen_ingenuity.egg-info/top_level.txt +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/requirements.txt +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/setup.cfg +0 -0
- {python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/setup.py +0 -0
|
@@ -178,6 +178,9 @@ class RelationshipFileProcessor:
|
|
|
178
178
|
for relation in relationship.split(':'):
|
|
179
179
|
if relation:
|
|
180
180
|
|
|
181
|
+
## print(f'FN: {from_node}')
|
|
182
|
+
## print(f'FN: {Properties(from_node).format()}')
|
|
183
|
+
## print(f'FN: {Properties.format_value(from_node)}')
|
|
181
184
|
new_labels = [from_labels, to_labels, relation, list(from_node)[0], list(to_node)[0]]
|
|
182
185
|
query_data = [list(from_node.values())[0], list(to_node.values())[0], properties, time_now]
|
|
183
186
|
|
|
@@ -204,8 +207,8 @@ class RelationshipFileProcessor:
|
|
|
204
207
|
from_labels = batch_keys[from_to_labels][0]
|
|
205
208
|
to_labels = batch_keys[from_to_labels][1]
|
|
206
209
|
relationship = batch_keys[from_to_labels][2]
|
|
207
|
-
from_key = batch_keys[from_to_labels][3]
|
|
208
|
-
to_key = batch_keys[from_to_labels][4]
|
|
210
|
+
from_key, from_type = rm.split_node_key(batch_keys[from_to_labels][3])
|
|
211
|
+
to_key, to_type = rm.split_node_key(batch_keys[from_to_labels][4])
|
|
209
212
|
|
|
210
213
|
batch_num = 1
|
|
211
214
|
while batch_num <= num_batches:
|
|
@@ -221,8 +224,8 @@ class RelationshipFileProcessor:
|
|
|
221
224
|
# Combine all the update data...
|
|
222
225
|
update = updates[(batch_num - 1) * self.batch_rate + this_size]
|
|
223
226
|
update_properties = update[2] or {} # In case update_properties[2] is {}
|
|
224
|
-
update_properties[from_ref] = update[0]
|
|
225
|
-
update_properties[to_ref] = update[1]
|
|
227
|
+
update_properties[from_ref + from_type] = update[0]
|
|
228
|
+
update_properties[to_ref + to_type] = update[1]
|
|
226
229
|
if self.add_system_properties:
|
|
227
230
|
update_properties[self.update_time_property] = update[3]
|
|
228
231
|
payload.append(update_properties)
|
|
@@ -231,8 +234,9 @@ class RelationshipFileProcessor:
|
|
|
231
234
|
|
|
232
235
|
formatted_payload = []
|
|
233
236
|
for a_payload in payload:
|
|
237
|
+
## print(f'AP: {a_payload}')
|
|
234
238
|
formatted_payload.append(Properties(a_payload).format())
|
|
235
|
-
|
|
239
|
+
## print(f'FP: {formatted_payload}')
|
|
236
240
|
# Build a MERGE query using queries
|
|
237
241
|
from_keys = " {" + from_key + ":" + payload_ref_dot + from_ref + "}"
|
|
238
242
|
to_keys = " {" + to_key + ":" + payload_ref_dot + to_ref + "}"
|
|
@@ -29,3 +29,13 @@ def validate_relationships(relationships):
|
|
|
29
29
|
return validate_relationship_string(relationships)
|
|
30
30
|
else:
|
|
31
31
|
return [validate_relationship_string(i) for i in relationships]
|
|
32
|
+
|
|
33
|
+
def split_node_key(node):
|
|
34
|
+
split_node = node.split(':')
|
|
35
|
+
if len(split_node) == 1:
|
|
36
|
+
name = node
|
|
37
|
+
type = ''
|
|
38
|
+
else:
|
|
39
|
+
name = split_node[0]
|
|
40
|
+
type = ':' + split_node[1]
|
|
41
|
+
return name, type
|
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/__init__.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/assetmodel.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/core/__init__.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/elastic.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/events.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/historian.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/historianmulti.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/settings.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/eigeningenuity/smartdash.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/__init__.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/__init__.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
|
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/csvwriter.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/fileanalyser.py
RENAMED
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/modelbuilder/src/filemanager.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_eigen_ingenuity-0.4.37b1 → python_eigen_ingenuity-0.4.37b2}/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
|
|
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
|
|
File without changes
|
|
File without changes
|