Use Github Pull Requests to provide new features or to request review of draft code, and use Issues to report bugs or request new features.
We recommand using uv as project manager for development.
See https://docs.astral.sh/uv/getting-started/installation/ for installation
dev install
git clone https://github.com/stac-utils/stac-fastapi-pgstac.git
cd stac-fastapi
uv syncTo run the service on 0.0.0.0:8082 and ingest example data into the database (the "joplin" collection):
make run-joplinYou can connect to the database with a database tool on port 5439 to inspect and see the data.
To run the tests:
make testpre-commit
This repo is set to use pre-commit to run isort, flake8, pydocstring, black ("uncompromising Python code formatter") and mypy when committing new code.
pre-commit installgit clone https://github.com/stac-utils/stac-fastapi-pgstac.git
cd stac-fastapi-pgstac
# Build docs
uv run --group docs mkdocs build -f docs/mkdocs.ymlHot-reloading docs:
uv run --group docs mkdocs serve -f docs/mkdocs.yml --livereloadTo manually deploy docs (note you should never need to do this because GitHub Actions deploys automatically for new commits.):
# deploy
uv run --group docs mkdocs gh-deploy -f docs/mkdocs.yml