Skip to main content

Python wrapper for polymake

Project description

What is it?

This Python module provides wrappers for polymake

The language has been kept as close as possible as the original. The following polymake construction:

polytope> $c = cube(5);
polytope > print $c->F_VECTOR;
32 80 80 40 10

is translated in Python as:

>>> from polymake import *
>>> c = cube(5)
>>> c.F_VECTOR()
(32, 80, 80, 40, 10)


To install you currently need Sage but the library is mostly Sage agnostic. You need to download (or clone) this repository and run the command:

$ sage -python install --user

(the –user argument make the installation in your home)

On OS X, need to make sure that libperl is found:

$ sage -sh (sage-sh) $ export LDFLAGS=”-L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/ $LDFLAGS” (sage-sh) $ python install –user

It is planned to make it available on pypi as soon as Sage is not needed anymore.


This project has been started by Burcin Erocal in 2011 and continued by Vincent Delecroix in 2016

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 pypolymake, version 0.1.beta2
Filename, size File type Python version Upload date Hashes
Filename, size pypolymake-0.1.beta2.tar.gz (12.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page