python-eigen-ingenuity 0.5.24b2__py3-none-any.whl → 0.5.25b1__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.
@@ -534,32 +534,31 @@ class HistorianMulti(object):
534
534
 
535
535
  return metadata
536
536
 
537
- def listHistorians(self, historian: str = None, limit: int = 100, match: str = ""):
538
- """Get Metadata for all tags in a historian, or those matching a wildcard
537
+ def listHistorians(self, writable):
538
+ """Get all historians available on the ingenuity instance, optionally filteres to only those that are writable
539
539
 
540
540
  Args:
541
- historian: Name of the historian containing tags of interest
542
- limit: Max number of records to return
543
- match: A string that tags must match to be returned (Accepts * as wildcard character)
541
+ writable: A boolean that filters the historians returned to only those that are writable (accepting data points)
544
542
 
545
543
  Returns:
546
- A list of dicts with metadata fields for each tag
544
+ A list of historians available on the ingenuity instance
547
545
 
548
546
  Raises:
549
547
  URLError: When no Ingenuity instance could be found at given EigenServer, or no internet connection is available
550
548
  RemoteServerException: When the provided historian could not be found, or the API response contains an error
551
549
  RunTimeError/HTTPError: No response from the API
552
550
  """
553
- if historian is None:
554
- historian = self.historian
555
551
 
556
552
  resp = _do_historian_multi_request(
557
- self.searchurl + f"?historian={historian}&limit={limit}&search={match}",
553
+ self.listurl + "writable" if writable else self.listurl,
558
554
  {},
559
555
  self.auth,
560
556
  get_request=True,
561
557
  )
562
- metadata = resp["tags"]
558
+
559
+ historians = resp["historians"]
560
+
561
+ metadata = [x["name"] for x in historians]
563
562
 
564
563
  return metadata
565
564
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-eigen-ingenuity
3
- Version: 0.5.24b2
3
+ Version: 0.5.25b1
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
@@ -5,7 +5,7 @@ eigeningenuity/commonmenu.py,sha256=G-l5fhOnLNpxJpMeek373zEyS26G9-HBH4VtzmRCT3E,
5
5
  eigeningenuity/elastic.py,sha256=RC9BZ_DZJsVzW1Sd5F9-ziCLGImCGLMt94VAqpdRM5A,7272
6
6
  eigeningenuity/events.py,sha256=I2W5SMvDQA5dwW9mjzOpv6CGEbVhYD42t36i5m6Ljas,12911
7
7
  eigeningenuity/historian.py,sha256=ByjGqD-70DQUTDFo88gWyoFOrGMXf-OUYzR8rWSnODI,39843
8
- eigeningenuity/historianmulti.py,sha256=h85jaKVaw1EmS0jaX5YCNC5q1_BhQKiUR4Jl2tx6nag,35479
8
+ eigeningenuity/historianmulti.py,sha256=cmZLROoIAocRoM_vfFxlg9oEk23fsAgl3h975uGCTkM,35370
9
9
  eigeningenuity/logformatter.py,sha256=pzcRXOyjFE0VvaJMDTMhFqy12EM2KXts9uymdOJzvS4,3384
10
10
  eigeningenuity/settings.py,sha256=sCY7AONBrc0IWSa3D37Scu_JapQoEBfJbRbY7BdDoBM,4212
11
11
  eigeningenuity/sql.py,sha256=r9kHjOymZxKY2HpAT3jYSr77oSDyT8UK-DLSaSDk7zI,5063
@@ -87,8 +87,8 @@ regressiontests/eigeningenuity/historian-multi/test_getRawDatapoints.py,sha256=f
87
87
  regressiontests/eigeningenuity/historian-multi/test_listDataTags.py,sha256=TcceNSjCKoiK5SJcgTH2JXfKLYxIHdQdwZWlkpGnEVM,2006
88
88
  regressiontests/eigeningenuity/historian-multi/test_tagManagement.py,sha256=ylInBt453d1RaSih1eTTxGPZmb60UK4vMwI3UW-U1JY,4830
89
89
  regressiontests/eigeningenuity/historian-multi/test_writePoints.py,sha256=51tfUSLUqLKcCKJ1EyhjfzoC_4OP6n1oL3zgTSkXu4s,2696
90
- python_eigen_ingenuity-0.5.24b2.dist-info/METADATA,sha256=QlnENsBFYcHFW7qkY90QrnFV0GfKzSqyXAQaXCk3SGs,38421
91
- python_eigen_ingenuity-0.5.24b2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
92
- python_eigen_ingenuity-0.5.24b2.dist-info/entry_points.txt,sha256=G3LjFQX5xKaN4mqtqCL8uaC-gRbP5T5x9r0gBTJTXXA,70
93
- python_eigen_ingenuity-0.5.24b2.dist-info/top_level.txt,sha256=oDWOSmlNPKNBlIEKP8_JaV01O60jTcUIt2tDkq3OD18,56
94
- python_eigen_ingenuity-0.5.24b2.dist-info/RECORD,,
90
+ python_eigen_ingenuity-0.5.25b1.dist-info/METADATA,sha256=XtAHCYk0pKYiM6bD81Vj-O4dA5mfv1dDquL_MoLlblo,38421
91
+ python_eigen_ingenuity-0.5.25b1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
92
+ python_eigen_ingenuity-0.5.25b1.dist-info/entry_points.txt,sha256=G3LjFQX5xKaN4mqtqCL8uaC-gRbP5T5x9r0gBTJTXXA,70
93
+ python_eigen_ingenuity-0.5.25b1.dist-info/top_level.txt,sha256=oDWOSmlNPKNBlIEKP8_JaV01O60jTcUIt2tDkq3OD18,56
94
+ python_eigen_ingenuity-0.5.25b1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.2)
2
+ Generator: setuptools (82.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5