def get_table_schema(self, dataset, table):

        try:
            result = self.bigquery.tables().get(
                projectId=self.project_id,
                tableId=table,
                datasetId=dataset).execute()
        except HttpError as e:
            if int(e.resp['status']) == 404:
                logger.warn('Table %s.%s does not exist', dataset, table)
                return None
            raise

        return result['schema']['fields']
Get cached entry if exists and not expired
dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py/BigQueryClient.get_table_schema--crossover with--dataset/ETHPy150Open tweepy/tweepy/tweepy/cache.py/MemCacheCache.get