Skip to main content

astromodels

CI codecov Documentation Status License GitHub contributors DOI

GitHub pull requests GitHub issues

PyPi

PyPI version fury.io PyPI - Downloads

Conda

Conda Conda

alt text

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)

Source distribution for astromodels 2.6.0
File Size Uploaded
astromodels-2.6.0.tar.gz 2.2 MB 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 log

Release history Release notifications | RSS feed

This release

2.6.0 This release

1 release file

2.5.1

1 release file

2.5.0

1 release file

2.4.3

1 release file

2.4.2

1 release file

2.4.1

1 release file

2.4.0

1 release file

2.3.9

1 release file

2.3.8

1 release file

2.3.7

1 release file

2.3.6

1 release file

2.3.5

1 release file

2.3.1

1 release file

2.3.0

1 release file

2.2.4

1 release file

2.2.3

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.8

1 release file

2.1.7

1 release file

2.1.6

1 release file

2.1.5

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

0.5.1

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

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