A package with analysis tools for ServiceX.
Project description
ServiceX analysis utils
This repository hosts tools that depend on the ServiceX Client. These tools facilitate ServiceX's general usage and offer specific features that replace parts of an analyser workflow.
To install
pip install servicex-analysis-utils
Requirements
This package depends requires a servicex.yml configuration file granting access to one endpoint with a deployed ServiceX backend.
This package contains:
to_awk():
Load an awkward array from the deliver() output with uproot or uproot.dask.
Parameters:
deliver_dict (dict): Returned dictionary from servicex.deliver()
(keys are sample names, values are file paths or URLs).
dask (bool): Optional. Flag to load as dask-awkward array. Default is False
iterator(bool): Optional. Flag to materialize the data into arrays or to return iterables with uproot.iterate
**kwargs : Optional. Additional keyword arguments passed to uproot.dask, uproot.iterate and from_parquet
Returns:
dict: keys are sample names and values are awkward arrays, uproot generator objects or dask-awkward arrays.
get-structure():
Creates and sends the ServiceX request from user inputed datasets to retrieve file stucture.
Calls print_structure_from_str() to dump the structure in a user-friendly format
Parameters:
datasets (dict,str,[str]): The datasets from which to print the file structures.
A name can be given as the key of each dataset in a dictionary
kwargs : Arguments to be propagated to print_structure_from_str, e.g filter_branch
Function can be called from the command line, e.g:
$ servicex-get-structure "mc23_13TeV:some-dataset-rucio-id" --filter_branch "truth"
Documentation
The different functions are documented in readthedcos
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file servicex_analysis_utils-1.1.1.tar.gz.
File metadata
- Download URL: servicex_analysis_utils-1.1.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14117da37d0bcd9e3b29788914a295f822585f33043238f15be9669540eb6014
|
|
| MD5 |
c31a1994b41baaf3d423ebf451b6545b
|
|
| BLAKE2b-256 |
7557cf9e53d3b3c3292720675c981602854b7017843645986b97910d3927d20e
|
Provenance
The following attestation bundles were made for servicex_analysis_utils-1.1.1.tar.gz:
Publisher:
pypi.yml on ssl-hep/ServiceX_analysis_utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
servicex_analysis_utils-1.1.1.tar.gz -
Subject digest:
14117da37d0bcd9e3b29788914a295f822585f33043238f15be9669540eb6014 - Sigstore transparency entry: 571946237
- Sigstore integration time:
-
Permalink:
ssl-hep/ServiceX_analysis_utils@918abddfa99eb62b7020685ae75806348f1185c9 -
Branch / Tag:
refs/tags/1.1.1 - Owner: https://github.com/ssl-hep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@918abddfa99eb62b7020685ae75806348f1185c9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file servicex_analysis_utils-1.1.1-py3-none-any.whl.
File metadata
- Download URL: servicex_analysis_utils-1.1.1-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
371ebc4a94b02fd6ca11bf7829a758f006bc686116074cbb3d7ba419ffe6d243
|
|
| MD5 |
3f7f76ffc07d8d2bedf6418d02b3708e
|
|
| BLAKE2b-256 |
850a93280ecec3c321ab26ecf46c06558092d950aba1314ea435026e8e0a6ca7
|
Provenance
The following attestation bundles were made for servicex_analysis_utils-1.1.1-py3-none-any.whl:
Publisher:
pypi.yml on ssl-hep/ServiceX_analysis_utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
servicex_analysis_utils-1.1.1-py3-none-any.whl -
Subject digest:
371ebc4a94b02fd6ca11bf7829a758f006bc686116074cbb3d7ba419ffe6d243 - Sigstore transparency entry: 571946306
- Sigstore integration time:
-
Permalink:
ssl-hep/ServiceX_analysis_utils@918abddfa99eb62b7020685ae75806348f1185c9 -
Branch / Tag:
refs/tags/1.1.1 - Owner: https://github.com/ssl-hep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@918abddfa99eb62b7020685ae75806348f1185c9 -
Trigger Event:
release
-
Statement type: