A NASA Astronomy Picture of the Day CLI tool.
Project description
Astra
NASA's Astronomy Picture of the Day, rendered directly in your terminal.
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
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 info # Full explanation of last viewed APOD
astra config --show # Show current configuration
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 --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.1.0.tar.gz
(10.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astra_apod-0.1.0.tar.gz.
File metadata
- Download URL: astra_apod-0.1.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82816177556a5a376bdcf41d16b8469ff184c2b744147f59cfbb06b43dfcbc44
|
|
| MD5 |
be23e4c99231a95ab2a8a9985abd3331
|
|
| BLAKE2b-256 |
472cd79b831fe8b927a2db0c070534206475a4bf2980228adb5acac2a818683e
|
File details
Details for the file astra_apod-0.1.0-py3-none-any.whl.
File metadata
- Download URL: astra_apod-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aa57a4c575ea04b9ccb3fffdf6dbdeab1f6e5411c21832b14c2fffd0bfdf84a
|
|
| MD5 |
ae952edcaa2d1302b2bb572ccb3d8810
|
|
| BLAKE2b-256 |
108a128d27e9ba3d0935291f975504e74894f6d985e444ff0bb6a749e78386c1
|