Skip to content
A collection of astronomy-related routines in Python
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Reverse thermal broadening May 16, 2019
.gitignore ignoring .so files Mar 28, 2013
MANIFEST.in_template Preparing 0.8.0 release Feb 26, 2015 Account for occult Jul 12, 2018
Releases.txt PyAstronomy for git Feb 5, 2013
requirements.txt Lifting sphinx version requirement Aug 17, 2018 Add and classify package with licence. Aug 28, 2018


What is it?

PyAstronomy is a collection of astronomy-related packages written in Python.

Currently, the following subpackages are available:

funcFit:    A convenient fitting package providing support
            for minimization and MCMC sampling.

modelSuite: A Set of astrophysical models (e.g., transit
            light-curve modeling), which can be used
            stand-alone or with funcFit.

AstroLib:   A set of useful routines including a number
            of ports from IDL's astrolib.

Constants:  The package provides a number of often-needed

Timing:     Provides algorithms for timing analysis such as
            the Lomb-Scargle and the Generalized Lomb-Scargle

pyaGUI:     A collection of GUI tools for interactive work.


To install the latest release via pip from PyPI use

pip install PyAstronomy[occult]


pip install git+[occult]

to install the current state from github including non-Python dependencies. Remove [occult] to skip these dependencies.

Alternatively, download the source and use

python [--with-ext] install

If you specify the --with-ext flag, setup will try to compile non-Python modules.

Documentation and further information

View the latest documentation on Read the Docs

Visit the documentation of the latest release:


Where not stated otherwise, PyAstronomy is released under the MIT license (see also documentation).

You can’t perform that action at this time.