What happens if I import a schema module without lamindb?#

!lamin init --storage testschema --schema bionty
✅ saved: User(id='DzTjkKse', handle='testuser1', email='testuser1@lamin.ai', name='Test User1', updated_at=2023-09-26 15:21:06)
✅ saved: Storage(id='Iwi0cK51', root='/home/runner/work/lamindb/lamindb/docs/faq/testschema', type='local', updated_at=2023-09-26 15:21:06, created_by_id='DzTjkKse')
💡 loaded instance: testuser1/testschema
💡 did not register local instance on hub (if you want, call `lamin register`)

Upon import, nothing yet happens:

import lnschema_bionty as lb

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 lb.Species(name="human") is not None
💡 loaded instance: testuser1/testschema
!lamin delete --force testschema
💡 deleting instance testuser1/testschema
✅     deleted instance settings file: /home/runner/.lamin/instance--testuser1--testschema.env
✅     instance cache deleted
✅     deleted '.lndb' sqlite file
❗     consider manually deleting your stored data: /home/runner/work/lamindb/lamindb/docs/faq/testschema