Skip to main content

OData client for Copernicus Data Space catalog

Project description

cdsodatacli

Build status Python Version Dependencies Status

Code style: black Security: bandit Pre-commit Semantic Versions License Coverage Report

odata client for Copernicus Data Space catalog

Very first steps

step 1: create a config file

  • create a copy of the config.yml called localconfig.yml where cdsodatacli is 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

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 🚀 Your next Python package needs a bleeding-edge project structure.

This project was generated with python-package-template

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

cdsodatacli-2026.6.23.tar.gz (98.5 kB view details)

Uploaded Source

File details

Details for the file cdsodatacli-2026.6.23.tar.gz.

File metadata

  • Download URL: cdsodatacli-2026.6.23.tar.gz
  • Upload date:
  • Size: 98.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for cdsodatacli-2026.6.23.tar.gz
Algorithm Hash digest
SHA256 cded45a53fd2cc580934ae1878283d570a3e33f9f992f006044319cd2f6e0c88
MD5 f0e8290ef800a49fcd2b0e0aa5166f1b
BLAKE2b-256 3a3368dbc3df700c8904b45a2dbb4f7f66295a92054fb9ae668071c61f56dda0

See more details on using hashes here.

Provenance

The following attestation bundles were made for cdsodatacli-2026.6.23.tar.gz:

Publisher: publish.yml on umr-lops/cdsodatacli

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