lamindb.base.types
¶
Base types.
Central object types¶
- lamindb.base.types.ArtifactKind¶
alias of
Literal[‘dataset’, ‘model’, ‘plan’, ‘__lamindb_run__’, ‘__lamindb_config__’]
- lamindb.base.types.TransformKind¶
alias of
Literal[‘pipeline’, ‘notebook’, ‘script’, ‘function’]
- lamindb.base.types.BlockKind¶
Block kind, a
README.md-type page or comment.Any block expects Markdown as the formatting language.
- lamindb.base.types.BranchStatus¶
Branch status.
status
code
description
closed-2
Merge Request was closed without merging
merged-1
the branch was merged into another branch
standalone0
a standalone branch without Merge Request
draft1
Merge Request exists but is not ready for review
review2
Merge Request is ready for review
The database stores the branch status as an integer code in field
_status_code.
- lamindb.base.types.RunStatus¶
Run status.
status
code
description
scheduled-3
run is scheduled
restarted-2
run was restarted
started-1
run has started
completed0
run completed successfully
errored1
run ended with an error
aborted2
run was aborted
The database stores the run status as an integer code in field
_status_code.
- lamindb.base.types.DtypeStr¶
String-serialized data type.
String-serialized representations of common data types.
Overview¶
description
lamindb
pandas
numerical
"num"int | floatinteger
"int"int64 | int32 | int16 | int8 | uint | ...float
"float"float64 | float32 | float16 | float8 | ...string
"str"objectdatetime
"datetime"datetimedate
"date"object(pandera requires an ISO-format string, convert withdf["date"] = df["date"].dt.date)dictionary
"dict"objectpath
"path"str(pandas does not have a dedicated path type, validated asstr)Categoricals¶
lamindballows you to define a registry to which categoricals values are restricted.For example,
'cat[ULabel]'or'cat[bionty.CellType]'indicate that permissible values are stored in thenamefield of theULabelorCellTyperegistry, respectively.You can also restrict to sub-types defined in registries via the
typecolumn, e.g.,'cat[ULabel[123456ABCDEFG]]'indicates that values must be of the type withuid="123456ABCDEFG"within theULabelregistry.Literal¶
A
DtypeStrobject inlamindbis aLiteralup to further specification of"cat".
Basic types¶
- lamindb.base.types.UPathStr¶
alias of
str|Path
- lamindb.base.types.StrField¶
alias of
str|DeferredAttribute
- lamindb.base.types.ListLike¶
alias of
list[str] |pd.Series|ndarray
- lamindb.base.types.FieldAttr¶
alias of
DeferredAttribute