prediction-market-agent-tooling 0.64.2.dev604__tar.gz → 0.64.3.dev611__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.dev611}/PKG-INFO +2 -1
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/loggers.py +45 -42
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/pyproject.toml +2 -1
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/README.md +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/benchmark/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/benchmark/agents.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/benchmark/benchmark.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/benchmark/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/config.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/deploy/agent.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/deploy/constants.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/gtypes.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/jobs/__init__.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/markets/categorize.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/markets/markets.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/monitor/monitor.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/py.typed +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/prediction_market_agent_tooling/tools/balances.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/tools/contract.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/tools/costs.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/tools/langfuse_.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/tools/parallelism.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/tools/safe.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/tools/singleton.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/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.dev611}/prediction_market_agent_tooling/tools/utils.py +0 -0
- {prediction_market_agent_tooling-0.64.2.dev604 → prediction_market_agent_tooling-0.64.3.dev611}/prediction_market_agent_tooling/tools/web3_utils.py +0 -0
@@ -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.dev611
|
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)
|
@@ -4,6 +4,7 @@ import sys
|
|
4
4
|
import typing as t
|
5
5
|
import warnings
|
6
6
|
from enum import Enum
|
7
|
+
from pythonjsonlogger import jsonlogger
|
7
8
|
|
8
9
|
from loguru import logger
|
9
10
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
@@ -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,43 @@ def patch_logger() -> None:
|
|
57
76
|
config = LogConfig()
|
58
77
|
|
59
78
|
if config.LOG_FORMAT == LogFormat.GCP:
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
print_logging = print_using_loguru_info
|
64
|
-
handlers: list[logging.Handler] | None = [NoNewLineStreamHandler()]
|
79
|
+
handler = _CustomJsonFormatter.get_handler()
|
80
|
+
print_logging = print_using_logger_info
|
81
|
+
sys.excepthook = _handle_exception
|
65
82
|
|
66
83
|
elif config.LOG_FORMAT == LogFormat.DEFAULT:
|
67
|
-
|
84
|
+
handler = None
|
68
85
|
print_logging = None
|
69
|
-
handlers = None
|
70
86
|
|
71
87
|
else:
|
72
88
|
raise ValueError(f"Unknown log format: {config.LOG_FORMAT}")
|
73
89
|
|
74
90
|
# Change built-in logging.
|
75
|
-
if
|
91
|
+
if handler is not None:
|
76
92
|
logging.basicConfig(
|
77
93
|
level=config.LOG_LEVEL.value,
|
78
|
-
|
79
|
-
datefmt=datefmt_logging,
|
80
|
-
handlers=handlers,
|
94
|
+
handlers=[handler],
|
81
95
|
)
|
82
|
-
|
83
96
|
# Configure all existing loggers
|
84
97
|
for logger_name in logging.root.manager.loggerDict:
|
85
98
|
existing_logger = logging.getLogger(logger_name)
|
86
99
|
existing_logger.setLevel(config.LOG_LEVEL.value)
|
87
|
-
|
88
|
-
|
100
|
+
# Remove existing handlers
|
101
|
+
if existing_logger.hasHandlers():
|
102
|
+
existing_logger.handlers.clear()
|
103
|
+
# And add ours only
|
104
|
+
existing_logger.addHandler(handler)
|
89
105
|
existing_logger.propagate = False
|
90
106
|
|
91
107
|
# Change loguru.
|
92
|
-
if
|
108
|
+
if handler is not None:
|
93
109
|
logger.remove()
|
94
110
|
logger.add(
|
95
|
-
|
96
|
-
format=format_loguru,
|
111
|
+
handler,
|
97
112
|
level=config.LOG_LEVEL.value,
|
98
|
-
colorize=
|
113
|
+
colorize=False,
|
99
114
|
)
|
100
115
|
|
101
|
-
# Change warning formatting to a simpler one (no source code in a new line).
|
102
|
-
warnings.formatwarning = simple_warning_format
|
103
116
|
# Use logging module for warnings.
|
104
117
|
logging.captureWarnings(True)
|
105
118
|
|
@@ -110,23 +123,13 @@ def patch_logger() -> None:
|
|
110
123
|
logger.info(f"Patched logger for {config.LOG_FORMAT.value} format.")
|
111
124
|
|
112
125
|
|
113
|
-
def
|
126
|
+
def print_using_logger_info(
|
114
127
|
*values: object,
|
115
128
|
sep: str = " ",
|
116
129
|
end: str = "\n",
|
117
130
|
**kwargs: t.Any,
|
118
131
|
) -> 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.
|
132
|
+
logger.info(sep.join(map(str, values)) + end)
|
130
133
|
|
131
134
|
|
132
135
|
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.dev611"
|
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"]
|
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
|
File without changes
|