prediction-market-agent-tooling 0.30.0__py3-none-any.whl → 0.31.0__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.
@@ -14,12 +14,21 @@ class LogFormat(str, Enum):
14
14
  GCP = "gcp"
15
15
 
16
16
 
17
+ class LogLevel(str, Enum):
18
+ CRITICAL = "CRITICAL"
19
+ ERROR = "ERROR"
20
+ WARNING = "WARNING"
21
+ INFO = "INFO"
22
+ DEBUG = "DEBUG"
23
+
24
+
17
25
  class LogConfig(BaseSettings):
18
26
  model_config = SettingsConfigDict(
19
27
  env_file=".env", env_file_encoding="utf-8", extra="ignore"
20
28
  )
21
29
 
22
30
  LOG_FORMAT: LogFormat = LogFormat.DEFAULT
31
+ LOG_LEVEL: LogLevel = LogLevel.DEBUG
23
32
 
24
33
 
25
34
  GCP_LOG_LOGURU_FORMAT = (
@@ -49,7 +58,7 @@ def patch_logger() -> None:
49
58
  # Change built-in logging.
50
59
  if format_logging is not None:
51
60
  logging.basicConfig(
52
- level=logging.DEBUG, format=format_logging, datefmt=datefmt_logging
61
+ level=config.LOG_LEVEL.value, format=format_logging, datefmt=datefmt_logging
53
62
  )
54
63
 
55
64
  # Change loguru.
@@ -58,7 +67,7 @@ def patch_logger() -> None:
58
67
  logger.add(
59
68
  sys.stdout,
60
69
  format=format_loguru,
61
- level="DEBUG", # Can be the lowest level, higher ones will use by default this one.
70
+ level=config.LOG_LEVEL.value,
62
71
  colorize=True,
63
72
  )
64
73
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.30.0
3
+ Version: 0.31.0
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.12
@@ -19,7 +19,7 @@ prediction_market_agent_tooling/deploy/gcp/deploy.py,sha256=CYUgnfy-9XVk04kkxA_5
19
19
  prediction_market_agent_tooling/deploy/gcp/kubernetes_models.py,sha256=qYIHRxQLac3yxtZ8ChikiPG9O1aUQucHW0muTSm1nto,2627
20
20
  prediction_market_agent_tooling/deploy/gcp/utils.py,sha256=oyW0jgrUT2Tr49c7GlpcMsYNQjoCSOcWis3q-MmVAhU,6089
21
21
  prediction_market_agent_tooling/gtypes.py,sha256=xGSJXw12hzp8LwvQ956l01GiZMWd07MZTYqo8CXVeLY,2417
22
- prediction_market_agent_tooling/loggers.py,sha256=p_ibaEpUGGdcpPtzIJxh5UusJNCQyN1y_RDvoTaeUfA,3001
22
+ prediction_market_agent_tooling/loggers.py,sha256=ua9rynYmsbOJZjxPIFxRBooomeN08zuLSJ7lxZMDS7w,3133
23
23
  prediction_market_agent_tooling/markets/agent_market.py,sha256=SMvkXct_RgHXqF-fVq3ooTIQ_99MG77kVlvS3rM8Ozo,7019
24
24
  prediction_market_agent_tooling/markets/categorize.py,sha256=yTd-lDMPW4ESDSzmxeLLBuzLX0FggOF7Vbswh7295o0,941
25
25
  prediction_market_agent_tooling/markets/data_models.py,sha256=uODY3aoFp8YYeLAUcrzMk1yU8pIKsTLobB9xIEGTmKs,1170
@@ -65,8 +65,8 @@ prediction_market_agent_tooling/tools/safe.py,sha256=h0xOO0eNtitClf0fPkn-0oTc6A_
65
65
  prediction_market_agent_tooling/tools/singleton.py,sha256=CiIELUiI-OeS7U7eeHEt0rnVhtQGzwoUdAgn_7u_GBM,729
66
66
  prediction_market_agent_tooling/tools/utils.py,sha256=zkmwPi3YisgZDPCeNwaRbL8sInOYOkvFgFY4Q8PbEo4,5077
67
67
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=cboATXNmEdn5RmPbVblHOwOdUMKBYrUK3GiI6i6Vzxo,9855
68
- prediction_market_agent_tooling-0.30.0.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
69
- prediction_market_agent_tooling-0.30.0.dist-info/METADATA,sha256=1mx60T6NftBRU_qnCNnRU0emgGbTOcQIfex4S_UM1MI,5465
70
- prediction_market_agent_tooling-0.30.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
71
- prediction_market_agent_tooling-0.30.0.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
72
- prediction_market_agent_tooling-0.30.0.dist-info/RECORD,,
68
+ prediction_market_agent_tooling-0.31.0.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
69
+ prediction_market_agent_tooling-0.31.0.dist-info/METADATA,sha256=LKQcmOFaHJoGx4mocx4Gh04ErtMk-D-F9sRRJBNvE5s,5465
70
+ prediction_market_agent_tooling-0.31.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
71
+ prediction_market_agent_tooling-0.31.0.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
72
+ prediction_market_agent_tooling-0.31.0.dist-info/RECORD,,