tagreader 5.4.0__tar.gz → 5.5.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tagreader
3
- Version: 5.4.0
3
+ Version: 5.5.0
4
4
  Summary: Tagreader is a Python package for reading trend data from the OSIsoft PI and Aspen Infoplus.21 IMS systems.
5
5
  Home-page: https://github.com/equinor/tagreader-python
6
6
  License: MIT
@@ -26,11 +26,11 @@ Classifier: Topic :: Scientific/Engineering :: Interface Engine/Protocol Transla
26
26
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
27
  Classifier: Topic :: Utilities
28
28
  Provides-Extra: notebooks
29
- Requires-Dist: certifi (>=2023.7.22,<2024.0.0)
29
+ Requires-Dist: certifi (>=2024.7.4,<2025.0.0)
30
30
  Requires-Dist: diskcache (>=5.6.1,<6.0.0)
31
- Requires-Dist: matplotlib (>=3,<4) ; extra == "notebooks"
31
+ Requires-Dist: matplotlib (>=3.7.0,<4.0.0) ; extra == "notebooks"
32
32
  Requires-Dist: msal-bearer (>=0.2.1,<1.1.0)
33
- Requires-Dist: notebook (>=7.0.3,<8.0.0) ; extra == "notebooks"
33
+ Requires-Dist: notebook (>=7.2.0,<8.0.0) ; extra == "notebooks"
34
34
  Requires-Dist: pandas (>=1)
35
35
  Requires-Dist: pycryptodome (>=3.20.0,<4.0.0)
36
36
  Requires-Dist: requests (>=2,<3)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "tagreader"
3
- version = "5.4.0"
3
+ version = "5.5.0"
4
4
  description = "Tagreader is a Python package for reading trend data from the OSIsoft PI and Aspen Infoplus.21 IMS systems."
5
5
  authors = ["Einar S. Idsø <eiids@equinor.com>", "Morten Dæhli Aslesen <masl@equinor.com"]
6
6
  license = "MIT"
@@ -30,12 +30,12 @@ classifiers=[
30
30
  [tool.poetry.dependencies]
31
31
  python = "^3.8"
32
32
  pandas = ">=1"
33
- certifi = "^2023.7.22"
33
+ certifi = "^2024.7.4"
34
34
  requests = "^2"
35
35
  requests-kerberos = "^0"
36
36
  msal-bearer = ">=0.2.1,<1.1.0"
37
- notebook = { version = "^7.0.3", optional = true }
38
- matplotlib = { version = "^3", optional = true }
37
+ notebook = { version = "^7.2.0", optional = true }
38
+ matplotlib = { version = "^3.7.0", optional = true }
39
39
  diskcache = "^5.6.1"
40
40
  pycryptodome = "^3.20.0"
41
41
  requests-ntlm = ">=1.1,<=2.0"
@@ -242,12 +242,13 @@ class AspenHandlerWeb(BaseHandlerWeb):
242
242
  tag: Optional[str],
243
243
  desc: Optional[str],
244
244
  datasource: Optional[str],
245
+ max: Optional[int] = 100000,
245
246
  ) -> Dict[str, Any]:
246
247
  if not datasource:
247
248
  raise ValueError("Data source is required argument")
248
249
  # Aspen Web API expects single space instead of consecutive spaces.
249
250
  tag = " ".join(tag.split())
250
- params = {"datasource": datasource, "tag": tag, "max": 100, "getTrendable": 0}
251
+ params = {"datasource": datasource, "tag": tag, "max": max, "getTrendable": 0}
251
252
  return params
252
253
 
253
254
  def generate_read_query(
@@ -450,7 +451,7 @@ class AspenHandlerWeb(BaseHandlerWeb):
450
451
  desc = desc.replace("*", ".*") if isinstance(desc, str) else None
451
452
 
452
453
  params = self.generate_search_query(
453
- tag=tag, desc=desc, datasource=self.datasource
454
+ tag=tag, desc=desc, datasource=self.datasource, max=100000
454
455
  )
455
456
  # Ensure space is encoded as "%20" instead of default "+" and leave asterisks
456
457
  # unencoded. Otherwise, searches for tags containing spaces break, as do wildcard
@@ -744,6 +745,7 @@ class PIHandlerWeb(BaseHandlerWeb):
744
745
  tag: Optional[str],
745
746
  desc: Optional[str],
746
747
  datasource: Optional[str],
748
+ max: Optional[int] = 100,
747
749
  ) -> Dict[str, str]:
748
750
  q = []
749
751
  if tag is not None:
File without changes
File without changes
File without changes
File without changes
File without changes