In GAE standard, ndb has the concept of the urlsafe string version of a Key.
e.g. url_string = sandy_key.urlsafe() produces a result like agVoZWxsb3IPCxIHQWNjb3VudBiZiwIM.
However, I cannot find a way to use this format with the google.cloud.datastore library for code running outside GAE standard. Please add a method to the Key class to create urlsafe strings and a method to generate Keys from urlsafe strings. Alternatively, provide some documentation on how to decode/encode them with the existing library.
NB, the console support page says "The encoding method is available in any Cloud Datastore client library."
In GAE standard, ndb has the concept of the urlsafe string version of a Key.
e.g.
url_string = sandy_key.urlsafe()produces a result likeagVoZWxsb3IPCxIHQWNjb3VudBiZiwIM.However, I cannot find a way to use this format with the google.cloud.datastore library for code running outside GAE standard. Please add a method to the Key class to create urlsafe strings and a method to generate Keys from urlsafe strings. Alternatively, provide some documentation on how to decode/encode them with the existing library.
NB, the console support page says "The encoding method is available in any Cloud Datastore client library."