Skip to main content

Generative tree visualiser for Python

Project description

twyg lets you visualise arbitrary tree structures in a pretty way. The appearance of the tree (layout, color, node, connection shapes etc.) is fully controlled via configuration files in a generative way. This means that almost all visual properties of the output can be controlled by expressions that depend on the characteristics of the tree (e.g. the color or shape of a node can be a function of its hierarchical position in the tree). This allows for crafting very flexible configurations that can be applied to trees of arbitrary size and complexity.

Features

  • Compatible with Python 2.5, 2.6 and 2.7

  • Supports the Cairo and NodeBox1 rendering backends

  • 16 visually fine-tuned built-in configurations

  • 32 attractive looking colorschemes

  • Simple JSON files as input

  • PNG, PDF, SVG and PostScript output using the Cairo backend

  • Fully customisable node and connection shapes and coloring algorithms

  • High-quality font rendering via Cairo

  • Gradient and drop shadow support, even in PDF and PostScript files

  • Custom human-readable configuration language that allows the visual properties of the tree to be defined as expressions of arbitraty complexity

  • Ability to cascade configurations and configuration sections

  • Full CSS3 color notation and SVG 1.0 color keyword name support

  • Extensive reference documentation

Installation & Usage

For detailed instructions, please refer to the user documentation.

License

© Copyright 2011-2014, John Novak. This project is released under the MIT license.

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

twyg-0.1.0.tar.gz (75.8 kB view hashes)

Uploaded Source

Built Distribution

twyg-0.1.0-py2.7.egg (174.9 kB view hashes)

Uploaded Source

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