Skip to main content

mapchete Hub CLI

A command line interface for mapchete Hub.

https://img.shields.io/pypi/v/mapchete-hub-cli.svg https://img.shields.io/pypi/l/mapchete-hub-cli.svg https://img.shields.io/github/actions/workflow/status/mapchete/mapchete-hub-cli/python-package.yml?label=tests https://codecov.io/gh/mapchete/mapchete-hub-cli/graph/badge.svg?token=P1NV2UFVWK https://img.shields.io/github/repo-size/mapchete/mapchete-hub-cli

About mapchete Hub CLI

The mapchete Hub CLI provides a user-friendly command line interface (mhub) to interact with a running mapchete Hub instance. It simplifies the process of submitting, monitoring, and managing processing jobs without needing to write custom scripts or use tools like curl.

This CLI is the recommended tool for users who want to script workflows or manage mapchete Hub jobs from their terminal.

Key Features

  • 💻 Full Job Lifecycle Management: Intuitive commands to execute, job (status), jobs (list), cancel, and retry processing jobs.

  • ⚙️ Inspection: List available processes on a remote mapchete Hub and check remote package --remote-versions.

  • 🔒 Authentication Support: Handles basic authentication via command line options (-u, -p) or environment variables.

  • 🤖 Script-Friendly: Designed for easy integration into automated scripts and workflows.

Installation

Install the CLI and its dependencies from PyPI:

pip install mapchete-hub-cli

Quickstart

1. Point to your mapchete Hub

All commands require you to specify the mapchete Hub’s URL using the -h or --host option. If the mapchete Hub is running on the same machine with default settings (0.0.0.0:5000), you may not need this option.

2. List Available Processes

You can see what processes are available on the target mapchete Hub instance:

mhub -h 0.0.0.0:5000 processes

3. Prepare a mapchete File

Create a mapchete process file using YAML syntax. Note that all input and output paths must be absolute, as they are resolved on the remote server.

For example, hillshade.mapchete:

process: mapchete.processes.examples.hillshade
zoom_levels:
  - 10
pyramid:
  grid: geodetic
input:
  dem: https://data.example.com/path/to/dem.tif
output:
  path: s3://my-bucket/path/to/hillshade_output
  format: GTiff

4. Execute the Process

Use the execute command to send the job to the mapchete Hub.

mhub -h 0.0.0.0:5000 execute hillshade.mapchete

The mapchete Hub will return a unique job_id:

6227b68b-b7e6-4f40-a396-85763197f481

5. Check Job Status and Progress

Use the job_id with the job command to get a detailed status report, or progress for a quick look at the progress percentage.

# Get detailed status
mhub -h 0.0.0.0:5000 job 6227b68b-b7e6-4f40-a396-85763197f481

# Get just the progress
mhub -h 0.0.0.0:5000 progress 6227b68b-b7e6-4f40-a396-85763197f481

6. Manage Jobs

You can also list all jobs or cancel a running job:

# List all jobs on the mapchete Hub
mhub -h 0.0.0.0:5000 jobs

# Cancel a specific job
mhub -h 0.0.0.0:5000 cancel 6227b68b-b7e6-4f40-a396-85763197f481

Contributing

This 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 this project was made possible with the resources and support of EOX IT Services GmbH.

Release files for mapchete-hub-cli 2026.3.0

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

Source distribution (sdist)

Source distribution for mapchete-hub-cli 2026.3.0
File Size Uploaded
mapchete_hub_cli-2026.3.0.tar.gz 20.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mapchete-hub-cli 2026.3.0
File Interpreter ABI Platform
mapchete_hub_cli-2026.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 49.9 kB

Release files / mapchete_hub_cli-2026.3.0.tar.gz

Download URL mapchete_hub_cli-2026.3.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ff2ff95aeb8cd05401ef9316f928cd855d3b8a3278df6592a0ef28fed62493c4
BLAKE2b-256 checksum
How to use checksums
876bd8a9112d8687a12ea2fb84b26eeb95818eb14f11e8137072b8453da6b1bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.4 cpython/3.14.3 HTTPX/0.28.1

Release files / mapchete_hub_cli-2026.3.0-py3-none-any.whl

Download URL mapchete_hub_cli-2026.3.0-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f64620cb425c6096cca45794b2f2850f82a26061bd87491479138be9653ad8e2
BLAKE2b-256 checksum
How to use checksums
87be36842be429e33e7e16ad4e2b2be3eb1c8d6a07bf85a99592b4748c04ec34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.4 cpython/3.14.3 HTTPX/0.28.1

Release history Release notifications | RSS feed

This release

2026.3.0 This release

2 release files

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