Releases: vercel/vercel-py
Releases · vercel/vercel-py
v0.5.2
v0.5.1
New features
- Add a
__bytes__magic method toGetBlobResultto make it easier to get the.contentbytes.
v0.5.0
Features
- Private blob storage support (#50) — All blob operations (
put,copy,get, multipart) now acceptaccess="private"in addition to"public". Private blobs use*.private.blob.vercel-storage.comdomains and authenticate via Bearer token. - New
GetBlobResulttype with.content,.etag,.size,.content_type, etc. - New params on
get:use_cache,if_none_match(for conditional 304 requests)
Breaking changes
get()/get_async()now returnGetBlobResultinstead ofbytes. Migrate:get(url)→get(url).contentget()/get_async()now requireaccessparam (defaults to"public", backward-compatible for public stores)download_file/download_file_asyncgain anaccessparam (defaults to"public")
Bug fixes
- Handle RFC 7231 date format in
Last-Modifiedheader (blob storage CDN returns HTTP date format, not ISO 8601)