Skip to main content

Access Tilebox datasets from Python

Project description

Tilebox Logo

Documentation | Console | Example Gallery

Tilebox Datasets

Access satellite data using the Tilebox datasets python client powered by gRPC and Protobuf.

Quickstart

Install using pip:

pip install tilebox-datasets

Instantiate a client:

from tilebox.datasets import Client

# create your API key at https://console.tilebox.com
client = Client(token="YOUR_TILEBOX_API_KEY")

Explore datasets and collections:

datasets = client.datasets()
print(datasets)

sentinel2_msi = client.dataset("open_data.copernicus.sentinel2_msi")
collections = sentinel2_msi.collections()
print(collections)

Query data:

s2a_l1c = sentinel2_msi.collection("S2A_S2MSI1C")
results = s2a_l1c.query(
  temporal_extent=("2025-03-01", "2025-06-01"),
  show_progress=True
)
print(f"Found {results.sizes['time']} datapoints")  # Found 220542 datapoints

Spatio-temporal queries:

from shapely.geometry import shape

area_of_interest = shape({
    "type": "Polygon",  # coords in lon, lat
    "coordinates": [[[-5, 50], [-5, 56], [-11, 56], [-11, 50], [-5, 50]]]}
)
s2a_l1c = sentinel2_msi.collection("S2A_S2MSI1C")
results = s2a_l1c.query(
  temporal_extent=("2025-03-01", "2025-06-01"),
  spatial_extent=area_of_interest,
  show_progress=True
)
print(f"Found {results.sizes['time']} datapoints")  # Found 979 datapoints

Documentation

Check out the Tilebox Datasets documentation for more information.

License

Distributed under the MIT License (The MIT License).

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

tilebox_datasets-0.54.0.tar.gz (82.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tilebox_datasets-0.54.0-py3-none-any.whl (115.1 kB view details)

Uploaded Python 3

File details

Details for the file tilebox_datasets-0.54.0.tar.gz.

File metadata

  • Download URL: tilebox_datasets-0.54.0.tar.gz
  • Upload date:
  • Size: 82.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tilebox_datasets-0.54.0.tar.gz
Algorithm Hash digest
SHA256 2599ebb9789886a4c7329989d4d7974c3aff4ed05ebbd0ecb424e6e466c34985
MD5 f61dd492e97bd9790db34971bef81544
BLAKE2b-256 8e04c7da8422b9778577c5882f6f2118c3565a7276a7de3856f5a96a1e8361b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tilebox_datasets-0.54.0.tar.gz:

Publisher: publish_tilebox_datasets.yml on tilebox/tilebox-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tilebox_datasets-0.54.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tilebox_datasets-0.54.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54a0b49f80bec27a7de697fc5acae57a42e8a0254126c728d848139e8e6673a3
MD5 d0361818e327022fbc1da691581917e8
BLAKE2b-256 e598b3a0c4e1221b1659d29dc30e201e7a0c6dd9e6c893bdedf3a18b5092ec3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tilebox_datasets-0.54.0-py3-none-any.whl:

Publisher: publish_tilebox_datasets.yml on tilebox/tilebox-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page