An easy, no-dependencies package for writing IPE files from Python.
Project description
Mini-Ipe
This is a source-only, no-dependencies Python package to write Ipe files.
The proper way to write Ipe files from Python would be to use ipepython
from ipe-tools, but this requires building a number of things from source, which may be difficult (or just time-consuming) depending on your computing environment.
Mini-Ipe is a "quick and dirty" way to easily write Ipe files with minimum effort, from a plain Python environment.
What are Ipe files
Ipe is an "extensible drawing editor" that is excellent for making diagrams for scientific papers and presentations. This makes its file format ideal as output from computational experiments.
Example
from miniipe import Document
doc = Document()
doc.import_stylefile()
doc.add_layer('alpha')
ps = [(0,0), (100,100), (200,0)]
doc.add_path( ps, color='black', layer='alpha')
doc.write('simple.ipe')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.