python-eigen-ingenuity 0.4.34b2__tar.gz → 0.4.35b2__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.
Files changed (46) hide show
  1. {python_eigen_ingenuity-0.4.34b2/python_eigen_ingenuity.egg-info → python_eigen_ingenuity-0.4.35b2}/PKG-INFO +45 -52
  2. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/README.md +44 -51
  3. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2/python_eigen_ingenuity.egg-info}/PKG-INFO +45 -52
  4. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/MANIFEST.in +0 -0
  5. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/__init__.py +0 -0
  6. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/assetmodel.py +0 -0
  7. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/auth.py +0 -0
  8. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/core/__init__.py +0 -0
  9. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/elastic.py +0 -0
  10. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/events.py +0 -0
  11. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/historian.py +0 -0
  12. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/historianmulti.py +0 -0
  13. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/settings.py +0 -0
  14. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/smartdash.py +0 -0
  15. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/sql.py +0 -0
  16. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/eigeningenuity/util.py +0 -0
  17. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/__init__.py +0 -0
  18. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/__init__.py +0 -0
  19. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/assetmodelbuilder.py +0 -0
  20. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/assetmodelcsvwriter.py +0 -0
  21. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/assetmodelutilities.py +0 -0
  22. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/configmanager.py +0 -0
  23. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/connectors/__init__.py +0 -0
  24. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/connectors/boltconnector.py +0 -0
  25. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/connectors/dbconnectors.py +0 -0
  26. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/connectors/genericconnector.py +0 -0
  27. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/connectors/httpsconnector.py +0 -0
  28. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/csvcontentsmanager.py +0 -0
  29. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/csvwriter.py +0 -0
  30. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/filemanager.py +0 -0
  31. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/fileprocessors.py +0 -0
  32. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/messages.py +0 -0
  33. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/queries/__init__.py +0 -0
  34. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/queries/cypherbuilder.py +0 -0
  35. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/queries/query.py +0 -0
  36. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/queries/typedefs.py +0 -0
  37. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/modelbuilder/src/versionmanager.py +0 -0
  38. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/pyproject.toml +0 -0
  39. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/python_eigen_ingenuity.egg-info/SOURCES.txt +0 -0
  40. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/python_eigen_ingenuity.egg-info/dependency_links.txt +0 -0
  41. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/python_eigen_ingenuity.egg-info/entry_points.txt +0 -0
  42. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/python_eigen_ingenuity.egg-info/requires.txt +0 -0
  43. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/python_eigen_ingenuity.egg-info/top_level.txt +0 -0
  44. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/requirements.txt +0 -0
  45. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/setup.cfg +0 -0
  46. {python_eigen_ingenuity-0.4.34b2 → python_eigen_ingenuity-0.4.35b2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-eigen-ingenuity
3
- Version: 0.4.34b2
3
+ Version: 0.4.35b2
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
@@ -41,7 +41,7 @@ CONTENTS <!-- omit in toc -->
41
41
  - [Get Aggregates for a Time Range](#get-aggregates-for-a-time-range)
42
42
  - [Get Aggregates on Intervals over a Time Range](#get-aggregates-on-intervals-over-a-time-range)
43
43
  - [List Data Tags Matching Wildcard](#list-data-tags-matching-wildcard)
44
- - [Get Tag Meta Data](#get-tag-meta-data)
44
+ - [Get Tag Metadata](#get-tag-metadata)
45
45
  - [Write Functions](#write-functions)
46
46
  - [Create Or Update Data Tag](#create-or-update-data-tag)
47
47
  - [Write Data Points to Tag](#write-data-points-to-tag)
@@ -53,15 +53,11 @@ CONTENTS <!-- omit in toc -->
53
53
  - [The Config File](#the-config-file)
54
54
  - [Project structure](#project-structure)
55
55
  - [Coming soon](#coming-soon)
56
- - [Eigen Ingenuity](#eigen-ingenuity-1)
57
- - [Asset Model Builder](#asset-model-builder-1)
58
56
  - [Planned](#planned)
59
- - [Eigen Ingenuity](#eigen-ingenuity-2)
60
- - [Asset Model Builder](#asset-model-builder-2)
61
- - [LICENSE](#license)
57
+ - [License](#license)
58
+
59
+ # About<a id="about"></a>
62
60
 
63
- About
64
- ============
65
61
  This library supports python 3.10 onwards. It may work for earlier versions of python3, but these are not supported. We do not support python 2 in any form.
66
62
 
67
63
  The python-eigen-ingenuity library contains 2 modules:
@@ -84,11 +80,10 @@ It includes options for version nodes to track history and changes to nodes when
84
80
 
85
81
  ---
86
82
 
87
- Eigen Ingenuity
88
- =======
83
+ # Eigen Ingenuity<a id="eigen-ingenuity"></a>
84
+
85
+ ## Installation<a id="installation"></a>
89
86
 
90
- Installation
91
- ---
92
87
 
93
88
  Install python (3.10+), then in the terminal run:
94
89
 
@@ -96,12 +91,10 @@ Install python (3.10+), then in the terminal run:
96
91
  pip install python-eigen-ingenuity
97
92
  ```
98
93
 
99
- =======
100
94
  All required Third party libraries will be automatically installed.
101
95
 
96
+ ## Getting Started<a id="getting-started"></a>
102
97
 
103
- Getting Started
104
- ---
105
98
  Begin by Importing the module at the top of a script with
106
99
 
107
100
  ```
@@ -146,10 +139,10 @@ Each function will return an list, each element consisting of list of a value, t
146
139
 
147
140
  To convert a Datetime (UTC or Local) to epoch, or vice-versa, you can use this tool: https://www.epochconverter.com/
148
141
 
149
- Historian
150
- ---
142
+ ## Historian<a id="historian"></a>
143
+
151
144
 
152
- #### Data Format
145
+ #### Data Format<a id="data-format"></a>
153
146
 
154
147
 
155
148
  Once the server and datasource have been configured, the historian data can be queried through functions we define in
@@ -205,20 +198,20 @@ The CSV output type allows for 2 additional optional parameters:
205
198
  - multi-csv: Creates a separate csv for each tag queried, rather than placing them all in one. Also puts tag in filename rather than in row
206
199
  - filepath: Specify a directory to write the csv files to
207
200
 
208
- #### Query Multiple tags
201
+ #### Query Multiple tags<a id="query-multiple-tags"></a>
209
202
 
210
203
 
211
204
  if multiple tags are queried in a single request, the data will be returned as a dictionary, with the tag IDs as its keys,
212
205
  the individual dictionary entries will retain the same format returned when querying a single tag
213
206
  ____
214
207
 
215
- ## Functions
208
+ ## Functions<a id="functions"></a>
216
209
 
217
- ### General Functions:
210
+ ### General Functions:<a id="general-functions"></a>
218
211
 
219
212
  Simple Functions to check server defaults
220
213
 
221
- #### List Historians
214
+ #### List Historians<a id="list-historians"></a>
222
215
  ###### Method: list_historians <!-- omit in toc -->
223
216
 
224
217
  Find all historians on the instance
@@ -231,7 +224,7 @@ Where:
231
224
 
232
225
  Returns a list of strings
233
226
 
234
- #### Get Default Historian
227
+ #### Get Default Historian<a id="get-default-historian"></a>
235
228
  ###### Method: get_default_historian_name <!-- omit in toc -->
236
229
  Find the name of the default historian of the instance, if one exists
237
230
  ```
@@ -243,11 +236,11 @@ Where:
243
236
 
244
237
  Returns a string, or None
245
238
 
246
- ### Read Functions
239
+ ### Read Functions<a id="read-functions"></a>
247
240
 
248
241
  ##### The following functions are designed to help the user pull and process data from historians into a python environment <!-- omit in toc -->
249
242
 
250
- #### Get Current Data Points
243
+ #### Get Current Data Points<a id="get-current-data-points"></a>
251
244
  ###### Method: getCurrentDataPoints <!-- omit in toc -->
252
245
 
253
246
  Find the most recent raw datapoint for each tag
@@ -262,7 +255,7 @@ Where:
262
255
 
263
256
  Returns one datapoint object per tag
264
257
 
265
- #### Get Number of Points
258
+ #### Get Number of Points<a id="get-number-of-points"></a>
266
259
  ###### Method: countPoints <!-- omit in toc -->
267
260
 
268
261
  Find the number of datapoints in the given time frame
@@ -279,7 +272,7 @@ Where:
279
272
 
280
273
  Returns one integer per tag
281
274
 
282
- #### Get Interpolated Points in a Time Range
275
+ #### Get Interpolated Points in a Time Range<a id="get-interpolated-points-in-a-time-range"></a>
283
276
  ###### Method: getInterpolatedRange <!-- omit in toc -->
284
277
 
285
278
  Find a number of interpolated points of a tag, equally spaced over a set timeframe
@@ -297,7 +290,7 @@ Where:
297
290
 
298
291
  Returns a list of count-many datapoints per tag
299
292
 
300
- #### Get Values at Given Times
293
+ #### Get Values at Given Times<a id="get-values-at-given-times"></a>
301
294
  ###### Method: getInterpolatedpoints <!-- omit in toc -->
302
295
 
303
296
  Find datapoints at given timestamps
@@ -314,7 +307,7 @@ Where:
314
307
  Returns a list of datapoints (one at each timestamp) per tag
315
308
 
316
309
 
317
- #### Get Raw Points in a Time Range
310
+ #### Get Raw Points in a Time Range<a id="get-raw-points-in-a-time-range"></a>
318
311
  ###### Method: getRawDataPoints <!-- omit in toc -->
319
312
 
320
313
  Find the first n Raw datapoints from a time window
@@ -332,7 +325,7 @@ Where:
332
325
 
333
326
  Returns a list of count-many datapoints per tag
334
327
 
335
- #### Get Aggregates for a Time Range
328
+ #### Get Aggregates for a Time Range<a id="get-aggregates-for-a-time-range"></a>
336
329
  ###### Method: getAggregates <!-- omit in toc -->
337
330
 
338
331
  Finds a set of aggregate values for tags over a timeframe
@@ -352,7 +345,7 @@ Where:
352
345
 
353
346
  Returns a list of count-many Aggregate Data Sets per tag
354
347
 
355
- #### Get Aggregates on Intervals over a Time Range
348
+ #### Get Aggregates on Intervals over a Time Range<a id="get-aggregates-on-intervals-over-a-time-range"></a>
356
349
  ###### Method: getAggregateInterval <!-- omit in toc -->
357
350
 
358
351
  A variation of getAggregates which finds aggregates on fixed length intervals dividing the overall window
@@ -373,7 +366,7 @@ being 1 second, 1 minute, 1 hour etc. Default is whole time window.
373
366
 
374
367
  Returns a list of Aggregate Data Sets (One per interval) per tag
375
368
 
376
- #### List Data Tags Matching Wildcard
369
+ #### List Data Tags Matching Wildcard<a id="list-data-tags-matching-wildcard"></a>
377
370
  ###### Method: listDataTags <!-- omit in toc -->
378
371
 
379
372
  Find all tags in datasource, or all tags in datasource that match a search parameter
@@ -386,7 +379,7 @@ all tags containing DEMO, and *DEMO will match all tags ending with DEMO) (Leave
386
379
 
387
380
  Returns a list of strings
388
381
 
389
- #### Get Tag Meta Data
382
+ #### Get Tag Metadata<a id="get-tag-metadata"></a>
390
383
  ###### Method: getMetaData <!-- omit in toc -->
391
384
 
392
385
  Find units, unitMultiplier and description of each tag
@@ -399,10 +392,10 @@ Where:
399
392
 
400
393
  Returns a dict with keys [units, unitMultiplier, description] per tag
401
394
 
402
- ### Write Functions
395
+ ### Write Functions<a id="write-functions"></a>
403
396
  The following functions are intended for users to update/create historian tags using data processed/loaded in python. They can only be run against Eigen's internal influx historians, not production systems. <!-- omit in toc -->
404
397
 
405
- #### Create Or Update Data Tag
398
+ #### Create Or Update Data Tag<a id="create-or-update-data-tag"></a>
406
399
  ###### Method: createDataTag <!-- omit in toc -->
407
400
 
408
401
  Creates a datatag with a specified ID, Unit type/label, and Description. You can use an existing tag name to update the metadata
@@ -416,7 +409,7 @@ Where:
416
409
 
417
410
  Returns a boolean representing success/failure to create tag
418
411
 
419
- #### Write Data Points to Tag
412
+ #### Write Data Points to Tag<a id="write-data-points-to-tag"></a>
420
413
  ###### Method: writeDataPoints <!-- omit in toc -->
421
414
 
422
415
  Writes sets of datapoints to the historian
@@ -438,11 +431,11 @@ Where:
438
431
 
439
432
  Returns a boolean representing success/failure to write data
440
433
 
441
- ## Asset Model
434
+ ## Asset Model<a id="asset-model"></a>
442
435
 
443
436
  Currently the AM tools only support direct queries using cypher queries directly with the executeRawQuery method. More structured methods are planned.
444
437
 
445
- #### Execute a Raw Cypher Query
438
+ #### Execute a Raw Cypher Query<a id="execute-a-raw-cypher-query"></a>
446
439
  ###### Method: executeRawQuery <!-- omit in toc -->
447
440
 
448
441
  Executes a cypher query directly against our asset model
@@ -462,11 +455,11 @@ Returns the json response from neo4j
462
455
 
463
456
  ---------------------------------------------------------------------------------------------------------------------------------------
464
457
 
465
- # Asset Model Builder
458
+ # Asset Model Builder<a id="asset-model-builder"></a>
466
459
 
467
460
  A tool for updating a Neo4j model using .csv anf .cypher files as input
468
461
 
469
- ## Running the tool
462
+ ## Running the tool<a id="running-the-tool"></a>
470
463
 
471
464
  The tool is invoked by executing, anywhere on the cli
472
465
 
@@ -474,7 +467,7 @@ The tool is invoked by executing, anywhere on the cli
474
467
  assetmodel
475
468
  ```
476
469
 
477
- ## Command Line options
470
+ ## Command Line options<a id="command-line-options"></a>
478
471
 
479
472
  *-p* - sets the default path for input files. The program will look first in the current folder, and then in the default folder if it's not find locally.
480
473
  Output files are always created in the default folder
@@ -555,7 +548,7 @@ python src/assetmodelbuilder.py -p models/Testing -d 1 -f Rebuild.lst Versions.c
555
548
 
556
549
  Deletes all the nodes and recreate them, with Version nodes and updated Relationships.
557
550
 
558
- ## The Config File
551
+ ## The Config File<a id="the-config-file"></a>
559
552
 
560
553
  This file contains key information about the structure of the Asset Model. The layout is
561
554
 
@@ -684,7 +677,7 @@ VersionValidFromProperty=validFrom
684
677
  VersionValidToProperty=validTo
685
678
  ```
686
679
 
687
- ## Project structure
680
+ ## Project structure<a id="project-structure"></a>
688
681
 
689
682
  ```shell
690
683
  assetmodelbuilder/
@@ -722,25 +715,25 @@ assetmodelbuilder/
722
715
 
723
716
  ```
724
717
 
725
- # Coming soon
726
- ## Eigen Ingenuity
718
+ # Coming soon<a id="coming-soon"></a>
719
+ ### Eigen Ingenuity <!-- omit in toc -->
727
720
  - Integration of a new historian api that allows for cross-datasource requests, with more request options/methods.
728
721
  - Improvements to Azure Authentication functionality, and client integration
729
722
 
730
- ## Asset Model Builder
723
+ ### Asset Model Builder <!-- omit in toc -->
731
724
  - Options for special processing. For example, an option to over-write existing nodes, rather than just update them
732
725
 
733
- # Planned
726
+ # Planned<a id="planned"></a>
734
727
 
735
- ## Eigen Ingenuity
728
+ ### Eigen Ingenuity <!-- omit in toc -->
736
729
  - Integration with 365 Events and Power Automate
737
- - Example Sphynx/Jupyter notebook with worked examples
730
+ - Sphynx/Jupyter notebook with worked examples for all functionality
738
731
 
739
- ## Asset Model Builder
732
+ ### Asset Model Builder <!-- omit in toc -->
740
733
  - Options for special processing. For example, an option to over-write existing nodes, rather than just update them
741
734
  - Options to remove nodes, relations and/or properties and labels from them
742
735
 
743
- # LICENSE
736
+ # License<a id="license"></a>
744
737
  Apache License 2.0
745
738
 
746
739
  Copyright 2022 Eigen Ltd.
@@ -20,7 +20,7 @@ CONTENTS <!-- omit in toc -->
20
20
  - [Get Aggregates for a Time Range](#get-aggregates-for-a-time-range)
21
21
  - [Get Aggregates on Intervals over a Time Range](#get-aggregates-on-intervals-over-a-time-range)
22
22
  - [List Data Tags Matching Wildcard](#list-data-tags-matching-wildcard)
23
- - [Get Tag Meta Data](#get-tag-meta-data)
23
+ - [Get Tag Metadata](#get-tag-metadata)
24
24
  - [Write Functions](#write-functions)
25
25
  - [Create Or Update Data Tag](#create-or-update-data-tag)
26
26
  - [Write Data Points to Tag](#write-data-points-to-tag)
@@ -32,15 +32,11 @@ CONTENTS <!-- omit in toc -->
32
32
  - [The Config File](#the-config-file)
33
33
  - [Project structure](#project-structure)
34
34
  - [Coming soon](#coming-soon)
35
- - [Eigen Ingenuity](#eigen-ingenuity-1)
36
- - [Asset Model Builder](#asset-model-builder-1)
37
35
  - [Planned](#planned)
38
- - [Eigen Ingenuity](#eigen-ingenuity-2)
39
- - [Asset Model Builder](#asset-model-builder-2)
40
- - [LICENSE](#license)
36
+ - [License](#license)
37
+
38
+ # About<a id="about"></a>
41
39
 
42
- About
43
- ============
44
40
  This library supports python 3.10 onwards. It may work for earlier versions of python3, but these are not supported. We do not support python 2 in any form.
45
41
 
46
42
  The python-eigen-ingenuity library contains 2 modules:
@@ -63,11 +59,10 @@ It includes options for version nodes to track history and changes to nodes when
63
59
 
64
60
  ---
65
61
 
66
- Eigen Ingenuity
67
- =======
62
+ # Eigen Ingenuity<a id="eigen-ingenuity"></a>
63
+
64
+ ## Installation<a id="installation"></a>
68
65
 
69
- Installation
70
- ---
71
66
 
72
67
  Install python (3.10+), then in the terminal run:
73
68
 
@@ -75,12 +70,10 @@ Install python (3.10+), then in the terminal run:
75
70
  pip install python-eigen-ingenuity
76
71
  ```
77
72
 
78
- =======
79
73
  All required Third party libraries will be automatically installed.
80
74
 
75
+ ## Getting Started<a id="getting-started"></a>
81
76
 
82
- Getting Started
83
- ---
84
77
  Begin by Importing the module at the top of a script with
85
78
 
86
79
  ```
@@ -125,10 +118,10 @@ Each function will return an list, each element consisting of list of a value, t
125
118
 
126
119
  To convert a Datetime (UTC or Local) to epoch, or vice-versa, you can use this tool: https://www.epochconverter.com/
127
120
 
128
- Historian
129
- ---
121
+ ## Historian<a id="historian"></a>
122
+
130
123
 
131
- #### Data Format
124
+ #### Data Format<a id="data-format"></a>
132
125
 
133
126
 
134
127
  Once the server and datasource have been configured, the historian data can be queried through functions we define in
@@ -184,20 +177,20 @@ The CSV output type allows for 2 additional optional parameters:
184
177
  - multi-csv: Creates a separate csv for each tag queried, rather than placing them all in one. Also puts tag in filename rather than in row
185
178
  - filepath: Specify a directory to write the csv files to
186
179
 
187
- #### Query Multiple tags
180
+ #### Query Multiple tags<a id="query-multiple-tags"></a>
188
181
 
189
182
 
190
183
  if multiple tags are queried in a single request, the data will be returned as a dictionary, with the tag IDs as its keys,
191
184
  the individual dictionary entries will retain the same format returned when querying a single tag
192
185
  ____
193
186
 
194
- ## Functions
187
+ ## Functions<a id="functions"></a>
195
188
 
196
- ### General Functions:
189
+ ### General Functions:<a id="general-functions"></a>
197
190
 
198
191
  Simple Functions to check server defaults
199
192
 
200
- #### List Historians
193
+ #### List Historians<a id="list-historians"></a>
201
194
  ###### Method: list_historians <!-- omit in toc -->
202
195
 
203
196
  Find all historians on the instance
@@ -210,7 +203,7 @@ Where:
210
203
 
211
204
  Returns a list of strings
212
205
 
213
- #### Get Default Historian
206
+ #### Get Default Historian<a id="get-default-historian"></a>
214
207
  ###### Method: get_default_historian_name <!-- omit in toc -->
215
208
  Find the name of the default historian of the instance, if one exists
216
209
  ```
@@ -222,11 +215,11 @@ Where:
222
215
 
223
216
  Returns a string, or None
224
217
 
225
- ### Read Functions
218
+ ### Read Functions<a id="read-functions"></a>
226
219
 
227
220
  ##### The following functions are designed to help the user pull and process data from historians into a python environment <!-- omit in toc -->
228
221
 
229
- #### Get Current Data Points
222
+ #### Get Current Data Points<a id="get-current-data-points"></a>
230
223
  ###### Method: getCurrentDataPoints <!-- omit in toc -->
231
224
 
232
225
  Find the most recent raw datapoint for each tag
@@ -241,7 +234,7 @@ Where:
241
234
 
242
235
  Returns one datapoint object per tag
243
236
 
244
- #### Get Number of Points
237
+ #### Get Number of Points<a id="get-number-of-points"></a>
245
238
  ###### Method: countPoints <!-- omit in toc -->
246
239
 
247
240
  Find the number of datapoints in the given time frame
@@ -258,7 +251,7 @@ Where:
258
251
 
259
252
  Returns one integer per tag
260
253
 
261
- #### Get Interpolated Points in a Time Range
254
+ #### Get Interpolated Points in a Time Range<a id="get-interpolated-points-in-a-time-range"></a>
262
255
  ###### Method: getInterpolatedRange <!-- omit in toc -->
263
256
 
264
257
  Find a number of interpolated points of a tag, equally spaced over a set timeframe
@@ -276,7 +269,7 @@ Where:
276
269
 
277
270
  Returns a list of count-many datapoints per tag
278
271
 
279
- #### Get Values at Given Times
272
+ #### Get Values at Given Times<a id="get-values-at-given-times"></a>
280
273
  ###### Method: getInterpolatedpoints <!-- omit in toc -->
281
274
 
282
275
  Find datapoints at given timestamps
@@ -293,7 +286,7 @@ Where:
293
286
  Returns a list of datapoints (one at each timestamp) per tag
294
287
 
295
288
 
296
- #### Get Raw Points in a Time Range
289
+ #### Get Raw Points in a Time Range<a id="get-raw-points-in-a-time-range"></a>
297
290
  ###### Method: getRawDataPoints <!-- omit in toc -->
298
291
 
299
292
  Find the first n Raw datapoints from a time window
@@ -311,7 +304,7 @@ Where:
311
304
 
312
305
  Returns a list of count-many datapoints per tag
313
306
 
314
- #### Get Aggregates for a Time Range
307
+ #### Get Aggregates for a Time Range<a id="get-aggregates-for-a-time-range"></a>
315
308
  ###### Method: getAggregates <!-- omit in toc -->
316
309
 
317
310
  Finds a set of aggregate values for tags over a timeframe
@@ -331,7 +324,7 @@ Where:
331
324
 
332
325
  Returns a list of count-many Aggregate Data Sets per tag
333
326
 
334
- #### Get Aggregates on Intervals over a Time Range
327
+ #### Get Aggregates on Intervals over a Time Range<a id="get-aggregates-on-intervals-over-a-time-range"></a>
335
328
  ###### Method: getAggregateInterval <!-- omit in toc -->
336
329
 
337
330
  A variation of getAggregates which finds aggregates on fixed length intervals dividing the overall window
@@ -352,7 +345,7 @@ being 1 second, 1 minute, 1 hour etc. Default is whole time window.
352
345
 
353
346
  Returns a list of Aggregate Data Sets (One per interval) per tag
354
347
 
355
- #### List Data Tags Matching Wildcard
348
+ #### List Data Tags Matching Wildcard<a id="list-data-tags-matching-wildcard"></a>
356
349
  ###### Method: listDataTags <!-- omit in toc -->
357
350
 
358
351
  Find all tags in datasource, or all tags in datasource that match a search parameter
@@ -365,7 +358,7 @@ all tags containing DEMO, and *DEMO will match all tags ending with DEMO) (Leave
365
358
 
366
359
  Returns a list of strings
367
360
 
368
- #### Get Tag Meta Data
361
+ #### Get Tag Metadata<a id="get-tag-metadata"></a>
369
362
  ###### Method: getMetaData <!-- omit in toc -->
370
363
 
371
364
  Find units, unitMultiplier and description of each tag
@@ -378,10 +371,10 @@ Where:
378
371
 
379
372
  Returns a dict with keys [units, unitMultiplier, description] per tag
380
373
 
381
- ### Write Functions
374
+ ### Write Functions<a id="write-functions"></a>
382
375
  The following functions are intended for users to update/create historian tags using data processed/loaded in python. They can only be run against Eigen's internal influx historians, not production systems. <!-- omit in toc -->
383
376
 
384
- #### Create Or Update Data Tag
377
+ #### Create Or Update Data Tag<a id="create-or-update-data-tag"></a>
385
378
  ###### Method: createDataTag <!-- omit in toc -->
386
379
 
387
380
  Creates a datatag with a specified ID, Unit type/label, and Description. You can use an existing tag name to update the metadata
@@ -395,7 +388,7 @@ Where:
395
388
 
396
389
  Returns a boolean representing success/failure to create tag
397
390
 
398
- #### Write Data Points to Tag
391
+ #### Write Data Points to Tag<a id="write-data-points-to-tag"></a>
399
392
  ###### Method: writeDataPoints <!-- omit in toc -->
400
393
 
401
394
  Writes sets of datapoints to the historian
@@ -417,11 +410,11 @@ Where:
417
410
 
418
411
  Returns a boolean representing success/failure to write data
419
412
 
420
- ## Asset Model
413
+ ## Asset Model<a id="asset-model"></a>
421
414
 
422
415
  Currently the AM tools only support direct queries using cypher queries directly with the executeRawQuery method. More structured methods are planned.
423
416
 
424
- #### Execute a Raw Cypher Query
417
+ #### Execute a Raw Cypher Query<a id="execute-a-raw-cypher-query"></a>
425
418
  ###### Method: executeRawQuery <!-- omit in toc -->
426
419
 
427
420
  Executes a cypher query directly against our asset model
@@ -441,11 +434,11 @@ Returns the json response from neo4j
441
434
 
442
435
  ---------------------------------------------------------------------------------------------------------------------------------------
443
436
 
444
- # Asset Model Builder
437
+ # Asset Model Builder<a id="asset-model-builder"></a>
445
438
 
446
439
  A tool for updating a Neo4j model using .csv anf .cypher files as input
447
440
 
448
- ## Running the tool
441
+ ## Running the tool<a id="running-the-tool"></a>
449
442
 
450
443
  The tool is invoked by executing, anywhere on the cli
451
444
 
@@ -453,7 +446,7 @@ The tool is invoked by executing, anywhere on the cli
453
446
  assetmodel
454
447
  ```
455
448
 
456
- ## Command Line options
449
+ ## Command Line options<a id="command-line-options"></a>
457
450
 
458
451
  *-p* - sets the default path for input files. The program will look first in the current folder, and then in the default folder if it's not find locally.
459
452
  Output files are always created in the default folder
@@ -534,7 +527,7 @@ python src/assetmodelbuilder.py -p models/Testing -d 1 -f Rebuild.lst Versions.c
534
527
 
535
528
  Deletes all the nodes and recreate them, with Version nodes and updated Relationships.
536
529
 
537
- ## The Config File
530
+ ## The Config File<a id="the-config-file"></a>
538
531
 
539
532
  This file contains key information about the structure of the Asset Model. The layout is
540
533
 
@@ -663,7 +656,7 @@ VersionValidFromProperty=validFrom
663
656
  VersionValidToProperty=validTo
664
657
  ```
665
658
 
666
- ## Project structure
659
+ ## Project structure<a id="project-structure"></a>
667
660
 
668
661
  ```shell
669
662
  assetmodelbuilder/
@@ -701,25 +694,25 @@ assetmodelbuilder/
701
694
 
702
695
  ```
703
696
 
704
- # Coming soon
705
- ## Eigen Ingenuity
697
+ # Coming soon<a id="coming-soon"></a>
698
+ ### Eigen Ingenuity <!-- omit in toc -->
706
699
  - Integration of a new historian api that allows for cross-datasource requests, with more request options/methods.
707
700
  - Improvements to Azure Authentication functionality, and client integration
708
701
 
709
- ## Asset Model Builder
702
+ ### Asset Model Builder <!-- omit in toc -->
710
703
  - Options for special processing. For example, an option to over-write existing nodes, rather than just update them
711
704
 
712
- # Planned
705
+ # Planned<a id="planned"></a>
713
706
 
714
- ## Eigen Ingenuity
707
+ ### Eigen Ingenuity <!-- omit in toc -->
715
708
  - Integration with 365 Events and Power Automate
716
- - Example Sphynx/Jupyter notebook with worked examples
709
+ - Sphynx/Jupyter notebook with worked examples for all functionality
717
710
 
718
- ## Asset Model Builder
711
+ ### Asset Model Builder <!-- omit in toc -->
719
712
  - Options for special processing. For example, an option to over-write existing nodes, rather than just update them
720
713
  - Options to remove nodes, relations and/or properties and labels from them
721
714
 
722
- # LICENSE
715
+ # License<a id="license"></a>
723
716
  Apache License 2.0
724
717
 
725
718
  Copyright 2022 Eigen Ltd.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-eigen-ingenuity
3
- Version: 0.4.34b2
3
+ Version: 0.4.35b2
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
@@ -41,7 +41,7 @@ CONTENTS <!-- omit in toc -->
41
41
  - [Get Aggregates for a Time Range](#get-aggregates-for-a-time-range)
42
42
  - [Get Aggregates on Intervals over a Time Range](#get-aggregates-on-intervals-over-a-time-range)
43
43
  - [List Data Tags Matching Wildcard](#list-data-tags-matching-wildcard)
44
- - [Get Tag Meta Data](#get-tag-meta-data)
44
+ - [Get Tag Metadata](#get-tag-metadata)
45
45
  - [Write Functions](#write-functions)
46
46
  - [Create Or Update Data Tag](#create-or-update-data-tag)
47
47
  - [Write Data Points to Tag](#write-data-points-to-tag)
@@ -53,15 +53,11 @@ CONTENTS <!-- omit in toc -->
53
53
  - [The Config File](#the-config-file)
54
54
  - [Project structure](#project-structure)
55
55
  - [Coming soon](#coming-soon)
56
- - [Eigen Ingenuity](#eigen-ingenuity-1)
57
- - [Asset Model Builder](#asset-model-builder-1)
58
56
  - [Planned](#planned)
59
- - [Eigen Ingenuity](#eigen-ingenuity-2)
60
- - [Asset Model Builder](#asset-model-builder-2)
61
- - [LICENSE](#license)
57
+ - [License](#license)
58
+
59
+ # About<a id="about"></a>
62
60
 
63
- About
64
- ============
65
61
  This library supports python 3.10 onwards. It may work for earlier versions of python3, but these are not supported. We do not support python 2 in any form.
66
62
 
67
63
  The python-eigen-ingenuity library contains 2 modules:
@@ -84,11 +80,10 @@ It includes options for version nodes to track history and changes to nodes when
84
80
 
85
81
  ---
86
82
 
87
- Eigen Ingenuity
88
- =======
83
+ # Eigen Ingenuity<a id="eigen-ingenuity"></a>
84
+
85
+ ## Installation<a id="installation"></a>
89
86
 
90
- Installation
91
- ---
92
87
 
93
88
  Install python (3.10+), then in the terminal run:
94
89
 
@@ -96,12 +91,10 @@ Install python (3.10+), then in the terminal run:
96
91
  pip install python-eigen-ingenuity
97
92
  ```
98
93
 
99
- =======
100
94
  All required Third party libraries will be automatically installed.
101
95
 
96
+ ## Getting Started<a id="getting-started"></a>
102
97
 
103
- Getting Started
104
- ---
105
98
  Begin by Importing the module at the top of a script with
106
99
 
107
100
  ```
@@ -146,10 +139,10 @@ Each function will return an list, each element consisting of list of a value, t
146
139
 
147
140
  To convert a Datetime (UTC or Local) to epoch, or vice-versa, you can use this tool: https://www.epochconverter.com/
148
141
 
149
- Historian
150
- ---
142
+ ## Historian<a id="historian"></a>
143
+
151
144
 
152
- #### Data Format
145
+ #### Data Format<a id="data-format"></a>
153
146
 
154
147
 
155
148
  Once the server and datasource have been configured, the historian data can be queried through functions we define in
@@ -205,20 +198,20 @@ The CSV output type allows for 2 additional optional parameters:
205
198
  - multi-csv: Creates a separate csv for each tag queried, rather than placing them all in one. Also puts tag in filename rather than in row
206
199
  - filepath: Specify a directory to write the csv files to
207
200
 
208
- #### Query Multiple tags
201
+ #### Query Multiple tags<a id="query-multiple-tags"></a>
209
202
 
210
203
 
211
204
  if multiple tags are queried in a single request, the data will be returned as a dictionary, with the tag IDs as its keys,
212
205
  the individual dictionary entries will retain the same format returned when querying a single tag
213
206
  ____
214
207
 
215
- ## Functions
208
+ ## Functions<a id="functions"></a>
216
209
 
217
- ### General Functions:
210
+ ### General Functions:<a id="general-functions"></a>
218
211
 
219
212
  Simple Functions to check server defaults
220
213
 
221
- #### List Historians
214
+ #### List Historians<a id="list-historians"></a>
222
215
  ###### Method: list_historians <!-- omit in toc -->
223
216
 
224
217
  Find all historians on the instance
@@ -231,7 +224,7 @@ Where:
231
224
 
232
225
  Returns a list of strings
233
226
 
234
- #### Get Default Historian
227
+ #### Get Default Historian<a id="get-default-historian"></a>
235
228
  ###### Method: get_default_historian_name <!-- omit in toc -->
236
229
  Find the name of the default historian of the instance, if one exists
237
230
  ```
@@ -243,11 +236,11 @@ Where:
243
236
 
244
237
  Returns a string, or None
245
238
 
246
- ### Read Functions
239
+ ### Read Functions<a id="read-functions"></a>
247
240
 
248
241
  ##### The following functions are designed to help the user pull and process data from historians into a python environment <!-- omit in toc -->
249
242
 
250
- #### Get Current Data Points
243
+ #### Get Current Data Points<a id="get-current-data-points"></a>
251
244
  ###### Method: getCurrentDataPoints <!-- omit in toc -->
252
245
 
253
246
  Find the most recent raw datapoint for each tag
@@ -262,7 +255,7 @@ Where:
262
255
 
263
256
  Returns one datapoint object per tag
264
257
 
265
- #### Get Number of Points
258
+ #### Get Number of Points<a id="get-number-of-points"></a>
266
259
  ###### Method: countPoints <!-- omit in toc -->
267
260
 
268
261
  Find the number of datapoints in the given time frame
@@ -279,7 +272,7 @@ Where:
279
272
 
280
273
  Returns one integer per tag
281
274
 
282
- #### Get Interpolated Points in a Time Range
275
+ #### Get Interpolated Points in a Time Range<a id="get-interpolated-points-in-a-time-range"></a>
283
276
  ###### Method: getInterpolatedRange <!-- omit in toc -->
284
277
 
285
278
  Find a number of interpolated points of a tag, equally spaced over a set timeframe
@@ -297,7 +290,7 @@ Where:
297
290
 
298
291
  Returns a list of count-many datapoints per tag
299
292
 
300
- #### Get Values at Given Times
293
+ #### Get Values at Given Times<a id="get-values-at-given-times"></a>
301
294
  ###### Method: getInterpolatedpoints <!-- omit in toc -->
302
295
 
303
296
  Find datapoints at given timestamps
@@ -314,7 +307,7 @@ Where:
314
307
  Returns a list of datapoints (one at each timestamp) per tag
315
308
 
316
309
 
317
- #### Get Raw Points in a Time Range
310
+ #### Get Raw Points in a Time Range<a id="get-raw-points-in-a-time-range"></a>
318
311
  ###### Method: getRawDataPoints <!-- omit in toc -->
319
312
 
320
313
  Find the first n Raw datapoints from a time window
@@ -332,7 +325,7 @@ Where:
332
325
 
333
326
  Returns a list of count-many datapoints per tag
334
327
 
335
- #### Get Aggregates for a Time Range
328
+ #### Get Aggregates for a Time Range<a id="get-aggregates-for-a-time-range"></a>
336
329
  ###### Method: getAggregates <!-- omit in toc -->
337
330
 
338
331
  Finds a set of aggregate values for tags over a timeframe
@@ -352,7 +345,7 @@ Where:
352
345
 
353
346
  Returns a list of count-many Aggregate Data Sets per tag
354
347
 
355
- #### Get Aggregates on Intervals over a Time Range
348
+ #### Get Aggregates on Intervals over a Time Range<a id="get-aggregates-on-intervals-over-a-time-range"></a>
356
349
  ###### Method: getAggregateInterval <!-- omit in toc -->
357
350
 
358
351
  A variation of getAggregates which finds aggregates on fixed length intervals dividing the overall window
@@ -373,7 +366,7 @@ being 1 second, 1 minute, 1 hour etc. Default is whole time window.
373
366
 
374
367
  Returns a list of Aggregate Data Sets (One per interval) per tag
375
368
 
376
- #### List Data Tags Matching Wildcard
369
+ #### List Data Tags Matching Wildcard<a id="list-data-tags-matching-wildcard"></a>
377
370
  ###### Method: listDataTags <!-- omit in toc -->
378
371
 
379
372
  Find all tags in datasource, or all tags in datasource that match a search parameter
@@ -386,7 +379,7 @@ all tags containing DEMO, and *DEMO will match all tags ending with DEMO) (Leave
386
379
 
387
380
  Returns a list of strings
388
381
 
389
- #### Get Tag Meta Data
382
+ #### Get Tag Metadata<a id="get-tag-metadata"></a>
390
383
  ###### Method: getMetaData <!-- omit in toc -->
391
384
 
392
385
  Find units, unitMultiplier and description of each tag
@@ -399,10 +392,10 @@ Where:
399
392
 
400
393
  Returns a dict with keys [units, unitMultiplier, description] per tag
401
394
 
402
- ### Write Functions
395
+ ### Write Functions<a id="write-functions"></a>
403
396
  The following functions are intended for users to update/create historian tags using data processed/loaded in python. They can only be run against Eigen's internal influx historians, not production systems. <!-- omit in toc -->
404
397
 
405
- #### Create Or Update Data Tag
398
+ #### Create Or Update Data Tag<a id="create-or-update-data-tag"></a>
406
399
  ###### Method: createDataTag <!-- omit in toc -->
407
400
 
408
401
  Creates a datatag with a specified ID, Unit type/label, and Description. You can use an existing tag name to update the metadata
@@ -416,7 +409,7 @@ Where:
416
409
 
417
410
  Returns a boolean representing success/failure to create tag
418
411
 
419
- #### Write Data Points to Tag
412
+ #### Write Data Points to Tag<a id="write-data-points-to-tag"></a>
420
413
  ###### Method: writeDataPoints <!-- omit in toc -->
421
414
 
422
415
  Writes sets of datapoints to the historian
@@ -438,11 +431,11 @@ Where:
438
431
 
439
432
  Returns a boolean representing success/failure to write data
440
433
 
441
- ## Asset Model
434
+ ## Asset Model<a id="asset-model"></a>
442
435
 
443
436
  Currently the AM tools only support direct queries using cypher queries directly with the executeRawQuery method. More structured methods are planned.
444
437
 
445
- #### Execute a Raw Cypher Query
438
+ #### Execute a Raw Cypher Query<a id="execute-a-raw-cypher-query"></a>
446
439
  ###### Method: executeRawQuery <!-- omit in toc -->
447
440
 
448
441
  Executes a cypher query directly against our asset model
@@ -462,11 +455,11 @@ Returns the json response from neo4j
462
455
 
463
456
  ---------------------------------------------------------------------------------------------------------------------------------------
464
457
 
465
- # Asset Model Builder
458
+ # Asset Model Builder<a id="asset-model-builder"></a>
466
459
 
467
460
  A tool for updating a Neo4j model using .csv anf .cypher files as input
468
461
 
469
- ## Running the tool
462
+ ## Running the tool<a id="running-the-tool"></a>
470
463
 
471
464
  The tool is invoked by executing, anywhere on the cli
472
465
 
@@ -474,7 +467,7 @@ The tool is invoked by executing, anywhere on the cli
474
467
  assetmodel
475
468
  ```
476
469
 
477
- ## Command Line options
470
+ ## Command Line options<a id="command-line-options"></a>
478
471
 
479
472
  *-p* - sets the default path for input files. The program will look first in the current folder, and then in the default folder if it's not find locally.
480
473
  Output files are always created in the default folder
@@ -555,7 +548,7 @@ python src/assetmodelbuilder.py -p models/Testing -d 1 -f Rebuild.lst Versions.c
555
548
 
556
549
  Deletes all the nodes and recreate them, with Version nodes and updated Relationships.
557
550
 
558
- ## The Config File
551
+ ## The Config File<a id="the-config-file"></a>
559
552
 
560
553
  This file contains key information about the structure of the Asset Model. The layout is
561
554
 
@@ -684,7 +677,7 @@ VersionValidFromProperty=validFrom
684
677
  VersionValidToProperty=validTo
685
678
  ```
686
679
 
687
- ## Project structure
680
+ ## Project structure<a id="project-structure"></a>
688
681
 
689
682
  ```shell
690
683
  assetmodelbuilder/
@@ -722,25 +715,25 @@ assetmodelbuilder/
722
715
 
723
716
  ```
724
717
 
725
- # Coming soon
726
- ## Eigen Ingenuity
718
+ # Coming soon<a id="coming-soon"></a>
719
+ ### Eigen Ingenuity <!-- omit in toc -->
727
720
  - Integration of a new historian api that allows for cross-datasource requests, with more request options/methods.
728
721
  - Improvements to Azure Authentication functionality, and client integration
729
722
 
730
- ## Asset Model Builder
723
+ ### Asset Model Builder <!-- omit in toc -->
731
724
  - Options for special processing. For example, an option to over-write existing nodes, rather than just update them
732
725
 
733
- # Planned
726
+ # Planned<a id="planned"></a>
734
727
 
735
- ## Eigen Ingenuity
728
+ ### Eigen Ingenuity <!-- omit in toc -->
736
729
  - Integration with 365 Events and Power Automate
737
- - Example Sphynx/Jupyter notebook with worked examples
730
+ - Sphynx/Jupyter notebook with worked examples for all functionality
738
731
 
739
- ## Asset Model Builder
732
+ ### Asset Model Builder <!-- omit in toc -->
740
733
  - Options for special processing. For example, an option to over-write existing nodes, rather than just update them
741
734
  - Options to remove nodes, relations and/or properties and labels from them
742
735
 
743
- # LICENSE
736
+ # License<a id="license"></a>
744
737
  Apache License 2.0
745
738
 
746
739
  Copyright 2022 Eigen Ltd.