From 675ecb96fe0e51f169c2d01683f02205ef327825 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 2 Nov 2021 15:24:40 -0700 Subject: cleanup imports after fatcat_tools.transforms change --- python/fatcat_transform.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'python/fatcat_transform.py') 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 -- cgit v1.2.3