Skip to main content

A Python wrapper for vis.js Network

Project description

pipeline status PyPI - Version Documentation

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

  1. Create a network using python
  2. Apply standard vis.js options such as colors, shapes or physics
  3. Apply pyvisjs specific options such as node/edge filtering or highlighting
  4. Show or generate html file
  5. 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.

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

pyvisjs-1.0.0b7.tar.gz (45.3 kB view hashes)

Uploaded Source

Built Distribution

pyvisjs-1.0.0b7-py3-none-any.whl (50.9 kB view hashes)

Uploaded 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