🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

pyvisjs

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyvisjs

A Python wrapper for vis.js Network

1.0.0b11
PyPI
Maintainers
1

pipeline status PyPI - Version Documentation coverage

logo - pyvisjs

Python wrapper for vis.js Network

:warning: Beta version disclaimer Please note that this package is in a beta version and backwards-incompatible changes might be introduced in future releases.

pyvisjs is a Python package designed to provide seamless interaction with vis.js network visualizations, allowing users to manipulate and visualize network data using Python.

Usage workflow

  • Create a network using python
  • Apply standard vis.js options such as colors, shapes or physics
  • Apply pyvisjs specific options such as node/edge filtering or highlighting
  • Show or generate html file
  • Enjoy network interactions in your browser

Installation

You can install PyVisjs via pip:

pip install pyvisjs

Usage example

from pyvisjs import Network

# Create a Network instance
net = Network()

# Add nodes and edges
net.add_node(1)
net.add_node(2)
net.add_edge(1, 2)

# Display the network
net.show("example.html")

For more examples and detailed usage, please refer to the documentation.

Contributing

Contributions are welcome! If you have suggestions, feature requests, or find any bugs, please open an issue or submit a pull request. Make sure to follow the contribution guidelines.

Acknowledgments

This project is inspired by the pyvis Python package and the visNetwork R-language package.

License

This project is licensed under the MIT License.

Keywords

visjs

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts