Configuration

class neophile.config.Configuration(_env_file: Optional[Union[str, os.PathLike]] = '<object object>', _env_file_encoding: Optional[str] = None, _env_nested_delimiter: Optional[str] = None, _secrets_dir: Optional[Union[str, os.PathLike]] = None, *, allow_expressions: bool = False, cache_enabled: bool = True, cache_path: pathlib.Path = PosixPath('/home/runner/.cache/neophile'), github_email: str = None, github_token: pydantic.types.SecretStr = '', github_user: str = '', repositories: List[neophile.config.GitHubRepository] = None, work_area: pathlib.Path = None)

Bases: pydantic.env_settings.BaseSettings

Configuration for neophile.

Methods Summary

from_file(path)

Initialize the configuration from a file.

Methods Documentation

classmethod from_file(path: str) neophile.config.Configuration

Initialize the configuration from a file.

Parameters

path (str) – Path to a configuration file in YAML format.

Returns

config – The configuration.

Return type

Configuration