A Python Wrapper for NASA's Mars Rover Photos API
Project description
Marstuff
API Wrapper for NASA's Mars Rover Photos API
📝 Description
This is a Work-In-Progress Python API Wrapper for NASA's Mars Rover Photos API
🔥 Getting Started
-
⬇️ Installation
- Via pip
pip install marstuff
- Via pip
-
✨ Getting a NASA Developer Key
- Goto https://api.nasa.gov/
- Navigate to
Generate API Key
at the top navbar. - Fill in your details, and tap
Signup
- Copy Your API Key
-
⚡ Quickstart
- Getting the
Latest Photo
of NASA'sCuriosity
Roverfrom marstuff import Client client = Client("Your API Token") print(client.get_latest_photo(client.curiosity)) # OR print(client.curiosity.get_latest_photo())
- Getting all the photos taken by the
Rear Hazard Avoidance Camera
of NASA'sCuriosity
Rover on sol3259
from marstuff import Client from marstuff.objects.camera import CAMERAS print(client.curiosity.get_all_photos_by_sol(3259, CAMERAS.RHAZ)) # OR print(client.curiosity.rhaz.get_all_photos_by_sol(3259))
- Getting the
-
🧠 General Need-to-Know Stuff!!
This API currently provides access to 4 NASA Rovers (
Perseverance
,Curiosity
,Opportunity
, andSpirit
) Each rover, takes photos of the surface of mars via different cameras-
The cameras of the
Perseverance
Rover areAbbreviation Camera EDL_RUCAM Rover Up-Look Camera EDL_RDCAM Rover Down-Look Camera EDL_DDCAM Descent Stage Down-Look Camera EDL_PUCAM1 Parachute Up-Look Camera A EDL_PUCAM2 Parachute Up-Look Camera B NAVCAM_LEFT Navigation Camera - Left NAVCAM_RIGHT Navigation Camera - Right MCZ_RIGHT Mast Camera Zoom - Right MCZ_LEFT Mast Camera Zoom - Left FRONT_HAZCAM_LEFT_A Front Hazard Avoidance Camera - Left FRONT_HAZCAM_RIGHT_A Front Hazard Avoidance Camera - Right REAR_HAZCAM_LEFT Rear Hazard Avoidance Camera - Left REAR_HAZCAM_RIGHT Rear Hazard Avoidance Camera - Right SKYCAM MEDA Skycam SHERLOC_WATSON SHERLOC WATSON Camera -
Cameras of other Rovers are
Abbreviation Camera Curiosity Opportunity Spirit FHAZ Front Hazard Avoidance Camera ✔ ✔ ✔ RHAZ Rear Hazard Avoidance Camera ✔ ✔ ✔ MAST Mast Camera ✔ CHEMCAM Chemistry and Camera Complex ✔ MAHLI Mars Hand Lens Imager ✔ MARDI Mars Descent Imager ✔ NAVCAM Navigation Camera ✔ ✔ ✔ PANCAM Panoramic Camera ✔ ✔ MINITES Miniature Thermal Emission Spectrometer (Mini-TES) ✔ ✔
You can query via
sol
orearth_date
sol
meansMartian rotation or day
which can be (0 toCurrent Sol of Rover
)earth_date
is in the format ofYYYY-MM-DD
-
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
marstuff-0.1.13.tar.gz
(12.5 kB
view hashes)
Built Distribution
Close
Hashes for marstuff-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 194197ad870961e8a1aa9052884cc47a8746877eae0ac0703d7809cb0a4b48c1 |
|
MD5 | 7aaebb873d523547c551d84e6cb665fa |
|
BLAKE2b-256 | 60028fe41187bbf8cb753b35dfc0946415b2bdca166287ffe1e240e3be72b898 |