What happens if I import a schema module without lamindb?¶
# !pip install 'lamindb[bionty]'
!lamin init --storage testmodule --modules bionty
→ initialized lamindb: testuser1/testmodule
Upon import, nothing yet happens:
import bionty as bt
→ 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
!lamin delete --force testmodule
• deleting instance testuser1/testmodule