Glasses for your spectra
Spectracles is a Python library for inferring properties of IFU/IFS spectra as continuous functions of sky position.
It can also be used as a general-purpose statistical model library that extends equinox to allow for composable models that may have coupled parameters. It also implements some other nice features that are a bit awkward in equinox out of the box, like easily updating model parameters between fixed and varying.
Installation
From PyPI with pip:
pip install spectracles
Or with uv (recommended):
uv add spectracles
From source:
git clone git@github.com:TomHilder/spectracles.git
cd spectracles
pip install -e .
Note: fftw must be installed or the dependency jax-finufft will fail to build.
Features
- Parameter sharing - Couple parameters across model components
- Declarative optimization schedules - Specify which parameters are free/fixed per phase
- Glob patterns - Use wildcards like
"gp.kernel.*"to match parameters - JAX integration - Built on equinox, fully compatible with JAX transformations
- Rich output - Pretty-printed model trees and gradient diagnostics
Documentation
Full documentation: tomhilder.github.io/spectracles
Citation
Coming soon.
License
MIT
Metadata
Release files for spectracles 0.7.0
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 | Actions |
|---|---|---|---|---|
| spectracles-0.7.0.tar.gz | 52.3 kB | With provenance | Details for spectracles-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spectracles-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for spectracles-0.7.0-py3-none-any.whl |
Total release size: 117.5 kB
Release files / spectracles-0.7.0.tar.gz
| Download URL | spectracles-0.7.0.tar.gz |
|---|---|
| Size | 52.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cacf0bf70b73bcff413c690ad0b20ca2c4fa143b5001d49eb8276252eae9ba50
|
|
BLAKE2b-256 checksum How to use checksums |
2e9a849943d46b062c5b40bc1c065384d9ed8933abe0d32cc603936c18d864ab
|
| 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 Oct 26, 2026.
Transparency logRelease files / spectracles-0.7.0-py3-none-any.whl
| Download URL | spectracles-0.7.0-py3-none-any.whl |
|---|---|
| Size | 65.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d884ca81020be6a460be1ba52a537518626547272617cd0077c8ff429ea49a61
|
|
BLAKE2b-256 checksum How to use checksums |
a5aafcf4ff324cc9e892337300419b3ccab846934ffa98fbf9c7cb6388529cc7
|
| 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 Oct 26, 2026.
Transparency logSecurity for spectracles 0.7.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.
Attestation for spectracles-0.7.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 26, 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.