folio-data-import 0.5.2__tar.gz → 0.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/PKG-INFO +1 -1
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/pyproject.toml +1 -1
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/BatchPoster.py +2 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/README.md +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/DILogRetriever.py +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/MARCDataImport.py +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/UserImport.py +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/__init__.py +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/__main__.py +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/_postgres.py +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/_progress.py +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/custom_exceptions.py +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/marc_preprocessors/__init__.py +0 -0
- {folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/marc_preprocessors/_preprocessors.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: folio_data_import
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
4
4
|
Summary: A python module to perform bulk import of data into a FOLIO environment. Currently supports MARC and user data import.
|
|
5
5
|
Author: Brooks Travis
|
|
6
6
|
Author-email: Brooks Travis <brooks.travis@gmail.com>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "folio_data_import"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.3"
|
|
4
4
|
description = "A python module to perform bulk import of data into a FOLIO environment. Currently supports MARC and user data import."
|
|
5
5
|
authors = [{ name = "Brooks Travis", email = "brooks.travis@gmail.com" }]
|
|
6
6
|
license = "MIT"
|
|
@@ -19,6 +19,7 @@ import cyclopts
|
|
|
19
19
|
import folioclient
|
|
20
20
|
import httpx
|
|
21
21
|
from folioclient import FolioClient
|
|
22
|
+
from folioclient.exceptions import folio_errors
|
|
22
23
|
from pydantic import BaseModel, Field
|
|
23
24
|
|
|
24
25
|
from folio_data_import import get_folio_connection_parameters, set_up_cli_logging
|
|
@@ -650,6 +651,7 @@ class BatchPoster:
|
|
|
650
651
|
if "id" in record and record["id"] in existing_records:
|
|
651
652
|
self.prepare_record_for_upsert(record, existing_records[record["id"]])
|
|
652
653
|
|
|
654
|
+
@folio_errors
|
|
653
655
|
async def post_batch(self, batch: List[dict]) -> tuple[httpx.Response, int, int]:
|
|
654
656
|
"""
|
|
655
657
|
Post a batch of records to FOLIO.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{folio_data_import-0.5.2 → folio_data_import-0.5.3}/src/folio_data_import/custom_exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|