Skip to main content

A Python helper library for generating Process Behaviour Charts

Project description

statprocon

statprocon is a Python helper library for generating data for use in Statistical Process Control charts. SPC charts are also known as Process Behaviour Charts, Control charts or Shewhart charts.

Installation

pip install statprocon

Usage

from statprocon import XmR

counts = [10, 50, 40, 30]

xmr = XmR(counts)
moving_ranges = xmr.moving_ranges()
unpl = xmr.upper_natural_process_limit()
lnpl = xmr.lower_natural_process_limit()
x_bar = xmr.x_average()

url = xmr.upper_range_limit()
mr_bar = xmr.mr_average()

Currently, this library only supports the data for generating an XmR chart. An XmR chart is the simplest type of process behaviour chart. XmR is short for individual values (X) and a moving range (mR). More chart data options can be added via pull requests.

For more information, I invite you to read Making Sense of Data by Donald Wheeler.

Dependencies

There are a few other Python libraries for generating SPC charts but they all contain large dependencies in order to include the ability to graph the chart. This package will remain small and light and not require large dependencies. The user will need to convert the data into charts on their own.

This package also contains extensive tests for verifying the integrity of the calculated data.


Development

Create virtualenv

python3 -m venv venv

Activate virtualenv

source venv/bin/activate

Build

python -m build

Upload

python -m twine upload dist/*

Testing

Install package from source

python3 -m pip install .

Run tests

python3 -m unittest discover

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

statprocon-0.0.4.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

statprocon-0.0.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file statprocon-0.0.4.tar.gz.

File metadata

  • Download URL: statprocon-0.0.4.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for statprocon-0.0.4.tar.gz
Algorithm Hash digest
SHA256 486ec5154a445f3f9139f29ee33ff11bf3c9610072ebab42602b3245fc2733a4
MD5 4a268790f3df6ac9ee5eff6818ffe6ef
BLAKE2b-256 9d83a0107dbc1ff85f572103f0862a380a2fd643547619b0331ccd5b8a77e653

See more details on using hashes here.

File details

Details for the file statprocon-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: statprocon-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for statprocon-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b025b9b74bfca0b92c32f00418f67dcf97a3346e55bf7ccd7eafb21cba93ebd5
MD5 19deb2bb52b2b49f96b9cccc4e775fe0
BLAKE2b-256 745a6f05d8d240507d2531a47a12884d6301223377929ab3b421d7deb7efbfef

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