hymir.config module

class hymir.config.Config(redis_url: str = 'redis://localhost:6379/0')

Bases: object

property redis: Redis

Get the backend for the current configuration.

redis_url: str = 'redis://localhost:6379/0'
hymir.config.get_configuration() Config

Get the current global configuration.

hymir.config.set_configuration(f: Callable[[Config], None])

Decorator to set a provider for configuration values.