Module cdev.project_templates.slack_bot.src.project_settings

Expand source code
from core.constructs.settings import Settings


class SlackBotSettings(Settings):
    SLACK_SECRET: str = ""
    SLACK_BOT_OAUTH_TOKEN: str = ""

Classes

class SlackBotSettings (**values: Any)

Base class for settings, allowing values to be overridden by environment variables.

This is useful in production for secrets you do not wish to save in code, it plays nicely with docker(-compose), Heroku and any 12 factor app design.

Expand source code
class SlackBotSettings(Settings):
    SLACK_SECRET: str = ""
    SLACK_BOT_OAUTH_TOKEN: str = ""

Ancestors

  • core.constructs.settings.Settings
  • pydantic.env_settings.BaseSettings
  • pydantic.main.BaseModel
  • pydantic.utils.Representation

Class variables

var SLACK_BOT_OAUTH_TOKEN : str
var SLACK_SECRET : str