Skip to main content

Purpose

To provide analysis tools and metrics useful in manufacturing environments.

Go to the documentation.

Project Maturity

Plots and project are reasonably mature at this point. Calculations have been refined and are in-line with commonly accepted standards.

A major v3.0 update is coming to control charts and will be available in manufacturing.alt_vis module. For instance, instead of using from manufacturing import x_mr_chart, you would use from manufacturing.alt_vis import x_mr_chart. The new API should allow for a greater degree of flexibility with recalculation points and the ability to relabel the axes. Additionally, alternative axis labels will be able to be supplied. These changes will eventually become "the way", but are to be considered experimental until the v3.0 update.

Installation

To install from pypi:

pip install manufacturing

or, if you use uv:

uv add manufacturing

Building

This package uses uv to manage the workflow.

uv build

Testing

Tests will take a while to run - it is generating several hundred plots in the background.

uv run pytest

Usage

Cpk Visualization

The most useful feature of the manufacturing package is the visualization of Cpk. As hinted previously, the ppk_plot() function is the primary method for display of Cpk visual information. First, get your data into a list, numpy.array, or pandas.Series; then supply that data, along with the lower_control_limit and upper_control_limit into the ppk_plot() function.

manufacturing.ppk_plot(data, lower_specification_limit=-2, upper_specification_limit=2)

Screenshot

In this example, it appears that the manufacturing processes are not up to the task of making consistent product within the specified limits.

Zone Control Visualization

Another useful feature is the zone control visualization.

manufacturing.control_chart(data)

There are X-MR charts, Xbar-R charts, and Xbar-S charts available as well. If you call the control_chart() function, the appropriate sample size will be selected and data grouped as the dataset requires. However, if you wish to call a specific type of control chart, use

  • x_mr_chart
  • xbar_r_chart
  • xbar_s_chart
  • p_chart

Contributions

Contributions are welcome!

RoadMap

Items marked out were added most recently.

  • ...
  • Add use github actions for deployment
  • Transition to poetry for releases
  • Add I-MR Chart (see examples/imr_chart.py)
  • Add Xbar-R Chart (subgroups between 2 and 10)
  • Add Xbar-S Chart (subgroups of 11 or more)
  • Update documentation to reflect recent API changes
  • Add p chart
  • Add np chart
  • Add u chart
  • Add c chart
  • Add automated testing (partially implemented)

Gallery

Ppk example

Cpk example

X-MR Chart

Xbar-R Chart

Xbar-S Chart

Metadata

Release files for manufacturing 1.7.1

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

Source distribution (sdist)

Source distribution for manufacturing 1.7.1
File Size Uploaded
manufacturing-1.7.1.tar.gz 26.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for manufacturing 1.7.1
File Interpreter ABI Platform
manufacturing-1.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 52.6 kB

Release files / manufacturing-1.7.1.tar.gz

Download URL manufacturing-1.7.1.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1bdff6296aab6ed16dd7b5c5c69204c267daaea7f125137f786a128b8299f5d5
BLAKE2b-256 checksum
How to use checksums
e3bb5a8de1f35c218212de97c12a7d9f7bd4a399785963a25d8c66a524954784
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / manufacturing-1.7.1-py3-none-any.whl

Download URL manufacturing-1.7.1-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45b4d33edbfca089d5ba28a586546f92a8fe8bc043737a786405bb50aa141846
BLAKE2b-256 checksum
How to use checksums
3dc6dd0d247dc15c16720843331b434ae7a5df925ca224fd799710778ae1d037
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

1.7.1 This release

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.3.12

2 release files

1.3.11

2 release files

1.3.9

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.0

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.25

2 release files

1.1.24

2 release files

1.1.23

2 release files

1.1.22

2 release files

1.1.21

2 release files

1.1.20

2 release files

1.1.11

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.1

2 release files

1.0.0

1 release file

0.9.6

1 release file

0.9.5

1 release file

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