Skip to main content

Visualize STIX content

Project description

This repository contains a Python package stix2viz for enabling visualization of STIX 2 content within Jupyter notebooks.

Installation

  1. pip install stix2-viz

  2. jupyter nbextension install stix2viz --py

  3. jupyter nbextension enable stix2viz --py

Usage

In a notebook cell, run the following code:

import requests
import stix2viz

data = requests.get("https://raw.githubusercontent.com/oasis-open/cti-stix-visualization/master/test.json").content
stix2viz.display(data)

The display function can take either a JSON string, or a python-stix2 object.

Uninstall

  1. jupyter nbextension uninstall stix2viz --py

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

stix2-viz-0.3.0.tar.gz (214.4 kB view hashes)

Uploaded Source

Built Distribution

stix2_viz-0.3.0-py2.py3-none-any.whl (228.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