Python library for creating GA4GH testbed reports according to a harmonized, cross-workstream schema
Project description
GA4GH Testbed Lib
Python library for creating GA4GH testbed reports according to a harmonized, cross-workstream schema
Installation
As a prerequisite, please ensure you have Python 3 installed on your machine.
ga4gh-testbed-lib
is tested on the following Python versions:
- v3.7
- v3.8
- v3.9
- v3.10
ga4gh-testbed-lib
is a library that can be imported into your Python project.
To do so, first install it via pip
:
pip install ga4gh-testbed-lib
Note: We recommend using a Python virtual environment when building any Python project to avoid dependency conflicts with other projects on your system.
Usage
Once installed, you may import the ga4gh-testbed-lib
in your Python modules. We recommend only importing the Report
class directly:
from ga4gh.testbed.report.report import Report
...
report = Report()
More documentation to come on how to use the report library
Test
To contribute to the testbed library, you will need to clone the repository:
git clone https://github.com/ga4gh/ga4gh-testbed-lib.git
To run tests, you will need to install test dependencies (i.e. pytest):
pip install -r requirements.txt
Tests can be run via pytest
:
python -m pytest --cov
Changelog
v0.2.1
- Accept json report from report object
v0.2.0
- Able to submit reports to Testbed API via standard
POST
request
v0.1.2
- Test level entity now has a
message
attribute for capturing test result summary in a single message
Maintainers
- GA4GH Tech Team ga4gh-tech-team@ga4gh.org
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
Built Distribution
File details
Details for the file ga4gh-testbed-lib-0.2.1.tar.gz
.
File metadata
- Download URL: ga4gh-testbed-lib-0.2.1.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d05a68a03407ef3252e3fb9115d913cda52ec9deff631b4f245242605421892a |
|
MD5 | 7c321758e30d3d150854969e9bf45d6d |
|
BLAKE2b-256 | b2f32fff78ba8f27cbd2ebb95fee5ed0824de4594c2b6a6c3649196d52dca4d4 |
File details
Details for the file ga4gh_testbed_lib-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: ga4gh_testbed_lib-0.2.1-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d717cb82e495691019c70c58b832dc41c5fa7f376d8a4b4228b2294abe4dc3 |
|
MD5 | b2988905275b85daaded53610960059f |
|
BLAKE2b-256 | 67f75c686969c1e92a7a20950bbf0401eb8ec735ddd23792c69248cde46f56e8 |