Skip to main content

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 (large files via URL)

from lat_lng import LatLngClient
client = LatLngClient("latlng_live_...")

job = client.convert_async(input_url="https://example.com/big.shp.zip", output_format="geojson")
done = client.wait_for_job(job.job_id)
data = done.download()

Async takes a public URL, not a local upload.

Webhook verification

from lat_lng import verify_webhook_signature

ok = verify_webhook_signature(raw_body, request.headers["X-Webhook-Signature"], webhook_secret)

Pass the same webhook_secret to convert_async(..., webhook_url=..., webhook_secret=...) to have callbacks signed.

Metadata

Release files for lat-lng-sdk 0.3.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 lat-lng-sdk 0.3.0
File Size Uploaded Provenance Actions
lat_lng_sdk-0.3.0.tar.gz 8.1 kB With provenance Details for lat_lng_sdk-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lat-lng-sdk 0.3.0
File Interpreter ABI Platform Actions
lat_lng_sdk-0.3.0-py3-none-any.whl Python 3 none any Details for lat_lng_sdk-0.3.0-py3-none-any.whl

Total release size: 15.2 kB

Release files / lat_lng_sdk-0.3.0.tar.gz

Download URL lat_lng_sdk-0.3.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2d000231e86be1e6b9ebd917e9231e4052995bf461325e963439bab0ad76c757
BLAKE2b-256 checksum
How to use checksums
97424dbc5739e886d915d92815e3842e4352c798374a5a0c36c3af9e05f07628
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release files / lat_lng_sdk-0.3.0-py3-none-any.whl

Download URL lat_lng_sdk-0.3.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b529a58db7e53890bcccc7e56c463c8c807b8a3ddfded1ef543cc437cc4d286c
BLAKE2b-256 checksum
How to use checksums
74f19c72800da83e0a567df8b3ae91c855d16e1c49d8fd1bdce2b4587b65ae42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Security for lat-lng-sdk 0.3.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lat_lng_sdk-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

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