AstroPhot is a fast, flexible, and principled astronomical image modelling tool for precise parallel multi-wavelength/epoch photometry. It is a python based package that uses PyTorch or JAX to quickly and efficiently perform analysis tasks. Written by Connor Stone for tasks such as LSB imaging, handling crowded fields, multi-band photometry, and analyzing massive data from future telescopes. AstroPhot is flexible and fast for any parametric astronomical image modelling task. While it uses PyTorch and/or JAX (originally developed for Machine Learning) it is NOT a machine learning based tool. In fact AstroPhot very rigidly sticks to Gaussian/Poisson likelihood modelling (with extensions for priors if desired).
AstroPhot is now a caskade ecosystem project, meaning its parameters have an incredible amount of flexibility. Check out the documentation for more details!
Installation
AstroPhot can be installed with pip:
pip install astrophot
If PyTorch gives you any trouble on your system, just follow the instructions on the pytorch website to install a version for your system.
Also note that AstroPhot is only available for python3.
See the documentation for more details.
Documentation
You can find the documentation at the ReadTheDocs site connected with the AstroPhot project which covers many of the main use cases for AstroPhot. There is tons of useful information in there, hopefully you can mix and match tutorials to get to just about any parametric image modelling task quickly! Feel free to contact the author, Connor Stone, for any questions not answered by the documentation or tutorials.
Credit / Citation
If you use AstroPhot in your research, please follow the citation instructions here.
Thanks to our contributors!
Metadata
Release files for astrophot 0.18.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 |
|---|---|---|---|---|
| astrophot-0.18.0.tar.gz | 551.3 kB | With provenance | Details for astrophot-0.18.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astrophot-0.18.0-py3-none-any.whl | Python 3 | none | any | Details for astrophot-0.18.0-py3-none-any.whl |
Total release size: 744.9 kB
Release files / astrophot-0.18.0.tar.gz
| Download URL | astrophot-0.18.0.tar.gz |
|---|---|
| Size | 551.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3161fca908db305f04e7f1d16f26314d66677d1327e4f474c92147ae9ff8072
|
|
BLAKE2b-256 checksum How to use checksums |
305e445b6769310a9596751060a65a49eb0570e31f76de25ba87265830aea1a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 25, 2026.
Transparency logRelease files / astrophot-0.18.0-py3-none-any.whl
| Download URL | astrophot-0.18.0-py3-none-any.whl |
|---|---|
| Size | 193.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
080032e2802f62a303573f56a94b3876b69d351614701674deddea9f24ebcda9
|
|
BLAKE2b-256 checksum How to use checksums |
5a188e585907f26881e8beef3e80b738b3d38c048112a33ba2633b723caf5832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 25, 2026.
Transparency logSecurity for astrophot 0.18.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for astrophot-0.18.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 Jun 25, 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.