python-eigen-ingenuity 0.5.6b1__py3-none-any.whl → 0.5.6b3__py3-none-any.whl

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.
@@ -63,8 +63,8 @@ def _convert_sys_argv_(func):
63
63
  @_convert_sys_argv_
64
64
  def build(path:str='.', config:str='config.ini', file:str='', query:list=[], preprocess:list=[], postprocess:list=[], delete_all:list=[], separator:str=';',
65
65
  start_from:int=1, end_at:int=1, no_versions:bool=False, no_system_properties:bool=False, ignore_nodes:bool=False, skip_duplicates:bool=False,
66
- no_duplicates:bool=False, allow_blanks:list=[], batch:int=0, auth:bool=False, order:str='qnrc', primary_property:str='', required_labels:list=[],
67
- required_properties:list=[], database:str='0', verify:bool=False, summarise:bool=False, show_queries:bool=False, show_returns:bool=False,
66
+ no_duplicates:bool=False, allow_blanks:list=[], batch:int=0, auth:bool=False, order:str='qnrc', filetypes:str='qnrc', primary_property:str='', required_labels:list=[],
67
+ required_properties:list=[], database:str='0', verify:bool=False, summarise:bool=False, show_queries:bool=False, show_returns:bool=False,
68
68
  write_queries:str='', write_returns:str='', display_rate='auto', create_node_csv_file:bool=False, node_labels:list=[], node_properties:list=[],
69
69
  csv_file_suffix:str='', create_relationship_csv_file:bool=False, csv_to_labels:list=[], csv_to_properties:str=''):
70
70
  """The main model builder tools, features a suite of options that allow for importing, exporting, building and updating neo4j data models
@@ -92,6 +92,7 @@ def build(path:str='.', config:str='config.ini', file:str='', query:list=[], pre
92
92
  batch: Number of queries to batch together when processing a node .csv file, significantly improves performance
93
93
  auth: Enable Azure Authentication
94
94
  order: Order in which to process the input files. Default is qnrc
95
+ filetypes: File types to process. Default is all
95
96
 
96
97
  # Override values in the config file
97
98
  primary_property: Primary property
@@ -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
- new_labels = [from_labels, to_labels, relation, list(from_node)[0], list(to_node)[0]]
181
- query_data = [list(from_node.values())[0], list(to_node.values())[0], properties, time_now]
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[3]
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.6b1
3
+ Version: 0.5.6b3
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
@@ -12,7 +12,7 @@ eigeningenuity/util.py,sha256=AEbi-aOyyqkszSLRX7QBEXA2t7gyJKy14BKR8fu3PtE,18074
12
12
  eigeningenuity/core/__init__.py,sha256=wIFyRpfPzwi5_ALu0icdE3lxlMZgUrZ7y4o69XpVusw,8685
13
13
  modelbuilder/__init__.py,sha256=HSsHItu5BbGQiHYTG00QPMNDbC3RkRUaaN50YpksIUA,171
14
14
  modelbuilder/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- modelbuilder/src/assetmodelbuilder.py,sha256=On0ndiJQQQ52vv-mo8pO2nsG5yMAk933kuBf4S8WQYg,8080
15
+ modelbuilder/src/assetmodelbuilder.py,sha256=yf8b_gatXERoepkjZ2TMaliqaLyic3P3NA5wQ1LB3b0,8162
16
16
  modelbuilder/src/assetmodelcsvwriter.py,sha256=GKNi_fw7AlY-UG2XhwFIS34Ff3XiVRss-o5MUzyJSV0,1071
17
17
  modelbuilder/src/assetmodelutilities.py,sha256=KwyP8-2EfpRHKmGasPJLV74EGYBjSHgxHBAy8xuvh6k,1743
18
18
  modelbuilder/src/configmanager.py,sha256=H9QizecvyDO5c9sWFYXuYEbjdt14rO0-aMG86-kPkUY,23569
@@ -32,13 +32,13 @@ modelbuilder/src/processors/cypherfileprocessor.py,sha256=Y77GddRVhQKNhs6V4jfqwE
32
32
  modelbuilder/src/processors/labelmanager.py,sha256=03fD-JXjdeEyHXUeihst5rVWgmd-3-Y8fSMM42OfsT8,6237
33
33
  modelbuilder/src/processors/nodefileprocessor.py,sha256=mJhckThQhv7hMGI_JExLmb_8ShdJZTy7UeHhr_3ztQQ,13916
34
34
  modelbuilder/src/processors/propertymanager.py,sha256=WvGV9S6YC6-muyhxBjPDiPjnsWv-KSnFPknzPobWUqM,5086
35
- modelbuilder/src/processors/relationshipfileprocessor.py,sha256=cq-oDBWVx_m-5zoVd35uNvbhqax4F5fAS7yUfsFitRU,14943
35
+ modelbuilder/src/processors/relationshipfileprocessor.py,sha256=lHUbpnvl66SKUFEfr2dpwyQgbc4FqY3loRkATtOPZTM,15375
36
36
  modelbuilder/src/processors/relationshipmanager.py,sha256=lDtE_5AdKzL3boq7VD8Gmpai8Uscq79vRxkzYQL8A9A,1105
37
37
  modelbuilder/src/queries/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  modelbuilder/src/queries/cypherbuilder.py,sha256=jnQos26sKcQMkdR4gLYZ2YUglIAz65MW3gwr02REVqc,10638
39
39
  modelbuilder/src/queries/query.py,sha256=gN69uwsf-0F6_dGx9cxLGuM17960_FV58pyimJ9usxY,2472
40
40
  modelbuilder/src/queries/typedefs.py,sha256=xbMPLwWHY4PO2qbxiXmmIWm2bFJOkWtJKtwlca5hzTg,7998
41
- python_eigen_ingenuity-0.5.6b1.dist-info/METADATA,sha256=Ku65Rb5wE4dv1gn9Fyg67lePTo5tJ0GQYT8z1l2MrOg,37798
42
- python_eigen_ingenuity-0.5.6b1.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
43
- python_eigen_ingenuity-0.5.6b1.dist-info/top_level.txt,sha256=lFiZ43CY_1bmdtRidIXbA6rrY2d92Rs-9tH8pcgI-XU,28
44
- python_eigen_ingenuity-0.5.6b1.dist-info/RECORD,,
41
+ python_eigen_ingenuity-0.5.6b3.dist-info/METADATA,sha256=ho17cmp2_8TNYhfea3XNvvwuMRqJ4kzZCzEGc93pMEY,37798
42
+ python_eigen_ingenuity-0.5.6b3.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
43
+ python_eigen_ingenuity-0.5.6b3.dist-info/top_level.txt,sha256=lFiZ43CY_1bmdtRidIXbA6rrY2d92Rs-9tH8pcgI-XU,28
44
+ python_eigen_ingenuity-0.5.6b3.dist-info/RECORD,,