Install and build

Install the library

The package declares Python 3.10 or later and PySTAC >=1,<2. The test matrix covers Python 3.10–3.14.

python -m pip install pystac-ext-osc
python -c "from pystac.extensions.osc import OscExtension; print(OscExtension.get_schema_uri())"

Install from a checkout

git clone https://github.com/Terradue/pystac-ext-osc.git
cd pystac-ext-osc
python -m pip install -e .

If an existing editable installation predates a packaging change, repeat the editable install in that environment.

Preview the documentation

Install the package and documentation tools in the same environment. Use a regular install for documentation: static API discovery does not reliably find editable modules inside the shared PySTAC namespace. Reinstall after changing source code:

python -m pip install . "mkdocs<2" mkdocs-material "mkdocstrings[python]"
mkdocs serve

Build with warnings treated as errors:

mkdocs build --strict

Run repository checks

With Hatch installed, run these commands from the checkout:

hatch run dev:check
hatch run dev:typecheck
hatch run dev:security
hatch run test:test