Skip to main content

Visualize LookML relationships network as an interactive figure

Project description

LookML Network Visualizer

pypi package

TL;DR Visualize LookML contents as an interactive Plotly figure.

Built on top of lookml-tools's grapher. Requires NetworkX and Plotly.

Getting Started

from lookml_visualizer import PlotNetwork

network = PlotNetwork(lkml_paths=['./my_lookml_project/*.lkml'])

To save the interactive plot as an HTML file:

network.fig.save_to_html(output_name='my_lookml_network.html')

Examples

Example1: A tiny project

Example2: A large project


Plot layouts

The network plot can have different layouts. The following example shows how to pass a different plot layout:

network = PlotNetwork(paths, plot_layout='dfp')

which will display the same network in example 2 (above) in this layout: image

plot_layout options: 'dot', 'twopi', 'fdp', 'sfdp', 'circo'

Install

$ pip install lookml_visualizer

Also, if not installed, need to install PyGraphviz

$ brew install graphviz

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

lookml_visualizer-0.3.tar.gz (24.0 MB view hashes)

Uploaded Source

Built Distribution

lookml_visualizer-0.3-py2.py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 2 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