Skip to main content

Tile download utility - easily download xyz-tile data

Project description

tileget

GitHub Release GitHub Actions Workflow Status

Tile download utility - easily download xyz-tile data.

Requirements

  • Python >= 3.14

Installation

pip install tileget

Usage

usage: tileget [-h] [-e OUTPUT_DIR] [-o OUTPUT_FILE] [--extent EXTENT EXTENT EXTENT EXTENT]
               [--geojson GEOJSON] [--minzoom MINZOOM] [--maxzoom MAXZOOM] [--rps RPS] [--overwrite]
               [--timeout TIMEOUT] [--tms] [--retries RETRIES] [--retry-delay RETRY_DELAY]
               [--format FORMAT]
               tileurl

xyz-tile download tool

positional arguments:
  tileurl               xyz-tile url in {z}/{x}/{y} template

options:
  -h, --help            show this help message and exit
  -e, --output_dir OUTPUT_DIR
                        output dir
  -o, --output_file OUTPUT_FILE
                        output mbtiles file
  --extent EXTENT EXTENT EXTENT EXTENT
                        min_lon min_lat max_lon max_lat, whitespace delimited
  --geojson GEOJSON     path to geojson file of Feature or FeatureCollection
  --minzoom MINZOOM     default to 0
  --maxzoom MAXZOOM     default to 16
  --rps RPS             requests per second, must be positive, default to 1
  --overwrite           overwrite existing files
  --timeout TIMEOUT     wait response until this value in seconds, default to 5.0
  --tms                 if set, parse z/x/y as TMS
  --retries RETRIES     max retry count on error, default to 3
  --retry-delay RETRY_DELAY
                        base delay in seconds for exponential backoff, default to 1.0
  --format FORMAT       tile format for mbtiles metadata (e.g. png, jpg, pbf). used when url has no extension

Examples

# basic usage
tileget http://path/to/tile/{z}/{x}/{y}.jpg -e output_dir --extent 141.23 40.56 142.45 43.78
tileget http://path/to/tile/{z}/{x}/{y}.jpg -o output.mbtiles --geojson input.geojson

# with rate limiting and retry options
tileget http://path/to/tile/{z}/{x}/{y}.jpg -e output_dir --extent 141.23 40.56 142.45 43.78 --minzoom 0 --maxzoom 16 --rps 5 --retries 5 --retry-delay 2.0 --timeout 10 --overwrite

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tileget-1.0.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tileget-1.0.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file tileget-1.0.3.tar.gz.

File metadata

  • Download URL: tileget-1.0.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tileget-1.0.3.tar.gz
Algorithm Hash digest
SHA256 98a3605b7098f37de1d64ef5d97c5bbe358c5528334bc39f541d4f744a1a8c23
MD5 af5f59895cf6eb6c501eca1ed574cb21
BLAKE2b-256 8364168a87872f89620ba9e09938e55f160a5018d27de9f9a70ddb54bd3d5877

See more details on using hashes here.

File details

Details for the file tileget-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: tileget-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tileget-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9072693730d5936ffcbd0b59a7934b95adead7ebf31a0e7d556363de90fef72a
MD5 5bd8e13e67d6be10020bc52b5695bf8c
BLAKE2b-256 91c2cd6104ed9bce7477ccdab1dc3bade1f255f953612bb2e3fd46eb463098a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page