Skip to main content

astropy PyPI - Python Version PyPI Actions Status GitHub Actions Workflow Status Project Status: Active – The project has reached a stable, usable state and is being actively developed. Codecov Ruff pyOpenSci ascl:2306.012 DOI DOI


ZodiPy is an Astropy affiliated package for simulating zodiacal light in intensity for arbitrary solar system observers.

plot

Documentation

See the documentation for a list of supported zodiacal light models and examples of how to use ZodiPy.

A simple example

import astropy.units as u
from astropy.coordinates import SkyCoord
from astropy.time import Time

import zodipy

# Initialize a zodiacal light model at a wavelength/frequency or over a bandpass
model = zodipy.Model(25 * u.micron)

# Use Astropy's `SkyCoord` object to specify coordinates
lon = [10, 10.1, 10.2] * u.deg
lat = [90, 89, 88] * u.deg
obstimes = Time(["2022-01-01 12:00:00", "2022-01-01 12:01:00", "2022-01-01 12:02:00"])
skycoord = SkyCoord(lon, lat, obstime=obstimes, frame="galactic")

# Evaluate the zodiacal light model
emission = model.evaluate(skycoord)

print(emission)
# > [27.52410841 27.66572294 27.81251906] MJy / sr

Related scientific papers

See CITATION

Install

ZodiPy is installed with pip

pip install zodipy

Dependencies

ZodiPy supports all Python versions >= 3.9, and has the following dependencies:

For developers

Poetry

ZodiPy uses Poetry for development. To build and commit to the repository with the existing pre-commit setup, developers need to have Poetry (>= 1.8.0) installed. See the Poetry documentation for installation guide.

After poetry has been installed, developers should create a new virtual environment and run the following in the root of the ZodiPy repositry

poetry install

This will download all dependencies (including dev)from pyproject.toml, and poetry.lock.

Tests, linting and formatting, and building documentation

The following tools should be run from the root of the repository with no errors. (These are ran automatically as part of the CI workflows on GitHub, but should be tested locally first)

pytest

Testing is done with pytest. To run the tests, run the following command from the repository root

pytest

ruff

Formating and linting is done with ruff. To format and lint, run the following command from the repository root

ruff check
ruff format

mypy

ZodiPy is fully typed. We use mypy as a static type checker. To type check, run the following command from the repositry root

mypy zodipy/

Remeber to add tests when implementing new features to maintain a high code coverage.

MkDocs

We use MkDocs to create our documentation. To serve the docs locally on you machine, run the following from the repositry root

mkdocs serve

Releasing to PyPI

To release a new package to PyPI, simply create a new release. Be sure to have bumped the version appropriatly in pyproject.toml beforehand.

Funding

This work has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No 776282 (COMPET-4; BeyondPlanck), 772253 (ERC; bits2cosmology) and 819478 (ERC; Cosmoglobe).

 

Metadata

Release files for zodipy 1.1.5

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

Source distribution (sdist)

Source distribution for zodipy 1.1.5
File Size Uploaded
zodipy-1.1.5.tar.gz 36.7 kB Details

Built distribution (wheel)

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

Total release size: 74.5 kB

Release files / zodipy-1.1.5.tar.gz

Download URL zodipy-1.1.5.tar.gz
Size 36.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d70c2dbf206393268d62ef8798bd43c1f001b094fdd77583ec1a6b0b1c295cdf
BLAKE2b-256 checksum
How to use checksums
5586611a77a69868dd781a764c396bcc74272a35df0df6d8ada0b32a46a8b4d7
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 19, 2026.

Transparency log

Release files / zodipy-1.1.5-py3-none-any.whl

Download URL zodipy-1.1.5-py3-none-any.whl
Size 37.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f716c4432c5bbcbaf63f78e56c6c8cc9e1054a8af01051a6f33a8d50b9f98faf
BLAKE2b-256 checksum
How to use checksums
c066cec30db61431f9a3a997d98731e335773cc1016f85190ef57d475c0afdea
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 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.5 This release

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.0

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.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