Skip to main content

Python package for accessing LEGEND test data

Project description

pylegendtestdata

PyPI GitHub tag (latest by date) GitHub Workflow Status pre-commit Code style: black GitHub issues GitHub pull requests License

Tiny Python package to access LEGEND test data.

Install (with pip):

$ python -m pip install pylegendtestdata

Usage:

>>> from legendtestdata import LegendTestData
>>> ldata = LegendTestData()  # clone legend-exp/legend-testdata below /tmp
>>> ldata.checkout("968c9ba")  # optionally checkout a specific version
>>> ldata.get_path("orca/fc/L200-comm-20220519-phy-geds.orca")  # get absolute path to test file
'/tmp/legend-testdata-gipert/data/orca/fc/L200-comm-20220519-phy-geds.orca'
>>> ldata.reset()  # checkout default branch (main)

This Python package layout is based on pyproject-template.

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

pylegendtestdata-0.5.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

pylegendtestdata-0.5.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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