doetools
doetools is a Python library for Design of Experiments (DoE). It supports the complete workflow
from choosing and generating a design to fitting response models, inspecting
diagnostics, exploring response surfaces, and validating predictions.
doetools is designed for scientists and engineers seeking a free, reproducible, and integrated alternative to manually assembling experimental design and analysis workflows.
To access the full documentation click here.
Features
- Design recommendations from high-level inputs;
- Design Generation for process and mixture factors;
- Model Fitting with ordinary least squares (OLS);
- External-point prediction;
- Regression analysis and interactive visualizations in Plotly;
- Multi-objective optimisation;
- Model validation through confirmation runs;
- PDF reports for a comprehensive summary of the experimental workflow.
Supported designs
| Category | Designs |
|---|---|
| Screening | Plackett-Burman, fractional factorial, two-level full factorial |
| Response surface | Three-level full factorial, Central composite (CCC, CCF, CCI), Box-Behnken |
| Mixture | Simplex lattice, simplex centroid, constrained mixture |
| Optimal | D-optimal, D-optimal augmentation |
| External generated designs | Import design |
Requirements and platforms
doetools requires Python 3.10 or newer and is distributed as a pure-Python,
platform-independent package. Continuous integration is configured for CPython
3.10 through 3.14 on Linux, plus a current Python version on Windows and macOS.
Actual platform availability also depends on the scientific Python dependencies
listed in pyproject.toml.
Installation
Install the latest stable release from PyPI with pip:
python -m pip install doetools
Or add doetools to a project managed by
uv:
uv add doetools
To install the current development version from GitHub:
python -m pip install "git+https://github.com/LorenzoTJ/doetools.git@dev"
For a local development checkout, see the full installation guide.
Quick start
The following example creates a face-centered central composite design for two continuous factors and exports a randomized experiment sheet for measuring yield:
from doetools import CentralCompositeDesign, ContinuousFactor
factors = {
"Temperature": ContinuousFactor(
n_levels=3,
lower_bound=60,
upper_bound=80,
),
"Pressure": ContinuousFactor(
n_levels=3,
lower_bound=1,
upper_bound=3,
),
}
design = CentralCompositeDesign(
factors=factors,
design="ccf",
center_points=3,
)
print(design.get_design_summary())
print(design.get_design_matrix())
design.export_experiments(
responses=["Yield"],
randomize=True,
destination="experiments.xlsx",
)
A typical analysis continues by completing the exported workbook, importing the
responses with design.import_responses(...), defining ModelTerms, and calling
design.compute_mlr_model().
Documentation and examples
The documentation is built with Sphinx.
Development
The development version of doetools is available on GitHub. Bug reports and feature suggestions are welcome through GitHub Issues. Detailed contributor and development guidelines will be provided in a future release.
Project status and scope
doetoolsis currently in its initial public-release stage (0.1.x). Backward compatibility is not guaranteed until version1.0; API changes and other notable updates are documented in the CHANGELOG- Statistical results should be interpreted in the context of the experimental design, model assumptions, and relevant domain expertise.
doetoolsdoes not replace experimental review or laboratory quality procedures. - Models are currently fitted independently for each response using ordinary least squares (OLS). Correlated-response, time-series, Bayesian, mixed-effects, and other specialized modelling approaches are outside the current scope.
Citation
If doetools contributes to published work, cite the software and the exact
version used. GitHub can generate citation metadata from CITATION.cff.
No archival DOI has been assigned yet.
License
Copyright (c) 2026 Lorenzo Teja.
doetools is released under the GNU General Public License, version 3 only
(GPL-3.0-only). This license aligns the project with its GPLv3-licensed
doe-toolbox dependency, used for fractional factorial designs.
Third-party packages and the publications cited by the documentation remain under their respective licenses and terms.
Metadata
Release files for doetools 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| doetools-0.1.6.tar.gz | 156.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| doetools-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 330.7 kB
Release files / doetools-0.1.6.tar.gz
| Download URL | doetools-0.1.6.tar.gz |
|---|---|
| Size | 156.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d745822f540c6a86617e9a1d9e3408fea8ac1f72f9706c670e23531fda70473
|
|
BLAKE2b-256 checksum How to use checksums |
bafd6a13eb4e5b9817028d5d95f67b8f55e77207daf185f339258eafea53e6b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logRelease files / doetools-0.1.6-py3-none-any.whl
| Download URL | doetools-0.1.6-py3-none-any.whl |
|---|---|
| Size | 174.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1ffb217b4f0877d3cd945ed748504fe986e31c93e64f5c49462fa1621954e3b
|
|
BLAKE2b-256 checksum How to use checksums |
c4caaaed86c06206ad77cbdd80a24c36ebf0eac1533f77edccf020dd5f50019c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 16, 2026.
Transparency logSecurity for doetools 0.1.6
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for doetools-0.1.6.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 Sep 16, 2026.
Transparency logA 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.