stidapi 1.4.1__tar.gz → 1.4.2__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.4
2
2
  Name: stidapi
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Summary: Python client for connecting to Equinor STIDapi
5
5
  License: Proprietary
6
6
  Author: Åsmund Våge Fannemel
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
14
  Classifier: Programming Language :: Python :: 3.13
15
15
  Classifier: Programming Language :: Python :: 3.14
16
- Requires-Dist: eq-api-connector (>=1.0.1,<2.0.0)
16
+ Requires-Dist: eq-api-connector (>=1.1.0,<2.0.0)
17
17
  Project-URL: repository, https://github.com/equinor/STIDapi-python
18
18
  Description-Content-Type: text/markdown
19
19
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "stidapi"
3
- version = "1.4.1"
3
+ version = "1.4.2"
4
4
  description = "Python client for connecting to Equinor STIDapi"
5
5
  authors = ["Åsmund Våge Fannemel <asmf@equinor.com>"]
6
6
  license = "Proprietary"
@@ -11,12 +11,12 @@ readme = "README.md"
11
11
 
12
12
  [tool.poetry.dependencies]
13
13
  python = "^3.10"
14
- eq-api-connector = "^1.0.1"
14
+ eq-api-connector = "^1.1.0"
15
15
 
16
16
  [tool.poetry.group.dev.dependencies]
17
- pytest = "^7.4.4"
18
- pytest-cov = "^5.0.0"
19
- black = "^24.10.0"
17
+ pytest = "^9.0.0"
18
+ pytest-cov = "^7.0.0"
19
+ black = "^25.10.0"
20
20
  diff-cover = "^10.2.0"
21
21
 
22
22
  [build-system]
@@ -163,7 +163,7 @@ class Tag:
163
163
  return [(x.get("value", ""), x.get("description", "")) for x in f]
164
164
 
165
165
  return []
166
-
166
+
167
167
  def get_ims(self) -> dict[str, str]:
168
168
  """Get IMS tags related to tag if available.
169
169
 
@@ -173,7 +173,7 @@ class Tag:
173
173
  fields = self.get_additional_field_value(field="IMS")
174
174
  d = {}
175
175
  [d.update({v: k}) for k, v in fields if k is not None and v is not None]
176
-
176
+
177
177
  return d
178
178
 
179
179
  def get_doc(self) -> List[Doc]:
@@ -28,7 +28,7 @@ class STIDApiClient(APIConnector):
28
28
  user_name=user_name,
29
29
  user_assertion=user_assertion,
30
30
  )
31
- self.set_url_prod("https://stidapi.equinor.com/")
31
+ self.url_prod = "https://stidapi.equinor.com/"
32
32
  # todo: set dev url
33
33
 
34
34
 
@@ -48,7 +48,7 @@ def set_api_client(client: STIDApiClient):
48
48
 
49
49
 
50
50
  def get_api_url():
51
- return get_api_client().get_url()
51
+ return get_api_client().url
52
52
 
53
53
 
54
54
  def get_object_from_json(text: str):
@@ -61,6 +61,6 @@ def get_object_from_json(text: str):
61
61
 
62
62
  def get_json(url: str, raise_for_status=False):
63
63
  c = get_api_client()
64
- c.set_raise_for_status(raise_for_status=raise_for_status)
64
+ c.raise_for_status = raise_for_status
65
65
 
66
66
  return c.get_json(url=url)
File without changes
File without changes
File without changes
File without changes
File without changes