Skip to content

watershed-climate/python-api-training

Repository files navigation

Watershed API Example

This repository contains example code to demonstrate how the Watershed API can be used.

Setup

Watershed Access

  1. Make sure you have access to a staging or test Watershed environment. The training will upload data to Watershed, so we don't want to disrupt a production measurement.
  2. Log into Watershed at dashboard.watershedclimate.com
  3. Create an API key in the Organization Settings page

Training Repo Setup

  1. Make sure your system has poetry installed
  2. Clone this repository locally
  3. Run ./scripts/setup
  4. Enter your API key when prompted. This will be saved to a secrets.env file so that your API scripts can use it later.

Training Instructions

  1. Open upload_dataset.py, which has some sample code for sending API requests, as well as an example request at the bottom.
  2. Run ./scripts/run to execute upload_dataset.py
  3. Refer to Watershed's API documentation
  4. Fill out the remaining functionality specified in the comments

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published