code: def list_devices(self, project_id, conditions=None, params=None):
          
          default_params = {'per_page': 1000}
          if params:
              default_params.update(params)
          data = self.api('projects/%s/devices' % project_id, params=default_params)
          devices = []
          for device in self.filter(conditions, data['devices']):
              devices.append(packet.Device(device, self.manager))
          return devices
docs: Retrieve list of devices in a project by one of more conditions.