Skip to content

TAHMO/API-V2-Python-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API V2 Python examples

This git contains examples on how to use the TAHMO API v2 in the python. The provided example code will work in both python 2 and python 3.

Installation

Python 2

NOTE: Python 2.7.15 or higher is required.

# Clone the repo
$ git clone https://github.com/TAHMO/API-V2-Python-examples.git

# Change the working directory
$ cd API-V2-Python-examples

# Install the requirements
$ pip install -r requirements.txt

Python 3

# Clone the repo
$ git clone https://github.com/TAHMO/API-V2-Python-examples.git

# Change the working directory
$ cd API-V2-Python-examples

# Install the requirements
$ pip3 install -r requirements.txt

Usage

Make sure to update your API credentials in api.setCredentials(user, password) on line 4 of example.py. The example file features: retrieving station metadata, retrieving variable metadata and retrieving time series.

Additional questions

For any questions please send an email to H.F.Hagenaars@tudelft.nl.

About

Python example code for TAHMO API v2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published