geodesic.boson.dataset.Dataset.latest_token#

Dataset.latest_token(servicer, persistent_only=False, broadcasted_only=False)[source]#

Returns the latest token created for a dataset.

Parameters:
  • servicer (str) – The name of the servicer tied to the token.

  • persistent_only (bool) – If True, only returns tokens that don’t expire.

  • broadcasted_only (bool) – If True, only returns tokens that are broadcasted.

Returns:

the latest token created for this dataset, if it exists, otherwise returns None

Return type:

Token