Installation¶
Mosaic is a LinkML runtime. This guide covers installing Mosaic in production and development environments.
Upgrading from Hippo¶
Mosaic is the new name of the component previously distributed as Hippo
(ADR-0004). Upgrading is a dependency swap — pip install datahelix-mosaic
(the hippo distribution is retired at 0.10.x) — and nothing else has to
change on day one:
- Imports:
import hippostill works; it is a shim that emits oneDeprecationWarningand aliases everyhippo.*module to the identicalmosaic.*module object, soisinstancechecks and module identity hold across both spellings.HippoClientremains available as an alias ofMosaicClient. - CLI: the
hippocommand still works; it prints a deprecation notice to stderr and delegates tomosaic. - Config:
mosaic.yamlis preferred; an existinghippo.yaml/hippo.ymlis still auto-detected (with a warning). When both exist,mosaic.yamlwins. A config-less deployment whose database lives at the old defaultdata/hippo.dbis still picked up; new deployments default todata/mosaic.db. - Environment variables:
MOSAIC_CACHE_DIR,MOSAIC_RECIPE_CACHE,MOSAIC_TUI_TOKEN, andMOSAIC_DATABASE_URLare preferred; theHIPPO_*spellings are honored as a fallback (one warning per variable). - Plugins: entry points are read from the
mosaic.*groups and the legacyhippo.*groups (deduplicated by name), so existinghippo-reference-*packages remain discoverable. New plugins should register undermosaic.*and follow themosaic-reference-<name>/mosaic-adapter-<name>naming convention. - No data migration. Schema-layer names (
hippo_core,hippo_ext,hippo_*annotations), thehippo_metatable, and on-disk provenance are intentionally unchanged.
The hippo aliases will be removed no sooner than two minor releases after
0.11.0, via a future ADR.
Requirements¶
- Python 3.11 or later
- pip or uv package manager (uv recommended for faster installs)
Install Methods¶
Using pip¶
Using uv¶
Development Install¶
To set up Mosaic for local development:
-
Clone the repository:
-
Install with development dependencies:
-
Verify the installation by running the test suite:
Verify Installation¶
After installation, verify the CLI is working:
This should display the Mosaic CLI help message with available commands.