Python Astronomy

Open-source Python projects categorized as Astronomy

Top 23 Python Astronomy Projects

  • astropy

    Astronomy and astrophysics core library

    Project mention: [R] Astronomia ex machina: a history, primer and outlook on neural networks in astronomy | /r/MachineLearning | 2023-05-31
  • apod-api

    Astronomy Picture of the Day API service

    Project mention: Building APOD color search part I: Image analysis in Rust | | 2023-02-23

    Processing a single APOD is one thing, but the end goal is to process all of them. The cleanest way to group batches of days was by month. As the apod-api supports start_date and end_date parameters to support this, I just used the first and last days of the month for these parameters.

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • asdf

    ASDF (Advanced Scientific Data Format) is a next generation interchange format for scientific data (by asdf-format)

    Project mention: Advanced Scientific Data Format | /r/patient_hackernews | 2022-10-05
  • termtrack

    Track satellites in your terminal

  • pycbc

    Core package to analyze gravitational-wave data, find signals, and study their parameters. This package was used in the first direct detection of gravitational waves (GW150914), and is used in the ongoing analysis of LIGO/Virgo data.

  • GalSim

    The modular galaxy image simulation toolkit. Documentation:

    Project mention: Day 4: GitHub Actions for Colombian Spanish. | | 2022-12-03

    The first I encountered was GalSim. As it turned out the GitHub link included in the distribution was incorrect and that's why PyDigger reported it as having GitHub link but not CI on GitHub. So I sent a Pull-Request fixing that.

  • stingray

    Anything can happen in the next half hour (including spectral timing made easy)!

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • PyAutoLens

    PyAutoLens: Open Source Strong Gravitational Lensing

  • Virgo

    📡 Virgo: A Versatile Spectrometer for Radio Astronomy

    Project mention: Kindly help me setup a radio telescope with my current inventory | /r/RTLSDR | 2022-07-03
  • OpenNGC

    A license friendly NGC/IC objects database

  • astronify

    Astronomical data sonification.

  • landsat8image

    A simple python script that, given a location and a date, uses the Nasa Earth API to show a photo taken by the Landsat 8 satellite. The script must be executed on the command-line.

  • ha_skyfield

    See the apparent positions of the Sun, Moon, and planets in this home assistant custom component

    Project mention: Building an E-Ink weather display for our home | | 2022-11-13

    Sweet, very nice.

    I made a 'skyfield' widget for home assistant that shows the current position of the sun, moon and some planets as well as the summer and winter solstice paths. I really think it would be awesome for an e-ink display in the home. I've been planning to kick off that project at some point. This is inspiring.

  • PyAztro

    Python Wrapper for aztro - The Astrology API | Get Daily Horoscope 💫

  • H-line-software

    Software for receiving the hydrogen line at 1420.4MHz with an RTL-SDR dongle

    Project mention: Need Help Interpreting H-line 3D Corner Antenna Signal | /r/radioastronomy | 2023-05-24

    You'll find the H-line-software on : There is a requirements.txt file which will install the necessary Python packages. Python3 is afaik also available on github. But you can just google 'Python3 download'.

  • thor

    Tracklet-less Heliocentric Orbit Recovery (by moeyensj)

    Project mention: NASA’s Double Asteroid Redirection Test Is a Smashing Success | | 2023-01-14

    Hi, I work on N-body orbit determination software for asteroid detection and planetary defense (for example, Ask me anything.

    You're right that orbit determination is unstable over long runs, and very sensitive to initial conditions. But the good news is that the solar system is big. Most trajectories do not intersect with the earth's location. So perturbing an orbit that we think has a small chance of hitting us tends to be safe.

    Also, of course, after deflection, any object is going to be monitored really closely for a long time.

  • Luminet

    This repo provides material for recreating the famous paper by Jean-Pierre Luminet (1979), simulating the first image of a Schwarzschild black hole.

    Project mention: A black hole created in Python! This is what the accretion disk looks like as it orbits a neutrally charged, static black hole | /r/DataArt | 2022-06-05

    You can find the repo at

  • rpn

    RPN command-line calculator

  • curvit

    Create light curves from UVIT data.

  • hips

    Python library to handle HiPS (by hipspy)

  • lentil

    Heart-healthy physical optics

    Project mention: Books/ other resources to learn about Fraunhofer diffraction farfield model using MATLAB/python? | /r/Optics | 2023-05-11
  • SolarGUI

    A GUI program which will contain information about solar system (any maybe other things).

    Project mention: SolarGUI: A GUI app for solar system information in python | /r/PythonProjects2 | 2022-06-27
  • fetchAPOD


    Project mention: fetchAPOD - download daily/random APOD, set wallpaper, crop to aspect ratio, create thumbnail gallery, run on time interval. | /r/space | 2023-03-13

    All the code and a compiled exe installer is available on GitHub:

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-05-31.

Python Astronomy related posts


What are some of the best open-source Astronomy projects in Python? This list will help you:

Project Stars
1 astropy 3,799
2 apod-api 631
3 asdf 470
4 termtrack 461
5 pycbc 273
6 GalSim 190
7 stingray 145
8 PyAutoLens 136
9 Virgo 109
10 OpenNGC 80
11 astronify 58
12 landsat8image 42
13 ha_skyfield 38
14 PyAztro 33
15 H-line-software 32
16 thor 30
17 Luminet 26
18 rpn 23
19 curvit 15
20 hips 11
21 lentil 10
22 SolarGUI 3
23 fetchAPOD 1
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives