aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_transform.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-02 15:24:40 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-02 17:02:50 -0700
commit675ecb96fe0e51f169c2d01683f02205ef327825 (patch)
tree19be01afe2ddb0791368a1b9b5223deb3cba6d19 /python/fatcat_transform.py
parente148fce040b874c7dd397cb22118a3c03b7f02d4 (diff)
downloadfatcat-675ecb96fe0e51f169c2d01683f02205ef327825.tar.gz
fatcat-675ecb96fe0e51f169c2d01683f02205ef327825.zip
cleanup imports after fatcat_tools.transforms change
Diffstat (limited to 'python/fatcat_transform.py')
-rwxr-xr-xpython/fatcat_transform.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/python/fatcat_transform.py b/python/fatcat_transform.py
index 93c39e2f..ab855dbf 100755
--- a/python/fatcat_transform.py
+++ b/python/fatcat_transform.py
@@ -5,17 +5,23 @@ Utility script for doing bulk conversion/transforms of entity JSON schema to
other formats
"""
-import sys
-import json
import argparse
+import json
+import sys
import elasticsearch
-from fatcat_openapi_client import ReleaseEntity, ContainerEntity, FileEntity, ChangelogEntry
-
-from fatcat_tools import entity_from_json, \
- release_to_elasticsearch, container_to_elasticsearch, \
- file_to_elasticsearch, changelog_to_elasticsearch, public_api, \
- release_to_csl, citeproc_csl
+from fatcat_openapi_client import ChangelogEntry, ContainerEntity, FileEntity, ReleaseEntity
+
+from fatcat_tools import public_api
+from fatcat_tools.transforms import (
+ changelog_to_elasticsearch,
+ citeproc_csl,
+ container_to_elasticsearch,
+ entity_from_json,
+ file_to_elasticsearch,
+ release_to_csl,
+ release_to_elasticsearch,
+)
from fatcat_web.search import get_elastic_container_stats