Skip to main content

Fast KML processing in python

Project description

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.

Geometries are handled as pygeoif objects, which are compatible with any geometry that implements the __geo_interface__ protocol, such as shapely.

Fastkml is tested on CPython and PyPy, but it should work on alternative Python implementations (that implement the language specification >=3.8) as well.

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

Is maintained and documented:

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

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.

Install

You can install the package with pip install fastkml which will pull in all requirements.

Requirements

Optional

pip install "fastkml[lxml]"

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.

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

fastkml-1.1.0.tar.gz (87.8 kB view details)

Uploaded Source

Built Distribution

fastkml-1.1.0-py3-none-any.whl (107.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastkml-1.1.0.tar.gz
  • Upload date:
  • Size: 87.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for fastkml-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a786a80733763c16f5505efd7160a526f43b093bde767c9b35e816459bc6074e
MD5 ccffea74aa7a3446d63ad532f5d3fb2a
BLAKE2b-256 6af4759f7aa0e3647bec3a2750beaab7916f42443367f97c6087f8278e8ecec4

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

  • Download URL: fastkml-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 107.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for fastkml-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31a79801ec677046d68bf56f95837e9057ed49aa51dda5421c6726a239df645f
MD5 108d520294c26faefc69df8727559dc1
BLAKE2b-256 866da40a85bde02b02f6fd50b313efa08393ee4cc0533760b99640b86c65ba47

See more details on using hashes here.

Provenance

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

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

Attestations:

Supported by

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