Python library for working with Spatiotemporal Asset Catalog (STAC).
Project description
STAC Client
A Python client for working with STAC Catalogs and APIs.
Installation
Install from PyPi. Other than PySTAC itself, the only dependencies for pystac-client is the Python requests and dateutil libraries.
$ 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 --block-network --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 --block-network
$ 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 --block-network
$ 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, install the documentation requirements, then use the build-docs script:
$ pip install -r requirements-docs.txt
$ scripts/build-docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pystac-client-0.3.2.tar.gz.
File metadata
- Download URL: pystac-client-0.3.2.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82561eeb143328494786ce108f5d290adfd461fd7e3b5f6ee68751f6f6b6ec0e
|
|
| MD5 |
21964b2a7391614e96d16e2bc846e6c2
|
|
| BLAKE2b-256 |
b4e7a5d50e5e95b37a0c12ec7861ad8b6e44c99f39939736a5f3756b9c779f9f
|
File details
Details for the file pystac_client-0.3.2-py3-none-any.whl.
File metadata
- Download URL: pystac_client-0.3.2-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bd944ba41306865357ce64c5cddf1a2870449c59e32d5fed52667779ccb44f2
|
|
| MD5 |
8355beac3fbbe86ea6433945ba047a04
|
|
| BLAKE2b-256 |
ffa3f0e871f97d77ac638b58f634dfa545aca5f866d2310a299b1eb1a51e84f2
|