Metadata-Version: 2.1
Name: stix2-viz
Version: 0.3.0
Summary: Visualize STIX content
Home-page: https://oasis-open.github.io/cti-documentation/
Author: OASIS Cyber Threat Intelligence Technical Committee
Author-email: cti-users@lists.oasis-open.org
License: BSD
Platform: UNKNOWN
Description-Content-Type: text/x-rst
Requires-Dist: jupyter (>=1.0.0)

README
======

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:

.. code-block:: python

    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``


