prediction-market-agent-tooling 0.57.5.dev217__py3-none-any.whl → 0.57.5.dev218__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.
- prediction_market_agent_tooling/tools/db/db_manager.py +3 -0
- {prediction_market_agent_tooling-0.57.5.dev217.dist-info → prediction_market_agent_tooling-0.57.5.dev218.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.57.5.dev217.dist-info → prediction_market_agent_tooling-0.57.5.dev218.dist-info}/RECORD +6 -6
- {prediction_market_agent_tooling-0.57.5.dev217.dist-info → prediction_market_agent_tooling-0.57.5.dev218.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.57.5.dev217.dist-info → prediction_market_agent_tooling-0.57.5.dev218.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.57.5.dev217.dist-info → prediction_market_agent_tooling-0.57.5.dev218.dist-info}/entry_points.txt +0 -0
@@ -28,6 +28,8 @@ class DBManager:
|
|
28
28
|
return cls._instances[url_hash]
|
29
29
|
|
30
30
|
def __init__(self, api_keys: APIKeys | None = None) -> None:
|
31
|
+
if hasattr(self, "_initialized"):
|
32
|
+
return
|
31
33
|
sqlalchemy_db_url = (api_keys or APIKeys()).sqlalchemy_db_url
|
32
34
|
self._engine = create_engine(
|
33
35
|
sqlalchemy_db_url.get_secret_value(),
|
@@ -36,6 +38,7 @@ class DBManager:
|
|
36
38
|
pool_size=2,
|
37
39
|
)
|
38
40
|
self.cache_table_initialized: dict[str, bool] = {}
|
41
|
+
self._initialized = True
|
39
42
|
|
40
43
|
@contextmanager
|
41
44
|
def get_session(self) -> Generator[Session, None, None]:
|
@@ -79,7 +79,7 @@ prediction_market_agent_tooling/tools/contract.py,sha256=Um_nQlpYJRBy4MnNR1CPKES
|
|
79
79
|
prediction_market_agent_tooling/tools/costs.py,sha256=EaAJ7v9laD4VEV3d8B44M4u3_oEO_H16jRVCdoZ93Uw,954
|
80
80
|
prediction_market_agent_tooling/tools/custom_exceptions.py,sha256=Fh8z1fbwONvP4-j7AmV_PuEcoqb6-QXa9PJ9m7guMcM,93
|
81
81
|
prediction_market_agent_tooling/tools/datetime_utc.py,sha256=2JSWF7AXQnv04_D_cu9Vmdkq0TWmGJ1QcK9AeqrA-U8,2765
|
82
|
-
prediction_market_agent_tooling/tools/db/db_manager.py,sha256=
|
82
|
+
prediction_market_agent_tooling/tools/db/db_manager.py,sha256=_d_oJe4GZ59Htq0iOosRz8yEps2c6MmfTNvNvMLpL8Y,3002
|
83
83
|
prediction_market_agent_tooling/tools/google_utils.py,sha256=t3_UEEvKX3L0biSIQ560GdRbllQ6eprhK_upE243A-0,3185
|
84
84
|
prediction_market_agent_tooling/tools/hexbytes_custom.py,sha256=Bp94qgPjvjWf1Vb4lNzGFDXRdThw1rJ91vL6r2PWq5E,2096
|
85
85
|
prediction_market_agent_tooling/tools/httpx_cached_client.py,sha256=RxD-hwtZCMctnMwfzy8t51W9Z9gxFGtDYxBIMChazpc,406
|
@@ -103,8 +103,8 @@ prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=Kw2mXNkMTYT
|
|
103
103
|
prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
|
104
104
|
prediction_market_agent_tooling/tools/utils.py,sha256=WvuUCHgMCiMq8_wMm5PHNwvLhcdDk2zGKaAM8OUC-qY,6438
|
105
105
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=wqUDCed3iNrn1Wao1iwGN6tzIrhpzrTRj319wlveJEo,12275
|
106
|
-
prediction_market_agent_tooling-0.57.5.
|
107
|
-
prediction_market_agent_tooling-0.57.5.
|
108
|
-
prediction_market_agent_tooling-0.57.5.
|
109
|
-
prediction_market_agent_tooling-0.57.5.
|
110
|
-
prediction_market_agent_tooling-0.57.5.
|
106
|
+
prediction_market_agent_tooling-0.57.5.dev218.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
107
|
+
prediction_market_agent_tooling-0.57.5.dev218.dist-info/METADATA,sha256=3A9Vof1Nn7Ps2Hj_5NeUZACOb9zbQPx3W0G84BuqioE,8195
|
108
|
+
prediction_market_agent_tooling-0.57.5.dev218.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
109
|
+
prediction_market_agent_tooling-0.57.5.dev218.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
110
|
+
prediction_market_agent_tooling-0.57.5.dev218.dist-info/RECORD,,
|
File without changes
|
File without changes
|