This is a wrapper for the NASA InSight API.
Project description
mars_weather_api
This is a Python wrapper for NASA's InSight Mars Weather Service API. It allows users to fetch and display weather data from Mars, including temperature details. Please note that the API can only access weather data for the last 7 sols (Martian days) that the InSight lander was active.
Usage
To use the mars_weather_api, first import the library and initialize it:
import mars_weather_api
from mars_weather_api import mars_weather_api
api = mars_weather_api.MarsWeatherAPI("your_nasa_api_key")
api.print_week()
Installation
$ python -m pip install mars_weather_api
Features
- Fetch weather data for a specific sol (Martian day).
- Retrieve weather data for the last 7 sols.
- Extract temperature details (average, minimum, maximum) for each sol.
- Easy-to-use Python interface with formatted output.
Requirements
- Python 3.7 or higher
- An active NASA API key (you can get one here).
Note
This is a school project and is not open for contributions.
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
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 mars_weather_api-0.1.9.tar.gz.
File metadata
- Download URL: mars_weather_api-0.1.9.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.14.0a7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db2a30f6ea76511c5d3ca8cfd507de9d57b607457f88c8bcbf45743fffc69c20
|
|
| MD5 |
55c8a6f2ab8fe65568d1ec32a629f425
|
|
| BLAKE2b-256 |
042e121e8e85e22b8099fbcf4a44e531fa5d63a66aa031b72fa02cffaca5b74b
|
File details
Details for the file mars_weather_api-0.1.9-py3-none-any.whl.
File metadata
- Download URL: mars_weather_api-0.1.9-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.14.0a7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56c37965835ea199c43c0c055c75768afcbfdeaac2c90b2e02c88683eff4a9f4
|
|
| MD5 |
54b7230375f54de361cb19eab9ed5a53
|
|
| BLAKE2b-256 |
8f6543d1b2a653f76c4c9cd1744499243b333d7c0449026e49689cb170055a3b
|