Skip to main content

Python library for working with Spatiotemporal Asset Catalog (STAC).

Project description

## PySTAC [![Build Status](https://api.travis-ci.org/azavea/pystac.svg?branch=develop)](https://travis-ci.org/azavea/pystac) [![PyPI version](https://badge.fury.io/py/pystac.svg)](https://badge.fury.io/py/pystac) [![Documentation](https://readthedocs.org/projects/pystac/badge/?version=latest)](https://pystac.readthedocs.io/en/latest/) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

PySTAC is a library for working with [SpatialTemporal Asset Catalog](https://stacgeo.org) in Python 3.

## Installation

PySTAC has a single dependency (python-dateutil). PySTAC can be installed from pip or the source repository.

`bash > pip install pystac `

From source repository:

`bash > git clone https://github.com/azavea/pystac.git > cd pystac > pip install . `

#### Versions To install a specific versions of STAC, install the matching version of pystac.

`bash > 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 |

## Documentation

See the [documentation page](https://pystac.readthedocs.io/en/latest/) for the latest docs.

## Developing

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 `

## Running the tutorials

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](https://jupyter.org/) be installed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pystac-0.2.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

pystac-0.2.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file pystac-0.2.0.tar.gz.

File metadata

  • Download URL: pystac-0.2.0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for pystac-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1e460c8d18302ba39ea835722e3b45aecda5505b6f12b113e1e43fc4f2a2904b
MD5 cdf66e2a3b76c16d63c5a439af1d2504
BLAKE2b-256 779464fe798fb8cd24199f5dd901a5418e9df3421fe07f99a68363d461331722

See more details on using hashes here.

File details

Details for the file pystac-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pystac-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for pystac-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7def811e781a25c8899a901619f9b232172f5830a499356bf5babc1eb1849dc6
MD5 3071770399fafe78a897bb0cded7d989
BLAKE2b-256 e0b10f821a56c2e8991a653cff75c5af9954d514d45c8fa56bdca5f616b2ee04

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page