diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 12:54:37 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 12:54:37 -0700 |
commit | 05bd7cbcc62588e431c5efd533189e246b2a997e (patch) | |
tree | abcc707a451e77ea1e8c5ac9a5925b97a4bd139a /python/sandcrawler/fileset_types.py | |
parent | f3f424e42f2f4f383103cf80b30a00cfa6cfc179 (diff) | |
download | sandcrawler-05bd7cbcc62588e431c5efd533189e246b2a997e.tar.gz sandcrawler-05bd7cbcc62588e431c5efd533189e246b2a997e.zip |
make fmt
Diffstat (limited to 'python/sandcrawler/fileset_types.py')
-rw-r--r-- | python/sandcrawler/fileset_types.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/sandcrawler/fileset_types.py b/python/sandcrawler/fileset_types.py index 8ea136e..606af07 100644 --- a/python/sandcrawler/fileset_types.py +++ b/python/sandcrawler/fileset_types.py @@ -1,4 +1,3 @@ - from enum import Enum from typing import Any, Dict, List, Optional, Tuple @@ -13,6 +12,7 @@ class IngestStrategy(str, Enum): ArchiveorgFileset = "archiveorg-fileset" ArchiveorgFilesetBundled = "archiveorg-fileset-bundled" + class FilesetManifestFile(BaseModel): path: str size: Optional[int] @@ -27,6 +27,7 @@ class FilesetManifestFile(BaseModel): terminal_url: Optional[str] terminal_dt: Optional[str] + class FilesetPlatformItem(BaseModel): platform_name: str platform_status: str @@ -39,6 +40,7 @@ class FilesetPlatformItem(BaseModel): web_base_url: Optional[str] web_bundle_url: Optional[str] + class ArchiveStrategyResult(BaseModel): ingest_strategy: str status: str @@ -49,6 +51,7 @@ class ArchiveStrategyResult(BaseModel): bundle_resource: Optional[Any] bundle_archiveorg_path: Optional[str] + class PlatformScopeError(Exception): """ For incidents where platform helper discovers that the fileset/dataset is @@ -61,6 +64,7 @@ class PlatformScopeError(Exception): """ pass + class PlatformRestrictedError(Exception): """ When datasets are not publicly available on a platform (yet) |