Skip to main content

SpectraSherpa by Spectra Scientific LLC

PyPI Python Platform License: AGPL-3.0 CI Docs

The open chemometrics workbench — visual, reproducible, and local-first.

SpectraSherpa turns spectra and feature tables into visible, versioned analysis workflows. Import supported scientific files, inspect their axes and metadata, then use PCA, PLS, MCR-ALS, SIMCA, PLS-DA, variable selection, calibration transfer, and validation without hiding the data path behind a notebook.

Install the v0.6.0 Workbench and Python SDK (Python 3.11 or 3.12):

python -m pip install "spectra-sherpa==0.6.0"
spectra-sherpa

Try the hosted Demo by registering with your email. Demo uses supplied or registered reference datasets; use local OSS or Pro Cloud for your own data. Local OSS includes BYOK chat; managed Advisor and optimization campaigns are hosted features.

📖 Documentation · 🧭 Choose your path · 🧩 Node Library

Why SpectraSherpa

A single open workbench for the chemometrics you actually run, built around five strengths:

  • A first-class chemometric toolkit. Preprocessing, decomposition, calibration, classification, variable selection, and calibration transfer are core features, purpose-built for spectroscopy. (Full list below.)
  • Numbers you can defend. Native PLS and PLS-DA share one cited Sherpa SIMPLS authority, while optional SpectroChemPy operations retain their declared upstream runtime. MCR-ALS is checked against synthetic ground truth and reference workflows.
  • Reproducible by construction. Every workflow is versioned on save and every run is an immutable, provenance-tracked record, so a result always traces back to its exact recipe and data.
  • From exploration to production. Export supported workflows to standalone Python or a Jupyter notebook; trained models are first-class artifacts you can batch-apply and deploy.
  • Open and local-first. AGPL-3.0, reads CSV, JCAMP-DX, NumPy, MATLAB v4/v5/v7.3 and qualified Eigenvector DataSet Objects, qualified Galactic SPC, and one-dimensional Bruker OPUS files directly, and runs entirely on your machine with network egress denied by default in local mode.

Built to be an open foundation that labs and instrument makers can standardize on, extend, and embed. For third-party reference data, the user obtains the source file directly from its provider. SpectraSherpa does not retrieve, proxy, cache, or redistribute that provider file. Local and paid users can select it through the normal upload path; a policy-constrained deployment can instead admit only a registered byte-identical reference. See the dataset and provider guide.

Install & run

The command above opens the Workbench at http://localhost:8000 in your browser — no login required. The first launch initializes a local database. The Python SDK is included in the same installation.

Choose optional capabilities when installing:

python -m pip install "spectra-sherpa[scp,hitran,nist]==0.6.0"
Extra Adds
scp SpectroChemPy runtime for EFA, MCR-ALS, and SIMPLISMA
hitran HITRAN/HAPI clients for live line-table downloads
nist NIST WebBook search and acquisition

HITRAN downloads require your personal key in Settings → API Keys and Settings → Integrations → HITRAN/HAPI Queries enabled. Network access is optional and disabled by default locally.

Build from the public source release

Requires Git, Python 3.11 or 3.12, and Node.js 22. Use this path if the tag is available before the PyPI upload completes:

git clone --branch spectra-sherpa-v0.6.0 https://github.com/Spectra-Scientific-LLC/Spectra-Sherpa.git
cd Spectra-Sherpa
python -m pip install poetry
poetry env use python3.11
poetry install --extras "scp hitran nist"
npm --prefix frontend ci
npm --prefix frontend run build
poetry run spectra-sherpa

For base-only installation, omit --extras. Keep wanted extras in subsequent poetry install commands. For guided choices, run python scripts/install_local.py --source . from the public checkout.

Run the canonical Python example:

python -m spectra_sherpa.examples.canonical_workflow

It builds and executes a typed DAG, saves and reopens its workflow, and writes results to spectra-sherpa-quickstart/. With Poetry, prefix the command with poetry run.

See Local onboarding, Python workflows, and Migrate to 0.6.

The chemometric toolkit

