ArisuFxPy 1.25.4__tar.gz

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.
Files changed (114) hide show
  1. arisufxpy-1.25.4/ArisuFxPy/ArisuFxPyBoost.pyi +47 -0
  2. arisufxpy-1.25.4/ArisuFxPy/__init__.py +11 -0
  3. arisufxpy-1.25.4/ArisuFxPy/__main__.py +4 -0
  4. arisufxpy-1.25.4/ArisuFxPy/classes/ClassIDTypeToClassMap.py +1090 -0
  5. arisufxpy-1.25.4/ArisuFxPy/classes/Object.py +59 -0
  6. arisufxpy-1.25.4/ArisuFxPy/classes/PPtr.py +112 -0
  7. arisufxpy-1.25.4/ArisuFxPy/classes/UnknownObject.py +33 -0
  8. arisufxpy-1.25.4/ArisuFxPy/classes/__init__.py +28 -0
  9. arisufxpy-1.25.4/ArisuFxPy/classes/generated.py +12350 -0
  10. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/AudioClip.py +18 -0
  11. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/AudioClip.pyi +30 -0
  12. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/GameObject.py +33 -0
  13. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/GameObject.pyi +26 -0
  14. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Mesh.py +13 -0
  15. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Mesh.pyi +58 -0
  16. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Renderer.py +12 -0
  17. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Renderer.pyi +8 -0
  18. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Shader.py +12 -0
  19. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Shader.pyi +24 -0
  20. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Sprite.py +12 -0
  21. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Sprite.pyi +35 -0
  22. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Texture2D.py +83 -0
  23. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Texture2D.pyi +44 -0
  24. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Texture2DArray.py +48 -0
  25. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Texture2DArray.pyi +29 -0
  26. arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/__init__.py +19 -0
  27. arisufxpy-1.25.4/ArisuFxPy/classes/math.py +124 -0
  28. arisufxpy-1.25.4/ArisuFxPy/cli/__init__.py +28 -0
  29. arisufxpy-1.25.4/ArisuFxPy/cli/update_tpk.py +29 -0
  30. arisufxpy-1.25.4/ArisuFxPy/config.py +40 -0
  31. arisufxpy-1.25.4/ArisuFxPy/enums/Audio.py +56 -0
  32. arisufxpy-1.25.4/ArisuFxPy/enums/BuildTarget.py +40 -0
  33. arisufxpy-1.25.4/ArisuFxPy/enums/BundleFile.py +26 -0
  34. arisufxpy-1.25.4/ArisuFxPy/enums/ClassIDType.py +373 -0
  35. arisufxpy-1.25.4/ArisuFxPy/enums/ExtendableEnum.py +19 -0
  36. arisufxpy-1.25.4/ArisuFxPy/enums/FileType.py +9 -0
  37. arisufxpy-1.25.4/ArisuFxPy/enums/GfxPrimitiveType.py +10 -0
  38. arisufxpy-1.25.4/ArisuFxPy/enums/GraphicsFormat.py +277 -0
  39. arisufxpy-1.25.4/ArisuFxPy/enums/MeshTopology.py +10 -0
  40. arisufxpy-1.25.4/ArisuFxPy/enums/PassType.py +7 -0
  41. arisufxpy-1.25.4/ArisuFxPy/enums/SerializedPropertyType.py +9 -0
  42. arisufxpy-1.25.4/ArisuFxPy/enums/ShaderCompilerPlatform.py +26 -0
  43. arisufxpy-1.25.4/ArisuFxPy/enums/ShaderGpuProgramType.py +36 -0
  44. arisufxpy-1.25.4/ArisuFxPy/enums/SpriteMeshType.py +6 -0
  45. arisufxpy-1.25.4/ArisuFxPy/enums/SpritePackingMode.py +6 -0
  46. arisufxpy-1.25.4/ArisuFxPy/enums/SpritePackingRotation.py +9 -0
  47. arisufxpy-1.25.4/ArisuFxPy/enums/TextureDimension.py +13 -0
  48. arisufxpy-1.25.4/ArisuFxPy/enums/TextureFormat.py +82 -0
  49. arisufxpy-1.25.4/ArisuFxPy/enums/VertexFormat.py +80 -0
  50. arisufxpy-1.25.4/ArisuFxPy/enums/__init__.py +39 -0
  51. arisufxpy-1.25.4/ArisuFxPy/environment.py +373 -0
  52. arisufxpy-1.25.4/ArisuFxPy/exceptions.py +14 -0
  53. arisufxpy-1.25.4/ArisuFxPy/export/AudioClipConverter.py +49 -0
  54. arisufxpy-1.25.4/ArisuFxPy/export/MeshExporter.py +56 -0
  55. arisufxpy-1.25.4/ArisuFxPy/export/MeshRendererExporter.py +189 -0
  56. arisufxpy-1.25.4/ArisuFxPy/export/ShaderConverter.py +689 -0
  57. arisufxpy-1.25.4/ArisuFxPy/export/SpriteHelper.py +349 -0
  58. arisufxpy-1.25.4/ArisuFxPy/export/Texture2DConverter.py +580 -0
  59. arisufxpy-1.25.4/ArisuFxPy/export/__init__.py +15 -0
  60. arisufxpy-1.25.4/ArisuFxPy/files/BundleFile.py +543 -0
  61. arisufxpy-1.25.4/ArisuFxPy/files/File.py +152 -0
  62. arisufxpy-1.25.4/ArisuFxPy/files/ObjectReader.py +355 -0
  63. arisufxpy-1.25.4/ArisuFxPy/files/SerializedFile.py +579 -0
  64. arisufxpy-1.25.4/ArisuFxPy/files/WebFile.py +112 -0
  65. arisufxpy-1.25.4/ArisuFxPy/files/__init__.py +14 -0
  66. arisufxpy-1.25.4/ArisuFxPy/helpers/ArchiveStorageManager.py +146 -0
  67. arisufxpy-1.25.4/ArisuFxPy/helpers/CompressionHelper.py +281 -0
  68. arisufxpy-1.25.4/ArisuFxPy/helpers/ContainerHelper.py +85 -0
  69. arisufxpy-1.25.4/ArisuFxPy/helpers/ImportHelper.py +173 -0
  70. arisufxpy-1.25.4/ArisuFxPy/helpers/MeshHelper.py +714 -0
  71. arisufxpy-1.25.4/ArisuFxPy/helpers/PackedBitVector.py +143 -0
  72. arisufxpy-1.25.4/ArisuFxPy/helpers/ResourceReader.py +38 -0
  73. arisufxpy-1.25.4/ArisuFxPy/helpers/TextureSwizzler.py +127 -0
  74. arisufxpy-1.25.4/ArisuFxPy/helpers/Tpk.py +84 -0
  75. arisufxpy-1.25.4/ArisuFxPy/helpers/TypeTreeGenerator.py +78 -0
  76. arisufxpy-1.25.4/ArisuFxPy/helpers/TypeTreeHelper.py +444 -0
  77. arisufxpy-1.25.4/ArisuFxPy/helpers/TypeTreeNode.py +402 -0
  78. arisufxpy-1.25.4/ArisuFxPy/helpers/UnityVersion.py +146 -0
  79. arisufxpy-1.25.4/ArisuFxPy/helpers/__init__.py +10 -0
  80. arisufxpy-1.25.4/ArisuFxPy/py.typed +0 -0
  81. arisufxpy-1.25.4/ArisuFxPy/resources/__init__.py +0 -0
  82. arisufxpy-1.25.4/ArisuFxPy/resources/lzma.tpk +0 -0
  83. arisufxpy-1.25.4/ArisuFxPy/streams/EndianBinaryReader.py +349 -0
  84. arisufxpy-1.25.4/ArisuFxPy/streams/EndianBinaryWriter.py +133 -0
  85. arisufxpy-1.25.4/ArisuFxPy/streams/__init__.py +7 -0
  86. arisufxpy-1.25.4/ArisuFxPy/tools/TpkClassGenerator.py +376 -0
  87. arisufxpy-1.25.4/ArisuFxPy/tools/__init__.py +0 -0
  88. arisufxpy-1.25.4/ArisuFxPy/tools/extractor.py +368 -0
  89. arisufxpy-1.25.4/ArisuFxPy.egg-info/PKG-INFO +648 -0
  90. arisufxpy-1.25.4/ArisuFxPy.egg-info/SOURCES.txt +112 -0
  91. arisufxpy-1.25.4/ArisuFxPy.egg-info/dependency_links.txt +1 -0
  92. arisufxpy-1.25.4/ArisuFxPy.egg-info/entry_points.txt +2 -0
  93. arisufxpy-1.25.4/ArisuFxPy.egg-info/requires.txt +26 -0
  94. arisufxpy-1.25.4/ArisuFxPy.egg-info/top_level.txt +1 -0
  95. arisufxpy-1.25.4/ArisuFxPyBoost/ArchiveStorageDecryptor.cpp +90 -0
  96. arisufxpy-1.25.4/ArisuFxPyBoost/ArchiveStorageDecryptor.hpp +5 -0
  97. arisufxpy-1.25.4/ArisuFxPyBoost/ArisuFxPyBoost.cpp +47 -0
  98. arisufxpy-1.25.4/ArisuFxPyBoost/Mesh.cpp +159 -0
  99. arisufxpy-1.25.4/ArisuFxPyBoost/Mesh.hpp +5 -0
  100. arisufxpy-1.25.4/ArisuFxPyBoost/TypeTreeHelper.cpp +1283 -0
  101. arisufxpy-1.25.4/ArisuFxPyBoost/TypeTreeHelper.hpp +55 -0
  102. arisufxpy-1.25.4/ArisuFxPyBoost/swap.hpp +78 -0
  103. arisufxpy-1.25.4/LICENSE +22 -0
  104. arisufxpy-1.25.4/PKG-INFO +648 -0
  105. arisufxpy-1.25.4/README.md +575 -0
  106. arisufxpy-1.25.4/pyproject.toml +91 -0
  107. arisufxpy-1.25.4/setup.cfg +4 -0
  108. arisufxpy-1.25.4/setup.py +128 -0
  109. arisufxpy-1.25.4/tests/test_UnityVersion.py +74 -0
  110. arisufxpy-1.25.4/tests/test_astc.py +65 -0
  111. arisufxpy-1.25.4/tests/test_extractor.py +26 -0
  112. arisufxpy-1.25.4/tests/test_main.py +126 -0
  113. arisufxpy-1.25.4/tests/test_mesh_helper.py +47 -0
  114. arisufxpy-1.25.4/tests/test_typetree.py +208 -0
