File: search.pyi

package info (click to toggle)
python-libzim 3.6.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: python: 1,690; cpp: 397; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 547 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from __future__ import annotations

from collections.abc import Iterator
from typing import Self

from libzim.reader import Archive

class Query:
    def set_query(self, query: str) -> Self: ...

class SearchResultSet:
    def __iter__(self) -> Iterator[str]: ...

class Search:
    def getEstimatedMatches(self) -> int: ...  # noqa: N802
    def getResults(self, start: int, count: int) -> SearchResultSet: ...  # noqa: N802

class Searcher:
    def __init__(self, archive: Archive) -> None: ...
    def search(self, query: Query) -> Search: ...