Install & Compatibility
Where this runs
tested against v? · pip install
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
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Polygon
✓ from Polygon import Polygon
✗ from polygon import Polygon
cPolygon
✓ from Polygon import cPolygon
STYLE_LIST
✓ from Polygon import STYLE_LIST
Create two polygons, compute their intersection and union.
from polygon import Polygon
# Create two polygons
poly1 = Polygon([(0,0), (1,0), (1,1), (0,1)])
poly2 = Polygon([(0.5,0.5), (1.5,0.5), (1.5,1.5), (0.5,1.5)])
# Compute intersection
intersection = poly1 & poly2
print(f"Intersection area: {intersection.area()}")
# Compute union
union = poly1 | poly2
print(f"Union area: {union.area()}")
Upgrade
Version history
3.0.9.1latest on PyPI · released Mar 9, 2021
Audit
Dependencies
No dependency data recorded yet.