Config

dotflow.core.config.Config

Import

You can import the Config class with:

from dotflow import Config
from dotflow.storage import StorageDefault
Example

class dotflow.core.config.Config

config = Config(storage=StorageDefault)

Parameters:

Name Type Description Default
storage Storage

Type of the storage.

StorageDefault()

Attributes:

Name Type Description
storage Storage
Source code in dotflow/core/config.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Config:
    """
    Import:
        You can import the **Config** class with:

            from dotflow import Config
            from dotflow.storage import StorageDefault

    Example:
        `class` dotflow.core.config.Config

            config = Config(storage=StorageDefault)

    Args:
        storage (Storage): Type of the storage.

    Attributes:
        storage (Storage):
    """

    def __init__(self, storage: Storage = StorageDefault()) -> None:
        self.storage = storage