astropy

Astronomy and astrophysics core library

163 个版本 Python >=3.11
安装
pip install astropy
poetry add astropy
pipenv install astropy
conda install astropy
描述

|Astropy Logo|

:Versions: |Zenodo| |PyPI Status| |Supported Python Versions| :Status: |Coverage Status| |Actions Status| |CircleCI Status| |Documentation Status| :Tools: |Pre-Commit| |Ruff| :Community: |pyOpenSci Peer-Reviewed|

The Astropy Project is a community effort to develop a single core package for astronomy in Python and foster interoperability between packages used in the field. This repository contains the core library.

  • Website <https://astropy.org/>_
  • Documentation <https://docs.astropy.org/>_
  • Slack <https://astropy.slack.com/>_
  • Open Astronomy Discourse <https://community.openastronomy.org/c/astropy/8>_
  • Astropy users mailing list <https://mail.python.org/mailman/listinfo/astropy>_
  • Astropy developers mailing list <https://groups.google.com/g/astropy-dev>_

Installation

To install astropy from PyPI, use:

.. code-block:: bash

pip install astropy

For more detailed instructions, see the install guide <https://docs.astropy.org/en/stable/install.html>_ in the docs.

Contributing

|User Stats|

The Astropy Project is made both by and for its users, so we welcome and encourage contributions of many kinds. Our goal is to keep this a positive, inclusive, successful, and growing community that abides by the Astropy Community Code of Conduct <https://www.astropy.org/about.html#codeofconduct>_.

For guidance on contributing to or submitting feedback for the Astropy Project, see the contributions page <https://www.astropy.org/contribute.html>. For contributing code specifically, the developer docs have a guide <https://docs.astropy.org/en/latest/index_dev.html> with a quickstart. There's also a summary of contribution guidelines <CONTRIBUTING.md>, and Astropy's AI Policy <https://github.com/astropy/astropy-project/blob/main/policies/ai-policy.md>.

Developing with Codespaces

GitHub Codespaces is a cloud development environment using Visual Studio Code in your browser. This is a convenient way to start developing Astropy, using our dev container <.devcontainer/devcontainer.json>_ configured with the required packages. For help, see the GitHub Codespaces docs <https://docs.github.com/en/codespaces>_.

|Codespaces|

Acknowledging and Citing

See the acknowledgement and citation guide <https://www.astropy.org/acknowledging.html>_ and the CITATION <https://github.com/astropy/astropy/blob/main/astropy/CITATION>_ file.

Supporting the Project

|NumFOCUS| |Donate|

The Astropy Project is sponsored by NumFOCUS, a 501(c)(3) nonprofit in the United States. You can donate to the project by using the link above, and this donation will support our mission to promote sustainable, high-level code base for the astronomy community, open code development, educational materials, and reproducible scientific research.

License

Astropy is licensed under a 3-clause BSD style license - see the LICENSE.rst <LICENSE.rst>_ file.

.. |Astropy Logo| image:: https://github.com/astropy/repo_stats/blob/main/dashboard_template/astropy_banner_gray.svg :target: https://www.astropy.org/ :alt: Astropy

.. |User Stats| image:: https://github.com/astropy/repo_stats/blob/cache/cache/astropy_user_stats_light.png :target: https://docs.astropy.org/en/latest/impact_health.html :alt: Astropy User Statistics

.. |Actions Status| image:: https://github.com/astropy/astropy/actions/workflows/ci_workflows.yml/badge.svg :target: https://github.com/astropy/astropy/actions :alt: Astropy's GitHub Actions CI Status

.. |CircleCI Status| image:: https://img.shields.io/circleci/build/github/astropy/astropy/main?logo=circleci&label=CircleCI :target: https://circleci.com/gh/astropy/astropy :alt: Astropy's CircleCI Status

.. |Coverage Status| image:: https://codecov.io/gh/astropy/astropy/branch/main/graph/badge.svg :target: https://codecov.io/gh/astropy/astropy :alt: Astropy's Coverage Status

.. |PyPI Status| image:: https://img.shields.io/pypi/v/astropy.svg :target: https://pypi.org/project/astropy :alt: Astropy's PyPI Status

.. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/astropy :target: https://pypi.org/project/astropy :alt: Supported Python Versions of latest released astropy

.. |Zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4670728.svg :target: https://doi.org/10.5281/zenodo.4670728 :alt: Zenodo DOI

.. |Documentation Status| image:: https://img.shields.io/readthedocs/astropy/latest.svg?logo=read%20the%20docs&logoColor=white&label=Docs&version=stable :target: https://docs.astropy.org/en/stable/?badge=stable :alt: Documentation Status

.. |Pre-Commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white :target: https://github.com/pre-commit/pre-commit :alt: pre-commit

.. |Ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json :target: https://github.com/astral-sh/ruff :alt: Ruff

.. |NumFOCUS| image:: https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A :target: https://numfocus.org :alt: Powered by NumFOCUS

.. |Donate| image:: https://img.shields.io/badge/Donate-to%20Astropy-brightgreen.svg :target: https://numfocus.org/donate-to-astropy

.. |Codespaces| image:: https://github.com/codespaces/badge.svg :target: https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=2081289 :alt: Open in GitHub Codespaces

.. |pyOpenSci Peer-Reviewed| image:: https://pyopensci.org/badges/peer-reviewed.svg :target: https://github.com/pyOpenSci/software-review/issues/251 :alt: pyOpenSci Peer-Reviewed

