Skip to main content

A simple geometry library

Project description

Python Geometry

PyPI version Build


pip install simple-geometry


  • Create simple shapes
    • axis-aligned rectangles
    • axis-aligned path segments
    • groups containing other shapes
  • Manipulate shapes
    • stretch align
    • translation align
  • Visualize shapes

Read more in the full documentation.


# Create some shapes
from geometry import Rect

big = Rect[100, 100, 'blue']
small = Rect[50, 50, 'red']

# Translate relatively


# Some topology

tiny = big.intersection(small).copy('green')

# Visualize them
from geometry import Canvas

c = Canvas(width=200, height=200)

# This draws the shapes in jupyter notebook

three squares in blue, green and red

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for simple-geometry, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size simple_geometry-0.1.4-py3-none-any.whl (22.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size simple-geometry-0.1.4.tar.gz (16.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page