Defines S3 transport adapter for CondaSession (requests.Session).



The Base Transport Adapter


class S3Adapter#

Bases: conda.gateways.connection.BaseAdapter

The Base Transport Adapter

send(request: conda.gateways.connection.PreparedRequest, stream: bool = False, timeout: None | float | tuple[float, float] | tuple[float, None] = None, verify: bool | str = True, cert: None | bytes | str | tuple[bytes | str, bytes | str] = None, proxies: dict[str, str] | None = None) conda.gateways.connection.Response#

Sends PreparedRequest object. Returns Response object.

  • request -- The PreparedRequest being sent.

  • stream -- (optional) Whether to stream the request content.

  • timeout (float or tuple) -- (optional) How long to wait for the server to send data before giving up, as a float, or a (connect timeout, read timeout) tuple.

  • verify -- (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use

  • cert -- (optional) Any user-provided SSL certificate to be trusted.

  • proxies -- (optional) The proxies dictionary to apply to the request.


Cleans up adapter specific items.

_send_boto3(resp: conda.gateways.connection.Response, request: conda.gateways.connection.PreparedRequest) conda.gateways.connection.Response#