python-eigen-ingenuity 0.4.25__py3-none-any.whl → 0.4.27__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.
- eigeningenuity/util.py +9 -6
- {python_eigen_ingenuity-0.4.25.dist-info → python_eigen_ingenuity-0.4.27.dist-info}/METADATA +17 -8
- {python_eigen_ingenuity-0.4.25.dist-info → python_eigen_ingenuity-0.4.27.dist-info}/RECORD +5 -5
- {python_eigen_ingenuity-0.4.25.dist-info → python_eigen_ingenuity-0.4.27.dist-info}/WHEEL +0 -0
- {python_eigen_ingenuity-0.4.25.dist-info → python_eigen_ingenuity-0.4.27.dist-info}/top_level.txt +0 -0
eigeningenuity/util.py
CHANGED
|
@@ -55,12 +55,15 @@ def _do_eigen_json_request(requesturl,**params):
|
|
|
55
55
|
ret = data.json()
|
|
56
56
|
except ValueError:
|
|
57
57
|
ret = data.text
|
|
58
|
-
|
|
59
|
-
if
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
try:
|
|
59
|
+
if "Sign in to your account" in ret:
|
|
60
|
+
if not settings._azure_auth_enabled_ or not (settings._azure_tenant_id_ and settings._azure_client_id_):
|
|
61
|
+
msg = "This resource requires authentication with an Azure account. Use set_azure_tenant_id and set_azure_client_id to set the server parameters."
|
|
62
|
+
else:
|
|
63
|
+
msg = "Authentication failed, check the resource you are querying matches the azure parameters set"
|
|
64
|
+
raise EigenException(f"{msg}")
|
|
65
|
+
except:
|
|
66
|
+
pass
|
|
64
67
|
return ret
|
|
65
68
|
|
|
66
69
|
def _do_eigen_post_request(posturl,data):
|
{python_eigen_ingenuity-0.4.25.dist-info → python_eigen_ingenuity-0.4.27.dist-info}/METADATA
RENAMED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-eigen-ingenuity
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.27
|
|
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
|
|
7
7
|
Author-email: info@eigen.co
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: matplotlib >=3.6.0
|
|
11
|
+
Requires-Dist: numpy >=1.24.2
|
|
12
|
+
Requires-Dist: paho-mqtt >=1.6.1
|
|
13
|
+
Requires-Dist: pandas >=1.5.3
|
|
14
|
+
Requires-Dist: pyserial >=3.5
|
|
15
|
+
Requires-Dist: requests >=2.28.2
|
|
16
|
+
Requires-Dist: setuptools >=57.0.0
|
|
17
|
+
Requires-Dist: urllib3 >=1.26.14
|
|
18
|
+
Requires-Dist: msal
|
|
19
|
+
Requires-Dist: cryptography
|
|
20
|
+
Requires-Dist: keyring
|
|
10
21
|
|
|
11
22
|
CONTENTS
|
|
12
23
|
============
|
|
@@ -22,13 +33,13 @@ CONTENTS
|
|
|
22
33
|
- [Asset Model](#asset-model)
|
|
23
34
|
- [License](#license)
|
|
24
35
|
|
|
25
|
-
|
|
26
|
-
|
|
27
36
|
ABOUT
|
|
28
37
|
============
|
|
29
38
|
The python-eigen-ingenuity library is used to query data from the Eigen Ingenuity system for use in the python environment, and to upload data to the
|
|
30
39
|
|
|
31
40
|
|
|
41
|
+
python-eigen-ingenuity requires Python3
|
|
42
|
+
|
|
32
43
|
INSTALLATION
|
|
33
44
|
=======
|
|
34
45
|
python-eigen-ingenuity supports python 3.9 onwards. It may work for earlier versions of python3, but these are not tested.
|
|
@@ -39,16 +50,15 @@ Install python3, then in the terminal run:
|
|
|
39
50
|
pip install python-eigen-ingenuity
|
|
40
51
|
```
|
|
41
52
|
|
|
42
|
-
|
|
53
|
+
Third party libraries should be automatically installed through requirements.txt.
|
|
43
54
|
|
|
44
55
|
|
|
45
56
|
GETTING STARTED
|
|
46
57
|
=======
|
|
47
58
|
Begin by Importing the module with
|
|
48
59
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
```
|
|
60
|
+
Go to the examples folder and copy example-python-to-eigen-ingenuity.py modify the eigen-ingenuity server and tags then run
|
|
61
|
+
python example-python-to-eigen-ingenuity.py
|
|
52
62
|
|
|
53
63
|
To use this module, you must first set an Ingenuity server to query, and a datasource within the server.
|
|
54
64
|
|
|
@@ -167,7 +177,6 @@ Data Queries
|
|
|
167
177
|
===
|
|
168
178
|
|
|
169
179
|
|
|
170
|
-
|
|
171
180
|
## General Functions:
|
|
172
181
|
|
|
173
182
|
#### Simple Functions to check server defaults
|
|
@@ -7,9 +7,9 @@ eigeningenuity/historian.py,sha256=x3hiwfGdf9n2Jbnrxiih3FgkgZquIdwWy3VxSIvmq3M,3
|
|
|
7
7
|
eigeningenuity/settings.py,sha256=q9hiuD9E8Bcpl8NI2kr-DQK1U8wNqZDNKSQ8Xy_Dpx4,2085
|
|
8
8
|
eigeningenuity/smartdash.py,sha256=pkqx_hSZLJUKT1xJtu2TmQgk4pZCTiPoaCjrbgcD86I,2843
|
|
9
9
|
eigeningenuity/sql.py,sha256=bWZpCPTKgX_MF-xlNb0qPEZv09to4_SIUAvTjZXWkDc,4081
|
|
10
|
-
eigeningenuity/util.py,sha256=
|
|
10
|
+
eigeningenuity/util.py,sha256=ewNDMk4n1PZm2nRW1_5RlQgUWF_fQ9l2oW76WHysU7o,12839
|
|
11
11
|
eigeningenuity/core/__init__.py,sha256=QVMU9bEoZTjPzg_-oNWXHzQB0HPlt95tKGXdlBS_eP0,7741
|
|
12
|
-
python_eigen_ingenuity-0.4.
|
|
13
|
-
python_eigen_ingenuity-0.4.
|
|
14
|
-
python_eigen_ingenuity-0.4.
|
|
15
|
-
python_eigen_ingenuity-0.4.
|
|
12
|
+
python_eigen_ingenuity-0.4.27.dist-info/METADATA,sha256=qqgBuhA_XsSYjsYwmAzUO0eKthS9wXRMPd3rgO4EnoA,14291
|
|
13
|
+
python_eigen_ingenuity-0.4.27.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
14
|
+
python_eigen_ingenuity-0.4.27.dist-info/top_level.txt,sha256=N3esHxXM41zWhi8-bvfUn84i2Vl1Ry6RJtrrzEwpLcM,15
|
|
15
|
+
python_eigen_ingenuity-0.4.27.dist-info/RECORD,,
|
|
File without changes
|
{python_eigen_ingenuity-0.4.25.dist-info → python_eigen_ingenuity-0.4.27.dist-info}/top_level.txt
RENAMED
|
File without changes
|