Skip to main content

A NASA Astronomy Picture of the Day CLI tool.

Project description

Astra

NASA's Astronomy Picture of the Day, rendered directly in your terminal.

APOD 2026-01-31

Features

  • Auto-detected graphics: Kitty protocol, SIXEL, or block-character fallback
  • Cross-platform: Windows, Linux, macOS
  • Works with Windows Terminal, Ghostty, Kitty, WezTerm, Alacritty, and more
  • Terminal greeter — show today's APOD when you open your shell
  • Browse by date, view random APODs, read full explanations
  • Search all APOD titles from APOD Archive
  • Save HD images of APODs
  • Works out of the box with DEMO_KEY

Install

pip install astra-apod

Usage

astra                              # Today's APOD
astra today                        # Same as above
astra date 2021-08-14              # APOD for a specific date
astra random                       # Random APOD 
astra search <title>               # Search APOD archive by title 
astra info                         # Full explanation of last viewed APOD
astra save                         # Save last viewed APOD

Configuration

astra config --show                # Show current configuration
astra config --api-key <key>       # Set NASA API key
astra config --size full           # Full terminal width image
astra config --size default        # 60% terminal width image 
astra config --bg "#0c0c0c"        # Set background color manually
astra config --save-dir <path>     # Set default save directory
astra config --clear-cache         # Clear cached images
astra config --reset               # Reset all settings to defaults

Terminal Greeter

Auto-display today's APOD when you open your terminal:

astra config --greeter on --shell cmd          # CMD (Windows)
astra config --greeter on --shell powershell   # PowerShell (Windows)
astra config --greeter on --shell bash         # Bash (Linux/macOS)
astra config --greeter on --shell zsh          # Zsh (Linux/macOS)
astra config --greeter on --shell fish         # Fish (Linux/macOS)

Control how often it runs:

astra config --greeter-freq daily    # Once per day (default)
astra config --greeter-freq always   # Every terminal open

Disable it:

astra config --greeter off --shell <shell>

Built with

Python · Typer · Rich · Pillow · NumPy

License

MIT © 2026 Asutosh Shrestha

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astra_apod-0.2.1.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astra_apod-0.2.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file astra_apod-0.2.1.tar.gz.

File metadata

  • Download URL: astra_apod-0.2.1.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for astra_apod-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b05c5744b7dcc1ccf4096f3704f2b362a9dba6037dd39316a2dc972ea464e5a5
MD5 0112af25b4942d10302799d1e260a93a
BLAKE2b-256 6fc46a4c3c806b212a768680882f637f39b95c1e45e60fb28d2bb338fa6630e8

See more details on using hashes here.

File details

Details for the file astra_apod-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: astra_apod-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for astra_apod-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86b29d14717ef5564060c4dcd01231206df51ea8914b933968c1fbabaada8e8d
MD5 97fcb560ff8e22ebd29618c5e4595edf
BLAKE2b-256 c1ffdcd9138be3bb2e77549b1ab35febbb2ea9fdd468a67de7b66c0e69e5cfc2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page