File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,10 @@ def put(
105
105
- A file-like object opened in binary read mode
106
106
- A [`Path`][pathlib.Path] to a local file
107
107
- A [`bytes`][] object.
108
- - Any object implementing the Python [buffer
108
+ - An object implementing the Python [buffer
109
109
protocol](https://docs.python.org/3/c-api/buffer.html) (includes `bytes`
110
- but also `memoryview`, numpy arrays, and more).
110
+ but also `memoryview`, numpy arrays, and more). Note that only
111
+ 1-dimensional, contiguous, uint8-typed buffers are supported.
111
112
- An iterator or iterable of objects implementing the Python buffer
112
113
protocol.
113
114
@@ -146,7 +147,7 @@ async def put_async(
146
147
147
148
Refer to the documentation for [`put`][obstore.put]. In addition to what the
148
149
synchronous `put` allows for the `file` parameter, this **also supports an async
149
- iterator or iterable** of objects implementing the Python buffer protocol .
150
+ iterator or iterable** of buffers .
150
151
151
152
This means, for example, you can pass the result of `get_async` directly to
152
153
`put_async`, and the request will be streamed through Python during the put
You can’t perform that action at this time.
0 commit comments