Skip to main content

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

mars_weather_api-0.1.8.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

mars_weather_api-0.1.8-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mars_weather_api-0.1.8.tar.gz.

File metadata

  • Download URL: mars_weather_api-0.1.8.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.14.0a7

File hashes

Hashes for mars_weather_api-0.1.8.tar.gz
Algorithm Hash digest
SHA256 3815a460302ffbca1226b03f3a2793b5bdcc59fa2898ff98a0b9b40875d39ddd
MD5 f7feda2c8d694554f25b204b99004132
BLAKE2b-256 7d1fd83f675821162c3aa06cde277fbd0af2ca3decaef0b5b350e95fefa5fc8c

See more details on using hashes here.

File details

Details for the file mars_weather_api-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for mars_weather_api-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8c6ec3e31dd9b892557874e76e12a5bb9ce353c449fbf6b6755f08bd8241f6
MD5 9054bf9f56628a6c2a99aab214a6f3ac
BLAKE2b-256 fc726b7c938386a1dcc63f53d7d882a2c128c26ba423fb971b61d7e9f7b1adf1

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