Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 733 Bytes

File metadata and controls

33 lines (21 loc) · 733 Bytes

Settings

Settings Class Overview

The configuration settings are encapsulated within the CodeBoxSettings class, which inherits from Pydantic's BaseSettings class.

codeboxapi/config.py

class CodeBoxSettings(BaseSettings):
    ...

Setting Descriptions

Logging Settings

  • VERBOSE: bool = False Determines if verbose logging is enabled or not.

  • SHOW_INFO: bool = True Determines if information-level logging is enabled.

CodeBox API Settings

  • CODEBOX_API_KEY: str | None = None The API key for CodeBox.

  • CODEBOX_BASE_URL: str = "https://codeboxapi.com/api/v1" The base URL for the CodeBox API.

  • CODEBOX_TIMEOUT: int = 20 Timeout for CodeBox API requests, in seconds.