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.7.tar.gz (3.8 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.7-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mars_weather_api-0.1.7.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

Hashes for mars_weather_api-0.1.7.tar.gz
Algorithm Hash digest
SHA256 305c9a1b8936db89031db29eb1ceb93091c864a68a3ecfd864a8b905b4ade070
MD5 a2db773fca7423005dabffde375c82a8
BLAKE2b-256 27c68e23fd71ed8adf07e0a9a2695ef1010a1a0ad0a9d29be9a74dfe795d34ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mars_weather_api-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c8e619f4aa27f764c6ae07aece3cbd6f63b89cbbdf0248ae37282102b8c8e074
MD5 8a24c3ae67ea991a0e335f0609bf6b3f
BLAKE2b-256 8cdc305fc0bdfcb0f54e365acb63a2a07d5d0777018f7782ec17c8299ae21fde

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