What happens if I import a schema module without lamindb?
¶
%%bash
# !pip install 'lamindb[bionty]'
lamin init --storage testmodule --modules bionty
→ initialized lamindb: testuser1/testmodule
Upon import, nothing yet happens:
import bionty as bt
Show code cell output
→ connected lamindb: testuser1/testmodule
If you try to access an attribute (other than model), you’ll load the instance in the same way as calling import lamindb.
Under the hood, lamindb is imported!
assert bt.Organism(name="human") is not None
%%bash
lamin delete --force testmodule