Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

A Python Package for Stellar Photometry

Powered by Astropy Badge GitHub Workflow badge pre-commit.ci status codecov DOI

Stellarphot is a Python package to allow you to turn reduced astronomical images of point sources (e.g. stars) into useful photometry, with a focus on variable star and exoplanet transit observations. Specifically:

  • If you have reduced astronomical images as FITS files but haven't obtained photometry yet, stellarphot can perform aperture photometry on your images.
  • If you already have aperture photometry for a field, stellarphot can
    • choose comparison stars based on a catalog (e.g. APASS DR9),
    • calculate relative flux (like AstroImageJ),
    • calculate calibrated magnitudes by transforming to a catalog (e.g. APASS DR9), and/or
    • calculate calibrated magnitudes with a user-provided set of comparison stars (as is done in AAVSO submissions).
    • export ensemble photometry results in the AAVSO Extended File Format for direct upload to WebObs.
  • If you are working with exoplanet transit observations, stellarphot can turns the photometry into exoplanet transit light curves (see installation notes below).

Installation

stellarphot requires Python 3.11 or later. You can install stellarphot using uv, pixi, pip or conda. These tools access one of two package repositories, conda-forge or PyPI.

  • uv and pip use the PyPI package repository which currently has the following version of stellarphot: PyPI version
  • pixi and conda use the conda-forge package repository (although pixi can use PyPI instead) which currently has the following version of stellarphot: Conda-forge version

Both pixi and uv work on a model where you create a working directory for your project and install the packages into that working directory. This is a good way to keep your work organized and avoid conflicts with other Python packages you may have installed. You can examine the documentation for uv or pixi for details on how to use those tools.

conda and pip work on a model where you install the packages into your existing Python environment. This allows you to get started quickly, but you may run into conflicts with other packages you have installed.

Available extras

stellarphot's dependencies are grouped into options so you can install only what you need:

Option Adds
(none, base install) The headless/scriptable engine (data structures, photometry, catalog access). Does not include the Jupyter/widget GUI.
gui The Jupyter notebook/widget interface.
exoplanet Exoplanet transit light-curve fitting (pytransit).
all Everything above.

Note: Only the full (all) install is available from conda-forge, via conda or pixi's conda-forge mode (see the all row below for both pixi commands). Partial installs (gui or exoplanet alone) require PyPI, via pixi --pypi, uv, or pip.

Environmental Setup

uv and pixi first need a project directory to install into (replace project_dir_name with a name of your choice):

uv init project_dir_name && cd project_dir_name    # uv
pixi init project_dir_name && cd project_dir_name  # pixi

conda and pip install directly into your current Python environment, so no setup step is needed.

Installation commands

Option uv pixi conda pip
base uv add stellarphot pixi add --pypi stellarphot — pip install stellarphot
gui uv add "stellarphot[gui]" pixi add --pypi "stellarphot[gui]" — pip install "stellarphot[gui]"
exoplanet uv add "stellarphot[exoplanet]" pixi add --pypi "stellarphot[exoplanet]" — pip install "stellarphot[exoplanet]"
all uv add "stellarphot[all]" pixi add stellarphot (conda-forge)
pixi add --pypi "stellarphot[all]" (PyPI)
conda install -c conda-forge stellarphot pip install "stellarphot[all]"

Getting started with stellarphot

  1. Start Jupyterlab from the command line: jupyter lab (or uv run jupyter lab or pixi run jupyter lab if you installed with uv or pixi).
  2. Once JupyterLab opens in your web browser, open the Launcher (see Figure below)
  3. Click on the notebook you want (see figure below) and follow the instructions in the notebook. Output files and the settings used to generate them will show up in the file browser
stellarphot-screenshot

Questions?

Feel free to contact @mwcraig or @JuanCab with your questions about using stellarphot.

Contributors

Matt Craig
Matt Craig

🐛 💻 🎨 🤔 🚧 🧑‍🏫 🔬 👀 ⚠️ ✅
Juan Cabanela
Juan Cabanela

🐛 💻 🎨 🤔 🚧 👀 📖
madelyn914
madelyn914

🤔 📓
Abby
Abby

📓
MDeRung2021
MDeRung2021

🐛 📓
Tanner Weyer
Tanner Weyer

💻 👀 📓
Emily Watson
Emily Watson

🐛 📓
Adam Kline
Adam Kline

💻 📓
Elias Holte
Elias Holte

💻
P. L. Lim
P. L. Lim

🚧
clkotnik
clkotnik

🤔
Paige Meyer
Paige Meyer

📖
stottsco
stottsco

💻
Isobel Snellenberger
Isobel Snellenberger

💻 📓
Stefan Nelson
Stefan Nelson

💻 📓
Nathan Walker
Nathan Walker

💻 📓
Jane Glanzer
Jane Glanzer

💻 📓
Add your contributions

License

This project is Copyright (c) 2019-2026 The Stellarphot Team 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.

Metadata

Release files for stellarphot 2.2.0b2

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

Source distribution (sdist)

Source distribution for stellarphot 2.2.0b2
File Size Uploaded
stellarphot-2.2.0b2.tar.gz 976.0 kB Details

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / stellarphot-2.2.0b2.tar.gz

Download URL stellarphot-2.2.0b2.tar.gz
Size 976.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9bcca936fdc5a1048b0d33766deae99ed815ca2218573c21ad580fd701b3e5c3
BLAKE2b-256 checksum
How to use checksums
c1a1fcd4ce8854055d808f603f2fa0ae2a08c33dae0d4db37442d7936f17256e
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 Aug 28, 2026.

Transparency log

Release files / stellarphot-2.2.0b2-py3-none-any.whl

Download URL stellarphot-2.2.0b2-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ca0ad56904a367089ae4ad4ce4530239d3cc346a19e0f5bbe5c8f95a1913d69f
BLAKE2b-256 checksum
How to use checksums
ba2fdbb37be5da2719ba3a2aa5a8da18e1884d7337e95289034a9c6df54a992e
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 Aug 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.2.0b2 This release

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.4.15

2 release files

1.4.14

2 release files

1.4.13

2 release files

1.4.12

2 release files

1.4.11

2 release files

1.4.10

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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