lief 0.15.1__cp313-cp313-win_amd64.whl → 0.16.1__cp313-cp313-win_amd64.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.
Potentially problematic release.
This version of lief might be problematic. Click here for more details.
- lief/{ART.pyi → ART/__init__.pyi} +65 -45
- lief/Android/__init__.pyi +33 -0
- lief/DEX/__init__.pyi +512 -0
- lief/ELF/__init__.pyi +5342 -0
- lief/MachO/__init__.pyi +2678 -0
- lief/OAT/__init__.pyi +348 -0
- lief/PE/__init__.pyi +4098 -0
- lief/VDEX/__init__.pyi +54 -0
- lief/__init__.py +3 -0
- lief/__init__.pyi +457 -316
- lief/_lief.pyd +0 -0
- lief/assembly/__init__.pyi +104 -0
- lief/assembly/aarch64/__init__.pyi +20200 -0
- lief/assembly/aarch64/operands/__init__.pyi +48 -0
- lief/assembly/arm/__init__.pyi +9004 -0
- lief/assembly/ebpf/__init__.pyi +984 -0
- lief/assembly/mips/__init__.pyi +5798 -0
- lief/assembly/powerpc/__init__.pyi +5714 -0
- lief/assembly/riscv/__init__.pyi +27674 -0
- lief/assembly/x86/__init__.pyi +40433 -0
- lief/assembly/x86/operands/__init__.pyi +32 -0
- lief/dsc/__init__.pyi +220 -0
- lief/dwarf/__init__.pyi +224 -125
- lief/dwarf/parameters/__init__.pyi +14 -0
- lief/dwarf/types/__init__.pyi +167 -0
- lief/logging/__init__.pyi +44 -0
- lief/objc/__init__.pyi +89 -0
- lief/pdb/__init__.pyi +66 -50
- lief/pdb/types/__init__.pyi +69 -0
- lief-0.16.1.dist-info/METADATA +86 -0
- lief-0.16.1.dist-info/RECORD +33 -0
- lief/Android.pyi +0 -29
- lief/DEX.pyi +0 -382
- lief/ELF.pyi +0 -3179
- lief/MachO.pyi +0 -1717
- lief/OAT.pyi +0 -271
- lief/PE.pyi +0 -2951
- lief/VDEX.pyi +0 -49
- lief/dwarf/types.pyi +0 -72
- lief/logging.pyi +0 -27
- lief/objc.pyi +0 -68
- lief/pdb/types.pyi +0 -68
- lief-0.15.1.dist-info/METADATA +0 -157
- lief-0.15.1.dist-info/RECORD +0 -21
- {lief-0.15.1.dist-info → lief-0.16.1.dist-info}/WHEEL +0 -0
lief/VDEX/__init__.pyi
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
import io
|
|
3
|
+
import os
|
|
4
|
+
from typing import Iterator, Optional, Union, overload
|
|
5
|
+
|
|
6
|
+
import lief
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class File(lief.Object):
|
|
10
|
+
@property
|
|
11
|
+
def header(self) -> Header: ...
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def dex_files(self) -> lief.OAT.Binary.it_dex_files: ...
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def dex2dex_json_info(self) -> str: ...
|
|
18
|
+
|
|
19
|
+
def __str__(self) -> str: ...
|
|
20
|
+
|
|
21
|
+
class Header(lief.Object):
|
|
22
|
+
@property
|
|
23
|
+
def magic(self) -> list[int]: ...
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def version(self) -> int: ...
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
def nb_dex_files(self) -> int: ...
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def dex_size(self) -> int: ...
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def verifier_deps_size(self) -> int: ...
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def quickening_info_size(self) -> int: ...
|
|
39
|
+
|
|
40
|
+
def __str__(self) -> str: ...
|
|
41
|
+
|
|
42
|
+
def android_version(vdex_version: int) -> lief.Android.ANDROID_VERSIONS: ...
|
|
43
|
+
|
|
44
|
+
@overload
|
|
45
|
+
def parse(filename: str) -> Optional[File]: ...
|
|
46
|
+
|
|
47
|
+
@overload
|
|
48
|
+
def parse(obj: Union[io.IOBase | os.PathLike], name: str = '') -> Optional[File]: ...
|
|
49
|
+
|
|
50
|
+
@overload
|
|
51
|
+
def version(file: str) -> int: ...
|
|
52
|
+
|
|
53
|
+
@overload
|
|
54
|
+
def version(raw: Sequence[int]) -> int: ...
|
lief/__init__.py
CHANGED
|
@@ -6,6 +6,9 @@ if len(__path__) > 0 and __path__[0] not in sys.path:
|
|
|
6
6
|
from ._lief import *
|
|
7
7
|
from ._lief import __version__, __tag__, __commit__, __is_tagged__, __extended__
|
|
8
8
|
|
|
9
|
+
if __extended__:
|
|
10
|
+
from ._lief import __LIEF_MAIN_COMMIT__, __LIEF_EXTENDED_VERSION_STR__, __extended_version__
|
|
11
|
+
|
|
9
12
|
# cf. https://github.com/pytorch/pytorch/blob/60a3b7425dde97fe8b46183c154a9c3b24f0c733/torch/__init__.py#L467-L470
|
|
10
13
|
for attr in dir(_lief):
|
|
11
14
|
candidate = getattr(_lief, attr)
|