版本列表
8.0.0 2026-06-16
8.0.0rc2 2026-06-12
8.0.0rc1 2026-05-26
8.0.0b1 2026-05-16
7.2.1 2026-06-16
7.2.0 2025-11-25
7.2.0rc2 2025-11-17
7.2.0rc1 2025-11-10
7.1.1 2025-10-10
7.1.0 2025-05-20
7.1.0rc1 2025-05-09
7.0.2 2025-05-12
7.0.1 2025-02-06
7.0.0 2024-11-22
7.0.0rc1 2024-11-06
6.1.7 2024-11-22
6.1.6 2024-11-11
6.1.5 2024-11-07
6.1.4 2024-09-26
6.1.3 2024-08-30
6.1.2 2024-07-23
6.1.1 2024-06-17
6.1.0 2024-05-04
6.1.0rc1 2024-04-04
6.0.1 2024-03-26
6.0.0 2023-11-27
6.0.0rc2 2023-11-22
6.0.0rc1 2023-11-09
5.3.4 2023-10-04
5.3.3 2023-09-07
5.3.2 2023-08-15
5.3.1 2023-07-06
5.3 2023-05-22
5.2.2 2023-03-28
5.2.1 2023-01-08
5.2 2022-12-12
5.2.dev0 2022-04-25
5.1.1 2022-10-23
5.1 2022-05-24
5.0.8 2023-09-07
5.0.7 2023-08-15
5.0.6 2023-03-28
5.0.5 2022-10-20
5.0.4 2022-03-31
5.0.3 2022-03-25
5.0.2 2022-03-10
5.0.1 2022-01-26
5.0 2021-11-19
5.3rc1 2023-05-05
5.2rc1 2022-12-01
5.1rc1 2022-04-28
5.0rc2 2021-11-10
5.0rc1 2021-11-02
4.3.1 2021-08-11
4.3 2021-07-26
4.3.post1 2021-07-26
4.2.1 2021-04-01
4.2 2020-11-25
4.1 2020-10-21
4.0.6 2021-08-24
4.0.6.dev27461 2021-08-24
4.0.5 2021-03-26
4.0.4 2020-11-25
4.0.3 2020-10-14
4.0.2 2020-10-10
4.0.1 2020-03-27
4.0.1.post1 2020-04-02
4.0 2019-12-17
4.3rc1 2021-06-18
4.2rc1 2020-11-07
4.1rc2 2020-09-16
4.1rc1 2020-05-25
4.0rc2 2019-12-16
4.0rc1 2019-11-19
3.2.3 2019-10-28
3.2.2 2019-10-08
3.2.1 2019-06-15
3.2 2019-06-10
3.1.2 2019-02-26
3.1.1 2019-01-03
3.1 2018-12-06
3.0.5 2018-10-18
3.0.4 2018-08-03
3.0.3 2018-06-02
3.0.2 2018-04-24
3.0.1 2018-03-13
3.0 2018-02-13
3.2rc2 2019-05-30
3.2rc1 2019-05-07
3.1rc2 2018-11-28
3.1rc1 2018-11-16
3.0rc2 2018-01-26
3.0rc1 2018-01-08
2.0.16 2019-10-27
2.0.15 2019-10-07
2.0.14 2019-06-15
2.0.13 2019-06-09
2.0.12 2019-02-24
2.0.11 2019-01-07
2.0.10 2018-12-06
2.0.9 2018-10-18
2.0.8 2018-08-03
2.0.7 2018-06-02
2.0.6 2018-04-24
2.0.5 2018-03-14
2.0.4 2018-02-06
2.0.3 2017-12-20
2.0.2 2017-09-12
2.0.1 2017-07-30
2.0 2017-07-07
2.0rc1 2017-06-27
1.3.3 2017-06-19
1.3.2 2017-05-08
1.3.1 2017-03-18
1.3 2017-01-15
1.2.2 2016-12-23
1.2.1 2016-06-24
1.2 2016-06-23
1.1.2 2016-03-10
1.1.1 2016-01-08
1.1 2015-12-14
1.1.post2 2015-12-21
1.1.post1 2015-12-17
1.0.13 2017-05-29
1.0.12 2017-03-05
1.0.11 2016-12-23
1.0.10 2016-06-09
1.0.9 2016-03-10
1.0.8 2016-01-09
1.0.7 2015-12-05
1.0.6 2015-10-22
1.0.5 2015-10-05
1.0.4 2015-08-11
1.0.3 2015-07-31
1.0.2 2015-04-16
1.0.1 2015-03-31
1.0 2015-02-18
1.3rc1 2016-12-13
1.2rc1 2016-06-11
1.1rc2 2015-12-07
1.1rc1 2016-06-11
1.1b1 2015-10-15
1.0rc2 2015-02-12
1.0rc1 2015-01-27
0.4.6 2015-05-29
0.4.5 2015-02-16
0.4.4 2015-01-21
0.4.3 2015-01-15
0.4.2 2014-09-23
0.4.1 2014-08-14
0.4 2014-07-16
0.3.2 2014-05-13
0.3.1 2014-03-04
0.3 2013-11-21
0.2.5 2013-10-25
0.2.4 2013-07-24
0.2.3 2013-05-30
0.2.2 2013-05-21
0.2.1 2013-04-03
0.2 2013-02-19
0.1 2013-01-26
0.4rc2 2014-07-12
0.4rc1 2014-07-09