Python 3.10 is now available in preview.


Create an rpc for use in configuring datastore calls.

NOTE: This functions exists for backwards compatibility. Please use create_config() instead. NOTE: the latter uses on_completion, which is a function taking an argument, wherease create_rpc uses callback which is a function without arguments.

deadline float, deadline for calls in seconds.
callback callable, a callback triggered when this rpc completes, accepts one argument: the returned rpc.
read_policy flag, set to EVENTUAL_CONSISTENCY to enable eventually consistent reads

A datastore.DatastoreRPC instance.