vantage6-algorithm-tools 4.13.7__tar.gz → 4.14.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.
Files changed (28) hide show
  1. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/PKG-INFO +3 -3
  2. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/setup.py +2 -2
  3. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/client/__init__.py +7 -6
  4. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/client/_version.py +1 -1
  5. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6_algorithm_tools.egg-info/PKG-INFO +3 -3
  6. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6_algorithm_tools.egg-info/requires.txt +2 -2
  7. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/setup.cfg +0 -0
  8. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/tests/__init__.py +0 -0
  9. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/tests/algorithm/__init__.py +0 -0
  10. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/tests/algorithm/test___init__.py +0 -0
  11. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/tests/algorithm_module.py +0 -0
  12. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/tests/base/__init__.py +0 -0
  13. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/tests/test_deserialization.py +0 -0
  14. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/tests/test_docker_wrapper.py +0 -0
  15. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/tests/test_serialization.py +0 -0
  16. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/client/__build__ +0 -0
  17. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/tools/__init__.py +0 -0
  18. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/tools/decorators.py +0 -0
  19. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/tools/exceptions.py +0 -0
  20. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/tools/mock_client.py +0 -0
  21. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/tools/preprocessing/__init__.py +0 -0
  22. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/tools/preprocessing/functions.py +0 -0
  23. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/tools/util.py +0 -0
  24. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/tools/wrap.py +0 -0
  25. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6/algorithm/tools/wrappers.py +0 -0
  26. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6_algorithm_tools.egg-info/SOURCES.txt +0 -0
  27. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6_algorithm_tools.egg-info/dependency_links.txt +0 -0
  28. {vantage6_algorithm_tools-4.13.7 → vantage6_algorithm_tools-4.14.0}/vantage6_algorithm_tools.egg-info/top_level.txt +0 -0
@@ -1,18 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vantage6_algorithm_tools
3
- Version: 4.13.7
3
+ Version: 4.14.0
4
4
  Summary: Vantage6 algorithm tools
5
5
  Home-page: https://github.com/vantage6/vantage6
6
6
  Requires-Python: >=3.6
7
7
  Description-Content-Type: text/markdown
8
8
  Requires-Dist: openpyxl>=3.0.0
9
9
  Requires-Dist: pandas>=1.5.3
10
- Requires-Dist: pyjwt==2.9.0
10
+ Requires-Dist: pyjwt==2.12.1
11
11
  Requires-Dist: pyfiglet==1.0.4
12
12
  Requires-Dist: psycopg2-binary==2.9.10
13
13
  Requires-Dist: SPARQLWrapper>=2.0.0
14
14
  Requires-Dist: sqlalchemy==1.4.46
15
- Requires-Dist: vantage6-common==4.13.7
15
+ Requires-Dist: vantage6-common==4.14.0
16
16
  Provides-Extra: dev
17
17
  Requires-Dist: black; extra == "dev"
18
18
  Requires-Dist: pre-commit; extra == "dev"
@@ -34,14 +34,14 @@ setup(
34
34
  install_requires=[
35
35
  "openpyxl>=3.0.0",
36
36
  "pandas>=1.5.3",
37
- "pyjwt==2.9.0",
37
+ "pyjwt==2.12.1",
38
38
  "pyfiglet==1.0.4",
39
39
  # psycopg2-binary is not used directly in algorithm tools, but is necessary when
40
40
  # running SQL queries on a postgres database.
41
41
  "psycopg2-binary==2.9.10",
42
42
  "SPARQLWrapper>=2.0.0",
43
43
  "sqlalchemy==1.4.46",
44
- f'vantage6-common=={version_ns["__version__"]}',
44
+ f"vantage6-common=={version_ns['__version__']}",
45
45
  ],
46
46
  extras_require={
47
47
  "dev": [
@@ -157,7 +157,8 @@ class AlgorithmClient(ClientBase):
157
157
  endpoint: str
158
158
  Endpoint to which the request should be made.
159
159
  params: dict
160
- Parameters to be passed to the request.
160
+ Parameters to be passed to the request. If 'page' is present, it
161
+ will be ignored.
161
162
 
162
163
  Returns
163
164
  -------
@@ -168,18 +169,18 @@ class AlgorithmClient(ClientBase):
168
169
  params = {}
169
170
  # get first page
170
171
  page = 1
171
- params["page"] = page
172
- response = self.request(endpoint, params=params)
172
+ response = self.request(endpoint, params={**params, "page": page})
173
+ data = response["data"]
173
174
 
174
175
  # append next pages (if any)
175
176
  links = response.get("links")
176
177
  while links and links.get("next"):
177
178
  page += 1
178
- params["page"] = page
179
- response["data"] += self.request(endpoint, params=params)["data"]
179
+ response = self.request(endpoint, params={**params, "page": page})
180
+ data += response["data"]
180
181
  links = response.get("links")
181
182
 
182
- return response["data"]
183
+ return data
183
184
 
184
185
  class Run(ClientBase.SubClient):
185
186
  """
@@ -7,7 +7,7 @@ with open(os.path.join(here, "__build__")) as fp:
7
7
  __build__ = json.load(fp)
8
8
 
9
9
  # Module version
10
- version_info = (4, 13, 7, "final", __build__, 0)
10
+ version_info = (4, 14, 0, "final", __build__, 0)
11
11
 
12
12
  # Module version stage suffix map
13
13
  _specifier_ = {"alpha": "a", "beta": "b", "candidate": "rc", "final": ""}
@@ -1,18 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vantage6_algorithm_tools
3
- Version: 4.13.7
3
+ Version: 4.14.0
4
4
  Summary: Vantage6 algorithm tools
5
5
  Home-page: https://github.com/vantage6/vantage6
6
6
  Requires-Python: >=3.6
7
7
  Description-Content-Type: text/markdown
8
8
  Requires-Dist: openpyxl>=3.0.0
9
9
  Requires-Dist: pandas>=1.5.3
10
- Requires-Dist: pyjwt==2.9.0
10
+ Requires-Dist: pyjwt==2.12.1
11
11
  Requires-Dist: pyfiglet==1.0.4
12
12
  Requires-Dist: psycopg2-binary==2.9.10
13
13
  Requires-Dist: SPARQLWrapper>=2.0.0
14
14
  Requires-Dist: sqlalchemy==1.4.46
15
- Requires-Dist: vantage6-common==4.13.7
15
+ Requires-Dist: vantage6-common==4.14.0
16
16
  Provides-Extra: dev
17
17
  Requires-Dist: black; extra == "dev"
18
18
  Requires-Dist: pre-commit; extra == "dev"
@@ -1,11 +1,11 @@
1
1
  openpyxl>=3.0.0
2
2
  pandas>=1.5.3
3
- pyjwt==2.9.0
3
+ pyjwt==2.12.1
4
4
  pyfiglet==1.0.4
5
5
  psycopg2-binary==2.9.10
6
6
  SPARQLWrapper>=2.0.0
7
7
  sqlalchemy==1.4.46
8
- vantage6-common==4.13.7
8
+ vantage6-common==4.14.0
9
9
 
10
10
  [dev]
11
11
  black