Skip to content

Install

Analects needs Python 3.11 or newer. The simplest way to get it is uv:

uv tool install "git+https://github.com/KindTechUK/analects"     # the `analects` command, anywhere
analects --help

or with pip, in a virtual environment:

pip install "git+https://github.com/KindTechUK/analects"

The packs — the entity types Analects knows (data centres, companies, permits, people, votes, statements) — ship with it. Check they load:

analects schema test
# 3 packs load; 12 entity types; 20 fixtures well-formed

Optional extras

Extra For
serve running a hosted peer (analects serve), with Datasette at /data
footprint estimating a research run's energy and emissions (analects footprint)
docs building this site
uv tool install "analects[serve] @ git+https://github.com/KindTechUK/analects"

From a clone (to contribute)

git clone https://github.com/KindTechUK/analects && cd analects
uv sync
uv run analects schema test
uv run pytest

Next: configure.