arXiv(opens in a new tab)Computer ScienceAug 2022

Manuscript Offprint

arXiv:2206.14220

The Astropy Project: Sustaining and Growing a Community-oriented Open-source Project and the Latest Major Release (v5.0) of the Core Package*

Adrian M. Price-Whelan, Pey Lian Lim, N. Earl, Nathaniel Starkman, Larry Bradley, David L. Shupe, Aarya A. Patil, Lía Corrales, C. E. Brasseur, Maximilian Nöthe, Axel Donath, Erik J. Tollerud, Brett M. Morris, Adam G. Ginsburg, Eero Vaher, Benjamin Alan Weaver, James Tocknell, William Jamieson, M. H. van Kerkwijk, Thomas Robitaille, Bruce Merry, Matteo Bachetti, Hans Moritz Günther, Paper Authors, Thomas L. Aldcroft, Jaime A. Alvarado-Montes, Anne M. Archibald, Attila Bódi, Shreyas Bapat, Geert Barentsen, Juanjo Bazán, Manish Biswas, Médéric Boquien, D. J. Burke, Daria Cara, Mihai Cara, Kyle E. Conroy, Simon Conseil, Matthew Craig, Robert M. Cross, Kelle L. Cruz, Francesco D’Eugenio, Nadia Dencheva, Hadrien A. R. Devillepoix, Jörg P. Dietrich, Arthur Davis Eigenbrot, T. Erben, Leonardo Ferreira, Daniel T. Foreman-Mackey, Ryan Fox, Nabil Freij, Suyog Garg, Robel Geda, Lauren Glattly, Yash Gondhalekar, Karl D. Gordon, David Grant, P. Greenfield, Austen M. Groener, Steve Guest, S. Gurovich, R. Handberg, Akeem Hart, Zac Hatfield-Dodds, D. Homeier, G. Hosseinzadeh, Tim Jenness, Craig K. Jones, P. Joseph, John Bryce Kalmbach, E. Karamehmetoglu, Mikołaj Kałuszyński, Michael S. P. Kelley, Nicholas S. Kern, Wolfgang Kerzendorf, Eric W. Koch, Shankar Kulumani, Antony Lee, Chun Ly, Zhiyuan Ma, C. D. MacBride, Jakob M. Maljaars, Demitri Muna, N. A. Murphy, Henrik Norman, Richard O’Steen, Kyle A. Oman, Camilla Pacifici, S. Pascual, J. Pascual-Granado, Rohit R. Patil, Gabriel I. Perren, Timothy E. Pickering, Tanuj Rastogi, Benjamin R. Roulston, Daniel F. Ryan, Eli S Rykoff, J. Sabater, Parikshit Sakurikar, Jesús Salgado

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The Astropy Project supports and fosters the development of open-source and openly developed Python packages that provide commonly needed functionality to the astronomical community. A key element of the Astropy Project is the core package astropy, which serves as the foundation for more specialized projects and packages. In this article, we summarize key features in the core package as of the recent major release, version 5.0, and provide major updates for the Project. We then discuss supporting a broader ecosystem of interoperable packages, including connections with several astronomical observatories and missions. We also revisit the future outlook of the Astropy Project and the current status of Learn Astropy. We conclude by raising and discussing the current and future challenges facing the Project.

\NewPageAfterKeywords

Section I Introduction

The Python programming language is a high-level, interpreted (as opposed to compiled) programming language that has become an industry standard across many computational domains, technological sectors, and fields of research. This recent and rapid adoption of Python stems from the fact that it enables scalable, time- and energy-efficient code execution [7, e.g.,] with a focus on code readability, ease of use, and interoperability with other languages. Over the last decade, Python has grown enormously in popularity to become a dominant programming language, especially in the astronomical and broader scientific communities. For example, Figure 1 shows the number of yearly full-text mentions of Python as compared to a selection of other programming languages in refereed articles in the astronomical literature, demonstrating its nearly exponential growth in popularity. The adoption of Python by astronomy researchers, students, observatories, and technical staff combined with an associated increase in awareness and interest about open-source software tools is contributing to a paradigm shift in the way research is done, data is analyzed, and results are shared in astronomy and beyond.

One of the factors that has led to its rapid ascent in popularity in scientific contexts is the combination of volunteer-driven and professionally-supported effort behind developing community-oriented open-source software tools and fostering communities of users and developers that have grown around these efforts. Today, a broad and feature-diverse “ecosystem” of packages exists in the Python scientific computing landscape: roughly ordered from general-use to domain-specific, this landscape now includes packages that provide core numerical analysis functionality like numpy [43] and scipy [90], visualization frameworks like matplotlib [45], machine learning and data analysis packages like tensorflow [1], pymc3 [74], and emcee [32], domain-specific libraries like yt [86], plasmapy [23], sunpy [83], Biopython [22], and sympy [56] (to name a few in each category). The astropy [5, 6] core package began in this vein, as an effort to consolidate the development of commonly used functionality needed to perform astronomical research into a community-developed Python package.

The astropy core package was one of the first large, open-source Python packages developed for astronomy and provides, among other things, software functionality for reading and writing astronomy-specific data formats (e.g., FITS), transforming and representing astronomical coordinates, and representing and propagating physical units in code. An early description of the core functionality in astropy can be found in the first Astropy paper [5] or in detail in the core package documentation. The codebase in the astropy core package is now largely stable, in that the software interface does not change without sufficient and significant motivation, and the addition of new features into the core package has slowed as compared to the first years of its development. This is largely driven by the fact that the core package now represents just one piece of the broader astronomy Python context, and new feature development is now happening in more specialized packages that are expanding the capabilities of the Astropy ecosystem by building on top of the foundations laid by the astropy core package. Because of this natural expansion, the name Astropy has grown in scope beyond a single Python library to become “the Astropy Project.”

Figure 1: Yearly full-text mentions of programming languages (indicated in the figure legend) in refereed publications in the astronomical literature database in the Astrophysics Data System (ADS). Python has rapidly become the dominant programming language mentioned in refereed articles over the last 10 years.

The Astropy Project is a community effort that represents the union of the astropy core package, the ecosystem of astronomy-specific software tools that are interoperable with astropy (Astropy Coordinated and Affiliated Packages), and the community of users, developers, and maintainers that participate in Astropy efforts. However, there is no single institution responsible for managing the Astropy Project, for funding or maintaining its development, or sustaining it into the future: The Project is maintained and coordinated by both volunteers and contributors who are primarily paid for other reasons (i.e., Astropy work is just a means to an end). While new Astropy-affiliated packages are being developed that expand upon the core functionality in the astropy package, representing a natural expansion of the Astropy Project ecosystem, the needs of and challenges faced by the Project are evolving. In particular, fostering the development of the community and its expansion has been an additional key goal of the Astropy Project over the last several years.

In this Article, we briefly describe recent key updates in the astropy core package since the last Astropy paper (“Paper II”; Astropy Collaboration et al. 6), major updates in the governance, contributor base, and funding of the Project, and discuss some of the future plans and challenges faced by the Astropy Project.

References (85)