Skip to main content

An application for discovering collections from multiple STAC APIs and/or CMRs

Project description

Federated Collection Discovery

An application for discovering geospatial data collections from multiple STAC APIs and/or CMRs.

Installation

The package can be installed from pypi, optionally with uvicorn for serving the application locally:

for uvicorn:

pip install federated-collection-discovery[uvicorn]

If you are going to run the application in an AWS Lambda function, install the aws_lambda extras in the build context:

pip install federated-collection-discovery[aws_lambda]

Usage

To run the FastAPI application, set the FEDERATED_STAC_API_URLS environment variable and/or the FEDERATED_CMR_URLS environment variable, then launch it with uvicorn:

MAAP_API=https://stac.maap-project.org/
VEDA_API=https://openveda.cloud/api/stac/
ESA_API=https://catalogue.dataspace.copernicus.eu/stac
FEDERATED_STAC_API_URLS=${MAAP_API},${VEDA_API},${ESA_API} \
  uvicorn federated_collection_discovery.main:app --host 0.0.0.0 --port 8000

Development

Clone the repo

git clone git@github.com:developmentseed/federated-collection-discovery.git
cd federated-collection-discovery

Install Poetry

Ensure you have Poetry installed. If not, install it:

curl -sSL https://install.python-poetry.org | python3 -

Add Poetry to your system's PATH:

  • For Unix/MacOS:

    export PATH="$HOME/.local/bin:$PATH"
    

    Add the above line to your shell configuration file (~/.bashrc, ~/.bash_profile, or ~/.zshrc) to make it permanent.

  • For Windows:

    Add the path to your PATH environment variable through the system environment variable settings.

Install

Navigate to the src/server directory and install the dependencies (in a virtual environment) using Poetry:

python3 -m venv env
source env/bin/activate
cd src/server
poetry install

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

federated_collection_discovery-0.1.3.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file federated_collection_discovery-0.1.3.tar.gz.

File metadata

File hashes

Hashes for federated_collection_discovery-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7a57c77e7f8b500dc28508caa7b80188b80087952f16f0e0ba07fe4a9fb4cf9e
MD5 e35384ac272555e737b6acae1c53d731
BLAKE2b-256 3d22c0cb9118efa1c60ffdab595e874dc99d2c0b96a7617d511d4c926bf471df

See more details on using hashes here.

File details

Details for the file federated_collection_discovery-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for federated_collection_discovery-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c5f98a5bd43c4b3c7d1bef2e5703c899084b73bb284a26a482fd01a9139a3d0
MD5 e7512bb26c7a2586aa770292544b11a8
BLAKE2b-256 a7e4675673af0e9dd51d236460f64ce146563eed3927f891c530af7ef56392ea

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