twod (pronounced "two dee") is a geometry library that supplies simple two-dimensional geometric primtives:
twod.Point
twod.Rect
Installing twod
is a snap!
$ python3 -m pip install -U twod
$ git clone https://github.com/JnyJny/twod.git
$ cd twod
$ poetry shell
...
(twod-...) $
from twod import Point
o = Point()
b = Point.from_polar(10, 0)
assert b.distance(o) == 10.0