Skip to main content

doetools logo

doetools

CI Python License: GPL v3

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

  • doetools is currently in its initial public-release stage (0.1.x). Backward compatibility is not guaranteed until version 1.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. doetools does 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.7

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

Source distribution (sdist)

Source distribution for doetools 0.1.7
File Size Uploaded Provenance
doetools-0.1.7.tar.gz 157.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 333.4 kB

Release files / doetools-0.1.7.tar.gz

Download URL doetools-0.1.7.tar.gz
Size 157.8 kB
Tags Source
SHA-256 checksum
How to use checksums
66e9a1e35b91723703ef711d9b30656998e7df7d4e11f4af215486352d2ead3e
BLAKE2b-256 checksum
How to use checksums
64e81d574204e34480e9e0ac53fe63c477f470b8ef1823a4cc0e9a79fd406a36
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 17, 2026.

Transparency log

Release files / doetools-0.1.7-py3-none-any.whl

Download URL doetools-0.1.7-py3-none-any.whl
Size 175.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cad7cbc2c6cd28782166f7a8a3069dae194ec0686a0afe42dfa7d4d1ec2f1a04
BLAKE2b-256 checksum
How to use checksums
1fbc3f3c9e894fd83e29d04d59056686046ad65849f80118b09c8333bc3de564
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 17, 2026.

Transparency log

Security for doetools 0.1.7

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.

Select from 2 files

Attestation for doetools-0.1.7.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 17, 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.

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