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.
A simple progress timer/memory tracker for debugging python scripts.
Checkpointe is a tool for locating areas of code that are time or memory-intensive. This allows the user to:
Checkpointe is available for download using pip:
pip install checkpointe
To start tracking time and/or memory, initialize checkpointe with the .start() function
import checkpointe as check
check.start(summary=True, verbose=True, memory=True)
Setting these defaults determines the level of detail checkpointe prints to stdout:
.stop()
methodCall the .point()
method to create a marker at any point in the code.
add = 2 + 2
check.point("ADDITION")
mult = 2 * 2
check.point("MULTIPLICATION")
exp = 2 ** 2
check.point("EXPONENTIAL")
If verbose=True
, a statement will be printed at each checkpoint.
When you are ready to stop tracking, call the .stop()
method.
check.stop()
If summary=True
, a summary statement will be printed. Each marker will be displayed, along with the time elapsed since the previous marker and the percentage of overall time elapsed.
If memory=True
, a final memory statement will be printed, with memory usage at each marker, along with the peak memory usage noted at each marker.
Future versions will enable integration with logging to an output file.
FAQs
A simple process timer for python scripts.
We found that checkpointe 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.