Geocube Python Client Library is delivered as an example of Geocube Client.
pip install git+https://github.com/airbusgeo/geocube-client-python.git
docker build -f docker/Dockerfile.geocube-client-downloader -t geocube-client-downloader:latest .
- Python >= 3.7
- An instance of the Geocube Server, its url and, depending on the configuration, its ApiKey
Please follow the Data Indexation Jupyter notebook
Please follow the Data Access Jupyter notebook
Please follow the Consolidation Jupyter notebook
Please follow the SDK Jupyter notebook
Available as docstrings in source code.
Geocube-Client-Python is under development. The API might evolve in backwards incompatible ways until essential functionality is covered.
Geocube-Client-Python uses the protobuf GRPC interface, automatically generated from the protobuf files provided by the Geocube.
The pb
files can be generated using the package grpcio-tools
, the geocube protobuf folder and the following commands:
sed -i "s/import \"pb/import \"geocube\/pb/g" <temp folder>/geocube/pb/*.proto
python3 -m grpc_tools.protoc -I <temp folder> -I ../geocube/api/v1/ --python_out=. geocube/pb/geocube.proto geocube/pb/catalog.proto geocube/pb/records.proto geocube/pb/dataformat.proto geocube/pb/variables.proto geocube/pb/layouts.proto geocube/pb/operations.proto
python3 -m grpc_tools.protoc -I <temp folder> -I ../geocube/api/v1/ --grpc_python_out=. geocube/pb/geocube.proto
python3 -m grpc_tools.protoc -I <temp folder> -I ../geocube/api/v1/ --python_out=. --grpc_python_out=. geocube/pb/admin.proto
Contributions are welcome. Please read the contributing guidelines before submitting fixes or enhancements.
Geocube-Client-Python is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
Geocube is a project under development by Airbus DS Geo SA with the support of CNES.