# SupportsRead<!-- -->

A file-like object that is not an `io.IOBase` stream, read whole with a single `read()` call.

Its result is sent as one chunk, so the source is held in memory whole and gets a single attempt. An `io.IOBase` stream, such as an open file or an `io.BytesIO`, is read in chunks instead. An `async def read`, as `aiofiles` provides, is accepted by `ApifyClientAsync`.

## Index[](#Index)

### Methods

* [read](https://docs.apify.com/api/client/python/reference/class/SupportsRead.md#read)

## Methods<!-- -->[](#Methods)

### [](#read)read

* **read**(): (bytes | str) | Awaitable\[bytes | str]

- Read the whole source.

  ***

  #### Returns (bytes | str) | Awaitable\[bytes | str]
