Skip to main content

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


Download files

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

Source Distribution

miniipe-0.1.6.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

miniipe-0.1.6-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page