Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Pure Python (3 compatible) geometry package.

Project Description

Sorry for any inconvenience, I got a little ahead of myself. Now this package is compatible with Python >= 2.7, everything else is the same. Also regenerated the HTML docs in a more user friendly way. (you can see them online here:

Launchpad project: Geo2D-Launchpad

This package has come to life from the need of a (pure) Python geometry package (Python 3 compatbile) for my pet project(s). I didn’t find a satisfactory Python package/module for my needs so… here comes Geo2D (which is by no means state of the art… it just does what I hope it would do and it doesn’t have any dependencies except for the standard Python library). Stating that, it includes only these classes:

  • Point
  • Vector
  • Line
  • Ray
  • Segment
  • Polygon


#!/usr/bin/env python

import geo2d.geometry as g

p1 = g.Point((0, 1))
p2 = g.Point((4.2, 5))
l = g.Segment(p1, p2)

And so on. More details about the technical stuff is in the docs and

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(18.4 kB) Copy SHA256 Hash SHA256
Source None Mar 24, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting