diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-03 14:54:37 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-03 14:54:37 +0300 |
commit | f82a27ff3a60e7146175ec1ff6c5037c36d420df (patch) | |
tree | cc6defd2b223d57e8b0361e41bf57ab6f3b09c1d /contrib/python/boto3 | |
parent | 6b2a294ae57e937a601dc14f20f2b856495c2523 (diff) | |
download | ydb-f82a27ff3a60e7146175ec1ff6c5037c36d420df.tar.gz |
intermediate changes
ref:6c189367828571b9b181b3719599a37e64217379
Diffstat (limited to 'contrib/python/boto3')
-rw-r--r-- | contrib/python/boto3/py3/.dist-info/METADATA | 23 | ||||
-rw-r--r-- | contrib/python/boto3/py3/README.rst | 19 | ||||
-rw-r--r-- | contrib/python/boto3/py3/boto3/__init__.py | 2 | ||||
-rw-r--r-- | contrib/python/boto3/py3/boto3/docs/resource.py | 2 | ||||
-rw-r--r-- | contrib/python/boto3/py3/boto3/examples/s3.rst | 17 | ||||
-rw-r--r-- | contrib/python/boto3/py3/boto3/s3/inject.py | 45 | ||||
-rw-r--r-- | contrib/python/boto3/py3/boto3/session.py | 2 | ||||
-rw-r--r-- | contrib/python/boto3/py3/ya.make | 2 |
8 files changed, 75 insertions, 37 deletions
diff --git a/contrib/python/boto3/py3/.dist-info/METADATA b/contrib/python/boto3/py3/.dist-info/METADATA index 0fae3151d5..16c571ffd7 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.19.12 +Version: 1.20.54 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.23.0,>=1.22.12) +Requires-Dist: botocore (<1.24.0,>=1.23.54) Requires-Dist: jmespath (<1.0.0,>=0.7.1) Requires-Dist: s3transfer (<0.6.0,>=0.5.0) Provides-Extra: crt @@ -32,7 +32,7 @@ Requires-Dist: botocore[crt] (<2.0a0,>=1.21.0) ; extra == 'crt' Boto3 - The AWS SDK for Python =============================== -|Version| |Gitter| +|Version| |Python| |License| Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use @@ -40,23 +40,27 @@ of services like Amazon S3 and Amazon EC2. You can find the latest, most up to date, documentation at our `doc site`_, including a list of services that are supported. +Boto3 is maintained and published by `Amazon Web Services`_. + +Notices +------- + On 01/15/2021 deprecation for Python 2.7 was announced and support was dropped on 07/15/2021. To avoid disruption, customers using Boto3 on Python 2.7 may need to upgrade their version of Python or pin the version of Boto3. For more information, see this `blog post <https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-python-2-7-in-aws-sdk-for-python-and-aws-cli-v1/>`__. +Starting in May 2022, we will be dropping support for Python 3.6. This follows the Python Software Foundation `end of support <https://www.python.org/dev/peps/pep-0494/#lifespan>`__ for the runtime which occurred on 2021-12-23. .. _boto: https://docs.pythonboto.org/ .. _`doc site`: https://boto3.amazonaws.com/v1/documentation/api/latest/index.html -.. |Gitter| image:: https://badges.gitter.im/boto/boto3.svg - :target: https://gitter.im/boto/boto3 - :alt: Gitter -.. |Downloads| image:: http://img.shields.io/pypi/dm/boto3.svg?style=flat +.. _`Amazon Web Services`: https://aws.amazon.com/what-is-aws/ +.. |Python| image:: https://img.shields.io/pypi/pyversions/boto3.svg?style=flat :target: https://pypi.python.org/pypi/boto3/ - :alt: Downloads + :alt: Python Versions .. |Version| image:: http://img.shields.io/pypi/v/boto3.svg?style=flat :target: https://pypi.python.org/pypi/boto3/ - :alt: Version + :alt: Package Version .. |License| image:: http://img.shields.io/pypi/l/boto3.svg?style=flat :target: https://github.com/boto/boto3/blob/develop/LICENSE :alt: License @@ -139,7 +143,6 @@ bandwidth to address them. Please use these community resources for getting help: * Ask a question on `Stack Overflow <https://stackoverflow.com/>`__ and tag it with `boto3 <https://stackoverflow.com/questions/tagged/boto3>`__ -* Come join the AWS Python community chat on `gitter <https://gitter.im/boto/boto3>`__ * Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__ * If it turns out that you may have found a bug, please `open an issue <https://github.com/boto/boto3/issues/new>`__ diff --git a/contrib/python/boto3/py3/README.rst b/contrib/python/boto3/py3/README.rst index d7649b6a95..b883519aa3 100644 --- a/contrib/python/boto3/py3/README.rst +++ b/contrib/python/boto3/py3/README.rst @@ -2,7 +2,7 @@ Boto3 - The AWS SDK for Python =============================== -|Version| |Gitter| +|Version| |Python| |License| Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use @@ -10,23 +10,27 @@ of services like Amazon S3 and Amazon EC2. You can find the latest, most up to date, documentation at our `doc site`_, including a list of services that are supported. +Boto3 is maintained and published by `Amazon Web Services`_. + +Notices +------- + On 01/15/2021 deprecation for Python 2.7 was announced and support was dropped on 07/15/2021. To avoid disruption, customers using Boto3 on Python 2.7 may need to upgrade their version of Python or pin the version of Boto3. For more information, see this `blog post <https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-python-2-7-in-aws-sdk-for-python-and-aws-cli-v1/>`__. +Starting in May 2022, we will be dropping support for Python 3.6. This follows the Python Software Foundation `end of support <https://www.python.org/dev/peps/pep-0494/#lifespan>`__ for the runtime which occurred on 2021-12-23. .. _boto: https://docs.pythonboto.org/ .. _`doc site`: https://boto3.amazonaws.com/v1/documentation/api/latest/index.html -.. |Gitter| image:: https://badges.gitter.im/boto/boto3.svg - :target: https://gitter.im/boto/boto3 - :alt: Gitter -.. |Downloads| image:: http://img.shields.io/pypi/dm/boto3.svg?style=flat +.. _`Amazon Web Services`: https://aws.amazon.com/what-is-aws/ +.. |Python| image:: https://img.shields.io/pypi/pyversions/boto3.svg?style=flat :target: https://pypi.python.org/pypi/boto3/ - :alt: Downloads + :alt: Python Versions .. |Version| image:: http://img.shields.io/pypi/v/boto3.svg?style=flat :target: https://pypi.python.org/pypi/boto3/ - :alt: Version + :alt: Package Version .. |License| image:: http://img.shields.io/pypi/l/boto3.svg?style=flat :target: https://github.com/boto/boto3/blob/develop/LICENSE :alt: License @@ -109,7 +113,6 @@ bandwidth to address them. Please use these community resources for getting help: * Ask a question on `Stack Overflow <https://stackoverflow.com/>`__ and tag it with `boto3 <https://stackoverflow.com/questions/tagged/boto3>`__ -* Come join the AWS Python community chat on `gitter <https://gitter.im/boto/boto3>`__ * Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__ * If it turns out that you may have found a bug, please `open an issue <https://github.com/boto/boto3/issues/new>`__ diff --git a/contrib/python/boto3/py3/boto3/__init__.py b/contrib/python/boto3/py3/boto3/__init__.py index 48d1c80aa6..b2e607d819 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.19.12' +__version__ = '1.20.54' # The default Boto3 session; autoloaded when needed. diff --git a/contrib/python/boto3/py3/boto3/docs/resource.py b/contrib/python/boto3/py3/boto3/docs/resource.py index fa2dc619fb..9ce4a7cc9f 100644 --- a/contrib/python/boto3/py3/boto3/docs/resource.py +++ b/contrib/python/boto3/py3/boto3/docs/resource.py @@ -131,7 +131,7 @@ class ResourceDocumenter(BaseDocumenter): resource_type='Identifiers', description=( 'Identifiers are properties of a resource that are ' - 'set upon instantation of the resource.'), + 'set upon instantiation of the resource.'), intro_link='identifiers_attributes_intro') for identifier in identifiers: identifier_section = section.add_new_section(identifier.name) diff --git a/contrib/python/boto3/py3/boto3/examples/s3.rst b/contrib/python/boto3/py3/boto3/examples/s3.rst index 147c4a3500..194f1111f1 100644 --- a/contrib/python/boto3/py3/boto3/examples/s3.rst +++ b/contrib/python/boto3/py3/boto3/examples/s3.rst @@ -144,3 +144,20 @@ Boto3 will automatically compute this value for us. SSECustomerAlgorithm='AES256') print("Done, response body:") print(response['Body'].read()) + + +Downloading a specific version of an S3 object +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This example shows how to download a specific version of an +S3 object. + +.. code-block:: python + + import boto3 + s3 = boto3.client('s3') + + s3.download_file( + "bucket-name", "key-name", "tmp.txt", + ExtraArgs={"VersionId": "my-version-id"} + ) diff --git a/contrib/python/boto3/py3/boto3/s3/inject.py b/contrib/python/boto3/py3/boto3/s3/inject.py index 4f2a8f6043..f299e6a81d 100644 --- a/contrib/python/boto3/py3/boto3/s3/inject.py +++ b/contrib/python/boto3/py3/boto3/s3/inject.py @@ -116,7 +116,8 @@ def upload_file(self, Filename, Bucket, Key, ExtraArgs=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed upload arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -157,7 +158,8 @@ def download_file(self, Bucket, Key, Filename, ExtraArgs=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed download arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -195,7 +197,8 @@ def bucket_upload_file(self, Filename, Key, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed upload arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -232,7 +235,8 @@ def bucket_download_file(self, Key, Filename, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed download arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -266,7 +270,8 @@ def object_upload_file(self, Filename, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed upload arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -300,7 +305,8 @@ def object_download_file(self, Filename, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed download arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -347,7 +353,8 @@ def copy(self, CopySource, Bucket, Key, ExtraArgs=None, Callback=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation + client operation. For allowed download arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -410,7 +417,8 @@ def bucket_copy(self, CopySource, Key, ExtraArgs=None, Callback=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation + client operation. For allowed download arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -460,7 +468,8 @@ def object_copy(self, CopySource, ExtraArgs=None, Callback=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation + client operation. For allowed download arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -512,7 +521,8 @@ def upload_fileobj(self, Fileobj, Bucket, Key, ExtraArgs=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed upload arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -567,7 +577,8 @@ def bucket_upload_fileobj(self, Fileobj, Key, ExtraArgs=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed upload arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -607,7 +618,8 @@ def object_upload_fileobj(self, Fileobj, ExtraArgs=None, Callback=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed upload arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -651,7 +663,8 @@ def download_fileobj(self, Bucket, Key, Fileobj, ExtraArgs=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed download arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -706,7 +719,8 @@ def bucket_download_fileobj(self, Key, Fileobj, ExtraArgs=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed download arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to @@ -746,7 +760,8 @@ def object_download_fileobj(self, Fileobj, ExtraArgs=None, Callback=None, :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the - client operation. + client operation. For allowed download arguments see + boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS. :type Callback: function :param Callback: A method which takes a number of bytes transferred to diff --git a/contrib/python/boto3/py3/boto3/session.py b/contrib/python/boto3/py3/boto3/session.py index 3a3a654ebc..70c256159a 100644 --- a/contrib/python/boto3/py3/boto3/session.py +++ b/contrib/python/boto3/py3/boto3/session.py @@ -174,7 +174,7 @@ class Session(object): def get_credentials(self): """ - Return the :class:`botocore.credential.Credential` object + Return the :class:`botocore.credentials.Credentials` object associated with this session. If the credentials have not yet been loaded, this will attempt to load them. If they have already been loaded, this will return the cached diff --git a/contrib/python/boto3/py3/ya.make b/contrib/python/boto3/py3/ya.make index 823ae3a54e..7416d7d3c1 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.19.12) +VERSION(1.20.54) LICENSE(Apache-2.0) |