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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef9f117e4ed6d4a889d78e9fdcee57b984e1648d21b74ff8c8a0303983beae1d
|
|
| MD5 |
791c9c0f67a18ab5889dd59531802b5b
|
|
| BLAKE2b-256 |
20122bde2d38f51f5645711b7e49c0ed191e5dcddf406dba044b4214f7284e35
|
Provenance
The following attestation bundles were made for lat_lng_sdk-0.2.0.tar.gz:
Publisher:
publish-python.yml on mjannis1/lat-lng
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lat_lng_sdk-0.2.0.tar.gz -
Subject digest:
ef9f117e4ed6d4a889d78e9fdcee57b984e1648d21b74ff8c8a0303983beae1d - Sigstore transparency entry: 1702575609
- Sigstore integration time:
-
Permalink:
mjannis1/lat-lng@25a3276566dae7ec52bed00312b022676eaf5557 -
Branch / Tag:
refs/tags/py-v0.2.0 - Owner: https://github.com/mjannis1
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@25a3276566dae7ec52bed00312b022676eaf5557 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e41f532937d501fe754984754de6919f758197abf96f9870bcbbd9d0aafe16
|
|
| MD5 |
7d472eb775550b6da08b079afaa3c14e
|
|
| BLAKE2b-256 |
0b33dad94db938e6a2364efb430312fd9fab5fadf6a57bfef241ea166b0518a4
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lat_lng_sdk-0.2.0-py3-none-any.whl -
Subject digest:
66e41f532937d501fe754984754de6919f758197abf96f9870bcbbd9d0aafe16 - Sigstore transparency entry: 1702575677
- Sigstore integration time:
-
Permalink:
mjannis1/lat-lng@25a3276566dae7ec52bed00312b022676eaf5557 -
Branch / Tag:
refs/tags/py-v0.2.0 - Owner: https://github.com/mjannis1
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@25a3276566dae7ec52bed00312b022676eaf5557 -
Trigger Event:
push
-
Statement type: