def get_installation_key():
 try:
  return PersistentCacheEntry.objects.get(**INSTALLATION_KEY_KWARGS).data
 except ObjectDoesNotExist:
  key = get_random_string(48)
  PersistentCacheEntry.objects.create(data=key, **INSTALLATION_KEY_KWARGS)
  return key

def get_installation_key ( ) : try : return PersistentCacheEntry . objects . get ( ** INSTALLATION_KEY_KWARGS ) . data except ObjectDoesNotExist : key = get_random_string ( 48 ) PersistentCacheEntry . objects . create ( data = key , ** INSTALLATION_KEY_KWARGS ) return key
get the unique installation id for this shuup instance .