Skip to main content

Copernicus Explorer

PyPI Python License: MIT

A Python package for browsing and downloading Sentinel satellite products from the Copernicus Data Space Ecosystem (CDSE).

Built on a native Rust core via PyO3, it runs at full compiled speed with no serialization overhead.

Features

  • Search the CDSE catalogue by satellite, product type, date range, cloud cover, tile ID, point, bounding box, or GeoJSON geometry
  • Download scenes by name with Bearer-token authentication, to local filesystem or directly to an S3-compatible bucket
  • Batch download multiple products concurrently with configurable parallelism
  • Authenticate against the CDSE OAuth2 identity provider
  • Supports Sentinel-1, -2, -3, -5P, and -6
  • Includes an interactive terminal UI (copernicus-explorer) and a CLI (copernicus-explorer-cli) for scripting

Installation

pip install copernicus-explorer

Prerequisites

  • Python 3.9+
  • A free Copernicus Data Space account (required for authentication and downloads; searching is anonymous)

Quick start

Search for products

from datetime import datetime, timedelta, timezone
import copernicus_explorer_py as ce

query = ce.SearchQuery(ce.Satellite.sentinel2())
query.product("L2A")
query.dates(
    datetime.now(timezone.utc) - timedelta(days=20),
    datetime.now(timezone.utc),
)
query.max_cloud_cover(30.0)
query.geometry_point(ce.Point(43.6, 1.44))
query.max_results(5)

products = query.execute()
ce.print_products(products)

Search with a GeoJSON file

import copernicus_explorer_py as ce

query = ce.SearchQuery(ce.Satellite.sentinel2())
query.product("L2A")
query.geometry_geojson("roi.geojson")
query.max_cloud_cover(30.0)
query.max_results(5)

products = query.execute()
ce.print_products(products)

The method also accepts a raw GeoJSON string instead of a file path.

Download a single scene

token = ce.get_access_token_from_env()
path = ce.download_scene(products[0].name, "./data", token)
print(f"Downloaded to {path}")

Download by product ID

If you already have the CDSE product UUID (e.g. from a previous search), you can skip the name-to-ID resolution query:

token = ce.get_access_token_from_env()
path = ce.download_by_id(products[0].id, "./data", token)
print(f"Downloaded to {path}")

Download directly to an S3 bucket

Pass an s3:// URI as the directory and optionally point to a credentials file:

token = ce.get_access_token_from_env()
path = ce.download_by_id(
    products[0].id,
    "s3://my-bucket/SAFE/",
    token,
    s3_config="~/.config/copernicus_explorer/s3.conf",
)
print(f"Uploaded to {path}")

S3 credentials are resolved in order: s3_config argument, default config at ~/.config/copernicus_explorer/s3.conf, then environment variables (S3_*, then AWS_*). The config file uses rclone-style INI format where the section name matches the bucket name:

[my-bucket]
access_key_id = ...
secret_access_key = ...
region = sbg
endpoint = https://s3.sbg.perf.cloud.ovh.net

If the file contains multiple sections, the one matching the bucket from the s3:// URI is used. If no section matches, resolution falls back to environment variables.

Variable (checked first) Fallback variable
S3_ACCESS_KEY_ID AWS_ACCESS_KEY_ID
S3_SECRET_ACCESS_KEY AWS_SECRET_ACCESS_KEY
S3_ENDPOINT AWS_ENDPOINT_URL
S3_REGION AWS_REGION

Batch download with concurrency

token = ce.get_access_token_from_env()
results = ce.download_products(products, "./data", token, max_concurrent=3)

for product, result in zip(products, results):
    if result is not None:
        print(f"  OK: {product.name} -> {result}")
    else:
        print(f"  FAILED: {product.name}")

Authenticate explicitly

token = ce.get_access_token("you@example.com", "yourpassword")

Or via environment variables:

export COPERNICUS_USER="you@example.com"
export COPERNICUS_PASS="yourpassword"
token = ce.get_access_token_from_env()

Terminal UI

After install, the default console script launches the interactive TUI:

Copernicus Explorer terminal UI

export COPERNICUS_USER="you@example.com"
export COPERNICUS_PASS="yourpassword"

copernicus-explorer
# or: python -m copernicus_explorer_py

From Python:

import copernicus_explorer_py as ce
ce.run_tui()

CLI usage

The Click CLI is available as copernicus-explorer-cli:

copernicus-explorer-cli [OPTIONS] COMMAND [ARGS]...

Commands:
  search    Search the CDSE catalogue for satellite products
  download  Download one or more scenes by name
  auth      Test authentication and print a token summary

Search the catalogue. Dates default to the last 30 days if omitted.

# Sentinel-2 L2A near Toulouse, max 30% cloud cover
copernicus-explorer-cli search sentinel-2 -p L2A --point 43.6,1.44 -c 30

