Base
Base models module.
BaseArtifact
Bases: BaseSQLModel
Base artifact model.
Attributes:
| Name | Type | Description |
|---|---|---|
storage_key |
str
|
Storage key. |
size |
int
|
Size. |
hash |
str
|
Hash. |
Source code in devpipe/models/base.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | |
from_object(obj)
classmethod
Create artifact from object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
Any
|
Object. |
required |
Returns:
| Type | Description |
|---|---|
'BaseArtifact'
|
Artifact. |
bytes
|
Pickled object bytes. |
Source code in devpipe/models/base.py
read()
Read object from storage.
Returns:
| Type | Description |
|---|---|
Any
|
Object. |
save(obj_bytes)
Save object to storage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj_bytes
|
bytes
|
Object bytes. |
required |
Returns:
| Type | Description |
|---|---|
'BaseArtifact'
|
Artifact. |
BaseExecution
Bases: BaseSQLModel
Base execution model.
Attributes:
| Name | Type | Description |
|---|---|---|
started_at |
Optional[datetime]
|
Execution start time. |
finished_at |
Optional[datetime]
|
Execution finish time. |
Source code in devpipe/models/base.py
BaseSQLModel
Bases: SQLModel
Base SQL model.
Attributes:
| Name | Type | Description |
|---|---|---|
uuid |
str
|
UUID. |
created_at |
datetime
|
Created at. |
Source code in devpipe/models/base.py
Tables
Bases: BaseModel
Tables names.
Attributes:
| Name | Type | Description |
|---|---|---|
pipe |
str
|
Pipeline table. |
pipe_exec |
str
|
Pipeline execution table. |
pipe_inps |
str
|
Pipeline inputs table. |
pipe_outs |
str
|
Pipeline outputs table. |
step |
str
|
Step table. |
step_exec |
str
|
Step execution table. |
step_inps |
str
|
Step inputs table. |
step_outs |
str
|
Step outputs table. |
pipe_step_link |
str
|
Link table for pipelines and steps. |
pipe_step_exec_link |
str
|
Link table for pipeline executions and step executions. |