aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/boto3
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-26 01:21:08 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-26 01:21:08 +0300
commit368743f37b3e87f5c016cf2f899c3e570786d36f (patch)
tree9c3becf52caab11ee7cc7e8e2295d8fed98b80c5 /contrib/python/boto3
parent3ac68888f5cd911954a4cb2e2bf081001c5e7e2c (diff)
downloadydb-368743f37b3e87f5c016cf2f899c3e570786d36f.tar.gz
intermediate changes
ref:a29ff360f2788f6f36262cb31f6000f162726a85
Diffstat (limited to 'contrib/python/boto3')
-rw-r--r--contrib/python/boto3/py3/.dist-info/METADATA4
-rw-r--r--contrib/python/boto3/py3/boto3/__init__.py2
-rw-r--r--contrib/python/boto3/py3/boto3/s3/transfer.py24
-rw-r--r--contrib/python/boto3/py3/boto3/session.py12
-rw-r--r--contrib/python/boto3/py3/ya.make2
5 files changed, 32 insertions, 12 deletions
diff --git a/contrib/python/boto3/py3/.dist-info/METADATA b/contrib/python/boto3/py3/.dist-info/METADATA
index 80e4bbb556..0fae3151d5 100644
--- a/contrib/python/boto3/py3/.dist-info/METADATA
+++ b/contrib/python/boto3/py3/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: boto3
-Version: 1.18.65
+Version: 1.19.12
Summary: The AWS SDK for Python
Home-page: https://github.com/boto/boto3
Author: Amazon Web Services
@@ -22,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.10
Requires-Python: >= 3.6
License-File: LICENSE
License-File: NOTICE
-Requires-Dist: botocore (<1.22.0,>=1.21.65)
+Requires-Dist: botocore (<1.23.0,>=1.22.12)
Requires-Dist: jmespath (<1.0.0,>=0.7.1)
Requires-Dist: s3transfer (<0.6.0,>=0.5.0)
Provides-Extra: crt
diff --git a/contrib/python/boto3/py3/boto3/__init__.py b/contrib/python/boto3/py3/boto3/__init__.py
index c1c9cca4dd..48d1c80aa6 100644
--- a/contrib/python/boto3/py3/boto3/__init__.py
+++ b/contrib/python/boto3/py3/boto3/__init__.py
@@ -18,7 +18,7 @@ from boto3.compat import _warn_deprecated_python
__author__ = 'Amazon Web Services'
-__version__ = '1.18.65'
+__version__ = '1.19.12'
# The default Boto3 session; autoloaded when needed.
diff --git a/contrib/python/boto3/py3/boto3/s3/transfer.py b/contrib/python/boto3/py3/boto3/s3/transfer.py
index bfebc13a53..79d4487329 100644
--- a/contrib/python/boto3/py3/boto3/s3/transfer.py
+++ b/contrib/python/boto3/py3/boto3/s3/transfer.py
@@ -166,14 +166,17 @@ class TransferConfig(S3TransferConfig):
'max_io_queue': 'max_io_queue_size'
}
- def __init__(self,
- multipart_threshold=8 * MB,
- max_concurrency=10,
- multipart_chunksize=8 * MB,
- num_download_attempts=5,
- max_io_queue=100,
- io_chunksize=256 * KB,
- use_threads=True):
+ def __init__(
+ self,
+ multipart_threshold=8 * MB,
+ max_concurrency=10,
+ multipart_chunksize=8 * MB,
+ num_download_attempts=5,
+ max_io_queue=100,
+ io_chunksize=256 * KB,
+ use_threads=True,
+ max_bandwidth=None,
+ ):
"""Configuration object for managed S3 transfers
:param multipart_threshold: The transfer size threshold for which
@@ -209,6 +212,10 @@ class TransferConfig(S3TransferConfig):
:param use_threads: If True, threads will be used when performing
S3 transfers. If False, no threads will be used in
performing transfers: all logic will be ran in the main thread.
+
+ :param max_bandwidth: The maximum bandwidth that will be consumed
+ in uploading and downloading file content. The value is an integer
+ in terms of bytes per second.
"""
super(TransferConfig, self).__init__(
multipart_threshold=multipart_threshold,
@@ -217,6 +224,7 @@ class TransferConfig(S3TransferConfig):
num_download_attempts=num_download_attempts,
max_io_queue_size=max_io_queue,
io_chunksize=io_chunksize,
+ max_bandwidth=max_bandwidth,
)
# Some of the argument names are not the same as the inherited
# S3TransferConfig so we add aliases so you can still access the
diff --git a/contrib/python/boto3/py3/boto3/session.py b/contrib/python/boto3/py3/boto3/session.py
index 49c17039db..3a3a654ebc 100644
--- a/contrib/python/boto3/py3/boto3/session.py
+++ b/contrib/python/boto3/py3/boto3/session.py
@@ -182,6 +182,18 @@ class Session(object):
"""
return self._session.get_credentials()
+ def get_partition_for_region(self, region_name):
+ """Lists the partition name of a particular region.
+
+ :type region_name: string
+ :param region_name: Name of the region to list partition for (e.g.,
+ us-east-1).
+
+ :rtype: string
+ :return: Returns the respective partition name (e.g., aws).
+ """
+ return self._session.get_partition_for_region(region_name)
+
def client(self, service_name, region_name=None, api_version=None,
use_ssl=True, verify=None, endpoint_url=None,
aws_access_key_id=None, aws_secret_access_key=None,
diff --git a/contrib/python/boto3/py3/ya.make b/contrib/python/boto3/py3/ya.make
index fe3de5e9bd..823ae3a54e 100644
--- a/contrib/python/boto3/py3/ya.make
+++ b/contrib/python/boto3/py3/ya.make
@@ -2,7 +2,7 @@ PY3_LIBRARY()
OWNER(g:python-contrib)
-VERSION(1.18.65)
+VERSION(1.19.12)
LICENSE(Apache-2.0)