Skip to main content

stac-nb exposes STAC in Jupyter Notebooks

Project description

stac-nb

STAC in Jupyter Notebooks

Documentation Status PyPI Status https://coveralls.io/repos/github/darrenwiens/stac-nb/badge.svg?branch=main Build Status

Install

pip install stac-nb

Usage

To use stac-nb in a project, start Jupyter Lab (jupyter lab), create a new notebook, then:

from stac_nb import STAC_Query_UI

Display the UI for a STAC API:

ui = STAC_Query_UI("https://earth-search.aws.element84.com/v0")
ui.display()

After you have run the query, retrieve the results from ui.query_results:

ui.query_results

The statement above will render a visual list component, including an interactive map and a multitude of other richly stylized elements.

The list of pystac.Items returned from the query may be used further in Python, like:

list(ui.query_results)

History

0.1.0 (2021-10-02)

  • First release on PyPI.

0.2.0 (2021-10-04)

  • Added: optional filter by ids

  • Added: optional print STAC query

  • Updated: docs

0.3.0 (2021-10-06)

  • Breaking Change: ui.query_results is now a list of pystac.item.Item

  • Added: automate builds and tests

0.4.0 (2021-10-08)

  • Breaking Change: ui.query_results is now a VisualList

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

stac_nb-0.4.0.tar.gz (19.0 kB view hashes)

Uploaded Source

Built Distribution

stac_nb-0.4.0-py2.py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 2 Python 3

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