
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Easy-to-use timer for tracking runtimes.
pip install sometimer
from sometimer import timer
# Main functionality is the summary function:
timer.new_checkpoint()
do_stuff()
timer.new_checkpoint(name='useful-name')
do_other_stuff()
...
summary = timer.summary()
print(summary)
timer summary
-duration- -start-
start 0.00s
checkpoint_0: 2.36s 0.10s
useful-name: 0.41s 2.46s
victory lap : 12.01s 2.87s
end 14.87s
timer.__call__()
returns a one-linertimer()
>>> 'timer: 0.202s'
# and with an active checkpoint:
timer()
>>> 'timer: 0.303s checkpoint_0: 0.050s'
@time_this_method
decorator to avoid clutterSome functions are always heavy (e.g. load, data preprocessing, data augmentation) and might be useful to time:
from sometimer import time_this_method
@time_this_method
def heavy_preprocessing(data):
pass
@time_this_method(name='more-descriptive-name')
def inefficient_method(data):
pass
when run, yields:
heavy_preprocessing(data)
inefficient_method(data)
timer.summary()
>>> 'timer summary
-duration- -start-
start: 0.00s 0.00s
heavy_preprocessing: 0.00s 25.10s
more-descriptive-name: 25.10s 13.01s
end: 38.10s'
FAQs
Easy-to-use timer for tracking runtimes
We found that sometimer 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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.