python-msilib 0.7.0__cp315-cp315-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
msilib/_msi.pyi ADDED
@@ -0,0 +1,98 @@
1
+ from typing import Final, type_check_only
2
+
3
+ class MSIError(Exception): ...
4
+
5
+ # Actual typename View, not exposed by the implementation
6
+ @type_check_only
7
+ class _View:
8
+ def Execute(self, params: _Record | None = ...) -> None: ...
9
+ def GetColumnInfo(self, kind: int) -> _Record: ...
10
+ def Fetch(self) -> _Record: ...
11
+ def Modify(self, mode: int, record: _Record) -> None: ...
12
+ def Close(self) -> None: ...
13
+ # Don't exist at runtime
14
+ __new__: None # type: ignore[assignment]
15
+ __init__: None # type: ignore[assignment]
16
+
17
+ # Actual typename SummaryInformation, not exposed by the implementation
18
+ @type_check_only
19
+ class _SummaryInformation:
20
+ def GetProperty(self, field: int) -> int | bytes | None: ...
21
+ def GetPropertyCount(self) -> int: ...
22
+ def SetProperty(self, field: int, value: int | str) -> None: ...
23
+ def Persist(self) -> None: ...
24
+ # Don't exist at runtime
25
+ __new__: None # type: ignore[assignment]
26
+ __init__: None # type: ignore[assignment]
27
+
28
+ # Actual typename Database, not exposed by the implementation
29
+ @type_check_only
30
+ class _Database:
31
+ def OpenView(self, sql: str) -> _View: ...
32
+ def Commit(self) -> None: ...
33
+ def GetSummaryInformation(
34
+ self, updateCount: int
35
+ ) -> _SummaryInformation: ...
36
+ def Close(self) -> None: ...
37
+ # Don't exist at runtime
38
+ __new__: None # type: ignore[assignment]
39
+ __init__: None # type: ignore[assignment]
40
+
41
+ # Actual typename Record, not exposed by the implementation
42
+ @type_check_only
43
+ class _Record:
44
+ def GetFieldCount(self) -> int: ...
45
+ def GetInteger(self, field: int) -> int: ...
46
+ def GetString(self, field: int) -> str: ...
47
+ def SetString(self, field: int, value: str) -> None: ...
48
+ def SetStream(self, field: int, stream: str) -> None: ...
49
+ def SetInteger(self, field: int, value: int) -> None: ...
50
+ def ClearData(self) -> None: ...
51
+ # Don't exist at runtime
52
+ __new__: None # type: ignore[assignment]
53
+ __init__: None # type: ignore[assignment]
54
+
55
+ def UuidCreate() -> str: ...
56
+ def FCICreate(cabname: str, files: list[tuple[str, str]], /) -> None: ...
57
+ def OpenDatabase(path: str, persist: int, /) -> _Database: ...
58
+ def CreateRecord(count: int, /) -> _Record: ...
59
+
60
+ MSICOLINFO_NAMES: Final[int]
61
+ MSICOLINFO_TYPES: Final[int]
62
+ MSIDBOPEN_CREATE: Final[int]
63
+ MSIDBOPEN_CREATEDIRECT: Final[int]
64
+ MSIDBOPEN_DIRECT: Final[int]
65
+ MSIDBOPEN_PATCHFILE: Final[int]
66
+ MSIDBOPEN_READONLY: Final[int]
67
+ MSIDBOPEN_TRANSACT: Final[int]
68
+ MSIMODIFY_ASSIGN: Final[int]
69
+ MSIMODIFY_DELETE: Final[int]
70
+ MSIMODIFY_INSERT: Final[int]
71
+ MSIMODIFY_INSERT_TEMPORARY: Final[int]
72
+ MSIMODIFY_MERGE: Final[int]
73
+ MSIMODIFY_REFRESH: Final[int]
74
+ MSIMODIFY_REPLACE: Final[int]
75
+ MSIMODIFY_SEEK: Final[int]
76
+ MSIMODIFY_UPDATE: Final[int]
77
+ MSIMODIFY_VALIDATE: Final[int]
78
+ MSIMODIFY_VALIDATE_DELETE: Final[int]
79
+ MSIMODIFY_VALIDATE_FIELD: Final[int]
80
+ MSIMODIFY_VALIDATE_NEW: Final[int]
81
+
82
+ PID_APPNAME: Final[int]
83
+ PID_AUTHOR: Final[int]
84
+ PID_CHARCOUNT: Final[int]
85
+ PID_CODEPAGE: Final[int]
86
+ PID_COMMENTS: Final[int]
87
+ PID_CREATE_DTM: Final[int]
88
+ PID_KEYWORDS: Final[int]
89
+ PID_LASTAUTHOR: Final[int]
90
+ PID_LASTPRINTED: Final[int]
91
+ PID_LASTSAVE_DTM: Final[int]
92
+ PID_PAGECOUNT: Final[int]
93
+ PID_REVNUMBER: Final[int]
94
+ PID_SECURITY: Final[int]
95
+ PID_SUBJECT: Final[int]
96
+ PID_TEMPLATE: Final[int]
97
+ PID_TITLE: Final[int]
98
+ PID_WORDCOUNT: Final[int]