Skip to main content

Welcome to gpx-kml-converter

Github CI Status GitHub release Read the Docs License GitHub issues PyPI

gpx-kml-converter is a local-first tool for managing a large collection of GPX and KML files and exporting compact GPX and POI files for a chosen region — for example to prepare the navigation data for a vacation. It runs as a browser-based web application (FastAPI + SQLite) and ships a matching command-line interface. The productive collection is only ever read; all derived data and exports are written to the application's data/cache directories or to an output directory you choose.

Installation

Download from PyPI.

💾 For more installation options see install.

pip install gpx-kml-converter

Start the web UI (default when no arguments are given):

gpx-kml-converter

Run the CLI:

gpx-kml-converter --help

Main features 🚀

2.1. Web user interface 🖥️

The web UI is a dark, modern workspace that runs locally and binds to 127.0.0.1 by default.

  • Library browser: browse, search and filter every indexed file with its track, route and POI counts, bounding box and duplicate badges.
  • Vector map: an interactive MapLibre map with online vector tiles (OpenFreeMap by default) and the indexed tracks, routes and POIs drawn as GeoJSON overlays.
  • Region selection: draw a rectangle (or click individual artifacts) to add exactly the data you want to export. Selections are additive, so multiple rectangles and individual artifacts refine one working set; Clear empties it. Named rectangles can be saved and re-applied against the current library.
  • Inspector and elevation: a focused track or route drives an elevation profile, while the selection summary reports counts, total distance and available elevation gain, loss and range.
  • Compact export: export the selected artifacts as a single combined .gpx (default) or as two files (tracks + POIs), with an optional Douglas–Peucker simplification tolerance. Exports are always generated from the indexed artifacts; original source files are never copied byte-for-byte.
  • Deduplication: exact (SHA-256) and near-duplicate artifacts are flagged for review; nothing is ever deleted automatically, and duplicates are skipped in exports by default.
  • Archives: .zip/.kmz contents are available only when the relevant source root is configured to index archives.

For details, see the web UI documentation.

2.2. Command-line interface 🧑‍💻

The CLI shares the same backend and library database as the web UI:

Command Purpose
gui Launch the local web UI (default when no command is given).
index <paths...> Scan and index GPX/KML files into the local library (incremental).
export Export a region (or the whole library) to compact GPX files.
elevate Fill missing SRTM elevation data in the library.
doctor Check the local environment and library health.

For details, see the CLI documentation.

2.3. Data handling 🗂️

  • Read-only guarantee: source roots are opened read-only and are never modified or deleted.
  • SQLite library: parsed geometry, metadata, content hashes and bounding boxes live in a single SQLite database; original files stay in place and are referenced by absolute path.
  • Incremental indexing: unchanged files are skipped on re-scan using size, modification time and content hash.
  • Manual elevation: the "Add missing elevation data" action fills missing waypoint and track elevations from SRTM and is idempotent.

3. Usage ▶️

Run the web UI from source

python -m gpx_kml_converter

Run the CLI from source

python -m gpx_kml_converter --help

The web UI opens in your browser at http://127.0.0.1:8765/. Use index to load a source folder, then open the Map page to draw a region and export it.

4. Documentation

Metadata

Release files for gpx-kml-converter 2.0.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 gpx-kml-converter 2.0.0
File Size Uploaded Provenance Actions
gpx_kml_converter-2.0.0.tar.gz 1.7 MB Without provenance Details for gpx_kml_converter-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gpx-kml-converter 2.0.0
File Interpreter ABI Platform Actions
gpx_kml_converter-2.0.0-py3-none-any.whl Python 3 none any Details for gpx_kml_converter-2.0.0-py3-none-any.whl

Total release size: 2.0 MB

Release files / gpx_kml_converter-2.0.0.tar.gz

Download URL gpx_kml_converter-2.0.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
33e46c673b665f63c81774c04b7469f8017706b50584ba23b9e348fcacf94153
BLAKE2b-256 checksum
How to use checksums
13e4d299bb6b14181e6b882b6fff9f4594ec7c02ac5442032742975c1d646cd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / gpx_kml_converter-2.0.0-py3-none-any.whl

Download URL gpx_kml_converter-2.0.0-py3-none-any.whl
Size 339.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc1b349de09a34b1e75bd91d5b6afaba970b18a44a23abdb99c073c0562f6cf9
BLAKE2b-256 checksum
How to use checksums
1eac52ab6932fd7af0f8d1e521c90cf40f53384aa9842651c2894232c0eb42dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for gpx-kml-converter 2.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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