From e148fce040b874c7dd397cb22118a3c03b7f02d4 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 2 Nov 2021 15:01:39 -0700 Subject: re-fmt all the fatcat_tools __init__ files for readability --- python/fatcat_tools/importers/__init__.py | 56 +++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 17 deletions(-) (limited to 'python/fatcat_tools/importers') diff --git a/python/fatcat_tools/importers/__init__.py b/python/fatcat_tools/importers/__init__.py index a2224081..06ecfd58 100644 --- a/python/fatcat_tools/importers/__init__.py +++ b/python/fatcat_tools/importers/__init__.py @@ -1,4 +1,3 @@ - """ To run an import you combine two classes; one each of: @@ -12,25 +11,48 @@ To run an import you combine two classes; one each of: """ -from .common import EntityImporter, JsonLinePusher, LinePusher, CsvPusher, SqlitePusher, Bs4XmlFilePusher, Bs4XmlLargeFilePusher, Bs4XmlLinesPusher, Bs4XmlFileListPusher, KafkaJsonPusher, KafkaBs4XmlPusher, make_kafka_consumer, clean, is_cjk, LANG_MAP_MARC -from .crossref import CrossrefImporter, CROSSREF_TYPE_MAP, lookup_license_slug -from .datacite import DataciteImporter -from .jalc import JalcImporter -from .jstor import JstorImporter +from .arabesque import ARABESQUE_MATCH_WHERE_CLAUSE, ArabesqueMatchImporter from .arxiv import ArxivRawImporter -from .pubmed import PubmedImporter +from .cdl_dash_dat import auto_cdl_dash_dat +from .chocula import ChoculaImporter +from .common import ( + LANG_MAP_MARC, + Bs4XmlFileListPusher, + Bs4XmlFilePusher, + Bs4XmlLargeFilePusher, + Bs4XmlLinesPusher, + CsvPusher, + EntityImporter, + JsonLinePusher, + KafkaBs4XmlPusher, + KafkaJsonPusher, + LinePusher, + SqlitePusher, + clean, + is_cjk, + make_kafka_consumer, +) +from .crossref import CROSSREF_TYPE_MAP, CrossrefImporter, lookup_license_slug +from .datacite import DataciteImporter +from .dblp_container import DblpContainerImporter +from .dblp_release import DblpReleaseImporter +from .doaj_article import DoajArticleImporter +from .file_meta import FileMetaImporter +from .fileset_generic import FilesetImporter from .grobid_metadata import GrobidMetadataImporter +from .ingest import ( + IngestFileResultImporter, + IngestFilesetResultImporter, + IngestWebResultImporter, + SavePaperNowFileImporter, + SavePaperNowFilesetImporter, + SavePaperNowWebImporter, +) +from .jalc import JalcImporter from .journal_metadata import JournalMetadataImporter -from .chocula import ChoculaImporter +from .jstor import JstorImporter from .matched import MatchedImporter from .orcid import OrcidImporter -from .arabesque import ArabesqueMatchImporter, ARABESQUE_MATCH_WHERE_CLAUSE -from .wayback_static import auto_wayback_static -from .cdl_dash_dat import auto_cdl_dash_dat -from .ingest import IngestFileResultImporter, SavePaperNowFileImporter, IngestWebResultImporter, SavePaperNowWebImporter, IngestFilesetResultImporter, SavePaperNowFilesetImporter +from .pubmed import PubmedImporter from .shadow import ShadowLibraryImporter -from .file_meta import FileMetaImporter -from .doaj_article import DoajArticleImporter -from .dblp_release import DblpReleaseImporter -from .dblp_container import DblpContainerImporter -from .fileset_generic import FilesetImporter +from .wayback_static import auto_wayback_static -- cgit v1.2.3