
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
html-report-line-profiler
Advanced tools
Crée un rapport HTML (avec une arborescence), en se basant sur line_profiler : https://github.com/pyutils/line_profiler, fork de https://github.com/rkern/line_profiler
A ajouter a un test unittaire unittest, et Ă lancer avec $ coverage run -m unittest test_str.py
Dans :
[...]
import html_report_line_profiler as hr
class Test_CeciEstUnTest(unittest.TestCase):
def setUp(self):
# Code execute avant chaque test
[...] # ce que l'on veut
# Profiler :
self.profiler, self.delete_profiling_env = hr.setUp_profiler(castList)
#endDef
# ...
def tearDown(self):
# Code executé après chaque test
# Terminer le profiler en premier
# Create basename
hr.proffile_basename = classname2basename(
file_name = __file__,
class_name = self.__class__.__name__,
method_name = self._testMethodName
)
# Launch the profiler out
hr.tearDown_profiler(
profiler=self.profiler,
proffile_basename=proffile_basename,
output_folder=output_folder,
delete_profiling_env=self.delete_profiling_env
)
#
# [...] # Les autres commandes
#endDef
#endClass
Pour lancer ensuite le post-traitement (rapport html) :
$ profiler_html_report.py
Remarques
-d = --input-dir (default : './profile')-o = --output-dir (default : './profile_html')FAQs
Generate an HTML report for line_parser
We found that html-report-line-profiler 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.