prediction-market-agent-tooling 0.64.2.dev604__tar.gz → 0.64.3__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.
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/PKG-INFO +2 -1
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/loggers.py +47 -43
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/pyproject.toml +2 -1
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/README.md +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/debuggingcontract.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/depositablewrapper_erc20.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/erc20.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/erc4626.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/erc721.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/gvp2_settlement.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/omen_agentresultmapping.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/omen_dxdao.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/omen_fpmm.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/omen_fpmm_conditionaltokens.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/omen_fpmm_factory.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/omen_kleros.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/omen_oracle.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/omen_realitio.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/omen_thumbnailmapping.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/ownable.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/ownable_erc721.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/proxy.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/seer_gnosis_router.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/abis/seer_market_factory.abi.json +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/benchmark/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/benchmark/agents.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/benchmark/benchmark.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/benchmark/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/config.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/deploy/agent.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/deploy/agent_example.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/deploy/betting_strategy.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/deploy/constants.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/deploy/gcp/deploy.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/deploy/gcp/kubernetes_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/deploy/gcp/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/deploy/trade_interval.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/gtypes.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/jobs/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/jobs/jobs_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/jobs/omen/omen_jobs.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/agent_market.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/base_subgraph_handler.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/blockchain_utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/categorize.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/manifold/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/manifold/api.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/manifold/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/manifold/manifold.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/manifold/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/market_fees.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/markets.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/metaculus/api.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/metaculus/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/metaculus/metaculus.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/omen/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/omen/cow_contracts.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/omen/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/omen/omen.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/omen/omen_constants.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/omen/omen_contracts.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/omen/omen_resolving.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/polymarket/api.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/polymarket/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/polymarket/data_models_web.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/polymarket/polymarket.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/polymarket/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/seer/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/seer/price_manager.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/seer/seer.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/seer/seer_contracts.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/markets/seer/subgraph_data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/monitor/financial_metrics/financial_metrics.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/monitor/markets/manifold.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/monitor/markets/metaculus.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/monitor/markets/omen.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/monitor/markets/polymarket.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/monitor/monitor.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/monitor/monitor_app.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/monitor/monitor_settings.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/py.typed +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/_generic_value.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/balances.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/betting_strategies/kelly_criterion.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/betting_strategies/market_moving.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/betting_strategies/minimum_bet_to_win.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/betting_strategies/stretch_bet_between.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/betting_strategies/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/caches/db_cache.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/caches/inmemory_cache.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/caches/serializers.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/contract.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/costs.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/cow/cow_order.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/custom_exceptions.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/datetime_utc.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/db/db_manager.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/google_utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/hexbytes_custom.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/httpx_cached_client.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/image_gen/image_gen.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/image_gen/market_thumbnail_gen.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/ipfs/ipfs_handler.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/is_invalid.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/is_predictable.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/langfuse_.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/langfuse_client_utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/omen/reality_accuracy.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/omen/sell_positions.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/parallelism.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/relevant_news_analysis/data_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/relevant_news_analysis/relevant_news_analysis.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/relevant_news_analysis/relevant_news_cache.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/safe.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/singleton.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/streamlit_user_login.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/tavily/tavily_models.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/tavily/tavily_search.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/tokens/auto_deposit.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/tokens/auto_withdraw.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/tokens/main_token.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/tokens/token_utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/tokens/usd.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/transaction_cache.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/prediction_market_agent_tooling/tools/web3_utils.py +0 -0
{prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: prediction-market-agent-tooling
|
3
|
-
Version: 0.64.
|
3
|
+
Version: 0.64.3
|
4
4
|
Summary: Tools to benchmark, deploy and monitor prediction market agents.
|
5
5
|
Author: Gnosis
|
6
6
|
Requires-Python: >=3.10,<3.13
|
@@ -46,6 +46,7 @@ Requires-Dist: pydantic-settings (>=2.4.0,<3.0.0)
|
|
46
46
|
Requires-Dist: pymongo (>=4.8.0,<5.0.0)
|
47
47
|
Requires-Dist: pytest-postgresql (>=6.1.1,<7.0.0)
|
48
48
|
Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
|
49
|
+
Requires-Dist: python-json-logger (>=3.3.0,<4.0.0)
|
49
50
|
Requires-Dist: safe-cli (>=1.0.0,<2.0.0)
|
50
51
|
Requires-Dist: safe-eth-py (>=6.0.0b41,<7.0.0)
|
51
52
|
Requires-Dist: scikit-learn (>=1.3.1,<2.0.0)
|
@@ -2,11 +2,12 @@ import builtins
|
|
2
2
|
import logging
|
3
3
|
import sys
|
4
4
|
import typing as t
|
5
|
-
import warnings
|
6
5
|
from enum import Enum
|
7
6
|
|
7
|
+
import typer.main
|
8
8
|
from loguru import logger
|
9
9
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
10
|
+
from pythonjsonlogger import jsonlogger
|
10
11
|
|
11
12
|
|
12
13
|
class LogFormat(str, Enum):
|
@@ -31,17 +32,35 @@ class LogConfig(BaseSettings):
|
|
31
32
|
LOG_LEVEL: LogLevel = LogLevel.DEBUG
|
32
33
|
|
33
34
|
|
34
|
-
class
|
35
|
-
def
|
36
|
-
|
37
|
-
|
35
|
+
class _CustomJsonFormatter(jsonlogger.JsonFormatter):
|
36
|
+
def add_fields(
|
37
|
+
self,
|
38
|
+
log_record: dict[str, t.Any],
|
39
|
+
record: logging.LogRecord,
|
40
|
+
message_dict: dict[str, t.Any],
|
41
|
+
) -> None:
|
42
|
+
super().add_fields(log_record, record, message_dict)
|
43
|
+
# Include "level" and "severity" with the same value as "levelname" to be friendly with log aggregators.
|
44
|
+
if log_record.get("levelname"):
|
45
|
+
log_record["level"] = log_record["levelname"]
|
46
|
+
log_record["severity"] = log_record["levelname"]
|
47
|
+
|
48
|
+
@staticmethod
|
49
|
+
def get_handler() -> logging.StreamHandler: # type: ignore # Seems correct, but mypy doesn't like it.
|
50
|
+
logHandler = logging.StreamHandler()
|
51
|
+
formatter = _CustomJsonFormatter("%(asctime)s %(levelname)s %(message)s")
|
52
|
+
logHandler.setFormatter(formatter)
|
53
|
+
return logHandler
|
54
|
+
|
55
|
+
|
56
|
+
def _handle_exception(
|
57
|
+
exc_type: type[BaseException], exc_value: BaseException, exc_traceback: t.Any
|
58
|
+
) -> None:
|
59
|
+
if issubclass(exc_type, KeyboardInterrupt):
|
60
|
+
sys.__excepthook__(exc_type, exc_value, exc_traceback)
|
61
|
+
return
|
38
62
|
|
39
|
-
|
40
|
-
"{level:<.1}{time:MMDD HH:mm:ss} {process} {name}:{line}] {message}"
|
41
|
-
)
|
42
|
-
GCP_LOG_LOGGING_FORMAT, GCP_LOG_FORMAT_LOGGING_DATEFMT = (
|
43
|
-
"%(levelname).1s%(asctime)s %(process)d %(name)s:%(lineno)d] %(message)s"
|
44
|
-
), "%m%d %H:%M:%S"
|
63
|
+
logger.error("Uncaught exception", exc_info=(exc_type, exc_value, exc_traceback))
|
45
64
|
|
46
65
|
|
47
66
|
def patch_logger() -> None:
|
@@ -57,49 +76,44 @@ def patch_logger() -> None:
|
|
57
76
|
config = LogConfig()
|
58
77
|
|
59
78
|
if config.LOG_FORMAT == LogFormat.GCP:
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
handlers: list[logging.Handler] | None = [NoNewLineStreamHandler()]
|
79
|
+
handler = _CustomJsonFormatter.get_handler()
|
80
|
+
print_logging = print_using_logger_info
|
81
|
+
sys.excepthook = _handle_exception
|
82
|
+
typer.main.except_hook = _handle_exception # type: ignore # Monkey patching, it's messy but it works.
|
65
83
|
|
66
84
|
elif config.LOG_FORMAT == LogFormat.DEFAULT:
|
67
|
-
|
85
|
+
handler = None
|
68
86
|
print_logging = None
|
69
|
-
handlers = None
|
70
87
|
|
71
88
|
else:
|
72
89
|
raise ValueError(f"Unknown log format: {config.LOG_FORMAT}")
|
73
90
|
|
74
91
|
# Change built-in logging.
|
75
|
-
if
|
92
|
+
if handler is not None:
|
76
93
|
logging.basicConfig(
|
77
94
|
level=config.LOG_LEVEL.value,
|
78
|
-
|
79
|
-
datefmt=datefmt_logging,
|
80
|
-
handlers=handlers,
|
95
|
+
handlers=[handler],
|
81
96
|
)
|
82
|
-
|
83
97
|
# Configure all existing loggers
|
84
98
|
for logger_name in logging.root.manager.loggerDict:
|
85
99
|
existing_logger = logging.getLogger(logger_name)
|
86
100
|
existing_logger.setLevel(config.LOG_LEVEL.value)
|
87
|
-
|
88
|
-
|
101
|
+
# Remove existing handlers
|
102
|
+
if existing_logger.hasHandlers():
|
103
|
+
existing_logger.handlers.clear()
|
104
|
+
# And add ours only
|
105
|
+
existing_logger.addHandler(handler)
|
89
106
|
existing_logger.propagate = False
|
90
107
|
|
91
108
|
# Change loguru.
|
92
|
-
if
|
109
|
+
if handler is not None:
|
93
110
|
logger.remove()
|
94
111
|
logger.add(
|
95
|
-
|
96
|
-
format=format_loguru,
|
112
|
+
handler,
|
97
113
|
level=config.LOG_LEVEL.value,
|
98
|
-
colorize=
|
114
|
+
colorize=False,
|
99
115
|
)
|
100
116
|
|
101
|
-
# Change warning formatting to a simpler one (no source code in a new line).
|
102
|
-
warnings.formatwarning = simple_warning_format
|
103
117
|
# Use logging module for warnings.
|
104
118
|
logging.captureWarnings(True)
|
105
119
|
|
@@ -110,23 +124,13 @@ def patch_logger() -> None:
|
|
110
124
|
logger.info(f"Patched logger for {config.LOG_FORMAT.value} format.")
|
111
125
|
|
112
126
|
|
113
|
-
def
|
127
|
+
def print_using_logger_info(
|
114
128
|
*values: object,
|
115
129
|
sep: str = " ",
|
116
130
|
end: str = "\n",
|
117
131
|
**kwargs: t.Any,
|
118
132
|
) -> None:
|
119
|
-
|
120
|
-
message = message.strip().replace(
|
121
|
-
"\n", "\\n"
|
122
|
-
) # Escape new lines, because otherwise logs will be broken.
|
123
|
-
logger.info(message)
|
124
|
-
|
125
|
-
|
126
|
-
def simple_warning_format(message, category, filename, lineno, line=None): # type: ignore[no-untyped-def] # Not typed in the standard library neither.
|
127
|
-
return f"{category.__name__}: {message}".strip().replace(
|
128
|
-
"\n", "\\n"
|
129
|
-
) # Escape new lines, because otherwise logs will be broken.
|
133
|
+
logger.info(sep.join(map(str, values)) + end)
|
130
134
|
|
131
135
|
|
132
136
|
patch_logger()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "prediction-market-agent-tooling"
|
3
|
-
version = "0.64.
|
3
|
+
version = "0.64.3"
|
4
4
|
description = "Tools to benchmark, deploy and monitor prediction market agents."
|
5
5
|
authors = ["Gnosis"]
|
6
6
|
readme = "README.md"
|
@@ -60,6 +60,7 @@ eth-keys = "^0.6.1"
|
|
60
60
|
proto-plus = "^1.0.0"
|
61
61
|
protobuf = "^5.0.0"
|
62
62
|
types-cachetools = "^5.5.0.20240820"
|
63
|
+
python-json-logger = "^3.3.0"
|
63
64
|
|
64
65
|
[tool.poetry.extras]
|
65
66
|
openai = ["openai"]
|
{prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/LICENSE
RENAMED
File without changes
|
{prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3}/README.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|