@@ -0,0 +1,47 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING, Any, List, Literal, Optional, Tuple, Union
4
+
5
+ if TYPE_CHECKING:
6
+ from .classes import Object
7
+ from .files.SerializedFile import SerializedFile
8
+
9
+ def unpack_vertexdata(
10
+ data: Union[bytes, bytearray],
11
+ component_byte_size: int,
12
+ vertex_count: int,
13
+ stream_offset: int,
14
+ stream_stride: int,
15
+ channel_offset: int,
16
+ channel_dimension: int,
17
+ swap: bool,
18
+ ) -> bytes: ...
19
+ def read_typetree(
20
+ data: Union[bytes, bytearray],
21
+ node: TypeTreeNode,
22
+ endian: Literal["<", ">"],
23
+ as_dict: bool,
24
+ assetsfile: SerializedFile,
25
+ classes: dict,
26
+ ) -> Tuple[Union[dict[str, Any], Object], int]: ...
27
+
28
+ class TypeTreeNode:
29
+ m_Level: int
30
+ m_Type: str
31
+ m_Name: str
32
+ m_ByteSize: int
33
+ m_Version: int
34
+ m_Children: List[TypeTreeNode]
35
+ m_TypeFlags: Optional[int] = None
36
+ m_VariableCount: Optional[int] = None
37
+ m_Index: Optional[int] = None
38
+ m_MetaFlag: Optional[int] = None
39
+ m_RefTypeHash: Optional[int] = None
40
+ _clean_name: str
41
+
42
+ def decrypt_block(
43
+ index_bytes: Union[bytes, bytearray],
44
+ substitute_bytes: Union[bytes, bytearray],
45
+ data: Union[bytes, bytearray],
46
+ index: int,
47
+ ) -> bytes: ...
@@ -0,0 +1,11 @@
1
+ __version__ = "1.25.4"
2
+
3
+ from .environment import Environment as Environment
4
+ from .helpers.ArchiveStorageManager import (
5
+ set_assetbundle_decrypt_key as set_assetbundle_decrypt_key,
6
+ )
7
+
8
+ load = Environment
9
+
10
+ # backward compatibility
11
+ AssetsManager = Environment
@@ -0,0 +1,4 @@
1
+ if __name__ == "__main__":
2
+ from ArisuFxPy.cli import main
3
+
4
+ main()