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

Uploaded Python 3

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

Hashes for mars_weather_api-0.1.9.tar.gz
Algorithm Hash digest
SHA256 db2a30f6ea76511c5d3ca8cfd507de9d57b607457f88c8bcbf45743fffc69c20
MD5 55c8a6f2ab8fe65568d1ec32a629f425
BLAKE2b-256 042e121e8e85e22b8099fbcf4a44e531fa5d63a66aa031b72fa02cffaca5b74b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mars_weather_api-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 56c37965835ea199c43c0c055c75768afcbfdeaac2c90b2e02c88683eff4a9f4
MD5 54b7230375f54de361cb19eab9ed5a53
BLAKE2b-256 8f6543d1b2a653f76c4c9cd1744499243b333d7c0449026e49689cb170055a3b

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