python-eigen-ingenuity 0.4.25__tar.gz → 0.4.27__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 (24) hide show
  1. python-eigen-ingenuity-0.4.27/MANIFEST.in +3 -0
  2. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/PKG-INFO +17 -8
  3. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/README.md +5 -7
  4. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/util.py +9 -6
  5. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/python_eigen_ingenuity.egg-info/PKG-INFO +17 -8
  6. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/python_eigen_ingenuity.egg-info/SOURCES.txt +2 -0
  7. python-eigen-ingenuity-0.4.27/python_eigen_ingenuity.egg-info/requires.txt +11 -0
  8. python-eigen-ingenuity-0.4.27/requirements.txt +11 -0
  9. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/setup.py +4 -2
  10. python-eigen-ingenuity-0.4.25/MANIFEST.in +0 -2
  11. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/__init__.py +0 -0
  12. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/assetmodel.py +0 -0
  13. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/auth.py +0 -0
  14. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/core/__init__.py +0 -0
  15. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/elastic.py +0 -0
  16. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/events.py +0 -0
  17. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/historian.py +0 -0
  18. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/settings.py +0 -0
  19. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/smartdash.py +0 -0
  20. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/eigeningenuity/sql.py +0 -0
  21. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/pyproject.toml +0 -0
  22. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/python_eigen_ingenuity.egg-info/dependency_links.txt +0 -0
  23. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/python_eigen_ingenuity.egg-info/top_level.txt +0 -0
  24. {python-eigen-ingenuity-0.4.25 → python-eigen-ingenuity-0.4.27}/setup.cfg +0 -0
@@ -0,0 +1,3 @@
1
+ exclude eigeningenuity/cliutils.py
2
+ exclude eigeningenuity/debuglets.py
3
+ include requirements.txt
@@ -1,12 +1,23 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-eigen-ingenuity
3
- Version: 0.4.25
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
- All third party library requirements should be automatically acquired.
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
- import eigeningenuity as eigen
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
@@ -12,13 +12,13 @@ CONTENTS
12
12
  - [Asset Model](#asset-model)
13
13
  - [License](#license)
14
14
 
15
-
16
-
17
15
  ABOUT
18
16
  ============
19
17
  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
20
18
 
21
19
 
20
+ python-eigen-ingenuity requires Python3
21
+
22
22
  INSTALLATION
23
23
  =======
24
24
  python-eigen-ingenuity supports python 3.9 onwards. It may work for earlier versions of python3, but these are not tested.
@@ -29,16 +29,15 @@ Install python3, then in the terminal run:
29
29
  pip install python-eigen-ingenuity
30
30
  ```
31
31
 
32
- All third party library requirements should be automatically acquired.
32
+ Third party libraries should be automatically installed through requirements.txt.
33
33
 
34
34
 
35
35
  GETTING STARTED
36
36
  =======
37
37
  Begin by Importing the module with
38
38
 
39
- ```
40
- import eigeningenuity as eigen
41
- ```
39
+ Go to the examples folder and copy example-python-to-eigen-ingenuity.py modify the eigen-ingenuity server and tags then run
40
+ python example-python-to-eigen-ingenuity.py
42
41
 
43
42
  To use this module, you must first set an Ingenuity server to query, and a datasource within the server.
44
43
 
@@ -157,7 +156,6 @@ Data Queries
157
156
  ===
158
157
 
159
158
 
160
-
161
159
  ## General Functions:
162
160
 
163
161
  #### Simple Functions to check server defaults
@@ -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
- if "Sign in to your account" in ret:
59
- if not settings._azure_auth_enabled_ or not (settings._azure_tenant_id_ and settings._azure_client_id_):
60
- msg = "This resource requires authentication with an Azure account. Use set_azure_tenant_id and set_azure_client_id to set the server parameters."
61
- else:
62
- msg = "Authentication failed, check the resource you are querying matches the azure parameters set"
63
- raise EigenException(f"{msg}")
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):
@@ -1,12 +1,23 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-eigen-ingenuity
3
- Version: 0.4.25
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
- All third party library requirements should be automatically acquired.
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
- import eigeningenuity as eigen
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
@@ -1,6 +1,7 @@
1
1
  MANIFEST.in
2
2
  README.md
3
3
  pyproject.toml
4
+ requirements.txt
4
5
  setup.py
5
6
  eigeningenuity/__init__.py
6
7
  eigeningenuity/assetmodel.py
@@ -16,4 +17,5 @@ eigeningenuity/core/__init__.py
16
17
  python_eigen_ingenuity.egg-info/PKG-INFO
17
18
  python_eigen_ingenuity.egg-info/SOURCES.txt
18
19
  python_eigen_ingenuity.egg-info/dependency_links.txt
20
+ python_eigen_ingenuity.egg-info/requires.txt
19
21
  python_eigen_ingenuity.egg-info/top_level.txt
@@ -0,0 +1,11 @@
1
+ matplotlib>=3.6.0
2
+ numpy>=1.24.2
3
+ paho_mqtt>=1.6.1
4
+ pandas>=1.5.3
5
+ pyserial>=3.5
6
+ requests>=2.28.2
7
+ setuptools>=57.0.0
8
+ urllib3>=1.26.14
9
+ msal
10
+ cryptography
11
+ keyring
@@ -0,0 +1,11 @@
1
+ matplotlib>=3.6.0
2
+ numpy>=1.24.2
3
+ paho_mqtt>=1.6.1
4
+ pandas>=1.5.3
5
+ pyserial>=3.5
6
+ requests>=2.28.2
7
+ setuptools>=57.0.0
8
+ urllib3>=1.26.14
9
+ msal
10
+ cryptography
11
+ keyring
@@ -6,12 +6,14 @@ import pathlib
6
6
  HERE = pathlib.Path(__file__).parent
7
7
  README = (HERE / "README.md").read_text()
8
8
 
9
+ install_requires = (HERE / "requirements.txt").read_text()
10
+
9
11
  pkgname = 'python-eigen-ingenuity'
10
12
 
11
13
  # Invoke setup
12
14
  setup(
13
15
  name=pkgname,
14
- version='0.4.25',
16
+ version='0.4.27',
15
17
  author='Murray Callander',
16
18
  author_email='info@eigen.co',
17
19
  url='https://www.eigen.co/',
@@ -20,5 +22,5 @@ setup(
20
22
  long_description_content_type="text/markdown",
21
23
  packages=find_packages("."),
22
24
  license='Apache License 2.0',
23
- install_requires=[],
25
+ install_requires=[install_requires]
24
26
  )
@@ -1,2 +0,0 @@
1
- exclude eigeningenuity/cliutils.py
2
- exclude eigeningenuity/debuglets.py