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.

Webhook signature verification is coming in a future release.

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 callbacks are currently unsigned.

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.2.0.tar.gz (7.4 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.2.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lat_lng_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 7.4 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.2.0.tar.gz
Algorithm Hash digest
SHA256 ef9f117e4ed6d4a889d78e9fdcee57b984e1648d21b74ff8c8a0303983beae1d
MD5 791c9c0f67a18ab5889dd59531802b5b
BLAKE2b-256 20122bde2d38f51f5645711b7e49c0ed191e5dcddf406dba044b4214f7284e35

See more details on using hashes here.

Provenance

The following attestation bundles were made for lat_lng_sdk-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: lat_lng_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66e41f532937d501fe754984754de6919f758197abf96f9870bcbbd9d0aafe16
MD5 7d472eb775550b6da08b079afaa3c14e
BLAKE2b-256 0b33dad94db938e6a2364efb430312fd9fab5fadf6a57bfef241ea166b0518a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for lat_lng_sdk-0.2.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