octomachinery.app.config module

GitHub App/bot configuration.

class octomachinery.app.config.BotAppConfig(github=None, action=None, server=None, runtime=None)[source]

Bases: object

Bot app config.

Construct it as follows:: >>> from octomachinery.app.config import BotAppConfig >>> config = BotAppConfig.from_dotenv() # for dev env >>> config = BotAppConfig.from_env() # for pure env >>>

action
classmethod from_dotenv(*, app_name: Optional[str] = None, app_version: Optional[str] = None, app_url: Optional[str] = None)[source]

Return an initialized dev config instance.

Read .env into env vars before that.

classmethod from_env(*, app_name: Optional[str] = None, app_version: Optional[str] = None, app_url: Optional[str] = None)[source]

Return an initialized config instance.

github
runtime
server