Functions | Variables
rocon_gateway_utils.uuid Namespace Reference

Functions

def gateway_basename (gateway_name)
 
def is_uuid_postfixed (name)
 

Variables

 valid_uuid_pattern = re.compile("^[0-9a-f]{32}$")
 Methods. More...
 

Function Documentation

def rocon_gateway_utils.uuid.gateway_basename (   gateway_name)
  Strips the 16 byte hash (in hex format) from a gateway name, leaving the base name.
  Note, 16 hex values represents 32 characters

  @param gateway_name : base_name + 16 byte hex formatted hash
  @type str
  @return base name without the hash
  @rtype str

Definition at line 34 of file uuid.py.

def rocon_gateway_utils.uuid.is_uuid_postfixed (   name)
  A not very reliable way to check if the last 32 characters of a string
  are a uuid postfix. Not reliable because if the prefix characters are
  [0-9a-f] then it will accept shorter combinations of strings. Practical
  because who will give a gateway a uuid style name?

Definition at line 20 of file uuid.py.

Variable Documentation

rocon_gateway_utils.uuid.valid_uuid_pattern = re.compile("^[0-9a-f]{32}$")

Methods.

Definition at line 17 of file uuid.py.



rocon_gateway_utils
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 14:40:06