OData client for Copernicus Data Space catalog
Project description
cdsodatacli
Very first steps
step 1: create a config file
- create a copy of the config.yml called localconfig.yml where
cdsodatacliis installed in your python environement.
cp config.yml localconfig.yml
- edit the localconfig.yml to set your own path for output directories and CDSE accounts (including S3 credentials)
vi localconfig.yml
content of the configuration file to adapt is typically like this:
example_group_of_logins:
dummy-email@foobar.com:
cdse-psswd: a-passord
s3-access-key: a-s3-key
s3-secret: a-s3-secret
URL_identity: https://identity.dataspace.copernicus.eu/auth/realms/CDSE/protocol/openid-connect/token
URL_download: https://zipper.dataspace.copernicus.eu/odata/v1/Products(%s)/$value
spools:
default: "./my_spool"
pre_spool: "./sentinel1_cdse_pre_spool"
archives:
default: "./my_archive"
test_default_output_directory: "./my_tests"
s3_endpoint: "https://eodata.dataspace.copernicus.eu"
s3_bucket: "eodata"
s3_region: "default"
list_sar_unit_private_data: []
step 2: do a query on CDSE Odata API
queryCDS -h
# or
queryCDS --collection SENTINEL-1 --startdate 20230101T00:00:00 --stopdate 20230105T10:10:10 --mode IW --product SLC --querymode seq --geometry "POINT (-5.02 48.4)"
or use the method cdsodatacli.query.fetch_data()
step 3: download a listing of product
downloadFromCDS -h
Installation
pip install -U cdsodatacli
Project Structure
.
├── assets
│ └── images
│ └── coverage.svg
├── cdsodatacli # Main package directory
│ ├── __init__.py
│ ├── config.yml # Default configuration
│ ├── download.py # Download logic
│ ├── example.py
│ ├── fetch_access_token.py
│ ├── localconfig.yml # Local configuration (to be created by user)
│ ├── product_parser.py
│ ├── query.py # Query logic
│ ├── s3_path.py
│ ├── s3_temporary_access_token.py
│ ├── session.py
│ ├── utils.py
│ └── scripts # Helper and utility scripts
│ ├── check_curl_query_with_specific_account.py
│ ├── convert_json_odata_to_txt_listing.py
│ ├── fetch_product_S1_worldwide.py
│ └── ...
├── docs # Documentation source
│ ├── examples
│ └── usage.rst
├── tests # Unit and integration tests
│ ├── API_OData_status_code_tests.py
│ ├── test_authentication.py
│ └── ...
├── ci # Continuous Integration configs
├── cdsodatacli_apptainer.def
├── Dockerfile
├── pyproject.toml
└── README.md
🛡 License
This project is licensed under the terms of the MIT license. See LICENSE for more details.
📃 Citation
@misc{cdsodatacli,
author = {umr-lops},
title = {odata client for Copernicus Data Space catalog},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/umr-lops/cdsodatacli}}
}
Credits 
This project was generated with python-package-template
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
cdsodatacli-2026.5.12.tar.gz
(91.8 kB
view details)
File details
Details for the file cdsodatacli-2026.5.12.tar.gz.
File metadata
- Download URL: cdsodatacli-2026.5.12.tar.gz
- Upload date:
- Size: 91.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daf411410298b684ac47c8af6c3be9efac9748abac797189d797211271886e1a
|
|
| MD5 |
8c4e0355637ac8f64a3d2219566b96ed
|
|
| BLAKE2b-256 |
b695007b67d532adb9937541e40ab66a5fd23f7cf73133bc158ea588a8063e13
|
Provenance
The following attestation bundles were made for cdsodatacli-2026.5.12.tar.gz:
Publisher:
publish.yml on umr-lops/cdsodatacli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cdsodatacli-2026.5.12.tar.gz -
Subject digest:
daf411410298b684ac47c8af6c3be9efac9748abac797189d797211271886e1a - Sigstore transparency entry: 1519464511
- Sigstore integration time:
-
Permalink:
umr-lops/cdsodatacli@907927870ea89d27112aa78b14f5c860a547c888 -
Branch / Tag:
refs/tags/2026.5.12 - Owner: https://github.com/umr-lops
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@907927870ea89d27112aa78b14f5c860a547c888 -
Trigger Event:
release
-
Statement type: