
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.
libsrg -- count calls to python logging at each logging severity level
libsrg provides the following classes:
I write a lot of smallish command line utilities for internal use, and factored out some common repetitive boilerplate code into this package. Published for my own installation convenience, but might be useful to others as well.
Library uses atexit hook to summarize logging activity counts and total execution time. Counts are also available to the program at runtime.
2022-02-22 12:46:22,568 INFO (libsrg.LoggingCounter:61) __log_atexit
Logging Summary:
Logging at Level INFO occurred 13 times
Logging at Level DEBUG occurred 1 times
Logging at Level WARNING occurred 1 times
Logging at Level ERROR occurred 2 times
Logging at Level CRITICAL occurred 1 times
Elapsed time was 0.087 seconds
#! /bin/bash
cd /GNAS/PROJ/PycharmProjects/libsrg
rm -rf dist
python3 -m build --wheel
python3 -m twine check dist/*
python3 -m twine upload dist/*
Pytest performs its own logging setup before calling any user supplied tests, so it doesn't work well testing these classes logging setup. Ad-hoc test code is supplied at the end of the classes and executes if the class is loaded as main.
My intention is to keep this library small. It is not expected to evolve into an all-purpose framework. Output is geared towards developers, not end users.
MIT
Pulled extraneous applications out into libsrg_apps
FAQs
Utility lib logging, statistics, subprocesses
We found that libsrg 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.