Skip to content

Version 0.6.0 (Pre M1)

Compare
Choose a tag to compare
@dhermes dhermes released this 04 Jun 21:19

General

  • Update required version of protobuf to 3.0.0-alpha-1.
  • Add from_service_account_json, from_service_account_p12 and from_environment factories to Connection base class, allowing creation of a connection without first creating a set of credentials.

Datastore

  • Fix serious bug where the transaction ID was not passed along to transactions, effectively making a transaction act as a batch.
  • Add appropriate scope to un-scoped credentials passed to connection constructor.
  • Enable connection as an optional argument to all methods and functions which use a connection.
  • Require exclude_from_indexes to be a tuple or list in Entity constructor.
  • Require projection, order and group_by to be a tuple or list in Query constructor.
  • Re-purpose datastore.get to take a single key; move previous functionality to datastore.get_multi. Similar
    changes were made for
datastore.put --> datastore.put_multi

and

datastore.delete --> datastore.delete_multi

Storage

  • Add support for "futures", to allow GET/PATCH to work correctly in a batch.
  • Remove default chunk size in upload/download.
  • Add lazily-loaded default connection and project.
  • Remove connection property from Blob/ACL/Bucket classes.
  • Enable connection as an optional argument to all methods and functions which use a connection.
  • Add appropriate scope to un-scoped credentials passed to connection constructor.
  • Update public blob URL to use storage.googleapis.com.
  • Remove Bucket.__iter__ and Bucket.__contains__.
  • Limit Bucket.make_public(recursive=True) to abort if more than 256 objects are in the bucket. This is similar to what is done in Bucket.delete(force=True).

Pub/Sub

  • Add an option to auto-add a timestamp to published, messages, allowing them to be sorted / logged.
  • Add appropriate scope to un-scoped credentials passed to connection constructor.
  • Enable connection as an optional argument to all methods and functions which use a connection.
  • Fix a bug in Subscription.pull for cases when receivedMessages is not returned.