Python 3.10 is now available in preview.

google.appengine.datastore.datastore_pbs.v1_key_to_string

Generates a string representing a key's path.

The output makes no effort to qualify special characters in strings.

The key need not be valid, but if any of the key path elements have both a name and an ID the name is ignored.

v1_key An googledatastore.Key.

A string representing the key's path.