This is a Python 3 library for generating hyperbolic geometry and drawing it with the drawSvg library. Currently the Poincaré disk and half-plane models are supported.


hyperbolic is available on PyPI:

$ pip3 install hyperbolic

Install drawSvg also to display the hyperbolic geometry:

$ pip3 install drawSvg


See the iPython notebooks in examples:

Using this library, along with the drawSvg library, you can create art like this hyperbolic weave:

Hyperbolic weave

This weave is built from a tiling of isosceles triangles:

Hyperbolic weave structure