Skip to main content

maps2zim

This scrapers creates an offline maps, based on OpenStreetMap data, in the ZIM format.

CodeFactor License: GPL v3 codecov PyPI version shields.io PyPI - Python Version Docker

Installation

Most recommended solution to run the scraper is to use pre-built Docker container.

Prerequisites are:

  • Docker (or Docker-based engine)
  • amd64 architecture

Usage

# Get help
docker run -v output:/output ghcr.io/openzim/maps maps2zim --help
# Create a ZIM for Europe
docker run -v output:/output ghcr.io/openzim/maps maps2zim --include-poly=https://download.geofabrik.de/europe.poly --default-view=56.9,11.0,2.45 --name=maps_en_europe --title='Europe offline maps' --description='A ZIM with offline maps of the whole Europe area, including city search' --output=/output

Advanced installation

You can also use more advanced installation:

Build your own container
  1. Clone the repository locally:

    git clone https://github.com/openzim/maps.git && cd maps
    
  2. Build the image:

    docker build -t ghcr.io/openzim/maps .
    
Run the software locally using Hatch
  1. Clone the repository locally:

    git clone https://github.com/openzim/maps.git && cd maps
    
  2. Install Hatch:

    pip3 install hatch
    
  3. Start a hatch shell to install software and dependencies in an isolated virtual environment.

    hatch shell
    
  4. Run the maps2zim command:

    maps2zim --help
    

Developing

Use the commands below to set up the project once:

# Install hatch if it isn't installed already.
❯ pip install hatch

# Local install (in default env) / re-sync packages
❯ hatch run pip list

# Set-up pre-commit
❯ pre-commit install

The following commands can then be used to build and test the scraper:

# Show scripts
❯ hatch env show

# linting, formating, type checking
❯ hatch run qa:check-all
❯ hatch run qa:fix-all

# run tests
❯ hatch run test:run

# building packages
❯ hatch build

Contributing

This project adheres to openZIM's Contribution Guidelines.

This project has implemented openZIM's Python bootstrap, conventions and policies v2.0.0.

See details for contributions in CONTRIBUTING.md.

Metadata

Release files for maps2zim 0.2.1

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

Source distribution (sdist)

Source distribution for maps2zim 0.2.1
File Size Uploaded
maps2zim-0.2.1.tar.gz 904.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maps2zim 0.2.1
File Interpreter ABI Platform
maps2zim-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / maps2zim-0.2.1.tar.gz

Download URL maps2zim-0.2.1.tar.gz
Size 904.0 kB
Tags Source
SHA-256 checksum
How to use checksums
28eb81687680acd6ca40c9eb55cb24e47e4d7efd2dad7e92f4f033f5ebe44a6b
BLAKE2b-256 checksum
How to use checksums
248d79cb0456d9494a25f0c747d188dac6b4b839b905e8b782405258e2522912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 29, 2026.

Transparency log

Release files / maps2zim-0.2.1-py3-none-any.whl

Download URL maps2zim-0.2.1-py3-none-any.whl
Size 904.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d5b552389f4ee4334ca67c827607dab4cf4bc86892687670caeb97b6a0ec0b8
BLAKE2b-256 checksum
How to use checksums
4d11e8e10817260552c0283d67286fbd69c99cc44eb1fdcfcccd7c0db4291823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

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