datastore.key

Module Contents

Classes

PathElement

Key

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

  • id_ (Optional[int]) –

  • name (Optional[str]) –

__eq__(other)

Return self==value.

Parameters:

other (Any) –

Return type:

bool

__repr__()

Return repr(self).

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
__eq__(other)

Return self==value.

Parameters:

other (Any) –

Return type:

bool

__repr__()

Return repr(self).

Return type:

str

classmethod from_repr(data)
Parameters:

data (Dict[str, Any]) –

Return type:

Key

to_repr()
Return type:

Dict[str, Any]