Skip to main content

put_stream

Put a stream of data to a remote location. This is useful for streaming data to a remote location.

async def put_stream(
data_iterable: typing.AsyncIterable[bytes] | bytes, *, name: str | None = None, to_path: str | None = None, **kwargs
) -> str: ...

Put a stream of data to a remote location. This is useful for streaming data to a remote location.

Parameters​

NameTypeDescription
data_iterable`typing.AsyncIterable[bytes]bytes`
name`strNone` = None
to_path`strNone` = None
kwargsdictAdditional arguments to be passed to the underlying filesystem.

Returns​

TypeDescription
strThe path to the remote location where the data was stored.