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.
This module is a Python binding of the C++ library scnt-puq
.
You can read more about this module and its functionality in the SciNumTool
documentation.
To start, one has to install the scnt-puq
library.
On macOS this can be easily done using homebrew formula:
brew tap vrtulka23/scinumtools
brew install vrtulka23/scinumtools/scnt-puq
After that, one can proceed with the usual PyPi installation:
pip3 install pypuq
As already mentioned, pypuq
is a binding to the standalone C++ library scnt-puq
.
Therefore, pypuq
inherits all its usual functionality.
However, the Python interface of exposed classes (Quantity
, UnitSystem
) is slightly adapted.
>>> from pypuq import Quantity
>>>
>>> q = Quantity(16, 'm')
>>> r = Quantity(223, 's')
>>> speed = (q/r).convert('mph')
0.0717489*m*s-1
More examples and explanation are available in the SciNumTools
documentation.
You can also look at the test problems in the pytest directory.
FAQs
Physical Units and Quantities for Python
We found that pypuq 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.