Skip to content

paulokuong/lotame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusCoverage Status Lotame API Wrapper

Requirements

  • Python 3.7.0

Installation

    pip install lotame

Goal

To provide a generic wrapper Lotame API

Code sample

Getting api object:

  from lotame import Api, Credentials, FirehoseService, BehaviorService
  api = Api(Credentials(client_id='xxx', token='yyy', access='zzz'))

Using different service classes for different endpoints:

  fs = FirehoseService(api=api)
  updates = fs.getUpdates(hours=1)
  b = BehaviorService(api=api)
  b.get('types')

Contributors