prediction-market-agent-tooling 0.41.0__py3-none-any.whl → 0.41.1__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.
@@ -7,11 +7,9 @@ from prediction_market_agent_tooling.config import APIKeys
7
7
  from prediction_market_agent_tooling.gtypes import Probability
8
8
  from prediction_market_agent_tooling.markets.metaculus.data_models import (
9
9
  MetaculusQuestion,
10
+ MetaculusQuestions,
10
11
  )
11
- from prediction_market_agent_tooling.tools.utils import (
12
- response_list_to_model,
13
- response_to_model,
14
- )
12
+ from prediction_market_agent_tooling.tools.utils import response_to_model
15
13
 
16
14
  METACULUS_API_BASE_URL = "https://www.metaculus.com/api2"
17
15
 
@@ -91,7 +89,7 @@ def get_questions(
91
89
  url_params["status"] = status
92
90
 
93
91
  url = f"{METACULUS_API_BASE_URL}/questions/"
94
- return response_list_to_model(
92
+ return response_to_model(
95
93
  response=requests.get(url, headers=get_auth_headers(), params=url_params),
96
- model=MetaculusQuestion,
97
- )
94
+ model=MetaculusQuestions,
95
+ ).results
@@ -88,3 +88,9 @@ class MetaculusQuestion(BaseModel):
88
88
  community_prediction: CommunityPredictionStats
89
89
  my_predictions: UserPredictions | None = None
90
90
  # TODO add the rest of the fields https://github.com/gnosis/prediction-market-agent-tooling/issues/301
91
+
92
+
93
+ class MetaculusQuestions(BaseModel):
94
+ next: str | None
95
+ previous: str | None
96
+ results: list[MetaculusQuestion]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.41.0
3
+ Version: 0.41.1
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.12
@@ -30,8 +30,8 @@ prediction_market_agent_tooling/markets/manifold/data_models.py,sha256=xoCqxk9cO
30
30
  prediction_market_agent_tooling/markets/manifold/manifold.py,sha256=EwRL06E2Y_ZAzr8efwS5yD6p6rnykrcBhqmNDUGZ8Aw,4075
31
31
  prediction_market_agent_tooling/markets/manifold/utils.py,sha256=cPPFWXm3vCYH1jy7_ctJZuQH9ZDaPL4_AgAYzGWkoow,513
32
32
  prediction_market_agent_tooling/markets/markets.py,sha256=Hz3E7LJ5HIjCHQtdU5_Bymav2dYT0dDxKOL0i8mV0mg,3142
33
- prediction_market_agent_tooling/markets/metaculus/api.py,sha256=uE11iNTT5RahJq7S_ZnAYDRsFCVT7dbQejbDH-JoeI4,2759
34
- prediction_market_agent_tooling/markets/metaculus/data_models.py,sha256=OOCwj6PXyPIDq3jNqp76CqBADD7ax9xJp-Ude39jzOg,2326
33
+ prediction_market_agent_tooling/markets/metaculus/api.py,sha256=gvPQVAM5NlCyWzEMt4WML9saRBsK9eiHAZP6jwirVqc,2750
34
+ prediction_market_agent_tooling/markets/metaculus/data_models.py,sha256=6TBy17xntdLBR61QCE5wddwTa_k2D0D8ZgK6p7sGUuc,2448
35
35
  prediction_market_agent_tooling/markets/metaculus/metaculus.py,sha256=KMWksTNFCKxqjeMiuRh5yNarPSv7sH0aDkgeC3fm3Dg,3293
36
36
  prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  prediction_market_agent_tooling/markets/omen/data_models.py,sha256=EXtjmcujx68Xu50BVkYXvLuf_Asx5o65RvFS3ZS6HGs,14405
@@ -73,8 +73,8 @@ prediction_market_agent_tooling/tools/singleton.py,sha256=CiIELUiI-OeS7U7eeHEt0r
73
73
  prediction_market_agent_tooling/tools/streamlit_user_login.py,sha256=NXEqfjT9Lc9QtliwSGRASIz1opjQ7Btme43H4qJbzgE,3010
74
74
  prediction_market_agent_tooling/tools/utils.py,sha256=-G22UEbCRm59bm1RWFdeF55hRsaxgwZVAHvK32-Ye1g,6190
75
75
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=nKRHmdLnWSKd3wpo-cysXGvhhrJ2Yf69sN2FFQfSt6s,10578
76
- prediction_market_agent_tooling-0.41.0.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
77
- prediction_market_agent_tooling-0.41.0.dist-info/METADATA,sha256=wYeKmF4ZK5-armVe80q2Lfb0byXJewmwC43HiuNMC6M,7634
78
- prediction_market_agent_tooling-0.41.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
79
- prediction_market_agent_tooling-0.41.0.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
80
- prediction_market_agent_tooling-0.41.0.dist-info/RECORD,,
76
+ prediction_market_agent_tooling-0.41.1.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
77
+ prediction_market_agent_tooling-0.41.1.dist-info/METADATA,sha256=1zVYGk0omz_f1M8jk4ECidTv9zS8yoHjSA4d967-bmk,7634
78
+ prediction_market_agent_tooling-0.41.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
79
+ prediction_market_agent_tooling-0.41.1.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
80
+ prediction_market_agent_tooling-0.41.1.dist-info/RECORD,,