Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This package allows you to craft your Dash application layouts by writing HTML instead of a cascade of Python objects.
You can install the package with pip:
pip install dash-htmlayout
Read documentation to learn more
It's a bit counterproductive to force users to build dashboard layouts using Python, when most component classes are translated into HTML.
Having to write code with deeply nested object instances to mimic HTML should almost be considered malpractice in Python when there is a language and a document type that addresses this exact need; HTML.
This package provides a simple class to generate layouts from a partial HTML snippet. For example, we could partially reproduce a classic layout with the following document:
<!-- Example with Bootstrap classes and some components -->
<section>
<h1 class="mb-5">Dashboard component.</h1>
<div class="row">
<div class="col-3">
<div class="form-group mb-3">
<label for="">Genres filter</label>
<dcc-dropdown id="genre-list" placeholder="Filter genres" data-multi="True"/>
</div>
<div class="form-group mb-3">
<label for="">Max results</label>
<dcc-slider id="genre-limit" data-value="1" data-min="0" data-max="10"/>
</div>
</div>
...
</div>
</section>
from dash import Dash
from dash.htmlayout import Builder
application = Dash("appname")
builder = Builder(file="myfile.html")
application.layout = builder.layout
...
FAQs
Build HTML layouts in Dash with HTML
We found that dash-htmlayout 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.