
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.
pip install areport
For examples please refer to the code in the examples
folder.
The Report
class contains the methods for computing common metrics and storing them to files. The class is initialized with a list of portfolio values. These values should always start with the initial value of 1, otherwise the class will raise an error.
from areport import Report
report = Report([1.0, 1.1, 1.2])
The ReportComparison
class contains the methods for comparing multiple reports. The class is initialized with one Report
that is treated as the portfolio, and a dictionary of other Report
instances that are treated as benchmarks.
from areport import ReportComparison
report_comparison = ReportComparison(report, {'benchmark1': report1, 'benchmark2': report2})
The common metrics can be retrieved using the following methods:
from areport import Report
report = Report([1.0, 1.1, 1.2])
report.get_metrics()
The same is also possible for the ReportComparison
class:
from areport import ReportComparison
report_comparison = ReportComparison(report, {'benchmark1': report1, 'benchmark2': report2})
report_comparison.get_metrics()
If you want to save the metrics to a file, you can use the metrics_to_{format}
method:
from areport import Report
report = Report([1.0, 1.1, 1.2])
report.metrics_to_csv('report.csv')
report.metrics_to_json('report.json')
The same is also possible for the ReportComparison
class:
from areport import ReportComparison
report_comparison = ReportComparison(report, {'benchmark1': report1, 'benchmark2': report2})
report_comparison.metrics_to_csv('report_comparison.csv')
report_comparison.metrics_to_json('report_comparison.json')
aplotly
This package can be combined with the aplotly
package to create interactive plots. The aplotly
package is a wrapper around the plotly
package that simplifies the creation of plots. The useful attrbutes of the Report
class are pf_values
and dt_pf_values
.
Here is an example of how to use the aplotly
package with the Report
class to create the performance chart.
from aplotly.plots import plot_performance
from areport import Report
report = Report([1.0, 1.1, 1.2])
fig = plot_performance(
report.performance_to_pct(report.dt_pf_values - 1) # performance in percentage
report.drawdown_to_pct(report.drawdown, report.dt_pf_values.index) # drawdown in percentage
performance_label="Test",
drawdown_label="Test",
xlabel="X",
)
fig.show()
Detailed documentation for the metrics can be found on Notion
FAQs
Unknown package
We found that areport 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.