Pyspc
Statistical Process Control Charts Library for Humans
Install / Use
/learn @carlosqsilva/PyspcREADME
PySpc
Statistical Process Control Charts Library for Humans
PySpc is a Python library aimed to make Statistical Process Control Charts as easy as possible.
Take a look at my other project cchart-online.
Features
Control Charts by Variables
- Mean and Amplitude
- Mean and Standard Deviation
- Individual Values and Moving Range
- Individual values with subgroups
- Exponentially Weighted Moving Average (EWMA)
- Cumulative Sum (CUSUM)
Control Charts by Attributes
- P Chart
- NP Chart
- C Chart
- U Chart
Multivariate Control Charts
- T Square Hotelling
- T Square Hotelling with SubGroup
- Multivariate Exponentially Weighted Moving Average (MEWMA)
##Installation
$ pip install pyspc
Usage
from pyspc import *
a = spc(pistonrings) + ewma()
print(a)
<img src="https://github.com/carlosqsilva/pyspc/blob/master/screenshots/1-screen.png" align="center" height="400" width="450">
adding rules highlighting...
a + rules()
<img src="https://github.com/carlosqsilva/pyspc/blob/master/screenshots/2-screen.png" align="center" height="400" width="450">
adding more control charts to the mix...
a + cusum() + xbar_sbar() + sbar()
<img src="https://github.com/carlosqsilva/pyspc/blob/master/screenshots/3-screen.png" align="center" height="500" width="450">
it comes with 18 sample datasets to play with, available in ./pyspc/sampledata, you can use your own data (of course). Your data can be nested lists, numpy array or pandas DataFrame.
import numpy
from pyspc import *
fake_data = numpy.random.randn(30, 5) + 100
a = spc(fake_data) + xbar_rbar() + rbar() + rules()
print(a)
<img src="https://github.com/carlosqsilva/pyspc/blob/master/screenshots/5-screen.png" align="center" height="400" width="450">
Gtk Gui
Its also available a python gui application for those who do not like to mess with code.
$ python3 pyspc_gui.py

Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
84.1kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
340.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
