diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-27 14:19:29 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-27 18:25:58 -0700 |
commit | 956e64f47f7d47f2539cd6575c25ec0b6a33e567 (patch) | |
tree | b6775a940f21b3dabdd3e7de3398c2da874914fd /fatcat_scholar/work_pipeline.py | |
parent | 02249d03d086e71a589733280a2f5e32990f72b1 (diff) | |
download | fatcat-scholar-956e64f47f7d47f2539cd6575c25ec0b6a33e567.tar.gz fatcat-scholar-956e64f47f7d47f2539cd6575c25ec0b6a33e567.zip |
re-style imports (isort) on all core python files
Diffstat (limited to 'fatcat_scholar/work_pipeline.py')
-rw-r--r-- | fatcat_scholar/work_pipeline.py | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/fatcat_scholar/work_pipeline.py b/fatcat_scholar/work_pipeline.py index b9c8d33..54e1ed3 100644 --- a/fatcat_scholar/work_pipeline.py +++ b/fatcat_scholar/work_pipeline.py @@ -1,29 +1,26 @@ -import os +import argparse import io +import os import sys -import argparse -from typing import List, Dict, Tuple, Optional, Any, Sequence -import urllib3.exceptions +from typing import Any, Dict, List, Optional, Sequence, Tuple +import internetarchive import minio import requests import sentry_sdk -import internetarchive -from fatcat_openapi_client import ReleaseEntity, FileEntity, WebcaptureEntity +import urllib3.exceptions +from fatcat_openapi_client import FileEntity, ReleaseEntity, WebcaptureEntity from fatcat_scholar.api_entities import * -from fatcat_scholar.config import settings, GIT_REVISION +from fatcat_scholar.config import GIT_REVISION, settings from fatcat_scholar.djvu import djvu_extract_leaf_texts +from fatcat_scholar.issue_db import IssueDB, SimIssueRow, SimPubRow from fatcat_scholar.sandcrawler import ( - SandcrawlerPostgrestClient, SandcrawlerMinioClient, + SandcrawlerPostgrestClient, ) -from fatcat_scholar.issue_db import IssueDB, SimIssueRow, SimPubRow -from fatcat_scholar.schema import ( - DocType, - IntermediateBundle, -) -from fatcat_scholar.sim_pipeline import truncate_pub_meta, truncate_issue_meta +from fatcat_scholar.schema import DocType, IntermediateBundle +from fatcat_scholar.sim_pipeline import truncate_issue_meta, truncate_pub_meta def parse_pages(raw: str) -> Tuple[Optional[int], Optional[int]]: |