Skip to main content

A Python library to create and display STIX2 graphs

Project description

PySTIXView

Python PyPI version codecov Documentation Status Super-Linter License

PySTXIView is a Python library to create and display STIX2 graphs.

PySTIXView is based on pyvis that allows you to create graph and visualize them in your browser or in Jupyter Notebook.

Installation

Requirements

  • python3 (tested on python 3.12)
  • pyvis
  • stix2

Install from pip

pip install PySTIXview

Install from source code

git clone https://github.com/vincenzocaputo/PySTIXView
cd PySTIXView
python3 setup.py install

Usage

Below is a simple example to create a graph from the STIX2 Bundle Threat Actor Leveraging Attack Patterns and Malware. (The JSON file is available at https://github.com/oasis-open/cti-documentation/blob/main/examples/example_json/threat-actor-leveraging-attack-patterns-and-malware.json)

from pystixview import PySTIXView

stix_graph = PySTIXView()
with open("threat-actor-leveraging-attack-patterns-and-malware.json", "r") as fd:
    stix_graph.add_bundle(fd.read())
stix_graph.save_graph("threat-actor-leveraging-attack-patterns-and-malware.html", width="100%", height="600px")

PySTIXView can be used also in Jupyter Notebook:

Documentation

Documentation is available here

Credits

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

pystixview-0.1.2.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

pystixview-0.1.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file pystixview-0.1.2.tar.gz.

File metadata

  • Download URL: pystixview-0.1.2.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pystixview-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5276c89b46f831ff2d009b9d008938533135ce57015b37b5dda14ba6d52984fe
MD5 a30d25fd537eca2d523a5a06abe91a2d
BLAKE2b-256 7a623994402eb59d3bf18de7462803432dd8e4ba59a99522e9c109afc6f1d446

See more details on using hashes here.

File details

Details for the file pystixview-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pystixview-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pystixview-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07c7af58cec10f130d8b0654d2b855643d9e9dfc916189e0d39bd0d9222d58f0
MD5 5a50302b59ba099c4b82f25fe23f47c0
BLAKE2b-256 241fbc0525480ede4483986d370b8bbde2a747d26ad8b529cd6b4f9794ed6141

See more details on using hashes here.

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