
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.