Skip to main content

Fast KML processing in python

Project description

FastKML

A Python library for reading, writing and manipulating KML files.

Introduction

KML is an XML geospatial data format and an OGC standard that deserves a canonical python implementation.

Fastkml is a library to read, write and manipulate KML files. It aims to keep it simple and fast (using lxml if available). Fast refers to the time you spend to write and read KML files as well as the time you spend to get acquainted to the library or to create KML objects. It aims to provide all of the functionality that KML clients such as Marble, NASA WorldWind, Cesium JS, OpenLayers, Google Maps, and Google Earth support.

For more details about the KML Specification, check out the KML Reference on the Google developers site.

Features

  • Simple and fast: Easy-to-use API with fast performance

  • Geometry support: Handles geometries as pygeoif objects, compatible with any geometry that implements the __geo_interface__ protocol, such as shapely

  • Cross-platform compatibility: Tested on CPython, PyPy and GraalPy

  • Python 3.9+: Works on alternative Python implementations that support Python >=3.9

Status

Quality Assurance:

Test Tested with Hypothesis codecov.io Black Mypy pre-commit

Package Information:

Latest PyPI version Conda-Forge Development Status LGPL - License Supported Python versions Supported Python implementations Libraries.io dependency status for latest release Downloads

Documentation & Community:

Documentation Statistics from OpenHub

Installation

Basic Installation

Install the package using pip:

pip install fastkml

This will install FastKML with all required dependencies.

With Optional Dependencies

For enhanced performance, install with lxml:

pip install "fastkml[lxml]"

Using Conda

You can also install FastKML using conda-forge:

conda install -c conda-forge fastkml

Requirements

Required Dependencies

  • pygeoif - For geometry handling

  • arrow - For date and time processing

Optional Dependencies

  • lxml - For improved XML parsing performance (recommended)

Documentation

You can find all of the documentation for FastKML at fastkml.readthedocs.org. If you find something that is missing, please submit a pull request on GitHub with the improvement.

Limitations

Currently, the only major feature missing for the full Google Earth experience is the gx extension.

Please submit a PR with the features you’d like to see implemented.

Contributing

We welcome contributions! Please check out our contributing guide for guidelines on how to contribute.

Download files

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

Source Distribution

fastkml-1.4.0.tar.gz (91.5 kB view details)

Uploaded Source

Built Distribution

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

fastkml-1.4.0-py3-none-any.whl (114.4 kB view details)

Uploaded Python 3

File details

Details for the file fastkml-1.4.0.tar.gz.

File metadata

  • Download URL: fastkml-1.4.0.tar.gz
  • Upload date:
  • Size: 91.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fastkml-1.4.0.tar.gz
Algorithm Hash digest
SHA256 f9e09062f2e6557acb3618ecf6783a9329f4bb3f7e1d070a1b4d7bfab718e278
MD5 01e7a48b3de272bbda755492b3e00c5f
BLAKE2b-256 d9b4490e0e3eea8ceb92cd859e931534283cf4f9d7cff495e2f110c23121d1af

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastkml-1.4.0.tar.gz:

Publisher: run-all-tests.yml on cleder/fastkml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fastkml-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: fastkml-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fastkml-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9df25e165df9aebd0dea48ad76f10defd3553d61f88e37c03156772eeb357342
MD5 dcc8ca97b7e27a9fa2aa62844a38d9ad
BLAKE2b-256 4a73f70d48a91a9915ebb7215d41d7500f991c6f5b56d9d9d7e571e6df462b77

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastkml-1.4.0-py3-none-any.whl:

Publisher: run-all-tests.yml on cleder/fastkml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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