Skip to main content

ServiceX Data Transformer for HEP Data

Project description

ServiceX_transformer Library

CI/CD codecov

Library of common classes for building serviceX transformers.

Minimum Requiremnts

Works with Python version 2.7 and above

Download from PyPi

To use this library:

pip install servicex-transformer

Standard Command Line Arguments

This library provides a subclass of ArgParse for standardizing commnand line arguments for all transformer implementations.

Available arguments are:

Transformed Result Output

Command line arguments determine a destination for the results as well as an output format.

  • Object Store - Each transformed file is written as an object to an S3 compatible object store. The only currently supported output file format is parquet. The objects are stored in a bucket named after the transformation request ID.

Command Line Reference

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

Running Tests

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.

Coding Standards

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

servicex-transformer-1.0.6.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

servicex_transformer-1.0.6-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file servicex-transformer-1.0.6.tar.gz.

File metadata

  • Download URL: servicex-transformer-1.0.6.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.15

File hashes

Hashes for servicex-transformer-1.0.6.tar.gz
Algorithm Hash digest
SHA256 242a2a96d4d3af7626ca86625238801eb9c637f4a9b98341d9514d85d5bb45d6
MD5 58e57423be0723d72dab145c663c3613
BLAKE2b-256 823c4755e8077b49131cad3439508299dd91471f3b307bc937f4d67932505962

See more details on using hashes here.

Provenance

File details

Details for the file servicex_transformer-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for servicex_transformer-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2332479a4c05f1f9ef30e8812618bf8c08ff0f1a853f247401d5cba914fb0143
MD5 9fbff0814ffa1b2ed7823c3b32d6467d
BLAKE2b-256 dac2b1454c5bf3af6d388f857220e5b609f1c119889d37c0a68b18ae70891abc

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page