Skip to main content

A simple CLI for rendering Quality Views

Project description

quality-viewer

A simple CLI for rendering Quality Views. Built on Graphviz.

Installation

pip install quality-viewer

Usage

To use, you need to create a series of JSON documents in a folder. These files define the components in your quality view and the individual scores for each attribute. Scores are out of 10, quality-viewer uses the mean to generate the colours in the PDF.

This is an example of the component definition:

{
    "component": "my-lovely-component",
    "depends_on": ["my-other-component"],
    "attributes": [
        {
            "name": "code",
            "score": 5,
            "notes": "I wrote this in Uni"
        },
        {
            "name": "tests",
            "score": 2,
            "notes": "I wrote this in Uni"
        }
    ]
}

Then you can run the CLI against your folder of component definitions which will generate a PDF in that folder named quality_view.gv.pdf:

quality-viewer ./my_components

If you run these regularly, you probably want to label each PDF. Customise the label on the graph with the --label argument:

quality-viewer --label "Quality Views - Christmas 2019" ./my_components

A fairly elaborate example, which uses dated quality views can be found at (other repo)[more work]. This is a good repo to get started from.

Development

This repository is setup to validate your work easily, running tests is as simple as:

make test

And checking your coding style is:

make check

To automagically conform to the above, run:

make format

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

quality-viewer-0.0.3.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file quality-viewer-0.0.3.tar.gz.

File metadata

  • Download URL: quality-viewer-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for quality-viewer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d9d681d346ea87ad0a904ebc181ae6329b9fc5aa2af71165e420e287c7c28a93
MD5 183af7bf3c9c10b1eb538018a44acfae
BLAKE2b-256 57f2c87f69182da9c88c5c44b531ba9eac89b03dbbc2dd6ae580d79d3b3d5703

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page