Python SDK for api.capellaspace.com (search, order, download)
Project description
🛰️ capella-console-client 🐐
Python SDK for api.capellaspace.com (search, order, download)
Installation
pip install capella-console-client
Requirements
- python >= 3.6
capella-console-client
requires an active account on console.capellaspace.com. Sign up for an account[here]](https://console.capellaspace.com/user/register/)
Usage
from capella_console_client import CapellaConsoleClient
from getpass import getpass
# user credentials on console.capellaspace.com
email = input('console user (user@email.com): ').strip()
pw = getpass('console password: ').strip()
# authenticate
client = CapellaConsoleClient(
email=email,
password=pw,
verbose=True
)
# search for 2 open-data products
stac_items = client.search(
instrument_mode="spotlight",
product_type__in=["SLC", "GEO"],
collections=["capella-open-data"],
limit=2
)
# order
order_id = client.submit_order(items=stac_items, omit_search=True)
# download
product_paths = client.download_products(
order_id=order_id,
local_dir='/tmp',
threaded=True,
show_progress=True
)
Documentation
The documentation for capella_console_client
can be found here.
Support
Please open an issue with enough information for us to reproduce your problem. A minimal, reproducible example would be very helpful.
Contributing
Contributions are very much welcomed and appreciated. See how to contribute for more information.
License
• Licensed under the MIT License • Copyright 2021 • Capella Space •
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
Close
Hashes for capella-console-client-0.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5ee06a2a9fa8358390deec5d28cad28b53f321ec487eaf633f5bbbd2e655269 |
|
MD5 | c977563ddad15d602fc80871b057727e |
|
BLAKE2b-256 | 8e47c635459167f1cb0e5f3e29de37236783ea8d29d66ce38f8590718ab3797a |
Close
Hashes for capella_console_client-0.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0717cca541f7c3b074b955995d5688c0046f8fd5cbc46d9454f8c6c20ea6aa71 |
|
MD5 | d66c943a5f8dcf32597c9b2d260686a2 |
|
BLAKE2b-256 | cf0f3c9479f66c11f6a0e44606db2d4f9d2a058e08599d0d64896ce6836efde5 |