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.
Authors: Grayson Boyer and Victor Ignatenko
A lightweight package for parsing chemical formula strings into python dictionaries.
"CH4"
returns {"C":1.0, "H":4.0}
"C1.5O3"
returns {"C":1.5, "O":3.0}
"H2e-1O1e-1"
returns {"H":0.2, "O":0.1}
"(CH3)2(CH2)4"
returns {"C":6.0, "H":14.0}
"((CH3)2)3"
returns {'C': 6, 'H': 18}
"K4[Fe(SCN)6]"
returns {'S': 6.0, 'K': 4.0, 'N': 6.0, 'C': 6.0}
Install chemparse
with pip:
$ pip install chemparse
Import chemparse in python and use the parse_formula function:
import chemparse
print(chemparse.parse_formula("C6H12O6"))
Install python
Clone chemparse
using git:
git clone https://github.com/gmboyer/chemparse.git
Go to the chemparse
directory:
cd chemparse
Install requirements:
pip install -r requirements.txt
Now you are ready to contribute!
FAQs
Chemical formula parser
We found that chemparse 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.