A qualified catalog of data, preprocessing, exploratory, modeling, validation, transfer, and output nodes covers the workflow you actually run:

  • Preprocessing — Savitzky-Golay smoothing/derivatives, baseline correction, MSC, SNV, OSC, normalization, scaling.
  • Exploratory — PCA, MCR-ALS, SIMPLISMA, EFA, hierarchical clustering.
  • Calibration & classification — PLS regression, PLS-DA, SIMCA, KNN.
  • Variable selection — iPLS, CARS, SPA, MC-UVE, VIP.
  • Calibration transfer — PDS and direct standardization for instrument-to-instrument transfer.
  • Validation & deployment — cross-validation, nested CV, selection stability, model comparison, batch prediction, deploy-readiness checks.

See the Node Library for node parameters and ports, and Current Capabilities for the supported production scope.

Core concepts

Keep data, workflows, runs, model artifacts, and reports together in a Project. See Projects, Datasets, and Runs.

For Python analysts & chemometricians

Use labeled arrays through dataset.data, compose typed workflows in Python, or add a canonical node to the visual editor. The SDK and GUI share execution contracts. New nodes require reviewed scientific behavior and contract tests; see Contributing.

Built on the work of others

SpectraSherpa stands on established open science, and keeps citation guidance close to generated outputs:

  • SpectroChemPy — upstream spectroscopic algorithms, data structures, and instrument-file readers, by Arnaud Travert and Christian Fernandez at the Laboratoire Catalyse et Spectrochimie (LCS), ENSICAEN / Université de Caen / CNRS. SpectroChemPy is optional, installed separately through the scp extra, and governed by its upstream CeCILL-B terms. SpectraSherpa uses a private, matrix-only adapter for exactly EFA, MCR-ALS, and SIMPLISMA; it exposes none of the upstream readers or datasets.
  • HITRAN / HAPI — the high-resolution molecular spectroscopic database used by Data → Synthesis to build physically grounded FTIR line tables.
  • Eigenvector Research data sets — recommended NIR/OES chemometrics teaching and validation datasets. The user obtains a file directly from Eigenvector; SpectraSherpa neither downloads it on the user's behalf nor redistributes the raw data.
  • NIST Chemistry WebBook (SRD 69) and the NIST Quantitative Infrared Database (SRD 79) — reference IR spectra for synthesis.

These databases are not owned by Spectra Scientific. Cite NIST, HITRAN, and HAPI in any report, publication, or validation package that uses synthetic datasets — Reference Libraries and Synthesis and the Attributions page list the recommended attributions.

Documentation

Full docs at docs.spectrascientific.ai.

Contributing

We welcome contributions — see CONTRIBUTING.md.

License

Copyright (C) 2026 Spectra Scientific LLC. Licensed under AGPL-3.0 — see LICENSE. If you distribute a modified version (including as a network service), you must release your modifications under the same license. SpectroChemPy is CeCILL-B; see NOTICE.md for full third-party terms. Enterprise features and commercial licensing are available from Spectra Scientific.

Metadata

Release files for spectra-sherpa 0.6.0

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

Source distribution (sdist)

Source distribution for spectra-sherpa 0.6.0
File Size Uploaded Provenance Actions
spectra_sherpa-0.6.0.tar.gz 8.3 MB With provenance Details for spectra_sherpa-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spectra-sherpa 0.6.0
File Interpreter ABI Platform Actions
spectra_sherpa-0.6.0-py3-none-any.whl Python 3 none any Details for spectra_sherpa-0.6.0-py3-none-any.whl

Total release size: 17.2 MB

Release files / spectra_sherpa-0.6.0.tar.gz

Download URL spectra_sherpa-0.6.0.tar.gz
Size 8.3 MB
Tags Source
SHA-256 checksum
How to use checksums
7aa43dde9e19ced86e5b1ffa0b54064cfc3c6f676904a0c7646647ada3654098
BLAKE2b-256 checksum
How to use checksums
c2e334b17b7e16ec7fd45715e8a9bf3fb09cac5699c51b7afbec52c945e83999
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 Oct 6, 2026.

Transparency log

Release files / spectra_sherpa-0.6.0-py3-none-any.whl

Download URL spectra_sherpa-0.6.0-py3-none-any.whl
Size 8.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bb5ab995736c4ea5c3f3c4749c26d096e7b225323bc79961f0ff5bdb7327b655
BLAKE2b-256 checksum
How to use checksums
6368caca9d13c9e29d8d141d65df706d2e5501451f23b4f75289a7abd9ff2e9f
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 Oct 6, 2026.

Transparency log

Security for spectra-sherpa 0.6.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for spectra_sherpa-0.6.0.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 Oct 6, 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