dataroom-client 1.0.4__tar.gz → 1.0.4.post12.dev0__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.3
2
2
  Name: dataroom-client
3
- Version: 1.0.4
3
+ Version: 1.0.4.post12.dev0
4
4
  Summary: A python client to interface with the Dataroom backend API
5
5
  Author: Ales Kocjancic
6
6
  Author-email: hi@ales.io
@@ -10,7 +10,7 @@ Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Classifier: Programming Language :: Python :: 3.13
13
- Requires-Dist: httpx (>=0.24.1,<1)
13
+ Requires-Dist: httpx (>=0.28.0,<1)
14
14
  Description-Content-Type: text/markdown
15
15
 
16
16
 
@@ -187,10 +187,14 @@ class DataRoomClient:
187
187
  ) -> list[dict]:
188
188
  items = []
189
189
  next_url = url
190
+ first_request = True
190
191
  while next_url:
192
+ # Only pass params on the first request; subsequent requests use the server's next URL
193
+ # which already contains the necessary parameters
191
194
  response = await self._make_request(
192
- next_url, params=params, method=method, json=json, headers=headers,
195
+ next_url, params=params if first_request else None, method=method, json=json, headers=headers,
193
196
  )
197
+ first_request = False
194
198
  if "results" not in response:
195
199
  raise NotImplementedError(f'No "results" in response to {url}')
196
200
  if "next" not in response:
@@ -209,10 +213,14 @@ class DataRoomClient:
209
213
  ) -> AsyncIterable[dict]:
210
214
  next_url = url
211
215
  returned_items = 0
216
+ first_request = True
212
217
  while next_url:
218
+ # Only pass params on the first request; subsequent requests use the server's next URL
219
+ # which already contains the necessary parameters
213
220
  response = await self._make_request(
214
- next_url, params=params, method=method, json=json, headers=headers,
221
+ next_url, params=params if first_request else None, method=method, json=json, headers=headers,
215
222
  )
223
+ first_request = False
216
224
  if "results" not in response:
217
225
  raise NotImplementedError(f'No "results" in response to {url}')
218
226
  if "next" not in response:
@@ -6,7 +6,7 @@ authors = [
6
6
  ]
7
7
  readme = "README.md"
8
8
  dynamic = []
9
- version = "1.0.4"
9
+ version = "1.0.4.post12.dev0"
10
10
 
11
11
  [tool.poetry]
12
12
 
@@ -22,7 +22,7 @@ metadata = false
22
22
 
23
23
  [tool.poetry.dependencies]
24
24
  python = "^3.10"
25
- httpx = ">=0.24.1,<1"
25
+ httpx = ">=0.28.0,<1"
26
26
 
27
27
  [build-system]
28
28
  requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]