lief 0.15.1__cp311-cp311-win_amd64.whl → 0.16.1__cp311-cp311-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.

Files changed (45) hide show
  1. lief/{ART.pyi → ART/__init__.pyi} +65 -45
  2. lief/Android/__init__.pyi +33 -0
  3. lief/DEX/__init__.pyi +512 -0
  4. lief/ELF/__init__.pyi +5342 -0
  5. lief/MachO/__init__.pyi +2678 -0
  6. lief/OAT/__init__.pyi +348 -0
  7. lief/PE/__init__.pyi +4098 -0
  8. lief/VDEX/__init__.pyi +54 -0
  9. lief/__init__.py +3 -0
  10. lief/__init__.pyi +457 -316
  11. lief/_lief.pyd +0 -0
  12. lief/assembly/__init__.pyi +104 -0
  13. lief/assembly/aarch64/__init__.pyi +20200 -0
  14. lief/assembly/aarch64/operands/__init__.pyi +48 -0
  15. lief/assembly/arm/__init__.pyi +9004 -0
  16. lief/assembly/ebpf/__init__.pyi +984 -0
  17. lief/assembly/mips/__init__.pyi +5798 -0
  18. lief/assembly/powerpc/__init__.pyi +5714 -0
  19. lief/assembly/riscv/__init__.pyi +27674 -0
  20. lief/assembly/x86/__init__.pyi +40433 -0
  21. lief/assembly/x86/operands/__init__.pyi +32 -0
  22. lief/dsc/__init__.pyi +220 -0
  23. lief/dwarf/__init__.pyi +224 -125
  24. lief/dwarf/parameters/__init__.pyi +14 -0
  25. lief/dwarf/types/__init__.pyi +167 -0
  26. lief/logging/__init__.pyi +44 -0
  27. lief/objc/__init__.pyi +89 -0
  28. lief/pdb/__init__.pyi +66 -50
  29. lief/pdb/types/__init__.pyi +69 -0
  30. lief-0.16.1.dist-info/METADATA +86 -0
  31. lief-0.16.1.dist-info/RECORD +33 -0
  32. lief/Android.pyi +0 -29
  33. lief/DEX.pyi +0 -382
  34. lief/ELF.pyi +0 -3179
  35. lief/MachO.pyi +0 -1717
  36. lief/OAT.pyi +0 -271
  37. lief/PE.pyi +0 -2951
  38. lief/VDEX.pyi +0 -49
  39. lief/dwarf/types.pyi +0 -72
  40. lief/logging.pyi +0 -27
  41. lief/objc.pyi +0 -68
  42. lief/pdb/types.pyi +0 -68
  43. lief-0.15.1.dist-info/METADATA +0 -157
  44. lief-0.15.1.dist-info/RECORD +0 -21
  45. {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)