dgbowl_schemas.dgpost.recipe_1_0 package

class dgbowl_schemas.dgpost.recipe_1_0.Recipe(*, version: Literal['v1.0', '1.0', '1.1', '2.0'], load: Sequence[Load] | None = None, extract: Sequence[Extract] | None = None, transform: Sequence[Transform] | None = None, plot: Sequence[Plot] | None = None, save: Sequence[Save] | None = None)

Bases: BaseModel

version: Literal['v1.0', '1.0', '1.1', '2.0']
load: Sequence[Load] | None
extract: Sequence[Extract] | None
transform: Sequence[Transform] | None
plot: Sequence[Plot] | None
save: Sequence[Save] | None
update()

Submodules

dgbowl_schemas.dgpost.recipe_1_0.extract module

class dgbowl_schemas.dgpost.recipe_1_0.extract.At(*, steps: Sequence[str] = None, indices: Sequence[int] = None, timestamps: Sequence[float] = None)

Bases: BaseModel

steps: Sequence[str]
indices: Sequence[int]
timestamps: Sequence[float]
classmethod check_one_input(values)
class dgbowl_schemas.dgpost.recipe_1_0.extract.Constant(*, value: Any = None, units: str | None = None, **extra_data: Any)

Bases: BaseModel

value: Any
as_: str
units: str | None
class dgbowl_schemas.dgpost.recipe_1_0.extract.Column(*, key: str, **extra_data: Any)

Bases: BaseModel

key: str
as_: str
class dgbowl_schemas.dgpost.recipe_1_0.extract.Extract(*, into: str, at: At | None = None, constants: Sequence[Constant] | None = None, columns: Sequence[Column] | None = None, **extra_data: Any)

Bases: BaseModel

into: str
from_: str | None
at: At | None
constants: Sequence[Constant] | None
columns: Sequence[Column] | None
classmethod check_one_input(values)

dgbowl_schemas.dgpost.recipe_1_0.load module

class dgbowl_schemas.dgpost.recipe_1_0.load.Load(*, as_: str, path: str, type: Literal['datagram', 'table'] = 'datagram', check: bool = True)

Bases: BaseModel

as_: str
path: str
type: Literal['datagram', 'table']
check: bool

dgbowl_schemas.dgpost.recipe_1_0.plot module

class dgbowl_schemas.dgpost.recipe_1_0.plot.SeriesIndex(*, from_zero: bool = True, to_units: str | None = None)

Bases: BaseModel

from_zero: bool
to_units: str | None
class dgbowl_schemas.dgpost.recipe_1_0.plot.Series(*, y: str, x: str | None = None, kind: Literal['scatter', 'line', 'errorbar'] = 'scatter', index: SeriesIndex | None = SeriesIndex(from_zero=True, to_units=None), **extra_data: Any)

Bases: BaseModel

y: str
x: str | None
kind: Literal['scatter', 'line', 'errorbar']
index: SeriesIndex | None
class dgbowl_schemas.dgpost.recipe_1_0.plot.AxArgs(*, cols: Tuple[int, int] | None = None, rows: Tuple[int, int] | None = None, series: Sequence[Series], methods: Dict[str, Any] | None = None, legend: bool = False, **extra_data: Any)

Bases: BaseModel

cols: Tuple[int, int] | None
rows: Tuple[int, int] | None
series: Sequence[Series]
methods: Dict[str, Any] | None
legend: bool
class dgbowl_schemas.dgpost.recipe_1_0.plot.PlotSave(*, as_: str, tight_layout: Dict[str, Any] | None = None, **extra_data: Any)

Bases: BaseModel

as_: str
tight_layout: Dict[str, Any] | None
class dgbowl_schemas.dgpost.recipe_1_0.plot.Plot(*, table: str, ax_args: Sequence[AxArgs], fig_args: Dict[str, Any] | None = None, style: Dict[str, Any] | None = None, nrows: int = 1, ncols: int = 1, save: PlotSave | None = None)

Bases: BaseModel

table: str
ax_args: Sequence[AxArgs]
fig_args: Dict[str, Any] | None
style: Dict[str, Any] | None
nrows: int
ncols: int
save: PlotSave | None

dgbowl_schemas.dgpost.recipe_1_0.save module

class dgbowl_schemas.dgpost.recipe_1_0.save.Save(*, table: str, as_: str, type: Literal['pkl', 'json', 'xlsx', 'csv'] = None, sigma: bool = True)

Bases: BaseModel

table: str
as_: str
type: Literal['pkl', 'json', 'xlsx', 'csv']
sigma: bool

dgbowl_schemas.dgpost.recipe_1_0.transform module

class dgbowl_schemas.dgpost.recipe_1_0.transform.Transform(*, table: str, with_: str, using: Sequence[Dict[str, Any]])

Bases: BaseModel

table: str
with_: str
using: Sequence[Dict[str, Any]]