astromodels
PyPi
Conda
Astromodels is a very flexible framework to define models for likelihood or Bayesian analysis of astrophysical data.
Even though it has been designed having in mind analysis in the spectral domain, it can be used also as a toolbox containing functions of any variable.
Astromodels is not a modeling package, it only gives you the tools to build a model as complex as you need. You then need a separate package (such as 3ML) to fit that model to the data.
Some of the features which distinguish astromodels from other similar packages are:
- a model can contain an arbitrary number of sources at different positions in the sky
- parameters can be linked through any function (not only identity)
- parameters can vary with auxiliary variables such as time. For example, you can build a model where some parameters vary with time, and you can fit the parameters of the function which describe this variability. Similary you can build models where parameters vary with the phase of a pulsar, and so on.
- models can be saved in and loaded from YAML file (a human-readable format)
- physical units are fully supported in input, but they are handled so that they don’t slow down the actualy computation of the models.
Astromodels has been designed with performance as priority, and is considerably faster than other python-based solution for the same problem, such as astropy.modeling and the modeling part of sherpa.
Documentation: https://astromodels.readthedocs.org/en/latest/
Metadata
Release files for astromodels 2.6.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 | |
|---|---|---|---|---|
| astromodels-2.6.0.tar.gz | 2.2 MB | With provenance | Details |
Release files / astromodels-2.6.0.tar.gz
| Download URL | astromodels-2.6.0.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e9e3a277b24eded7a4e7149857df0be4abe70921a219c15a4d55dc1a935e13e
|
|
BLAKE2b-256 checksum How to use checksums |
afc3680fa033c86cf0fce4b4414363c84d39f02c3248afc44d1c030e3a9b471b
|
| 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 3, 2026.
Transparency logSecurity for astromodels 2.6.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 1 file in this release has been uploaded with provenance metadata.
Attestation for astromodels-2.6.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 Aug 3, 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.