get_stream
Get a stream of data from a remote location. This is useful for downloading streaming data from a remote location.
def get_stream(
path: str,
chunk_size: int = 10 * 2**20,
kwargs: kwargs
) - > AsyncGenerator[bytes, None]
Get a stream of data from a remote location. This is useful for downloading streaming data from a remote location.
Parameters
| Name | Type | Description |
|---|---|---|
| path | str | Path to the remote location where the data will be downloaded. |
| chunk_size | int = 10 * 2**20 | Size of each chunk to be read from the file. |
| kwargs | kwargs | Additional arguments to be passed to the underlying filesystem. |
Returns
| Type | Description |
|---|---|
AsyncGenerator[bytes, None] | An async iterator that yields chunks of bytes. |