aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-13 12:28:42 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-13 12:28:42 -0800
commitecfdad950bca5cc52f368f2b014a7d37cb9bcbc7 (patch)
treed8bf5a00bd3c1346c6d167d01181ec723beb07a9 /python/fatcat_tools
parent2888327e9edca05d50bc6d71bf68166ee0fabcfe (diff)
downloadfatcat-ecfdad950bca5cc52f368f2b014a7d37cb9bcbc7.tar.gz
fatcat-ecfdad950bca5cc52f368f2b014a7d37cb9bcbc7.zip
more simple fatcat_client imports
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/transforms.py3
-rw-r--r--python/fatcat_tools/workers/elastic.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/python/fatcat_tools/transforms.py b/python/fatcat_tools/transforms.py
index c454536b..ecaf3366 100644
--- a/python/fatcat_tools/transforms.py
+++ b/python/fatcat_tools/transforms.py
@@ -1,7 +1,6 @@
import collections
-from fatcat_client.models import ReleaseEntity
-from fatcat_client.api_client import ApiClient
+from fatcat_client import ReleaseEntity, ApiClient
def entity_to_json(entity):
ac = ApiClient()
diff --git a/python/fatcat_tools/workers/elastic.py b/python/fatcat_tools/workers/elastic.py
index 46632792..22ec6fa6 100644
--- a/python/fatcat_tools/workers/elastic.py
+++ b/python/fatcat_tools/workers/elastic.py
@@ -3,7 +3,7 @@ import json
import time
import requests
from fatcat_tools.workers.worker_common import FatcatWorker
-from fatcat_client.models import ReleaseEntity
+from fatcat_client import ReleaseEntity
from fatcat_tools.transforms import *
from pykafka.common import OffsetType