Skip to main content

No project description provided

Project description

qc-utils

QC infrastructure common to several pipelines

For now contains two classes QCMetric and QCMetricRecord that can be used for representing pipeline quality control metrics.

Installation

pip install qc-utils

Usage

from qc_utils.qcmetric import QCMetric, QCMetricRecord

Creating metric objects is done by new_metric = QCMetric('metric name', {'metric1' : value1, 'metric2' : value2}). The name and content can be accessed as properties of the object. The content is stored as an OrderedDict and the content is sorted by names when object is created. These properties can be now accessed as new_metric.name and new_metric.content.

QCMetricRecord objects can be created by making an empty record record = QCMetricRecord() and then using add method to add QCMetric objects into the record. Another way is to initialize record from a list of QCMetric objects record = QCMetricRecord([qc_metric1, qc_metric2]), and possibly using add to complement the record later. Names of QCMetric objects in a record have to be distinct and an attempt to add a metric with existing name into a QCMetricRecord will cause an error.

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

qc_utils-0.1.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

qc_utils-0.1.1-py3-none-any.whl (6.8 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