PySTAC is a library for working with SpatialTemporal Asset Catalog in Python 3.
PySTAC has a single dependency (python-dateutil
).
PySTAC can be installed from pip or the source repository.
> pip install pystac
From source repository:
> git clone https://github.com/azavea/pystac.git
> cd pystac
> pip install .
To install a specific versions of STAC, install the matching version of pystac.
> pip install pystac==0.2.0
The table below shows the corresponding versions between pystac and STAC:
pystac | STAC |
---|---|
0.2.x | 0.8.x |
See the documentation page for the latest docs.
To ensure development libraries are installed, install everything in requirements-dev.txt
:
> pip install -r requirements-dev.txt
Unit tests are in the tests
folder. To run unit tests, use unittest
:
> python -m unittest discover tests
There are tutorials written as jupyter notebooks in the tutorials
folder. To run them, run a jupyter notebook with the tutorials
directory as the notebook directory:
> PYTHONPATH=`pwd`:$PYTHONPATH jupyter notebook --ip 0.0.0.0 --port 8888 --notebook-dir=tutorials
Requires Jupyter be installed.