def prepare(self, hash, start, end, name, sources, sample=None):
        if len(sources) == 0:
            raise HistoricSourcesRequired()
        if not isinstance(sources, list):
            sources = [sources]

        params = {'hash': hash, 'start': start, 'end': end, 'name': name, 'sources': ','.join(sources)}
        if sample:
            params['sample'] = sample
        return self.request.post('prepare', params)
Prepare a historics query which can later be started.
dataset/ETHPy150Open datasift/datasift-python/datasift/historics.py/Historics.prepare