# boto3 1.44.15 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
Download an S3 object to a file.

    Usage::

        import boto3
        s3 = boto3.resource('s3')
        s3.Object('amzn-s3-demo-bucket', 'hello.txt').download_file('/tmp/hello.txt')

    Similar behavior as S3Transfer's download_file() method,
    except that parameters are capitalized. Detailed examples can be found at
    :ref:`S3Transfer's Usage <ref_s3transfer_usage>`.

    :type Filename: str
    :param Filename: The path to the file to download to.

    :type ExtraArgs: dict
    :param ExtraArgs: Extra arguments that may be passed to the
        client operation. For allowed download arguments see
        :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.

    :type Callback: function
    :param Callback: A method which takes a number of bytes transferred to
        be periodically called during the download.

    :type Config: boto3.s3.transfer.TransferConfig
    :param Config: The transfer configuration to be used when performing the
        transfer.
    
=== parse rest
short_description: 'Download an S3 object to a file.'
long_description: |
  Usage::
  
      import boto3
      s3 = boto3.resource('s3')
      s3.Object('amzn-s3-demo-bucket', 'hello.txt').download_file('/tmp/hello.txt')
  
  Similar behavior as S3Transfer's download_file() method,
  except that parameters are capitalized. Detailed examples can be found at
  :ref:`S3Transfer's Usage <ref_s3transfer_usage>`.
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: 'The path to the file to download to.'
  kind: param
  key: 'param'
  arg_name: 'Filename'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: |
    Extra arguments that may be passed to the
    client operation. For allowed download arguments see
    :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
  kind: param
  key: 'param'
  arg_name: 'ExtraArgs'
  type_name: 'dict'
  is_optional: False
- DocstringParam
  description: |
    A method which takes a number of bytes transferred to
    be periodically called during the download.
  kind: param
  key: 'param'
  arg_name: 'Callback'
  type_name: 'function'
  is_optional: False
- DocstringParam
  description: |
    The transfer configuration to be used when performing the
    transfer.
  kind: param
  key: 'param'
  arg_name: 'Config'
  type_name: 'boto3.s3.transfer.TransferConfig'
  is_optional: False
=== detect
rest
=== compose rest
Download an S3 object to a file.

Usage::

    import boto3
    s3 = boto3.resource('s3')
    s3.Object('amzn-s3-demo-bucket', 'hello.txt').download_file('/tmp/hello.txt')

Similar behavior as S3Transfer's download_file() method,
except that parameters are capitalized. Detailed examples can be found at
:ref:`S3Transfer's Usage <ref_s3transfer_usage>`.

:param str Filename: The path to the file to download to.
:param dict ExtraArgs: Extra arguments that may be passed to the
    client operation. For allowed download arguments see
    :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
:param function Callback: A method which takes a number of bytes transferred to
    be periodically called during the download.
:param boto3.s3.transfer.TransferConfig Config: The transfer configuration to be used when performing the
    transfer.
