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 details)

Uploaded Source

Built Distribution

qc_utils-0.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file qc_utils-0.1.1.tar.gz.

File metadata

  • Download URL: qc_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for qc_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2fee49bfa8fc8a999de8dc556b433496fd138499b8a3527d4734f6b5e16c7ec0
MD5 c8795d1b2c86a1048f309aa393b559ca
BLAKE2b-256 46d70dc18081bc9335fdf54d50d3a108c86a668f63e09bd9b3a3b871fdfb166d

See more details on using hashes here.

File details

Details for the file qc_utils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: qc_utils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for qc_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eef14624829c12be654ff22925cb074306f8ba4dddb170dfccab931ada1d340c
MD5 133ca838dfb53847dbde42476a00fae2
BLAKE2b-256 e20752fcc72a636f261131f6e81b7cbd73e74ef3f483d9e47cd3a3835b913c50

See more details on using hashes here.

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