def cpus():
 with settings(hide('running', 'stdout')):
  res = run('python -c "import multiprocessing; print(multiprocessing.cpu_count())"')
  return int(res)

def cpus ( ) : with settings ( hide ( 'running' , 'stdout' ) ) : res = run ( 'python -c "import multiprocessing; print(multiprocessing.cpu_count())"' ) return int ( res )
get the number of cpu cores .