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.
Files changed (48) hide show
  1. {pypreservica-2.9.3 → pypreservica-2.9.4}/PKG-INFO +1 -1
  2. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/__init__.py +1 -1
  3. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/uploadAPI.py +9 -2
  4. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/PKG-INFO +1 -1
  5. {pypreservica-2.9.3 → pypreservica-2.9.4}/setup.py +1 -1
  6. {pypreservica-2.9.3 → pypreservica-2.9.4}/LICENSE.txt +0 -0
  7. {pypreservica-2.9.3 → pypreservica-2.9.4}/README.md +0 -0
  8. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/adminAPI.py +0 -0
  9. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/authorityAPI.py +0 -0
  10. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/common.py +0 -0
  11. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/contentAPI.py +0 -0
  12. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/entityAPI.py +0 -0
  13. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/mdformsAPI.py +0 -0
  14. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/monitorAPI.py +0 -0
  15. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/opex.py +0 -0
  16. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/parAPI.py +0 -0
  17. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/retentionAPI.py +0 -0
  18. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/webHooksAPI.py +0 -0
  19. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica/workflowAPI.py +0 -0
  20. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/SOURCES.txt +0 -0
  21. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/dependency_links.txt +0 -0
  22. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/requires.txt +0 -0
  23. {pypreservica-2.9.3 → pypreservica-2.9.4}/pyPreservica.egg-info/top_level.txt +0 -0
  24. {pypreservica-2.9.3 → pypreservica-2.9.4}/setup.cfg +0 -0
  25. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_authority_records.py +0 -0
  26. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_bitstream.py +0 -0
  27. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_children.py +0 -0
  28. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_content_api.py +0 -0
  29. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_crawl_fs.py +0 -0
  30. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_delete.py +0 -0
  31. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_download.py +0 -0
  32. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_entity.py +0 -0
  33. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_export_opex.py +0 -0
  34. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_groups.py +0 -0
  35. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_identifier.py +0 -0
  36. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_ingest.py +0 -0
  37. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_integrity_check.py +0 -0
  38. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_metadata.py +0 -0
  39. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_par.py +0 -0
  40. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_replace.py +0 -0
  41. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_retention.py +0 -0
  42. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_schema.py +0 -0
  43. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_security.py +0 -0
  44. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_thumbnail.py +0 -0
  45. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_upload.py +0 -0
  46. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_users.py +0 -0
  47. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_workflow.py +0 -0
  48. {pypreservica-2.9.3 → pypreservica-2.9.4}/tests/test_xml_metadata.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyPreservica
3
- Version: 2.9.3
3
+ Version: 2.9.4
4
4
  Summary: Python library for the Preservica API
5
5
  Home-page: https://pypreservica.readthedocs.io/
6
6
  Author: James Carr
@@ -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.3"
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((1 * GB) / 16))
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyPreservica
3
- Version: 2.9.3
3
+ Version: 2.9.4
4
4
  Summary: Python library for the Preservica API
5
5
  Home-page: https://pypreservica.readthedocs.io/
6
6
  Author: James Carr
@@ -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.3",
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