Skip to main content

agnpy

Modelling Active Galactic Nuclei radiative processes with python.
astropy

description

agnpy focuses on the numerical computation of the photon spectra produced by leptonic radiative processes in jetted Active Galactic Nuclei (AGN).

agnpy binder

Run this repository in binder
Binder

acknowledging and citing agnpy

As a general acknowledgment of agnpy usage, we recommend citing the agnpy release paper. Additionally, to specify which version of agnpy is being used, that version's zenodo record can be cited. We recommend citing both.

At the following links you can find:

documentation and quickstart

You are invited to check the documentation at https://agnpy.readthedocs.io/en/latest/.
To get familiar with the code you can run the notebooks in the tutorials section of the documentation.

dependencies

The only dependencies are:

  • numpy managing the numerical computation;

  • astropy managing physical units and astronomical distances.

  • matplotlib for visualisation and reproduction of the tutorials.

  • scipy for interpolation

installation

The code is available in the python package index and can be installed via pip

pip install agnpy

The code can also be installed using conda

conda install -c conda-forge agnpy

tests

A test suite is available within each agnpy module directory. To run the tests just type pytest in the main directory of the cloned repository.

shields

CI test

Upload to PIP

Documentation Status

Metadata

Release files for agnpy 0.5.1

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

Source distribution (sdist)

Source distribution for agnpy 0.5.1
File Size Uploaded Provenance
agnpy-0.5.1.tar.gz 4.1 MB With provenance Details

Built distribution (wheel)

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

Total release size: 8.3 MB

Release files / agnpy-0.5.1.tar.gz

Download URL agnpy-0.5.1.tar.gz
Size 4.1 MB
Tags Source
SHA-256 checksum
How to use checksums
f44440b78726c24a1a7f0e2e54cbcd676289d1a11dd689310c9e2606583e770b
BLAKE2b-256 checksum
How to use checksums
e60ae18a7347f5a88ac9869ca0fbb6ba0fcdf9d65753ffa118074bffcac9f059
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 13, 2026.

Transparency log

Release files / agnpy-0.5.1-py3-none-any.whl

Download URL agnpy-0.5.1-py3-none-any.whl
Size 4.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
738a170fda07df2e470fbad83adba805a816cd7ac656bbaffc2dffc51e9fdaf9
BLAKE2b-256 checksum
How to use checksums
7c3bfc6bd7d88532310cbc75bcc17b03e6d4d0f5359a98f5ba8afb9ee38351de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 13, 2026.

Transparency log

Security for agnpy 0.5.1

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.

Select from 2 files

Attestation for agnpy-0.5.1.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 13, 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.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files Full provenance

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