Facts-Service

This connector is used to access the facts-service api via python. For direct api documentation, please refer to https://facts.prod.ecorithm.com/api/v1/doc.

Example Usage

from eco_connect import FactsService

facts_service = FactsService()

data = facts_service.get_facts(building_id=26,
                               start_date='2017-12-20 00:00',
                               end_date='2017-12-21 00:00',
                               result_format='pandas')

FactsService

class eco_connect.FactsService(environment_name='prod', version='v1')

A class to connect to Ecorithm’s facts-service API (https://facts.prod.ecorithm.com/api/v1/).

Args:

Kwargs:

environment_name (str): Api environment. Supported environments (‘Prod’, ‘Qa’)

Example: ‘prod’

version (str): Api version. Supported versions: (‘v1’)

Example: ‘v1’