Skip to main content

CLI tool to see what's visible in the night sky tonight

Project description

AstroSKY

A command-line tool that shows you what's visible in the night sky tonight.

Features

  • Moon phase - Current phase, illumination, and rise/set times
  • Visible planets - Which planets are up and where to look
  • ISS passes - Upcoming International Space Station flyovers for your location
  • Meteor showers - Active showers and peak dates
  • Deep sky objects - Visible Messier objects (galaxies, nebulae, clusters)
  • Astronomical events - Conjunctions, oppositions, moon phases, equinoxes, and solstices

Installation

# With pip
pip install astrosky
astrosky tonight --lat 40.7128 --lon -74.0060

# Or run directly with uvx (no install needed)
uvx astrosky tonight --lat 40.7128 --lon -74.0060

Quick Start

# Check the sky for a specific location
astrosky tonight --lat 40.7128 --lon -74.0060

# Save a location for easy reuse
astrosky location add home 40.7128 -74.0060 --default

# Now just run
astrosky tonight

Commands

astrosky tonight

Show what's visible in the night sky.

# Using coordinates
astrosky tonight --lat 40.7128 --lon -74.0060

# Using a saved location
astrosky tonight -l home

# For a specific date
astrosky tonight --date 2025-01-15

# At a specific time
astrosky tonight --at 22:30

# Show only specific sections
astrosky tonight --only planets,moon

# Exclude sections
astrosky tonight --exclude iss,meteors

# JSON output
astrosky tonight --json

Sections: moon, planets, iss, meteors, events, deepsky

astrosky events

Show upcoming astronomical events.

# Next 7 days (default)
astrosky events --lat 40.7128 --lon -74.0060

# Next 30 days
astrosky events --lat 40.7128 --lon -74.0060 --days 30

# Filter by event type
astrosky events --lat 40.7128 --lon -74.0060 --type moon
astrosky events --lat 40.7128 --lon -74.0060 --type conjunction

# JSON output
astrosky events --lat 40.7128 --lon -74.0060 --json

Event types: moon (full/new moon), conjunction, opposition, seasonal (equinoxes/solstices)

astrosky location

Manage saved observation locations.

# Add a location
astrosky location add home 40.7128 -74.0060

# Add and set as default
astrosky location add cabin 44.9778 -93.2650 --default

# List saved locations (* marks default)
astrosky location list

# Set default location
astrosky location set-default home

# Remove a location
astrosky location remove cabin

Locations are stored in ~/.config/astrosky/locations.json.

ISS Tracking

ISS pass predictions require a free API key from N2YO:

export N2YO_API_KEY=your-api-key
astrosky tonight

Without the API key, ISS passes will be skipped (other features work fine).

License

MIT

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

astrosky-0.2.0.tar.gz (16.0 MB view details)

Uploaded Source

Built Distribution

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

astrosky-0.2.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file astrosky-0.2.0.tar.gz.

File metadata

  • Download URL: astrosky-0.2.0.tar.gz
  • Upload date:
  • Size: 16.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for astrosky-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0877809651fa2173879391f4fba195849a4cbcbfc5411e5a4582b4a6525b1f01
MD5 bf058fcc235c6df07e63740547b6b987
BLAKE2b-256 fd0ae8e7f56c30b74cb2e47f5b57772469ca2d7b428a309c8e366b7d045def90

See more details on using hashes here.

File details

Details for the file astrosky-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: astrosky-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for astrosky-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d6a38f5c255772d27ed9ada747fbae655e685534d949e7702d53c85ba67f49d
MD5 3047e7a18a8ecb6c1b3c77e3ad84d428
BLAKE2b-256 6f9fdb10fcb148d91fc065a1526fec9f3e4a114ea976a56f41778d7a19ae203f

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