lamindb.User

class lamindb.User(handle: str, email: str, name: str | None)

Bases: Registry, CanValidate

Users.

All data in this registry is synced from lamin.ai to ensure a universal user identity, valid across DB instances and user metadata changes.

There is no need to manually create records.

Examples

Query a user by handle:

>>> user = ln.User.filter(handle="testuser1").one()
>>> user

Fields

id AutoField

Internal id, valid only in one DB instance.

uid CharField

Universal id, valid across DB instances.

handle CharField

Universal handle, valid across DB instances (required).

name CharField

Name (optional).

created_at DateTimeField

Time of creation of record.

updated_at DateTimeField

Time of last update to record.

Methods