Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A series of function written in Cython that speed up critical functions to improve the overall performance of the Brightway2 life cycle assessment framework.
In order to avoid having to have Cython as a dependency, this library includes both the pyx
and Cython-generated c
code, and is distributed as pre-compiled wheels, except on Linux where access to a C
compiler is assumed.
C
filescython -t bw2speedups/_consolidate.pyx bw2speedups/_indexer.pyx bw2speedups/_find_first.pyx
Although you can do this inplace, in my experience it is easier to just install the library in a temporary environment. You don't want to deal with .so
files in the source repository.
Install the library into a temporary environment, then manually run the separate test files, i.e. python bw2speedupds/test/test_consolidate.py
. This isn't the most elegant, but it will do for now.
pip install wheel
python setup.py bdist_wheel
Note that this has to be done separately for each OS and environment, i.e. Windows 32-bit and 64-bit versions of Python are separate wheels, even with the same version of Windows.
FAQs
Cython functions to speed up Brightway2 LCA calculations
We found that bw2speedups 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.