Skip to main content

A Python package for accessing weather data from the National Weather Service (NWS) API

Project description

Weather Package

A Python package for accessing weather data from the National Weather Service (NWS) API.

Features

  • Get weather alerts for US states
  • Get weather forecasts for any location by latitude and longitude
  • Easy-to-use asynchronous API

Installation

pip install weather

Usage

from weather import get_alerts, get_forecast

# Get weather alerts for California
alerts = get_alerts("CA")

# Get forecast for a specific location (latitude, longitude)
forecast = get_forecast(34.0522, -118.2437)  # Los Angeles, CA

Requirements

  • Python 3.11+
  • httpx
  • mcp

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

weather_nws_mcp-0.1.9.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

weather_nws_mcp-0.1.9-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file weather_nws_mcp-0.1.9.tar.gz.

File metadata

  • Download URL: weather_nws_mcp-0.1.9.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for weather_nws_mcp-0.1.9.tar.gz
Algorithm Hash digest
SHA256 ef4c05b6aba9dbf542509ba89d4cf9546c1c70bdb17d8753228e8ec1e9a082ed
MD5 63432b447033cafa3f920073484d0fa6
BLAKE2b-256 55a324df8422b75c87590a43ccd4b79c2a0324c8476ff00f7a10776224310581

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for weather_nws_mcp-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ab28241f16fa1b3a9ada54a847dcde7d52f3bfbb41b84b642562b8d67d6a109b
MD5 db8643350b46b7f8072ef7f907c8477d
BLAKE2b-256 8d935b74fc065de1bac84a018ee264534ea0b602ac1fcee4c8b6c56e2e29fd88

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