Skip to main content

Quality House

Build a House of Quality from Python or JSON. Score engineering responses against weighted criteria, draw the matrix and correlation roof, and carry scores into the next design stage.

Run an example

Install the package from the project root with `python -m pip install .`, then run the example from the same directory.

quality-house score examples/reusable-case.json
quality-house render examples/reusable-case.json case.pdf --bars
python examples/deployment.py

Use a PDF, SVG, or PNG output filename. Add --no-roof to hide the roof. Cell strengths are 0 (none), 1 (weak), 3 (moderate), and 9 (strong). Bar lengths scale to the highest score. The share under each score is its fraction of the total.

Create and deploy a house

```python from quality_house import Correlation, Criterion, House, Response, render

house = House( criteria=[Criterion("open", "Easy to open", 5), Criterion("clean", "Easy to clean", 3)], responses=[Response("latch", "Latch force"), Response("seal", "Seal compression")], matrix=[[9, 1], [1, 9]], correlations=[Correlation("latch", "seal", -1, "More compression raises opening force.")], ) assert house.scores == (48, 32)

parts = house.deploy([Response("spring", "Latch spring")], [[1], [3]]) assert parts.scores == (144,) render(house, bars=True).savefig("case.pdf") ```

The score of a column is the sum of each relationship strength multiplied by its row weight. A deployment uses the exact previous scores in response order. To build a second study from the same original needs, pass `house.criteria` to its constructor.

Inputs and revisions

  • Use `House.from_relationships(criteria, responses, relations)` for sparse entries. Each entry contains a criterion ID, a response ID, and a strength. Omitted entries are zero.
  • Give each criterion and response an ID that stays stable when its label or position changes. `compare(before, after)` reports additions, removals, definition changes, and changed relationships and correlations.
  • Supply a revision to `render(after, revision=compare(before, after))` or use `quality-house render after.json after.pdf --compare-with before.json` to outline changed cells.
  • Add `Benchmark(label, ratings)` for an external reference with one rating per criterion. Use `None` when a rating is unavailable. Benchmark ratings and roof signs stay separate from weighted scoring.
  • Load a JSON file with `load(path)` and save a definition with `save(house, path)`. Use `quality-house diff before.json after.json` to inspect the model changes as JSON.

The package includes Python and JSON examples. The example JSON shows targets, directions, correlations and benchmarks together.

Metadata

Release files for quality-house 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quality-house 0.1.0
File Size Uploaded Provenance Actions
quality_house-0.1.0.tar.gz 14.5 kB With provenance Details for quality_house-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quality-house 0.1.0
File Interpreter ABI Platform Actions
quality_house-0.1.0-py3-none-any.whl Python 3 none any Details for quality_house-0.1.0-py3-none-any.whl

Total release size: 27.5 kB

Release files / quality_house-0.1.0.tar.gz

Download URL quality_house-0.1.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9a99cd7c171b388de478525334f4aac3951a3e53060d7bf1c7b8a1ec3cc395aa
BLAKE2b-256 checksum
How to use checksums
2a5e6d7c7f5d8e38558378d2f2b7397496ba946c73cd23000102f0a03c8298fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / quality_house-0.1.0-py3-none-any.whl

Download URL quality_house-0.1.0-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdf9697fed918fcac433812fdbed4507ccbbcdcdcbfdf2b95eb2d51fe353be9b
BLAKE2b-256 checksum
How to use checksums
3ddbda5751a0d9129da349a684cbc4a54971efd6640d69a8e84b913a093cda30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for quality-house 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for quality_house-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page