def get(self): with self._connect() as connection: items = sources(connection) self.write(json_encode(items))