folio-migration-tools 1.9.5__tar.gz → 1.9.6__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_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/PKG-INFO +3 -4
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/pyproject.toml +3 -3
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/batch_poster.py +5 -5
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/LICENSE +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/README.md +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/__init__.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/__main__.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/circulation_helper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/colors.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/config_file_load.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/custom_dict.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/custom_exceptions.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/extradata_writer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/folder_structure.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/helper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/holdings_helper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/i18n_config.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/library_configuration.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapper_base.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/__init__.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/courses_mapper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/holdings_mapper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/item_mapper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/manual_fee_fines_mapper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/mapping_file_mapper_base.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/notes_mapper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/order_mapper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/organization_mapper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/ref_data_mapping.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapping_file_transformation/user_mapper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/__init__.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/conditions.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/holdings_statementsparser.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/hrid_handler.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/loc_language_codes.xml +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/marc_file_processor.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/marc_reader_wrapper.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/rules_mapper_authorities.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/rules_mapper_base.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/rules_mapper_bibs.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/marc_rules_transformation/rules_mapper_holdings.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_report.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/__init__.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/authority_transformer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/bibs_transformer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/courses_migrator.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/holdings_csv_transformer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/holdings_marc_transformer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/items_transformer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/loans_migrator.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/manual_fee_fines_transformer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/migration_task_base.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/orders_transformer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/organization_transformer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/requests_migrator.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/reserves_migrator.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/migration_tasks/user_transformer.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/task_configuration.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/test_infrastructure/__init__.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/test_infrastructure/mocked_classes.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/transaction_migration/__init__.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/transaction_migration/legacy_loan.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/transaction_migration/legacy_request.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/transaction_migration/legacy_reserve.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/transaction_migration/transaction_result.py +0 -0
- {folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/translations/en.json +0 -0
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: folio_migration_tools
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.6
|
|
4
4
|
Summary: A tool allowing you to migrate data from legacy ILS:s (Library systems) into FOLIO LSP
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: FOLIO,ILS,LSP,Library Systems,MARC21,Library data
|
|
7
7
|
Author: Theodor Tolstoy
|
|
8
8
|
Author-email: github.teddes@tolstoy.se
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.10,<4.0
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -20,7 +19,7 @@ Requires-Dist: art (>=6.5,<7.0)
|
|
|
20
19
|
Requires-Dist: deepdiff (>=6.2.3,<7.0.0)
|
|
21
20
|
Requires-Dist: defusedxml (>=0.7.1,<0.8.0)
|
|
22
21
|
Requires-Dist: folio-data-import (>=0.3.2,<0.4.0)
|
|
23
|
-
Requires-Dist: folio-uuid (>=0.2.
|
|
22
|
+
Requires-Dist: folio-uuid (>=1.0.0,<2.0.0)
|
|
24
23
|
Requires-Dist: folioclient (>=0.70.1,<0.71.0)
|
|
25
24
|
Requires-Dist: pyaml (>=21.10.1,<22.0.0)
|
|
26
25
|
Requires-Dist: pydantic (>=1.10.2,<2.0.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "folio_migration_tools"
|
|
3
|
-
version = "1.9.
|
|
3
|
+
version = "1.9.6"
|
|
4
4
|
description = "A tool allowing you to migrate data from legacy ILS:s (Library systems) into FOLIO LSP"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Theodor Tolstoy", email = "github.teddes@tolstoy.se"},
|
|
@@ -43,12 +43,12 @@ line-length = 99
|
|
|
43
43
|
profile = "black"
|
|
44
44
|
|
|
45
45
|
[tool.poetry.dependencies]
|
|
46
|
-
python = "^3.
|
|
46
|
+
python = "^3.10"
|
|
47
47
|
folioclient = "^0.70.1"
|
|
48
48
|
pyhumps = "^3.7.3"
|
|
49
49
|
defusedxml = "^0.7.1"
|
|
50
50
|
python-dateutil = "^2.8.2"
|
|
51
|
-
folio-uuid = "^0.
|
|
51
|
+
folio-uuid = "^1.0.0"
|
|
52
52
|
pymarc = "^5.2.3"
|
|
53
53
|
pydantic = "^1.10.2"
|
|
54
54
|
argparse-prompt = "^0.0.5"
|
|
@@ -5,7 +5,7 @@ import logging
|
|
|
5
5
|
import sys
|
|
6
6
|
import time
|
|
7
7
|
import traceback
|
|
8
|
-
from datetime import datetime
|
|
8
|
+
from datetime import datetime, timezone
|
|
9
9
|
from typing import Annotated, List, Optional
|
|
10
10
|
from uuid import uuid4
|
|
11
11
|
|
|
@@ -655,7 +655,7 @@ class BatchPoster(MigrationTaskBase):
|
|
|
655
655
|
"",
|
|
656
656
|
f"HTTP {response.status_code}\t"
|
|
657
657
|
f"Request size: {get_req_size(response)}"
|
|
658
|
-
f"{datetime.
|
|
658
|
+
f"{datetime.now(timezone.utc).isoformat()}\n",
|
|
659
659
|
json.dumps(resp, indent=4),
|
|
660
660
|
)
|
|
661
661
|
elif response.status_code == 400:
|
|
@@ -675,7 +675,7 @@ class BatchPoster(MigrationTaskBase):
|
|
|
675
675
|
"",
|
|
676
676
|
f"HTTP {response.status_code}\t"
|
|
677
677
|
f"Request size: {get_req_size(response)}"
|
|
678
|
-
f"{datetime.
|
|
678
|
+
f"{datetime.now(timezone.utc).isoformat()}\n",
|
|
679
679
|
response.text,
|
|
680
680
|
)
|
|
681
681
|
else:
|
|
@@ -699,7 +699,7 @@ class BatchPoster(MigrationTaskBase):
|
|
|
699
699
|
"",
|
|
700
700
|
f"HTTP {response.status_code}\t"
|
|
701
701
|
f"Request size: {get_req_size(response)}"
|
|
702
|
-
f"{datetime.
|
|
702
|
+
f"{datetime.now(timezone.utc).isoformat()}\n",
|
|
703
703
|
resp,
|
|
704
704
|
)
|
|
705
705
|
|
|
@@ -873,7 +873,7 @@ class BatchPoster(MigrationTaskBase):
|
|
|
873
873
|
snapshot = {
|
|
874
874
|
"jobExecutionId": self.snapshot_id,
|
|
875
875
|
"status": "PARSING_IN_PROGRESS",
|
|
876
|
-
"processingStartedDate": datetime.
|
|
876
|
+
"processingStartedDate": datetime.now(timezone.utc).isoformat(timespec="milliseconds"),
|
|
877
877
|
}
|
|
878
878
|
try:
|
|
879
879
|
url = f"{self.folio_client.gateway_url}/source-storage/snapshots"
|
|
File without changes
|
|
File without changes
|
{folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/__init__.py
RENAMED
|
File without changes
|
{folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
{folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/colors.py
RENAMED
|
File without changes
|
|
File without changes
|
{folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/custom_dict.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/helper.py
RENAMED
|
File without changes
|
|
File without changes
|
{folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/i18n_config.py
RENAMED
|
File without changes
|
|
File without changes
|
{folio_migration_tools-1.9.5 → folio_migration_tools-1.9.6}/src/folio_migration_tools/mapper_base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|