distributed mapchete processing
Project description
Distributed mapchete processing.
mapchete Hub provides a RESTful web interface to the mapchete geospatial data processing engine. Its API is inspired by the OGC API - Processes standard and allows you to execute, manage, and scale your processing jobs over HTTP.
The main use cases for the Hub are running processing jobs asynchronously and scaling them up in the background, potentially using Dask for distributed computing.
Key Features
🌐 OGC API - Processes inspired: A REST API for submitting jobs, monitoring their status, and retrieving results.
⚙️ Advanced Job Monitoring: Inspect detailed job states (pending, running, failed, success) and view the overall progress percentage for currently running jobs.
🚀 Scalable Execution: Can be configured to use Dask for distributed, parallel execution of jobs.
💬 Slack Notifications: Optionally sends job status updates directly to a configured Slack channel.
🐳 Container-Ready: Designed to be deployed in containerized environments like Docker, making it easy to scale your processing capabilities.
How It Works
Serve: Start the mapchete Hub server. It listens for incoming job requests.
Prepare Job: A client application prepares a job configuration as a JSON object that follows the MapcheteJob schema.
Submit: The client POSTs the JSON configuration to the /jobs endpoint. The Hub validates it and returns a unique job_id.
Monitor: The client uses the job_id to poll the /jobs/{job_id} endpoint to track the job’s status and progress.
Retrieve: Once the job is successful, the results can be accessed from the location defined in the job’s output configuration.
Getting Started
Installation
Install mapchete Hub and its dependencies from PyPI:
pip install mapchete-hub
Running the Server
To start the server, simply run the following command:
mhub-server start
The API documentation will be available at http://127.0.0.1:8000/docs.
Interacting with the Hub
While you can use tools like curl, the easiest way to interact with the Hub is by using the mapchete-hub-cli package.
First, install the client: .. code-block:: bash
pip install mapchete-hub-cli
Next, create a job configuration file, for example my_job.json:
{
"process": "mapchete.processes.examples.hillshade",
"zoom_levels": [
10
],
"pyramid": {
"grid": "geodetic"
},
"input": {
"dem": "https://storage.googleapis.com/mapchete-test-data/cleantopo2/dem.tif"
},
"output": {
"path": "./hillshade_output",
"format": "GTiff",
"dtype": "uint8",
"bands": 1
}
}
Now, use the CLI to submit the job and check its status:
# Submit the job
mhub-cli submit my_job.json
# The command will return a job_id. Use it to check the status:
mhub-cli status <your_job_id>
Contributing
mapchete Hub is an open-source project and we welcome contributions! Please see the Contributing Guide in the main mapchete repository for guidelines on how to get started.
Acknowledgements
The initial development of mapchete Hub was made possible with the resources and support of EOX IT Services GmbH.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mapchete_hub-2025.7.0.tar.gz.
File metadata
- Download URL: mapchete_hub-2025.7.0.tar.gz
- Upload date:
- Size: 33.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
201180d62955aa1e89db331f8f3a27b901d3e72535573706a05ec9ee495561eb
|
|
| MD5 |
6ee4aa7fa094fff1113e4b1ace00694f
|
|
| BLAKE2b-256 |
48336dfff1e6ae9f03a24f94411f5103e1cf78fa58b5d7f781f872aca04e3fa7
|
File details
Details for the file mapchete_hub-2025.7.0-py2.py3-none-any.whl.
File metadata
- Download URL: mapchete_hub-2025.7.0-py2.py3-none-any.whl
- Upload date:
- Size: 46.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
483a0470bb523a05a9239de91d9a255c831304509e5a59f5414d8887c3c2a6fb
|
|
| MD5 |
e07fe8032423f19a30f4d8353b0c2a4a
|
|
| BLAKE2b-256 |
6d25c41a5dc69568196fe0849d7d51a27d33c5ee923f4032712761013e3eabf0
|