biotope
Describe local data with croissant-baker, define a purpose and target schema, and maintain typed Python mappings and project-owned graph pipelines with version-controlled metadata. Biotope validates selected builds and writes BioCypher files. Best used with a coding agent: install the plugin, describe what you want the graph to answer, and let the agent run the pipeline.
| Package | |
| Meta |
Pre-alpha. CLI flags and APIs will change. The plugin skills are the most stable onboarding path.
Install the plugin
Pick your agent harness. All paths use this repo: github.com/biocypher/biotope.
| Harness | Setup |
|---|---|
| Claude Code | /plugin marketplace add biocypher/biotope then /plugin install biotope@biotope |
| Cursor | Add a team marketplace → import biocypher/biotope |
| Codex | Add a marketplace from the CLI pointing at this repo |
Skills only: copy the folder(s) you need from skills/ into your project — e.g. .cursor/skills/, .claude/skills/. Start with biotope-croissant; add biocypher for a standalone BioCypher project.
Use it
The plugin ships two skills:
| Skill | Use when |
|---|---|
| biotope-croissant | Curated sources, Python mappings and selected BioCypher file builds |
| biocypher | A standalone BioCypher project: adapters, schema config, Neo4j import |
You do not need to learn the CLI first. In chat, invoke a skill (e.g. /biotope-croissant) or just ask:
What does biotope do? I want to build a graph from my data.
The agent reads the skill contract and runs biotope commands for you.
Reference: biocypher.github.io/biotope
CLI (manual / scripting)
If you prefer the terminal or need CI, install the package in your environment. For this unreleased integration, use both local checkouts in the same environment:
uv venv .venv
uv pip install --python .venv/bin/python -e ../croissant-baker -e '.[graph]'
source .venv/bin/activate
Published-release installation options (the updated baker release is still required):
uvx biotope init my-kg # no install — ephemeral venv for scaffolding
pipx install biotope # global install
uv add biotope # inside a uv-managed project
Graph authoring starts with biotope graph scaffold, which creates graph/.
Initialization and baking do not create or execute a graph.
Typical flow: init → add → graph scaffold → source generate → Python authoring → graph check → graph build. Use graph metagraph to view topology independently, or graph quality to execute and assess without export. Command overview: docs/commands.md.
Worked example: tutorial — one Croissant description, one source package per record set, joined with typed mappings, provenance and BioCypher output.
For developers
biotope is a CLI for the BioCypher ecosystem: curated Croissant → typed Python graph projects, with metadata version control.
| Layer | Module | Role |
|---|---|---|
| Project & VCS | biotope.commands.* |
init, add, commit, status, log, push, pull — metadata workflow |
| Source metadata | biotope.croissant.* |
Metadata models and payload-free inspection |
Agent contract lives in skills/ (not AGENTS.md). biotope.graph exposes the typed contracts; CLI verbs wrap generation, checking and explicit execution. See how biotope works and the command overview.
uv sync --extra dev --extra graph
node --version
uv run python -m pyright --version
uv run pyright
uv run pytest
uv run ruff check biotope tests
Typed authoring, topology organization and modular construction were informed by Paul Ka Po To's kg-build-system. This implementation uses ordinary Python and does not copy, vendor or depend on that engine.
Copyright
Copyright © 2025–2026 BioCypher Team. Apache 2.0.
Metadata
Release files for biotope 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| biotope-0.9.0.tar.gz | 503.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| biotope-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 766.3 kB
Release files / biotope-0.9.0.tar.gz
| Download URL | biotope-0.9.0.tar.gz |
|---|---|
| Size | 503.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9dc297e8b0dc8db8cca7c1206d3b3787b315a4ae427e1e376cadc580d32038cb
|
|
BLAKE2b-256 checksum How to use checksums |
15dac27b33313a261d8afb99d15792facad589183dcef9f2eb35003b211cbae6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / biotope-0.9.0-py3-none-any.whl
| Download URL | biotope-0.9.0-py3-none-any.whl |
|---|---|
| Size | 263.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66132bea30ca59d9601565f8f6c0fd84e10c8788b0ef542e3cdd5a7566e6f042
|
|
BLAKE2b-256 checksum How to use checksums |
145f82ff40ff25ea6a91d671db4b730f483c8579901a4d938d4212ba9c39cac3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency log