pyPreservica 2.9.3__tar.gz → 2.9.4__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.
- {pypreservica-2.9.3 → pypreservica-2.9.4}/PKG-INFO +1 -1
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/__init__.py +1 -1
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/uploadAPI.py +9 -2
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/PKG-INFO +1 -1
- {pypreservica-2.9.3 → pypreservica-2.9.4}/setup.py +1 -1
- {pypreservica-2.9.3 → pypreservica-2.9.4}/LICENSE.txt +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/README.md +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/adminAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/authorityAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/common.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/contentAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/entityAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/mdformsAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/monitorAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/opex.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/parAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/retentionAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/webHooksAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/workflowAPI.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/SOURCES.txt +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/dependency_links.txt +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/requires.txt +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/top_level.txt +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/setup.cfg +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_authority_records.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_bitstream.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_children.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_content_api.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_crawl_fs.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_delete.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_download.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_entity.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_export_opex.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_groups.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_identifier.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_ingest.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_integrity_check.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_metadata.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_par.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_replace.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_retention.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_schema.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_security.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_thumbnail.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_upload.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_users.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_workflow.py +0 -0
- {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_xml_metadata.py +0 -0
|
@@ -23,6 +23,6 @@ from .mdformsAPI import MetadataGroupsAPI, Group, GroupField, GroupFieldType
|
|
|
23
23
|
__author__ = "James Carr (drjamescarr@gmail.com)"
|
|
24
24
|
|
|
25
25
|
# Version of the pyPreservica package
|
|
26
|
-
__version__ = "2.9.
|
|
26
|
+
__version__ = "2.9.4"
|
|
27
27
|
|
|
28
28
|
__license__ = "Apache License Version 2.0"
|
|
@@ -37,7 +37,7 @@ logger = logging.getLogger(__name__)
|
|
|
37
37
|
|
|
38
38
|
MB = 1024 * 1024
|
|
39
39
|
GB = 1024 ** 3
|
|
40
|
-
transfer_config = TransferConfig(multipart_threshold=int(
|
|
40
|
+
transfer_config = TransferConfig(multipart_threshold=int(32 * MB))
|
|
41
41
|
|
|
42
42
|
CONTENT_FOLDER = "content"
|
|
43
43
|
PRESERVATION_CONTENT_FOLDER = "p1"
|
|
@@ -1910,9 +1910,16 @@ class UploadAPI(AuthenticatedAPI):
|
|
|
1910
1910
|
endpoint = f'{self.protocol}://{self.server}/api/s3/buckets'
|
|
1911
1911
|
self.token = self.__token__()
|
|
1912
1912
|
|
|
1913
|
+
|
|
1914
|
+
retries= {
|
|
1915
|
+
'max_attempts': 10,
|
|
1916
|
+
'mode': 'adaptive'
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1913
1919
|
s3_client = boto3.client('s3', endpoint_url=endpoint, aws_access_key_id=self.token,
|
|
1914
1920
|
aws_secret_access_key="NOT_USED",
|
|
1915
|
-
config=Config(s3={'addressing_style': 'path'}
|
|
1921
|
+
config=Config(s3={'addressing_style': 'path'}, read_timeout=120, connect_timeout=120,
|
|
1922
|
+
retries=retries, tcp_keepalive=True))
|
|
1916
1923
|
|
|
1917
1924
|
metadata = {}
|
|
1918
1925
|
if folder is not None:
|
|
@@ -21,7 +21,7 @@ if sys.argv[-1] == 'publish':
|
|
|
21
21
|
# This call to setup() does all the work
|
|
22
22
|
setup(
|
|
23
23
|
name=PKG,
|
|
24
|
-
version="2.9.
|
|
24
|
+
version="2.9.4",
|
|
25
25
|
description="Python library for the Preservica API",
|
|
26
26
|
long_description=README,
|
|
27
27
|
long_description_content_type="text/markdown",
|
|
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
|