Skip to main content

Spectra Sherpa by Spectra Scientific LLC

PyPI Python Platform License: AGPL-3.0 CI Docs

SpectraSherpa is an open-source workbench for building spectroscopic and chemometric models. Inspect spectra and feature tables, assemble analysis workflows, review validation results, and apply saved models to new data. The browser interface and Python SDK use the same scientific operations.

Local OSS runs on your computer with your own data. Optional AI assistance uses your chosen provider and API key. The hosted Demo runs in your browser with reference datasets and AI access provided by Spectra Scientific—no installation or API key required.

BYOK means bring your own key; you pay your chosen provider’s usage charges. A configured local model is also supported. Hosted optimization campaigns are separate from OSS.

Why SpectraSherpa

Fitting a model is only part of the work. A lab also needs to know which spectra were used, why observations were excluded, where preprocessing was fitted, and whether a reported error describes calibration or genuinely held-out samples. Moving between spreadsheets, notebooks, and instrument software can break that record before a model ever reaches another analyst or instrument.

Pasting spectra or metrics into an AI chat does not preserve data custody: the connection between the source, transformations, and conclusions. A convincing explanation can omit sample identity, introduce leakage, or describe a different analysis from the one actually run.

SpectraSherpa keeps source context, workflow versions, sample selections, and retained results together so you can inspect how a model was built and check whether it can be applied. Its approach to a trustworthy AI co-scientist is to ground assistance in that recorded context while scientific code performs the calculations. You review the suggestions and evidence. Reproduction still requires the original inputs and a compatible runtime.

Getting started

Try the Demo to explore the workflow with reference data. See Demo access and limits.

Use local OSS for your own data. With Python 3.11 or 3.12, install the latest published package and open the Workbench:

python -m pip install spectra-sherpa
spectra-sherpa

Open http://localhost:8000; no hosted account is required. This repository contains v0.6.4 source; check PyPI for availability and the upgrade notes before updating an existing installation. See local setup for source installation and provider configuration.

Optional extras: scp adds EFA, MCR-ALS, and SIMPLISMA; hitran and nist add reference-data integrations. Setup and data-provider guidance covers credentials and access. Obtain Eigenvector research datasets directly from their provider before importing them. Local network access is disabled by default; enabling an external AI provider sends permitted context to that provider.

Chemometric toolkit

Task Methods and tools
Prepare spectra Smoothing and derivatives, baseline correction, MSC, SNV, OSC, normalization, scaling
Explore mixtures and populations PCA, MCR-ALS, SIMPLISMA, EFA, hierarchical clustering
Calibrate and classify PLS regression, PLS-DA, SIMCA, KNN
Select variables and transfer calibration iPLS, CARS, SPA, MC-UVE, VIP, PDS, direct standardization
Evaluate and apply Cross-validation, nested CV, selection stability, model comparison, batch prediction

A Project holds datasets, workflows, saved runs, models, and reports. Workflows describe the analysis; runs retain its recorded results. Sample labels are distinct from observation identities, and calibration, cross-validation, and held-out evaluation have different meanings.

The included Python SDK lets you compose and run typed workflows in code using the same operations as the GUI. Supported workflows can be exported to Python or notebooks. Start with Python workflows; consult the Node Library and capability boundaries for supported methods.

Documentation

Full docs at docs.spectrascientific.ai.

Contributing and acknowledgements

Help improve readers, scientific methods, workflow examples, documentation, and regression tests. For a scientific issue, include the data shape, processing steps, and expected result, using shareable data where possible. See Contributing; code contributions require a signed CLA.

SpectraSherpa builds on work by the wider spectroscopy community:

  • SpectroChemPy, by Arnaud Travert and Christian Fernandez: optional EFA, MCR-ALS, and SIMPLISMA through a matrix adapter. Upstream readers and datasets are not exposed by this integration.
  • HITRAN / HAPI: molecular line data and tools for spectral synthesis.
  • Eigenvector Research (EVRI): chemometrics teaching and research datasets, obtained by users directly rather than redistributed here.
  • NIST: Chemistry WebBook (SRD 69) and Quantitative Infrared Database (SRD 79) reference spectra.

Credit the methods and data you use. See Attributions and Reference Libraries and Synthesis for citations and provider terms.

License and warning

Copyright © 2026 Spectra Scientific LLC. Licensed under AGPL-3.0; commercial licensing is available. Third-party terms, including SpectroChemPy’s CeCILL-B license, are listed in NOTICE.

Metadata

Release files for spectra-sherpa 0.6.4

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.4
File Size Uploaded Provenance Actions
spectra_sherpa-0.6.4.tar.gz 9.1 MB With provenance Details for spectra_sherpa-0.6.4.tar.gz

Built distribution (wheel)

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

Total release size: 18.8 MB

Release files / spectra_sherpa-0.6.4.tar.gz

Download URL spectra_sherpa-0.6.4.tar.gz
Size 9.1 MB
Tags Source
SHA-256 checksum
How to use checksums
9188c448004ade06323e81d3a218257207b8acbc8ebadec75cae77bd7998dfc2
BLAKE2b-256 checksum
How to use checksums
206a9d16517ad03c3dbbd83021ae434681109c09c21e2da126728e4c38fea7da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

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

Download URL spectra_sherpa-0.6.4-py3-none-any.whl
Size 9.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e4b940256863ef2c04dc0762fdc4cb821b1bab7fea2bacc187a9d74d35887cc0
BLAKE2b-256 checksum
How to use checksums
cdd87bb2e1f2467fa490d579e55ea94206244951448c6e57907c6f4f70ea947a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Security for spectra-sherpa 0.6.4

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.4.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 Nov 5, 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