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.
servicex-transformer
Advanced tools
Library of common classes for building serviceX transformers.
Works with Python version 2.7 and above
To use this library:
pip install servicex-transformer
This library provides a subclass of ArgParse for standardizing commnand line arguments for all transformer implementations.
Available arguments are:
Command line arguments determine a destination for the results as well as an output format.
Option | Description | Default |
---|---|---|
--tree TREE | Root Tree to extract data from. Only valid for uproot transformer | Events |
--path PATH | Path to single Root file to transform. Any file path readable by xrootd | |
--limit LIMIT | Max number of events to process | |
--result-destination DEST | Where to send the results: object-store, output-dir, volume | object-store |
--output-dir | Local directory where the result will be written. Use this to run standalone without other serviceX infrastructure | None |
--result-format | Binary format for the results: arrow, parquet, or root-file | arrow |
--rabbit-uri URI | RabbitMQ Connection URI | host.docker.internal |
--request-id GUID | ID associated with this transformation request. Used as RabbitMQ Topic Name as well as object-store bucket | servicex |
Validation of the code logic is performed using
pytest and
pytest-mock. Unit test fixtures are
in test
directories inside each package.
The tests are instrumented with code coverage reporting via codecov. The travis job has a the codecov upload token set as an environment variable which is passed into the docker container so the report can be uploaded upon successful conclusion of the tests.
To make it easier for multiple people to work on the codebase, we enforce PEP8
standards, verified by flake8. The community has found that the 80 character
limit is a bit awkward, so we have a local config setting the max_line_length
to 99.
FAQs
ServiceX Data Transformer for HEP Data
We found that servicex-transformer 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.