Skip to main content

Python SDK and CLI for SnowSure - live ski & snow data: conditions, multi-model forecasts, powder rankings, and a grounded snow Answer Engine across 500+ resorts.

Project description

snowsure

Python SDK and CLI for SnowSure — live ski & snow data: current conditions, 14-day multi-model forecasts, powder rankings, and a grounded natural-language snow Answer Engine across 500+ resorts worldwide. No API key required.

pip install snowsure

SDK

from snowsure import SnowSureClient

client = SnowSureClient()

# Global snow rankings (SnowSure score, fresh snow, depth, 14-day forecast)
report = client.get_snow_report(sort="recent", region="europe", limit=10)
for resort in report["resorts"]:
    print(resort["name"], resort["snowSure"]["score"], resort["conditions"]["snowfall24hCm"])

# List / filter resorts
resorts = client.get_resorts(country="Switzerland", sort="score", limit=20)

# One resort in full detail (slugs are lowercase-hyphenated)
zermatt = client.get_resort("matterhorn-ski-paradise")

# Grounded natural-language Q&A
answer = client.ask("where is the best powder in the alps right now?")
print(answer["answer"])

All SnowSure API responses use a {"meta": ..., "data": ...} envelope; client methods return the unwrapped data payload. The most recent meta block (source, timestamp) is available on client.last_meta. Errors raise snowsure.SnowSureError.

ask() uses the public keyless tier (partnerId: "chatgpt"). Partners with a SnowSure API key can pass SnowSureClient(api_key="...", partner_id="your-partner-id").

CLI

The package installs a snowsure command:

snowsure report                         # global snow rankings
snowsure report --sort recent --region europe --limit 10
snowsure resort matterhorn-ski-paradise # live conditions for one resort
snowsure ask "how much snow fell at Niseko this week?"

Add --json to any command for the raw JSON payload.

Related

License

MIT

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

snowsure-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

snowsure-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file snowsure-0.1.0.tar.gz.

File metadata

  • Download URL: snowsure-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for snowsure-0.1.0.tar.gz
Algorithm Hash digest
SHA256 059c440ca523a27351097dda5d6bccb9e8eade4db10a180be22f7455a34ae526
MD5 af597da582123456beeff1f4cac5d08c
BLAKE2b-256 47c99b81cf54f99178ba8301738052aa71183aa02aa411275d411a104e5af46f

See more details on using hashes here.

File details

Details for the file snowsure-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: snowsure-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for snowsure-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2ce8f9d5f67020f645a6fdf05c9fb5e7b88347fcfa15d9cfdc3b12164a8a628
MD5 6b1cab26529dbb19d78b9d44ad463e1f
BLAKE2b-256 3dca625ae87e0a56512d405a75b433635591a13e155f6a5aa22bf8137ac82156

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