Skip to main content

Official Python SDK for the Lat·Lng geospatial conversion API (lat-lng.com).

Project description

lat-lng (Python SDK)

Official Python SDK for the Lat·Lng geospatial conversion API.

Install

pip install lat-lng-sdk

Usage

from lat_lng import LatLngClient

client = LatLngClient("latlng_live_...")  # your API key

result = client.convert(open("input.kml", "rb"), to="geojson")
with open("output.geojson", "wb") as f:
    f.write(result.download())

Supported formats: geojson, kml, csv, wkt, gpx, topojson, wkb, shapefile, gml, flatgeobuf, geoparquet.

Typed exceptions: AuthError, ValidationError, RateLimitError (auto-retried on 429), QuotaExceededError, ConversionFailedError.

Async jobs and webhooks are coming in a future release.

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

lat_lng_sdk-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

lat_lng_sdk-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file lat_lng_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: lat_lng_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lat_lng_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c140d681de5b7394354e18ffb9c2b5d5ed7858389519f492e1243a9bbbf8ef91
MD5 51b32257bdd3f8e1fc8ef18d3298f5fb
BLAKE2b-256 ecfe80170074d80ce04cb1b78b6c8f6ef86bfdf16dac96c9e344ece41e7d090b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lat_lng_sdk-0.1.0.tar.gz:

Publisher: publish-python.yml on mjannis1/lat-lng

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

File details

Details for the file lat_lng_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lat_lng_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lat_lng_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f9ae240cb46636becd01c3e33d3688bb45d551101707d459ac19459f4f585e5
MD5 3f606deaa49817788dde8b3ea322e229
BLAKE2b-256 4d067d751c632548d4506fbe570f9f7424819ac0462393d3c877b2cb7b7704b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for lat_lng_sdk-0.1.0-py3-none-any.whl:

Publisher: publish-python.yml on mjannis1/lat-lng

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