Astropy: a community Python library for Astronomy

The Astropy Project is a community effort to develop a common core package for Astronomy in Python and foster an ecosystem of interoperable astronomy packages.

The Astropy community is committed to supporting diversity and inclusion.

Please remember to acknowledge and cite the use of Astropy!

What's new in Astropy 7.0

Congratulations to all Astropy contributors

The Astropy Project has been awarded the Lancelot M. Berkeley–New York Community Trust Prize for Meritorious Work in Astronomy for 2025 and the first Astropy paper had reached 10k citations!

Install Astropy

There are a number of ways of installing the latest release of the astropy core package. If you normally use pip to install Python packages, you can do:

pip install astropy[recommended] --upgrade
The astropy core package is also available in a number of other package managers, so be sure to check your preferred one!

Please see the astropy installation guide for important details. This guide covers creating a Python environment, installing with pip or conda, building from source, requirements, and testing.

Learn Astropy

You can explore the functionality available in Astropy by checking out the Example Gallery, Tutorials, and Documentation.

Example Gallery Tutorials Documentation

Get Help

If you have any questions regarding using Astropy there are numerous channels for communication. Post to any one of several forums to get help from our active, helpful, and friendly community of users and developers.

Get Help

Report bugs and Contribute

If you encounter something you believe to be a mistake, error, or bug, the best way to get it addressed is to report it on the github issue tracker. If you aren't sure if something is a bug or not, or if you don't have a Github account, feel free to ask on one of the forums. If you believe you know how to fix the problem, please consider contributing!

Report issues Contribute

Support Astropy

If you use Astropy in your work, we would be grateful if you could include an acknowledgment in papers and/or presentations. See Acknowledging & Citing Astropy for details.

You can also purchase apparel and trinkets from fashion.astropy.org, and a portion of the profits go to support the project!

If you are interested in directly financially supporting Astropy (either one-time or recurring), you can do so via our fiscal sponsor NumFOCUS:

Donate to Astropy

Awards

Zenodo community

Documents, notes from previous meetings, and talks about Astropy are collected in a Zenodo community for long-term archiving. Everyone is encouraged to submit talks, etc. and other relevant materials.

Zenodo community