Skip to main content

Fetch upcoming ISS passes for a location and helpers to notify users.

Project description

ISS Pass Tracker

A small Python library to fetch upcoming International Space Station (ISS) passes for a given latitude/longitude. Intended as a PyPI-ready example and a practical utility.

Features

  • Query Open Notify (free) for next N passes.
  • Return results as typed dataclasses.
  • Optional CLI (requires click extra).

Installation (from source / TestPyPI)

pip install --upgrade pip build twine
python -m build
# Test upload (recommended):
# twine upload --repository testpypi dist/*
# Real upload:
# twine upload dist/*

Quick usage

from iss_pass_tracker import set_api_key, get_passes

# Set your N2YO API key
set_api_key("YOUR_N2YO_API_KEY")

# Hyderabad coordinates
latitude = 17.385044
longitude = 78.486671
altitude_meters = 0  # Adjust if needed

# Get next 5 passes
passes = get_passes(latitude, longitude, altitude_meters, n=5)

# Print them
for p in passes:
    print(f"Pass at {p.local_time()} (local time), duration {p.duration} seconds")

run locally wiith N2YO API key

python check_passes.py

pip install --upgrade iss-pass-tracker

macOS / Linux

export N2YO_API_KEY="YOUR_KEY"

Windows (Command Prompt)

setx N2YO_API_KEY "YOUR_KEY"

python -m iss_pass_tracker --lat ... --lon ...

run:

python -m iss_pass_tracker --lat 17.385044 --lon 78.486671 --api-key YOUR_N2YO_KEY

or with environment variable

export N2YO_API_KEY=YOUR_N2YO_KEY # macOS/Linux

set N2YO_API_KEY=YOUR_N2YO_KEY # Windows

or If you like, I can also hook this CLI into pyproject.toml so users can just type:

python -m iss_pass_tracker --lat 17.385044 --lon 78.486671

iss-pass-tracker --lat 17.38 --lon 78.48

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

iss_pass_tracker-0.3.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

iss_pass_tracker-0.3.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file iss_pass_tracker-0.3.0.tar.gz.

File metadata

  • Download URL: iss_pass_tracker-0.3.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for iss_pass_tracker-0.3.0.tar.gz
Algorithm Hash digest
SHA256 09fa2716dbffac9171107813dd1ccd67e23a29891bf75150f0edba8288aba6f4
MD5 3a4831a5160fcb72a065ee6c9ed0b537
BLAKE2b-256 af697fc92261f68291c38d3b1b6d6b70dd6f20441a0c15d3fda1408c4e1d4afc

See more details on using hashes here.

File details

Details for the file iss_pass_tracker-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iss_pass_tracker-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc3da3c662302c52534db76af9a7f9e814e1f8423a40650c2cebf8d82e74682
MD5 b831a8f3a548c4f036a7dc5007e20f44
BLAKE2b-256 2917d066f86d6c5c43b75893697caace402f8901875e701fb1f2226727e189f2

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