def upload(self, params, file_path, verbose=False):

        if not isinstance(params, types.DictType):
            raise TypeError("'params' argument must be a dict, not %s" % type(params).__name__)

        params = params.copy()

        params['query']['api_kit'] = self._kit_version
        if ('api_format' not in params['query']):
            # Use serialised Python format for the API output,
            # otherwise use format specified in the params.
            params['query']['api_format'] = 'py'

        url = self.upload_url(params)

        return self._execute(url, file_path, response_format=params['query']['api_format'],
                             verbose=verbose)
Prepare an upload API call
dataset/ETHPy150Open rmnl/clack/clack/account_client.py/API.upload