python-eigen-ingenuity 0.4.34b2__py3-none-any.whl → 0.4.35b2__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.
@@ -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.
@@ -31,8 +31,8 @@ modelbuilder/src/queries/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
31
31
  modelbuilder/src/queries/cypherbuilder.py,sha256=6443jCufAfYkb8KySB75aeoUJjlgTTn9mJRBjTXvkx4,10745
32
32
  modelbuilder/src/queries/query.py,sha256=gN69uwsf-0F6_dGx9cxLGuM17960_FV58pyimJ9usxY,2472
33
33
  modelbuilder/src/queries/typedefs.py,sha256=Ckzvbyj5FCQnRxoGC9hL_jIOLWMEQOn1J5vFVw45aGM,5944
34
- python_eigen_ingenuity-0.4.34b2.dist-info/METADATA,sha256=987w1kli3GHNHV53lzNsYMgX2jtI6N9nbnOQkOxlHjs,31149
35
- python_eigen_ingenuity-0.4.34b2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
36
- python_eigen_ingenuity-0.4.34b2.dist-info/entry_points.txt,sha256=G3LjFQX5xKaN4mqtqCL8uaC-gRbP5T5x9r0gBTJTXXA,70
37
- python_eigen_ingenuity-0.4.34b2.dist-info/top_level.txt,sha256=lFiZ43CY_1bmdtRidIXbA6rrY2d92Rs-9tH8pcgI-XU,28
38
- python_eigen_ingenuity-0.4.34b2.dist-info/RECORD,,
34
+ python_eigen_ingenuity-0.4.35b2.dist-info/METADATA,sha256=oJ_kYElgSeYhsulFVJXYiDRcwDRakFFXKmqeGMxY7ZA,32121
35
+ python_eigen_ingenuity-0.4.35b2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
36
+ python_eigen_ingenuity-0.4.35b2.dist-info/entry_points.txt,sha256=G3LjFQX5xKaN4mqtqCL8uaC-gRbP5T5x9r0gBTJTXXA,70
37
+ python_eigen_ingenuity-0.4.35b2.dist-info/top_level.txt,sha256=lFiZ43CY_1bmdtRidIXbA6rrY2d92Rs-9tH8pcgI-XU,28
38
+ python_eigen_ingenuity-0.4.35b2.dist-info/RECORD,,