Storage client for Tilebox
Project description
Documentation | Console | Example Gallery
Tilebox Storage
Download satellite payload data for your Tilebox datasets.
Quickstart
Install using pip:
pip install tilebox-storage tilebox-datasets
Fetch a datapoint to download the payload data for:
from tilebox.datasets import Client
# Creating clients
client = Client(token="YOUR_TILEBOX_API_KEY")
datasets = client.datasets()
# Choosing the dataset and collection
s2_dataset = datasets.open_data.copernicus.sentinel2_msi
collections = s2_dataset.collections()
collection = collections["S2A_S2MSI2A"]
# Loading metadata
s2_data = collection.load(("2024-08-01", "2024-08-02"), show_progress=True)
# Let's download the first granule
s2_granule = s2_data.isel(time=0)
Then download the payload data using a storage client:
from pathlib import Path
from tilebox.storage import CopernicusStorageClient
# Check out the Copernicus Dataspace S3 documentation at
# https://documentation.dataspace.copernicus.eu/APIs/S3.html
# to learn how to get your access key and secret access key
storage_client = CopernicusStorageClient(
access_key="YOUR_ACCESS_KEY",
secret_access_key="YOUR_SECRET_ACCESS_KEY",
cache_directory=Path("./data")
)
downloaded_data = storage_client.download(s2_granule)
print(f"Downloaded granule: {downloaded_data.name} to {downloaded_data}")
print("Contents: ")
for content in downloaded_data.iterdir():
print(f" - {content.relative_to(downloaded_data)}")
License
Distributed under the MIT License (The MIT License).
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 tilebox_storage-0.51.0.tar.gz.
File metadata
- Download URL: tilebox_storage-0.51.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8067099734fbf27b02eb96f08a4845bc6701a506f3ce6deccd449e25329ec9b9
|
|
| MD5 |
e8d2547d1e4628b6d2879dd2e7f9200a
|
|
| BLAKE2b-256 |
07b5945349d4c8ea9c4679893d6a2fef42c5588901ec0b0940c0de83871c4338
|
Provenance
The following attestation bundles were made for tilebox_storage-0.51.0.tar.gz:
Publisher:
publish_tilebox_storage.yml on tilebox/tilebox-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tilebox_storage-0.51.0.tar.gz -
Subject digest:
8067099734fbf27b02eb96f08a4845bc6701a506f3ce6deccd449e25329ec9b9 - Sigstore transparency entry: 1247123583
- Sigstore integration time:
-
Permalink:
tilebox/tilebox-python@064ae7ed4c22213767f9b75f4359459abfdcb8fa -
Branch / Tag:
refs/tags/v0.51.0 - Owner: https://github.com/tilebox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_tilebox_storage.yml@064ae7ed4c22213767f9b75f4359459abfdcb8fa -
Trigger Event:
release
-
Statement type:
File details
Details for the file tilebox_storage-0.51.0-py3-none-any.whl.
File metadata
- Download URL: tilebox_storage-0.51.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
117cff8888dc38f69bd12087c755dc86d938731c6050bfdd70cabd0dbbb1db0e
|
|
| MD5 |
5a4e9255d21a5b9b5ca2f24731772961
|
|
| BLAKE2b-256 |
d45ee74946d3ea151229399b8e9ca2859584c581eb11097ccac33334179ab0f2
|
Provenance
The following attestation bundles were made for tilebox_storage-0.51.0-py3-none-any.whl:
Publisher:
publish_tilebox_storage.yml on tilebox/tilebox-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tilebox_storage-0.51.0-py3-none-any.whl -
Subject digest:
117cff8888dc38f69bd12087c755dc86d938731c6050bfdd70cabd0dbbb1db0e - Sigstore transparency entry: 1247123595
- Sigstore integration time:
-
Permalink:
tilebox/tilebox-python@064ae7ed4c22213767f9b75f4359459abfdcb8fa -
Branch / Tag:
refs/tags/v0.51.0 - Owner: https://github.com/tilebox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_tilebox_storage.yml@064ae7ed4c22213767f9b75f4359459abfdcb8fa -
Trigger Event:
release
-
Statement type: