Skip to main content

xcube-gedidb

Unittest xcube-gedidb codecov xcube-gedidb Code style: black License

The xcube-gedidb Python package provides an xcube data store that enables access to datasets hosted by the Global Ecosystem Dynamics Investigation (GEDI). The data store is called "gedidb" and implemented as an xcube plugin.

It uses the gedidb package as a dependency, which is licensed under the European Union Public License v1.2.

Setup

Installing the xcube-gedidb plugin from the repository

To install xcube-gedidb directly from the git repository, clone the repository, cd into xcube-gedidb as follows and follow the steps below:

git clone https://github.com/xcube-dev/xcube-gedidb.git
cd xcube-gedidb
conda env create -f environment.yml
conda activate xcube-gedidb
pip install .

This sets up a new conda environment, installs all the dependencies required for xcube-gedidb, and then installs xcube-gedidb directly from the repository into the environment.

Installing the xcube-gedidb plugin from the PyPi

This method assumes that you have an existing environment created from the environment.yml, and you want to install xcube-gedidb into it. With the existing environment activated, execute this command:

pip install xcube-gedidb

If xcube and any other necessary dependencies are not already installed, they will be installed automatically.

Testing

To run the unit test suite:

pytest

Some notes on the strategy of unit-testing for some tests

The unit test suite uses pytest-recording to mock https requests via the Python library requests for some of the unit tests. During development an actual HTTP request is performed and the responses are saved in cassettes/*.yaml files. During testing, only the cassettes/*.yaml files are used without an actual HTTP request. During development, to save the responses to cassettes/*.yaml, run:

pytest -v -s --record-mode new_episodes

Note that --record-mode new_episodes overwrites all cassettes. If one only wants to write cassettes which are not saved already, --record-mode once can be used. pytest-recording supports all records modes given by [VCR.py](https://vcrpy.readthedocs.io/en/latest/usage.html#record-modes. After recording the cassettes, testing can be then performed as usual.

Citation:

This project uses the gediDB API (Besnard et al., 2025) as a dependency.

Besnard, S., Dombrowski, F., & Holcomb, A. (2025). gediDB (2025.2.0). Zenodo. https://doi.org/10.5281/zenodo.13885229

Metadata

Release files for xcube-gedidb 0.1.2

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

Source distribution (sdist)

Source distribution for xcube-gedidb 0.1.2
File Size Uploaded Provenance Actions
xcube_gedidb-0.1.2.tar.gz 12.7 kB Without provenance Details for xcube_gedidb-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xcube-gedidb 0.1.2
File Interpreter ABI Platform Actions
xcube_gedidb-0.1.2-py3-none-any.whl Python 3 none any Details for xcube_gedidb-0.1.2-py3-none-any.whl

Total release size: 26.3 kB

Release files / xcube_gedidb-0.1.2.tar.gz

Download URL xcube_gedidb-0.1.2.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
47a0b84388aba5c7023ccfaf057881812dbefdbd0a24ffb6abf38017d2915bdb
BLAKE2b-256 checksum
How to use checksums
e432208439c8e6b6a61c488652da88838782c75730dbb5a66b2e912deeb8fd34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / xcube_gedidb-0.1.2-py3-none-any.whl

Download URL xcube_gedidb-0.1.2-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0d6df3827566575103d548d3d9c05b0638d27d3d99c298acaed0cc00bdbb86b
BLAKE2b-256 checksum
How to use checksums
03852a6158f174c7e2609163da8ac01f3daac62e69fc5af71c0fe167545c512b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for xcube-gedidb 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1.2 This release

2 release files No 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