Socket
Socket
Sign inDemoInstall

visgraph

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    visgraph

Visgraph API allows the user to interface with a visgraph session using python scripts.


Maintainers
1

Readme

Visgraph API

The Visgraph API allows users to attach python scripts to a running session and perform changes on the graph from the web client.

Link to PyPI

Usage

Install with pip install visgraph.

See setup.py and infection_sim.py for example usage.

use asyncio.run(visgraph.connect(url, port, sid, key, title, startParams, simulate)) to start the session.

Get the key from the simulate tab in the client session (unique to each user, users can have multiple keys).

Title is shown in the client.

Start params are passed as a dict, and can be either int, string, float or boolean. Each value requires an attribute (title), type, and defaultValue. These can be accessed from the client interface.

Nodes and edges are passed to the simulate function as lists, and attributes are accessed using the 'data' key.

Params are passed as a dictionary, where each key is the attribute value given in the setup dict.

Contributing

License

TODO

Keywords

FAQs


Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc