Installation¶
Requirements¶
- Python 3.12+
- A reachable PostgreSQL database for the online features (extraction and online profiling). Offline analysis needs only a previously generated JSON inventory.
pgcarter builds on psycopg (psycopg 3),
jinja2,
typer,
structlog, and pyyaml. No SQLAlchemy.
Install from source¶
The project is currently distributed via source.
This installs the package in editable mode along with the development tools
(pytest, ruff, mypy).
Package install
Once published to an index, installation is the usual:
Verify the installation¶
You should see the two subcommands, index and analyze.
Optional dependency groups¶
| Extra | Installs | Used for |
|---|---|---|
dev |
pytest, pytest-cov, mypy, ruff | running tests, linting, type-checking |
docs |
mkdocs-material, mkdocstrings | building this documentation site locally |
Next steps¶
- Usage — run your first extraction and analysis
- Configuration — connection and analysis settings