Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
d3graph
is a python package that simplifies the task of creating interactive and stand-alone networks in d3 javascript using python.
For this package I was inspired by d3 javascript examples but there was no python package that could create such interactive networks. Here it is; a library that automatically creates D3 javascript and HTML code based on an input adjacency matrix in python! This library does not require you any additional installation, downloads or setting paths to your systems environments. You just need python and this library. All other is taken care off. Huray!
This library will create an interactive and stand-alone network that is build on d3 javascript. d3graph
only requirs an adjacency matrix in the form of an pandas dataframe. Each column and index name represents a node whereas values >0 in the matrix represents an edge. Node links are build from rows to columns. Building the edges from row to columns only matters in directed cases. The network nodes and edges can be adjusted in weight, color etc, based on user defined paramters.
⭐️ Star this repo if you like it ⭐️
Read the blog Creating beautiful stand-alone interactive D3 charts with Python to get a structured overview and usage of d3graph
.
On the documentation pages you can find detailed information about the working of the d3graph
with many examples.
pip install d3graph
from d3graph import d3graph
Click on the following image to load the interactive Titanic network that is created with d3graph
. Note that the relations are determined using HNet. Click here to go to the page with code to make the network.
Please cite d3graph in your publications if this is useful for your research. See column right for citation information.
FAQs
Python package to create interactive network based on d3js.
We found that d3graph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.