# Sentinel-1 GRD over the Alps with explicit date range
copernicus-explorer-cli search sentinel-1 -p GRD \
  --bbox 47.5,6.0,45.5,11.0 \
  --start 2026-03-01 --end 2026-03-24

# Sentinel-2 by tile, limit to 3 results
copernicus-explorer-cli search sentinel-2 -p L2A --tile T31TFJ -n 3

# Search using a GeoJSON file as the area of interest
copernicus-explorer-cli search sentinel-2 -p L2A --geojson roi.geojson -c 30
Flag Description
SATELLITE sentinel-1, sentinel-2, sentinel-3, sentinel-5p, sentinel-6
-p, --product TYPE Product type filter (e.g. L2A, L1C, GRD)
--start YYYY-MM-DD Start of acquisition window (default: 30 days ago)
--end YYYY-MM-DD End of acquisition window (default: today)
--tile TILE Sentinel-2 tile identifier (e.g. T31TFJ)
-c, --cloud 0-100 Maximum cloud cover percentage
--point LAT,LON Point geometry (e.g. 43.6,1.44)
--bbox TLAT,LLON,BLAT,RLON Bounding box (e.g. 47.5,6.0,45.5,11.0)
--geojson FILE GeoJSON file defining the area of interest
-n, --max-results N Maximum number of results (default: 10)

download

Download one or more scenes by name or by CDSE product ID. Requires authentication.

# Single scene by name
copernicus-explorer-cli download \
  "S2B_MSIL2A_20260315T105019_N0512_R051_T31TCJ_20260315T144522.SAFE" \
  -o ./data

# Multiple scenes concurrently (max 4 in parallel by default)
copernicus-explorer-cli download \
  "S2B_MSIL2A_20260315T105019_N0512_R051_T31TCJ_20260315T144522.SAFE" \
  "S2A_MSIL2A_20260317T104021_N0512_R008_T31TCJ_20260317T160837.SAFE" \
  -o ./data -j 2

# Download by product UUID (skips the name-to-ID resolution query)
copernicus-explorer-cli download --id \
  "a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  -o ./data

# Download directly to an S3-compatible bucket
copernicus-explorer-cli download --id \
  "a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  -o s3://my-bucket/SAFE/ --s3-config ~/.config/copernicus_explorer/s3.conf
Flag Description
SCENES... One or more scene names or product IDs (depending on --id)
--id Treat arguments as CDSE product UUIDs instead of scene names
-o, --output-dir DIR or S3 URI Output directory or s3://bucket/prefix/ (default: .)
--s3-config FILE Path to S3 credentials config file (rclone-style INI)
-j, --concurrent N Maximum concurrent downloads (default: 4)
-u, --user USER Username (or set COPERNICUS_USER)
-P, --password PASS Password (or set COPERNICUS_PASS)

auth

Test your credentials:

copernicus-explorer-cli auth
copernicus-explorer-cli auth -u you@example.com -P yourpassword

Python API reference

Classes

Class Constructor Key methods / attributes
Satellite Satellite.sentinel1(), .sentinel2(), .sentinel3(), .sentinel5p(), .sentinel6() .collection_name(), .known_products(), .is_valid_product(str)
SearchQuery SearchQuery(satellite) .product(str), .dates(start, end), .tile(str), .max_cloud_cover(float), .geometry_point(Point), .geometry_bbox(BoundingBox), .geometry_geojson(str), .max_results(int), .execute()
Product returned by SearchQuery.execute() .name, .id, .acquisition_date, .publication_date, .online, .cloud_cover
Point Point(lat, lon) .lat, .lon
BoundingBox BoundingBox((lat, lon), (lat, lon)) .upper_left, .lower_right

Functions

Function Description
get_access_token(username, password) Authenticate and return an access token string
get_access_token_from_env() Authenticate using COPERNICUS_USER / COPERNICUS_PASS env vars
download_scene(scene_name, directory, token, s3_config=None) Download a single scene by name; returns the output file path (or S3 URI)
download_by_id(id, directory, token, s3_config=None) Download a single product by CDSE UUID; skips name-to-ID resolution
download_products(products, directory, token, max_concurrent=4, s3_config=None) Download multiple products concurrently; returns a list of paths (None on failure)
get_scene_id(scene_name) Resolve a scene name to its CDSE UUID
format_products(products) Format a list of products as a table string
print_products(products) Print a formatted product table to stdout
run_tui() Launch the interactive terminal UI (blocks until quit)

Relation to the Rust crate

This package is the Python interface to the copernicus_explorer Rust library. The Python import name is copernicus_explorer_py. Console scripts: copernicus-explorer (TUI) and copernicus-explorer-cli (Click CLI).

If you are looking for the Rust library or the Rust-built CLI binary, see the main repository README.

License

MIT

Metadata

Release files for copernicus-explorer 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for copernicus-explorer 0.5.0
File Size Uploaded Provenance Actions
copernicus_explorer-0.5.0.tar.gz 110.0 kB With provenance Details for copernicus_explorer-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for copernicus-explorer 0.5.0
File Actions
copernicus_explorer-0.5.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for copernicus_explorer-0.5.0-cp313-cp313-win_amd64.whl
copernicus_explorer-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for copernicus_explorer-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl
copernicus_explorer-0.5.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for copernicus_explorer-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
copernicus_explorer-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for copernicus_explorer-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl
copernicus_explorer-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for copernicus_explorer-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl
copernicus_explorer-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for copernicus_explorer-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl
copernicus_explorer-0.5.0-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details for copernicus_explorer-0.5.0-cp310-cp310-manylinux_2_28_aarch64.whl
copernicus_explorer-0.5.0-cp39-cp39-manylinux_2_28_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ ARM64 Details for copernicus_explorer-0.5.0-cp39-cp39-manylinux_2_28_aarch64.whl
copernicus_explorer-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for copernicus_explorer-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Total release size: 31.5 MB

Release files / copernicus_explorer-0.5.0.tar.gz

Download URL copernicus_explorer-0.5.0.tar.gz
Size 110.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f51953a88d3e617a31f4d1118342a7c23a4504d25128a322d44a5e6b9c06fa4c
BLAKE2b-256 checksum
How to use checksums
6c1e953583ba1262630af40b0580be4c24c4ebfcda58b76e602d95af5c6e2201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / copernicus_explorer-0.5.0-cp313-cp313-win_amd64.whl

Download URL copernicus_explorer-0.5.0-cp313-cp313-win_amd64.whl
Size 3.5 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
e82b64cadcd138cbd57360c3faa307f810fe712b1400fde4331f23029d45409e
BLAKE2b-256 checksum
How to use checksums
6b7400c905a9c4f87d9d5fb7a3d80e868e47d002b742a770a077620630c4e680
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / copernicus_explorer-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL copernicus_explorer-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl
Size 3.5 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
2a03b755ca3b3e7f222bc2b4d88874133e8cc20062a64620585358b66480b22c
BLAKE2b-256 checksum
How to use checksums
80fdd163c66e44c2a6ac4dd155861437f682ef541f21ec21dd11e41b604abdca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / copernicus_explorer-0.5.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL copernicus_explorer-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Size 3.4 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0435a64a62c76d49d2a942194cafdb7d6459fe3e96234f91d70904ead3297c6c
BLAKE2b-256 checksum
How to use checksums
3deb0bba6c44729b5cd5cefbedd2fbfdf8a6484ed4eb4625daf1ebd9394a263e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / copernicus_explorer-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl

Download URL copernicus_explorer-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 3.6 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e0cce5b7568b708c9b70ca95f3e9418e4b07387941c6cab7973d19e9d9474f85
BLAKE2b-256 checksum
How to use checksums
7c6d7acd286593d7aafc2443f2b80691644e905c0ead7fce421324b17ad69fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / copernicus_explorer-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL copernicus_explorer-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl
Size 3.5 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
de14b1368e63ec03f4563e8aed5aef65aa08050fba19b91afe3adc1f7a026dff
BLAKE2b-256 checksum
How to use checksums
1849fa9ad0298aecdf5c15f9d29989e5558d6f6192713532c7e540750c398815
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / copernicus_explorer-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL copernicus_explorer-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl
Size 3.5 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
2bac7718826b836b0305816a95895d41a88e2d9788e7fd8c3939f498219c3062
BLAKE2b-256 checksum
How to use checksums
4a8fd421be006882050deeb7f59b7ecf219d3e75e43f6c66c5fd81b813910bbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / copernicus_explorer-0.5.0-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL copernicus_explorer-0.5.0-cp310-cp310-manylinux_2_28_aarch64.whl
Size 3.5 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
1f728ad7aa5826add48cc6a22f3d3a760ae25c02abe770e150678e5fc825ba42
BLAKE2b-256 checksum
How to use checksums
e0ed91255de80c996ffd01362501e17f6db536e9c4ae334ec826624e8c5486f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / copernicus_explorer-0.5.0-cp39-cp39-manylinux_2_28_aarch64.whl

Download URL copernicus_explorer-0.5.0-cp39-cp39-manylinux_2_28_aarch64.whl
Size 3.5 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
46d4d5d0eca490e9650a07d4ab0fd658b87e79ff5ee3071db5cd1a9988c94fbd
BLAKE2b-256 checksum
How to use checksums
f911a19f00e513668d4298606442061bd67e0e2c6e37f1299245b1eaa0433631
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / copernicus_explorer-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL copernicus_explorer-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.4 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ba54c8cbb6f8e457f7e6e43dc4437d3f90629c0f2028517b09b4d219b51e583f
BLAKE2b-256 checksum
How to use checksums
ebc1ec06c6095e4cee9146e7b0c70555e46d9ef2ed61d807b6aad4b792269595
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Security for copernicus-explorer 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for copernicus_explorer-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.0 This release

10 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page