aboutsummaryrefslogtreecommitdiff
path: root/hittekaart-py/hittekaart_py/hittekaart_py.pyi
blob: 0efe01188bc7a1f2b87b47f5000b7d9af460fa89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from typing import Iterable


class Track:
    @staticmethod
    def from_file(path: bytes, compression: str | None) -> "Track": ...

    @staticmethod
    def from_coordinates(coordinates: list[tuple[float, float]]) -> "Track": ...


class Storage:
    @staticmethod
    def Folder(path: bytes) -> "Storage": ...

    @staticmethod
    def Sqlite(path: bytes) -> "Storage": ...


class HeatmapRenderer:
    def __new__(cls) -> "HeatmapRenderer": ...


class MarktileRenderer:
    def __new__(cls) -> "MarktileRenderer": ...


class TilehuntRenderer:
    def __new__(cls, zoom: int) -> "TilehuntRenderer": ...


class Settings:
    min_zoom: int
    max_zoom: int
    threads: int
    def __new__(cls, min_zoom: int=0, max_zoom: int=19, threads: int=0) -> "Settings": ...


def generate(settings: Settings, items: Iterable[Track], renderer: HeatmapRenderer | MarktileRenderer | TilehuntRenderer, storage: Storage): ...


class HitteError(Exception):
    ...