Python Api Library

A python module for communication with the CommonSense API.

Architecture

The senseapi.py module contains a SenseAPI class that is capable of interacting with the CommonSense Api.

  • It stores session information in an internal state.
  • It offers a function call for every Api call.
  • It allows access to the raw response status, headers and body from the Api.

Getting Started

To get started, just:

import senseapi
api = senseapi.SenseAPI()

Further reading

See the documentation for more information. Also, check the SenseAPITest.py file for examples on how to use the library.