Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Chartsworth posts from notebooks to slack. This little metric monster lets you post plots, images, and anything else the slack sdk will let you post.
Read more background and workflows around scheduling in the Notebook Reporting with Chart Monsters Post.
pip install chartsworth
Set environment variable CHARTSWORTH_TOKEN
to your Slack App. You can create a new Slack App Create a new Slack App and learn more about creating a new slack app in the chartsworth post.
from chartsworth import Chartsworth
chartsworth = Chartsworth("#chartsy")
new_users = 11_003
chartsworth.post(f"We have {new_users} new users")
Note: many times you'll need to use a channel ID (e.g. C05HP8Z5ZPD
), especially if the channel is private. Otherwise, images will not post (only text will).
Chartsworth can take any PIL Image or Matplotlib Figure and post it to slack. This means you can post plots, images, and anything else you can think of.
from chartsworth import Chartsworth
chartsworth = Chartsworth("C05HP8Z5ZPD")
chartsworth.post("Who's ready for a 🏞️ stream plot? 🧵")
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-3, 3, 100)
y = np.linspace(-3, 3, 100)
X, Y = np.meshgrid(x, y)
u = -1 - X**2 + Y
v = 1 + X - Y**2
speed = np.sqrt(u*u + v*v)
## Create a figure we can pass to Chartsworth ##
fig, ax = plt.subplots()
strm = ax.streamplot(X, Y, u, v, color=speed, linewidth=2, cmap='autumn')
fig.colorbar(strm.lines)
## Post!
chartsworth.post(fig)
Schedule your notebooks on Noteable from the notebooks UI
Or run it with papermill with your own custom scheduling!
FAQs
Unknown package
We found that chartsworth 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.