import sys from Pubnub import PubnubAsync as Pubnub ## Initiat Class pubnub = Pubnub('demo', 'demo', None, False) ## History Example history = pubnub.history({ 'channel': 'hello_world', 'limit': 1 }) print(history)