Skip to main content

Specutils

GitHub Actions CI Status Coverage Status Documentation Status Powered by Astropy

Specutils is an Astropy affiliated package with the goal of providing a shared set of Python representations of astronomical spectra and basic tools to operate on these spectra. The effort is also meant to be a “hub”, helping to unite the Python astronomical spectroscopy community around shared effort, much as Astropy is meant to for the wider astronomy Python ecosystem. This broader effort is outlined in the APE13 document.

Note that Specutils is not intended to meet all possible spectroscopic analysis or reduction needs. While it provides some standard analysis functionality (following the Python philosophy of “batteries included”), it is best thought of as a “tool box” that provides pieces of functionality that can be used to build a particular scientific workflow or higher-level analysis tool. To that end, it is also meant to facilitate connecting together disparate reduction pipelines and analysis tools through shared Python representations of spectroscopic data.

Getting Started with Specutils

For details on installing and using Specutils, see the specutils documentation.

Note that Specutils now only supports Python 3. While some functionality may continue to work on Python 2, it is not tested and support cannot be guaranteed (due to the sunsetting of Python 2 support by the Python and Astropy development teams).

Migrating from Specutils 1.x to 2.x

For details about breaking changes made in 2.0, please see the specutils documentation.

License

This project is Copyright (c) Specutils Developers and licensed under the terms of the BSD 3-Clause license. This package is based upon the Astropy package template which is licensed under the BSD 3-clause license. See the licenses folder for more information.

Contributing

We love contributions! Specutils is open source, built on open source, and we’d love to have you hang out in our community.

Please see the Astropy generative AI policy for expectations and standards around the use of generative AI by contributors. Notably, pull requests opened by an autonomous agent rather than a human contributor will be closed without review.

Imposter syndrome disclaimer: We want your help. No, really.

There may be a little voice inside your head that is telling you that you’re not ready to be an open source contributor; that your skills aren’t nearly good enough to contribute. What could you possibly offer a project like this one?

We assure you - the little voice in your head is wrong. If you can write code at all, you can contribute code to open source. Contributing to open source projects is a fantastic way to advance one’s coding skills. Writing perfect code isn’t the measure of a good developer (that would disqualify all of us!); it’s trying to create something, making mistakes, and learning from those mistakes. That’s how we all improve, and we are happy to help others learn.

Being an open source contributor doesn’t just mean writing code, either. You can help out by writing documentation, tests, or even giving feedback about the project (and yes - that includes giving feedback about the contribution process). Some of these contributions may be the most valuable to the project as a whole, because you’re coming to the project with fresh eyes, so you can see the errors and assumptions that seasoned contributors have glossed over.

Note: This disclaimer was originally written by Adrienne Lowe for a PyCon talk, and was adapted by specutils based on its use in the README file for the MetPy project.

If you locally cloned this repo before 22 Mar 2021

The primary branch for this repo has been transitioned from master to main. If you have a local clone of this repository and want to keep your local branch in sync with this repo, you’ll need to do the following in your local clone from your terminal:

git fetch --all --prune
# you can stop here if you don't use your local "master"/"main" branch
git branch -m master main
git branch -u origin/main main

If you are using a GUI to manage your repos you’ll have to find the equivalent commands as it’s different for different programs. Alternatively, you can just delete your local clone and re-clone!

Metadata

Release files for specutils 2.5.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 specutils 2.5.0
File Size Uploaded Provenance Actions
specutils-2.5.0.tar.gz 7.0 MB With provenance Details for specutils-2.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.9 MB

Release files / specutils-2.5.0.tar.gz

Download URL specutils-2.5.0.tar.gz
Size 7.0 MB
Tags Source
SHA-256 checksum
How to use checksums
c682a8a20c7ec9bfc7a48c1a48c5cf346a401dfe016d84f277c3d7a9d01514e9
BLAKE2b-256 checksum
How to use checksums
16569234e79c204343292390284300d70b7b8a4b56a14514c4d93125975a4470
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 30, 2026.

Transparency log

Release files / specutils-2.5.0-py3-none-any.whl

Download URL specutils-2.5.0-py3-none-any.whl
Size 5.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
400792699acaa464cafe72a87d274e6de29464f5508052d9991bb8b5b595cb7f
BLAKE2b-256 checksum
How to use checksums
1b710b24f32b7434f9711eff261dc4ceeec3c210852b6979f97f4b307991ff11
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 30, 2026.

Transparency log

Security for specutils 2.5.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 specutils-2.5.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 Nov 30, 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.

Release history Release notifications | RSS feed

This release

2.5.0 This release

2 release files Full provenance

0.0.dev25

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