code: def client_status(self, config_path):
          
          c = self.client_for(config_path)
          status = "stopped"
          if not c or not c.ensime:
              status = 'unloaded'
          elif c.ensime.is_ready():
              status = 'ready'
          elif c.ensime.is_running():
              status = 'startup'
          elif c.ensime.aborted():
              status = 'aborted'
          return status
docs: Get status of client for a project, given path to its config.