cooncesean / mixpanel-query-py

The Python interface to fetch data from Mixpanel.
MIT License
29 stars 17 forks source link

adds a configurable timeout variable to the client #20

Closed thesmallestduck closed 8 years ago

thesmallestduck commented 8 years ago

why

currently all requests using this lib have a timeout of 2 minutes (120 seconds)

what

the client is now configurable like so:

from mixpanel_query.client import MixpanelQueryClient
cli = MixpanelQueryClient(<your api key>, <your api secret>, timeout=5)

if no timeout is provided, it will result in 120 second timeout default

frifri commented 8 years ago

This looks good to me. Thanks @thesmallestduck