Install & Compatibility
Where this runs
tested against v1.3.2 · 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
installs and imports cleanly · install 0.0s · import 0.000s · 166.6MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.4s · import 0.000s · 165MB
128MB installed
● package 128MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Arc
✓ from spherical_geometry import Arc
✗ from spherical_geometry import Arc
Basic usage of Arc and GreatCircle for spherical geometry calculations.
from spherical_geometry import Arc, GreatCircle
# Define two points on the sphere (longitude, latitude in radians)
point_a = (0.0, 0.0)
point_b = (1.0, 0.5)
# Create a great circle arc
arc = Arc(point_a, point_b)
print(f"Arc length: {arc.length()}")
# Compute intersection of two great circles
gc1 = GreatCircle(point_a, point_b)
gc2 = GreatCircle((0.5, 0.2), (1.2, 0.8))
intersections = gc1.intersections(gc2)
print(f"Intersection points: {intersections}")
Upgrade
Version history
1.4.0latest on PyPI · released Mar 11, 2026
Audit
Dependencies
numpyrequiredRequired for vectorized operations on arrays of points.