Skip to content
/ pyanx Public

Python API for generating Analyst's Notebook (ANB) ANX files.

Notifications You must be signed in to change notification settings

pcbje/pyanx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyanx

This tool enables the generation chart files that can be opened in Analyst's Notebook. It's tested against I2 Chart Reader 8 (released May 2012) which is a free, read-only version of Analyst's Notebook. The generated chart files are on the Analyst's Notebook Exchange format (ANX).

I2 Chart Reader URL: https://www-304.ibm.com/connections/blogs/i2/entry/ibm_i2_chart_reader

Installation

python setup.py install

Usage

import pyanx

chart = pyanx.Pyanx()

tyrion = chart.add_node(entity_type='Person', label='Tyrion')
tywin = chart.add_node(entity_type='Person', label='Tywin')
jaime = chart.add_node(entity_type='Person', label='Jaime')
cersei = chart.add_node(entity_type='Woman', label='Cersei')

chart.add_edge(tywin, tyrion, 'Father of')
chart.add_edge(jaime, tyrion, 'Brother of')
chart.add_edge(cersei, tyrion, 'Sister of')

chart.create('demo.anx')

Output

About

Python API for generating Analyst's Notebook (ANB) ANX files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages