API#

LaminDB: Manage data & analyses.

Import the package:

import lamindb as ln
import lamindb.schema as lns

The central data object, a wrapper for files, on-disk (zarr, etc.) and in-memory objects (DataFrame, AnnData, etc.):

DObject([data, features_ref, source, ...])

Data objects in storage & memory.

Query & manipulate data:

select(*entity, **fields)

Select data.

add(record[, use_fsspec])

Insert or update data records.

delete(record, **fields)

Delete data records & data objects.

Manipulate data with open session:

Session()

Database session.

View DB content:

view([n, schema])

View data.

Schema - entities and their relations:

schema

Access the schema.

Manage knowledge:

knowledge

Knowledge.

Track Jupyter notebooks:

nb()

Manage Jupyter notebooks.

Developer API:

settings()

Settings.

dev

Developer API.