datastore.key

Classes

PathElement

Key

Module Contents

class datastore.key.PathElement(kind, *, id_=None, name=None)
Parameters:
  • kind (str)

  • id_ (Optional[int])

  • name (Optional[str])

kind
id = None
name = None
__eq__(other)
Parameters:

other (Any)

Return type:

bool

__repr__()
Return type:

str

classmethod from_repr(data)
Parameters:

data (Dict[str, Any])

Return type:

PathElement

to_repr()
Return type:

Dict[str, Any]

class datastore.key.Key(project, path, namespace='')
Parameters:
  • project (str)

  • path (List[PathElement])

  • namespace (str)

path_element_kind
project
namespace = ''
path
__eq__(other)
Parameters:

other (Any)

Return type:

bool

__repr__()
Return type:

str

classmethod from_repr(data)
Parameters:

data (Dict[str, Any])

Return type:

Key

to_repr()
Return type:

Dict[str, Any]