def attributes(full_attribute_name):
 last_dot = full_attribute_name.rfind('.')
 attr_name = full_attribute_name[(last_dot + 1):]
 mod_path = full_attribute_name[:last_dot]
 mod = modules(mod_path)
 try:
  attr = getattr(mod, attr_name)
 except AttributeError:
  raise AttributeError(("'%s' object has no attribute '%s'" % (mod_path, attr_name)))
 return attr

def attributes ( full_attribute_name ) : last_dot = full_attribute_name . rfind ( '.' ) attr_name = full_attribute_name [ ( last_dot + 1 ) : ] mod_path = full_attribute_name [ : last_dot ] mod = modules ( mod_path ) try : attr = getattr ( mod , attr_name ) except AttributeError : raise AttributeError ( ( "'%s' object has no attribute '%s'" % ( mod_path , attr_name ) ) ) return attr
return attributes from dumpe2fs for a specified device cli example: .