Install & Compatibility
Where this runs
tested against v1.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.6s · import 0.000s · 114MB
116MB installed
● package 116MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
convert_lonlat_to_bng
✓ from convertbng import convert_lonlat_to_bng
✗ from convertbng.util import convert_lonlat_to_bng
Convert between longitude/latitude and British National Grid coordinates. Inputs must be numpy arrays.
import numpy as np
from convertbng.util import convert_lonlat_to_bng, convert_bng_to_lonlat
# Example coordinates (lon, lat)
lon = np.array([-0.1276, -2.0])
lat = np.array([51.5074, 53.0])
# Convert to BNG (returns (easting, northing) tuple of numpy arrays)
easting, northing = convert_lonlat_to_bng(lon, lat)
print(easting, northing)
# Convert back to lon/lat
lon_back, lat_back = convert_bng_to_lonlat(easting, northing)
print(lon_back, lat_back)
Upgrade
Version history
1.0.0latest on PyPI · released Jun 8, 2026
Audit
Dependencies
numpyrequiredInputs and outputs are numpy arrays; required for all operations.