Skip to content

0.3.22

Latest

Choose a tag to compare

@s-u s-u released this 18 Aug 23:53

API changes

  • put_object splits the use of files vs payload into two separate arguments: what is now the first positional argument and expects actual content to store, file is now a named argument used to store file content. The previous use of file for both was very dangerous as it stored filenames instead of content without warning if the file was not found.

    Old code that intended to use files such as:

    put_object("foo.csv", "bucket")

    has to use either of

    put_object(file="foo.csv", bucket="bucket")
    ## or (not recommended)
    put_object(, "bucket", file="foo.csv")

    Any code that used file= explicitly and no positional arguments doesn't need to change.

Features

  • put_object supports connections, including non-seekable ones

Bugfixes

  • put_object now closes its connections properly (#354)

  • Adapt to DisplayName being removed from the AWS API (#437)

  • get_bucket fetched incorrect list (repeating the first chunk) if multiple fetches were required and the response included the NextMarker entry (#414)