Skip to main content

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

Project description

STAC Client

CI Release PyPI version Documentation codecov

A Python client for working with STAC Catalogs and APIs.

Installation

Install from PyPi. Other than PySTAC itself, the only dependency for pystac-client is the Python requests library.

pip install pystac-client

Documentation

See the documentation page for the latest docs.

Development

For development, clone the repository and use the standard Python method for installing the library as an "editable link", then install the development dependencies:

$ git clone https://github.com/stac-utils/pystac-client.git
$ cd pystac-client
$ pip install -e .
$ pip install -r requirements-dev.txt

To run just the tests

$ pytest -v -s --cov pystac_client --cov-report term-missing

The pystac-client tests use vcrpy to mock API calls with "pre-recorded" API responses. When adding new tests use the @pytest.mark.vcr decorator function to indicate vcrpy should be used. Record the new responses and commit them to the repository.

$ pytest -v -s --record-mode new_episodes
$ git add <new files here>
$ git commit -a -m 'new test episodes'

To update pystac-client to use future versions of STAC API, the existing recorded API responsees should be "re-recorded":

$ pytest -v -s --record-mode rewrite
$ git commit -a -m 'updated test episodes'

Pull Requests

To make Pull Requests to pystac-client, the code must pass linting, formatting, and code tests. To run the entire suit of checks and tests that will be run the GitHub Action Pipeline, use the test script.

$ scripts/test

If automatic formatting is desired (incorrect formatting will cause the GitHub Action to fail), use the format script and commit the resulting files:

$ scripts/format
$ git commit -a -m 'formatting updates'

To build the documentation, use the build-docs script:

$ scripts/build-docs

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-client-0.3.0b1.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

pystac_client-0.3.0b1-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file pystac-client-0.3.0b1.tar.gz.

File metadata

  • Download URL: pystac-client-0.3.0b1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pystac-client-0.3.0b1.tar.gz
Algorithm Hash digest
SHA256 70d02d58a9d1be55d70c005b26f08b540929f2f593472bc24b5ccff1fa984c7d
MD5 f152b32c11c5abbbb224030d01dda5b7
BLAKE2b-256 a7c0be32a4f6be8fb50a6283c0cef166e67c4191342b8c1ff56e9311cce07618

See more details on using hashes here.

File details

Details for the file pystac_client-0.3.0b1-py3-none-any.whl.

File metadata

  • Download URL: pystac_client-0.3.0b1-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pystac_client-0.3.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 a509a111c107e17667189fe39c19473bfac73ae5587afc47be56bd30004f8aae
MD5 e8b34466e858aff7ba0c5c62849cd00d
BLAKE2b-256 6319ee480a034fa3171c4949607d8d3072ca414764e7b8f474f4a44e6ec754d3

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