def unique_resource_id(delimiter='_'):
 build_id = os.getenv('TRAVIS_BUILD_ID', os.getenv('CIRCLE_BUILD_NUM', ''))
 if (build_id == ''):
  return ('%s%d' % (delimiter, (1000 * time.time())))
 else:
  return ('%s%s%s%d' % (delimiter, build_id, delimiter, time.time()))

def unique_resource_id ( delimiter = '_' ) : build_id = os . getenv ( 'TRAVIS_BUILD_ID' , os . getenv ( 'CIRCLE_BUILD_NUM' , '' ) ) if ( build_id == '' ) : return ( '%s%d' % ( delimiter , ( 1000 * time . time ( ) ) ) ) else : return ( '%s%s%s%d' % ( delimiter , build_id , delimiter , time . time ( ) ) )
a unique identifier for a resource .