pyrdfrules.config
1import logging 2from pathlib import Path 3from pydantic import BaseModel, PositiveInt 4 5 6class Config(BaseModel): 7 """ 8 Configuration class for the instance. 9 """ 10 11 task_update_interval_ms: PositiveInt = 1000 12 """Update interval for the task status in milliseconds. 13 14 This affects how often the task status is updated. 15 """ 16 17 task_timeout_ms: int = 0 18 """Timeout for the task in milliseconds. Zero means no timeout. 19 """ 20 21 log_output: bool = True 22 """Logs output to the console. 23 """ 24 25 log_level: int = logging.INFO 26 """Logging level. 27 """ 28 29 workspace_path: Path|None = None 30 """Path to the workspace directory. 31 Applicable only to local instances of RDFRules. 32 33 If empty, will default to the install directory of RDFRules/workspace. 34 """
class
Config(pydantic.main.BaseModel):
7class Config(BaseModel): 8 """ 9 Configuration class for the instance. 10 """ 11 12 task_update_interval_ms: PositiveInt = 1000 13 """Update interval for the task status in milliseconds. 14 15 This affects how often the task status is updated. 16 """ 17 18 task_timeout_ms: int = 0 19 """Timeout for the task in milliseconds. Zero means no timeout. 20 """ 21 22 log_output: bool = True 23 """Logs output to the console. 24 """ 25 26 log_level: int = logging.INFO 27 """Logging level. 28 """ 29 30 workspace_path: Path|None = None 31 """Path to the workspace directory. 32 Applicable only to local instances of RDFRules. 33 34 If empty, will default to the install directory of RDFRules/workspace. 35 """
Configuration class for the instance.
task_update_interval_ms: typing.Annotated[int, Gt(gt=0)]
Update interval for the task status in milliseconds.
This affects how often the task status is updated.
workspace_path: pathlib.Path | None
Path to the workspace directory. Applicable only to local instances of RDFRules.
If empty, will default to the install directory of RDFRules/workspace.
model_fields =
{'task_update_interval_ms': FieldInfo(annotation=int, required=False, default=1000, metadata=[Gt(gt=0)]), 'task_timeout_ms': FieldInfo(annotation=int, required=False, default=0), 'log_output': FieldInfo(annotation=bool, required=False, default=True), 'log_level': FieldInfo(annotation=int, required=False, default=20), 'workspace_path': FieldInfo(annotation=Union[Path, NoneType], required=False)}