Skip to content
Microclim.org Python API Toolkit
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
microclim
.travis.yml
LICENSE.txt
MANIFEST
README.md
microclim.ipynb
requirements.txt
setup.cfg
setup.py
test_is_open.py

README.md

microclim-api

Official Microclim API Wrapper - Python.

Build Status

Installation

git clone https://github.com/trenchproject/microclim-api.git microclim-api

Usage

from microclim.api import MicroclimApiClient

Microclim API

#KEY = 'test'
#SECRET = 'sec'
#IP='localhost:8008/'
microclim_client = MicroclimApiClient(KEY,SECRET,IP)

Get health

microclim_health = microclim_client.poke(active="True")

Submit a filtering job

#sample values - Around Denver
request_tracking_id = microclim_client.request(latS = 39.4001220001459,
                    latN = 39.91394967016644,
                    lonW = -106.50764465332031,
                    lonE = -105.92399597167969,
                    variable = 'Tsurface',
                    shadelevel='0',
                    hod='7',
                    interval='0',
                    aggregation='0',
                    enddate='19810128',
                    outputformat='csv',
                    startdate='19810101')

print("Tracking id " + request_tracking_id )

Status

microclim_request_status = microclim_client.status(request = request_tracking_id)

Get insights into your request (Not Implemented)

microclim_request_insights = microclim_client.insight(request = request_tracking_id,type = 'throughput')

Get details of your request.

microclim_job_details = microclim_client.get_details(request = request_tracking_id)

Get detail of all the requests.

microclim_requests = request_tracking_id.jobs()
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.