Unofficial Wrapper for N2YO.com API
Project description
🛰️ N2YO.com Python API Wrapper
A lightweight, feature-complete Python interface for satellite tracking using N2YO.com's API
🛰️ About The Project
A Pythonic interface for accessing real-time satellite data from N2YO.com. This wrapper simplifies interactions with the N2YO API by handling authentication, request formatting, error handling, and response parsing - transforming JSON payloads into native Python objects.
✨ Key Features
- Real-time Satellite Tracking: Get current position and trajectory data
- Pass Prediction: Calculate visible passes for any location
- TLE Data Access: Retrieve latest orbital parameters
- Satellite Search: Find satellites by name/category
- Type Annotations: Full IDE support and type safety
⚙️ Installation
pip install n2yo-api-wrapper
🔑 API Key Setup
- Get a free API key from N2YO.com
- Setup client
from n2yo import n2yo
client = n2yo(api_key="YOUR_API_KEY")'
🚀 Usage Examples
from n2yo import n2yo
# Initialize client
client = n2yo(api_key="YOUR_API_KEY")
# Get satellite positions
positions = client.get_satellite_positions(25544, 41.702, -76.014, 500, 10)
# Predict visible passes
passes = client.get_visual_passes(25544, 41.702, -76.014, 500, 3)
# Retrieve TLE data
tle = client.get_tle(25544)
# Return all objects within a given search radius above observer's location
above = client.get_above(41.702, -76.014, 0, 70, 18)
📜 Error Handling
- N2YOInvalidKeyException: Invalid API key.
try:
data = client.get_positions(...)
except N2YOInvalidKeyException:
print("Invalid API key configured")
📚 Full Method Reference
Please refer to the full documentation
📃 License
This project is licensed under the MIT License.
👨💻 Our Contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 n2yo-api-wrapper-0.0.2.tar.gz.
File metadata
- Download URL: n2yo-api-wrapper-0.0.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d126b14b3c2aab022b076ab167d2792f2303c23530dbaf553e29a29d9746903
|
|
| MD5 |
c598780ed5509a13b90c3553bba370ea
|
|
| BLAKE2b-256 |
6eabb177d29446df761198f105330c901f21bcfd22b5359c3c06f3034d4f3bbf
|
File details
Details for the file n2yo_api_wrapper-0.0.2-py3-none-any.whl.
File metadata
- Download URL: n2yo_api_wrapper-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1e1c4df924acfda4d8ee2f685f744df450fbe7f8482a8402df45d097192d2b5
|
|
| MD5 |
38da2f05594915cda2e28710c20d1ce7
|
|
| BLAKE2b-256 |
225eeab81de160bdacef8277bc2cb0b2d905c58961e6a852ad1f3185cddc74fa
|