Config¶
dotflow.core.config.Config
¶
Import
You can import the Config class with:
from dotflow import Config
from dotflow.providers import (
StorageDefault,
NotifyDefault,
LogDefault,
SchedulerDefault,
)
Example
class dotflow.core.config.Config
config = Config(
storage=StorageFile(path=".output"),
notify=NotifyDefault(),
log=LogDefault()
)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
storage
|
Optional[Storage]
|
Type of the storage. |
None
|
notify
|
Optional[Notify]
|
Type of the notify. |
None
|
log
|
Optional[Log]
|
Type of the log. |
None
|
scheduler
|
Optional[Scheduler]
|
Type of the scheduler. |
None
|
tracer
|
Optional[Tracer]
|
Type of the tracer. |
None
|
metrics
|
Optional[Metrics]
|
Type of the metrics. |
None
|
Attributes:
| Name | Type | Description |
|---|---|---|
storage |
Optional[Storage]
|
|
notify |
Optional[Notify]
|
|
log |
Optional[Log]
|
|
scheduler |
Optional[Scheduler]
|
|
tracer |
Optional[Tracer]
|
|
metrics |
Optional[Metrics]
|
|
Source code in dotflow/core/config.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |