pytron-kit 0.3.12__py3-none-macosx_11_0_universal2.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.
Files changed (419) hide show
  1. pytron/__init__.py +112 -0
  2. pytron/application.py +562 -0
  3. pytron/apputils/__init__.py +0 -0
  4. pytron/apputils/chrome_ipc.py +203 -0
  5. pytron/apputils/codegen.py +261 -0
  6. pytron/apputils/config.py +303 -0
  7. pytron/apputils/deadmansswitch.py +47 -0
  8. pytron/apputils/extras.py +76 -0
  9. pytron/apputils/native.py +148 -0
  10. pytron/apputils/shell.py +73 -0
  11. pytron/apputils/windows.py +286 -0
  12. pytron/cli.py +384 -0
  13. pytron/commands/__init__.py +0 -0
  14. pytron/commands/android.py +28 -0
  15. pytron/commands/build.py +26 -0
  16. pytron/commands/doctor.py +221 -0
  17. pytron/commands/engine.py +23 -0
  18. pytron/commands/frontend.py +60 -0
  19. pytron/commands/harvest.py +112 -0
  20. pytron/commands/helpers.py +239 -0
  21. pytron/commands/info.py +50 -0
  22. pytron/commands/init.py +521 -0
  23. pytron/commands/install.py +294 -0
  24. pytron/commands/login.py +130 -0
  25. pytron/commands/package.py +228 -0
  26. pytron/commands/plugin.py +442 -0
  27. pytron/commands/run.py +312 -0
  28. pytron/commands/scan.py +210 -0
  29. pytron/commands/show.py +23 -0
  30. pytron/commands/uninstall.py +150 -0
  31. pytron/commands/utils.py +42 -0
  32. pytron/commands/workflow.py +95 -0
  33. pytron/console.py +133 -0
  34. pytron/core.py +18 -0
  35. pytron/dependencies/WebView2Loader.dll +0 -0
  36. pytron/dependencies/__init__.py +1 -0
  37. pytron/dependencies/pytron_native.so +0 -0
  38. pytron/engines/chrome/adapter.py +445 -0
  39. pytron/engines/chrome/engine.py +576 -0
  40. pytron/engines/chrome/forge.py +147 -0
  41. pytron/engines/chrome/shell/package.json +8 -0
  42. pytron/engines/chrome/shell/preload.js +12 -0
  43. pytron/engines/chrome/shell/shell.js +534 -0
  44. pytron/exceptions.py +36 -0
  45. pytron/inspector.py +201 -0
  46. pytron/inspector_ui.py +512 -0
  47. pytron/installer/Installation.nsi +236 -0
  48. pytron/installer/header.bmp +0 -0
  49. pytron/installer/pytron.ico +0 -0
  50. pytron/installer/sidebar.bmp +0 -0
  51. pytron/llms.md +98 -0
  52. pytron/manifests/README.md +29 -0
  53. pytron/manifests/windows-utf8.manifest +44 -0
  54. pytron/menu.py +128 -0
  55. pytron/nsis-setup.exe +0 -0
  56. pytron/pack/__init__.py +0 -0
  57. pytron/pack/assets.py +131 -0
  58. pytron/pack/compilers.py +289 -0
  59. pytron/pack/crystal.py +297 -0
  60. pytron/pack/graph.py +377 -0
  61. pytron/pack/inference.py +157 -0
  62. pytron/pack/installers.py +402 -0
  63. pytron/pack/introspect.py +357 -0
  64. pytron/pack/metadata.py +213 -0
  65. pytron/pack/modules.py +618 -0
  66. pytron/pack/nuitka.py +108 -0
  67. pytron/pack/pipeline.py +107 -0
  68. pytron/pack/pyinstaller.py +176 -0
  69. pytron/pack/rust_engine.py +273 -0
  70. pytron/pack/secure.py +309 -0
  71. pytron/pack/secure_loader/bin/pytron_rust_bootloader +0 -0
  72. pytron/pack/secure_loader/icon.ico +0 -0
  73. pytron/pack/utils.py +110 -0
  74. pytron/pack/virtual_root.py +124 -0
  75. pytron/platforms/__init__.py +0 -0
  76. pytron/platforms/android/__init__.py +3 -0
  77. pytron/platforms/android/android.py +103 -0
  78. pytron/platforms/android/builder.py +736 -0
  79. pytron/platforms/android/ops/build.py +79 -0
  80. pytron/platforms/android/ops/init.py +63 -0
  81. pytron/platforms/android/ops/run.py +79 -0
  82. pytron/platforms/android/ops/sync.py +770 -0
  83. pytron/platforms/android/ops/utils.py +8 -0
  84. pytron/platforms/android/shell/README.md +30 -0
  85. pytron/platforms/android/shell/app/build.gradle +64 -0
  86. pytron/platforms/android/shell/app/src/main/AndroidManifest.xml +29 -0
  87. pytron/platforms/android/shell/app/src/main/assets/python/main.py +86 -0
  88. pytron/platforms/android/shell/app/src/main/assets/python/python314.zip +0 -0
  89. pytron/platforms/android/shell/app/src/main/cpp/CMakeLists.txt +25 -0
  90. pytron/platforms/android/shell/app/src/main/cpp/include/Python.h +155 -0
  91. pytron/platforms/android/shell/app/src/main/cpp/include/abstract.h +915 -0
  92. pytron/platforms/android/shell/app/src/main/cpp/include/audit.h +30 -0
  93. pytron/platforms/android/shell/app/src/main/cpp/include/bltinmodule.h +14 -0
  94. pytron/platforms/android/shell/app/src/main/cpp/include/boolobject.h +54 -0
  95. pytron/platforms/android/shell/app/src/main/cpp/include/bytearrayobject.h +44 -0
  96. pytron/platforms/android/shell/app/src/main/cpp/include/bytesobject.h +66 -0
  97. pytron/platforms/android/shell/app/src/main/cpp/include/ceval.h +145 -0
  98. pytron/platforms/android/shell/app/src/main/cpp/include/codecs.h +176 -0
  99. pytron/platforms/android/shell/app/src/main/cpp/include/compile.h +22 -0
  100. pytron/platforms/android/shell/app/src/main/cpp/include/complexobject.h +30 -0
  101. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/abstract.h +104 -0
  102. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/audit.h +8 -0
  103. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/bytearrayobject.h +38 -0
  104. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/bytesobject.h +42 -0
  105. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/cellobject.h +50 -0
  106. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/ceval.h +43 -0
  107. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/classobject.h +71 -0
  108. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/code.h +340 -0
  109. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/compile.h +50 -0
  110. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/complexobject.h +33 -0
  111. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/context.h +107 -0
  112. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/critical_section.h +154 -0
  113. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/descrobject.h +62 -0
  114. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/dictobject.h +105 -0
  115. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/fileobject.h +16 -0
  116. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/fileutils.h +16 -0
  117. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/floatobject.h +27 -0
  118. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/frameobject.h +35 -0
  119. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/funcobject.h +185 -0
  120. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/genobject.h +56 -0
  121. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/import.h +30 -0
  122. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/initconfig.h +334 -0
  123. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/listobject.h +53 -0
  124. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/lock.h +74 -0
  125. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/longintrepr.h +184 -0
  126. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/longobject.h +89 -0
  127. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/memoryobject.h +50 -0
  128. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/methodobject.h +66 -0
  129. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/modsupport.h +26 -0
  130. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/monitoring.h +269 -0
  131. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/object.h +493 -0
  132. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/objimpl.h +104 -0
  133. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/odictobject.h +43 -0
  134. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/picklebufobject.h +31 -0
  135. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pthread_stubs.h +105 -0
  136. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic.h +614 -0
  137. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic_gcc.h +615 -0
  138. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic_msc.h +1197 -0
  139. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic_std.h +1112 -0
  140. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyctype.h +39 -0
  141. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pydebug.h +38 -0
  142. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyerrors.h +132 -0
  143. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyfpe.h +15 -0
  144. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyframe.h +45 -0
  145. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyhash.h +54 -0
  146. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pylifecycle.h +89 -0
  147. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pymem.h +84 -0
  148. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pystate.h +275 -0
  149. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pystats.h +194 -0
  150. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pythonrun.h +96 -0
  151. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pythread.h +43 -0
  152. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pytime.h +27 -0
  153. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/setobject.h +71 -0
  154. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/traceback.h +13 -0
  155. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/tracemalloc.h +32 -0
  156. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/tupleobject.h +40 -0
  157. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/unicodeobject.h +773 -0
  158. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/warnings.h +20 -0
  159. pytron/platforms/android/shell/app/src/main/cpp/include/cpython/weakrefobject.h +66 -0
  160. pytron/platforms/android/shell/app/src/main/cpp/include/critical_section.h +16 -0
  161. pytron/platforms/android/shell/app/src/main/cpp/include/datetime.h +267 -0
  162. pytron/platforms/android/shell/app/src/main/cpp/include/descrobject.h +100 -0
  163. pytron/platforms/android/shell/app/src/main/cpp/include/dictobject.h +108 -0
  164. pytron/platforms/android/shell/app/src/main/cpp/include/dynamic_annotations.h +499 -0
  165. pytron/platforms/android/shell/app/src/main/cpp/include/enumobject.h +17 -0
  166. pytron/platforms/android/shell/app/src/main/cpp/include/errcode.h +45 -0
  167. pytron/platforms/android/shell/app/src/main/cpp/include/exports.h +105 -0
  168. pytron/platforms/android/shell/app/src/main/cpp/include/fileobject.h +41 -0
  169. pytron/platforms/android/shell/app/src/main/cpp/include/fileutils.h +62 -0
  170. pytron/platforms/android/shell/app/src/main/cpp/include/floatobject.h +54 -0
  171. pytron/platforms/android/shell/app/src/main/cpp/include/frameobject.h +20 -0
  172. pytron/platforms/android/shell/app/src/main/cpp/include/genericaliasobject.h +14 -0
  173. pytron/platforms/android/shell/app/src/main/cpp/include/import.h +103 -0
  174. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/atomic.h +392 -0
  175. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/internal.h +969 -0
  176. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/prim.h +329 -0
  177. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/track.h +147 -0
  178. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/types.h +721 -0
  179. pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc.h +565 -0
  180. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_abstract.h +61 -0
  181. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_asdl.h +112 -0
  182. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ast.h +945 -0
  183. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ast_state.h +271 -0
  184. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_atexit.h +31 -0
  185. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_audit.h +35 -0
  186. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_backoff.h +133 -0
  187. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_bitutils.h +186 -0
  188. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_blocks_output_buffer.h +321 -0
  189. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_brc.h +73 -0
  190. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_bytes_methods.h +82 -0
  191. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_bytesobject.h +149 -0
  192. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_c_array.h +39 -0
  193. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_call.h +206 -0
  194. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_capsule.h +17 -0
  195. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_cell.h +75 -0
  196. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ceval.h +390 -0
  197. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ceval_state.h +48 -0
  198. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_code.h +671 -0
  199. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_codecs.h +76 -0
  200. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_compile.h +230 -0
  201. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_complexobject.h +34 -0
  202. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_condvar.h +93 -0
  203. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_context.h +59 -0
  204. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_critical_section.h +237 -0
  205. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_crossinterp.h +406 -0
  206. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_crossinterp_data_registry.h +41 -0
  207. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_debug_offsets.h +379 -0
  208. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_descrobject.h +28 -0
  209. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_dict.h +410 -0
  210. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_dict_state.h +28 -0
  211. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_dtoa.h +40 -0
  212. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_emscripten_signal.h +30 -0
  213. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_emscripten_trampoline.h +70 -0
  214. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_exceptions.h +40 -0
  215. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_faulthandler.h +100 -0
  216. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_fileutils.h +320 -0
  217. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_fileutils_windows.h +98 -0
  218. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_floatobject.h +49 -0
  219. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_flowgraph.h +47 -0
  220. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_format.h +27 -0
  221. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_frame.h +61 -0
  222. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_freelist.h +111 -0
  223. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_freelist_state.h +70 -0
  224. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_function.h +53 -0
  225. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_gc.h +378 -0
  226. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_genobject.h +43 -0
  227. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_getopt.h +22 -0
  228. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_gil.h +66 -0
  229. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_global_objects.h +34 -0
  230. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_global_objects_fini_generated.h +1592 -0
  231. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_global_strings.h +854 -0
  232. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_hamt.h +113 -0
  233. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_hashtable.h +150 -0
  234. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_import.h +141 -0
  235. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_importdl.h +139 -0
  236. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_index_pool.h +36 -0
  237. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_initconfig.h +197 -0
  238. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_instruction_sequence.h +83 -0
  239. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_instruments.h +127 -0
  240. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interp.h +109 -0
  241. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interp_structs.h +977 -0
  242. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interpframe.h +401 -0
  243. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interpframe_structs.h +95 -0
  244. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interpolation.h +26 -0
  245. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_intrinsics.h +51 -0
  246. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_jit.h +29 -0
  247. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_list.h +81 -0
  248. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_llist.h +106 -0
  249. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_lock.h +236 -0
  250. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_long.h +319 -0
  251. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_magic_number.h +305 -0
  252. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_memoryobject.h +20 -0
  253. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_mimalloc.h +69 -0
  254. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_modsupport.h +99 -0
  255. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_moduleobject.h +62 -0
  256. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_namespace.h +21 -0
  257. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object.h +1029 -0
  258. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_alloc.h +71 -0
  259. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_deferred.h +32 -0
  260. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_stack.h +95 -0
  261. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_state.h +49 -0
  262. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_obmalloc.h +702 -0
  263. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_obmalloc_init.h +66 -0
  264. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_opcode_metadata.h +2117 -0
  265. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_opcode_utils.h +90 -0
  266. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_optimizer.h +318 -0
  267. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_parking_lot.h +97 -0
  268. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_parser.h +78 -0
  269. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pathconfig.h +26 -0
  270. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyarena.h +68 -0
  271. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyatomic_ft_wrappers.h +174 -0
  272. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pybuffer.h +21 -0
  273. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyerrors.h +213 -0
  274. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyhash.h +91 -0
  275. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pylifecycle.h +136 -0
  276. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pymath.h +205 -0
  277. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pymem.h +145 -0
  278. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pymem_init.h +103 -0
  279. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pystate.h +339 -0
  280. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pystats.h +21 -0
  281. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pythonrun.h +68 -0
  282. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pythread.h +172 -0
  283. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_qsbr.h +172 -0
  284. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_range.h +21 -0
  285. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime.h +63 -0
  286. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime_init.h +239 -0
  287. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime_init_generated.h +1589 -0
  288. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime_structs.h +310 -0
  289. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_semaphore.h +67 -0
  290. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_setobject.h +41 -0
  291. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_signal.h +108 -0
  292. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_sliceobject.h +20 -0
  293. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_stackref.h +791 -0
  294. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_stats.h +97 -0
  295. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_strhex.h +39 -0
  296. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_structs.h +88 -0
  297. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_structseq.h +40 -0
  298. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_symtable.h +201 -0
  299. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_sysmodule.h +32 -0
  300. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_template.h +26 -0
  301. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_time.h +334 -0
  302. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_token.h +110 -0
  303. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_traceback.h +111 -0
  304. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_tracemalloc.h +164 -0
  305. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_tstate.h +88 -0
  306. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_tuple.h +75 -0
  307. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_typedefs.h +18 -0
  308. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_typeobject.h +155 -0
  309. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_typevarobject.h +28 -0
  310. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ucnhash.h +36 -0
  311. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_unicodeobject.h +308 -0
  312. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_unicodeobject_generated.h +3132 -0
  313. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_unionobject.h +26 -0
  314. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_uniqueid.h +57 -0
  315. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_uop_ids.h +335 -0
  316. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_uop_metadata.h +1204 -0
  317. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_warnings.h +21 -0
  318. pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_weakref.h +133 -0
  319. pytron/platforms/android/shell/app/src/main/cpp/include/intrcheck.h +23 -0
  320. pytron/platforms/android/shell/app/src/main/cpp/include/iterobject.h +24 -0
  321. pytron/platforms/android/shell/app/src/main/cpp/include/listobject.h +55 -0
  322. pytron/platforms/android/shell/app/src/main/cpp/include/lock.h +16 -0
  323. pytron/platforms/android/shell/app/src/main/cpp/include/longobject.h +178 -0
  324. pytron/platforms/android/shell/app/src/main/cpp/include/marshal.h +31 -0
  325. pytron/platforms/android/shell/app/src/main/cpp/include/memoryobject.h +34 -0
  326. pytron/platforms/android/shell/app/src/main/cpp/include/methodobject.h +146 -0
  327. pytron/platforms/android/shell/app/src/main/cpp/include/modsupport.h +146 -0
  328. pytron/platforms/android/shell/app/src/main/cpp/include/moduleobject.h +122 -0
  329. pytron/platforms/android/shell/app/src/main/cpp/include/monitoring.h +18 -0
  330. pytron/platforms/android/shell/app/src/main/cpp/include/object.h +828 -0
  331. pytron/platforms/android/shell/app/src/main/cpp/include/objimpl.h +211 -0
  332. pytron/platforms/android/shell/app/src/main/cpp/include/opcode.h +43 -0
  333. pytron/platforms/android/shell/app/src/main/cpp/include/opcode_ids.h +259 -0
  334. pytron/platforms/android/shell/app/src/main/cpp/include/osdefs.h +57 -0
  335. pytron/platforms/android/shell/app/src/main/cpp/include/osmodule.h +17 -0
  336. pytron/platforms/android/shell/app/src/main/cpp/include/patchlevel.h +49 -0
  337. pytron/platforms/android/shell/app/src/main/cpp/include/py_curses.h +117 -0
  338. pytron/platforms/android/shell/app/src/main/cpp/include/pyatomic.h +16 -0
  339. pytron/platforms/android/shell/app/src/main/cpp/include/pybuffer.h +145 -0
  340. pytron/platforms/android/shell/app/src/main/cpp/include/pycapsule.h +58 -0
  341. pytron/platforms/android/shell/app/src/main/cpp/include/pyconfig.h +2088 -0
  342. pytron/platforms/android/shell/app/src/main/cpp/include/pydtrace.h +59 -0
  343. pytron/platforms/android/shell/app/src/main/cpp/include/pyerrors.h +335 -0
  344. pytron/platforms/android/shell/app/src/main/cpp/include/pyexpat.h +62 -0
  345. pytron/platforms/android/shell/app/src/main/cpp/include/pyframe.h +26 -0
  346. pytron/platforms/android/shell/app/src/main/cpp/include/pyhash.h +59 -0
  347. pytron/platforms/android/shell/app/src/main/cpp/include/pylifecycle.h +80 -0
  348. pytron/platforms/android/shell/app/src/main/cpp/include/pymacconfig.h +91 -0
  349. pytron/platforms/android/shell/app/src/main/cpp/include/pymacro.h +243 -0
  350. pytron/platforms/android/shell/app/src/main/cpp/include/pymath.h +65 -0
  351. pytron/platforms/android/shell/app/src/main/cpp/include/pymem.h +110 -0
  352. pytron/platforms/android/shell/app/src/main/cpp/include/pyport.h +710 -0
  353. pytron/platforms/android/shell/app/src/main/cpp/include/pystate.h +132 -0
  354. pytron/platforms/android/shell/app/src/main/cpp/include/pystats.h +28 -0
  355. pytron/platforms/android/shell/app/src/main/cpp/include/pystrcmp.h +23 -0
  356. pytron/platforms/android/shell/app/src/main/cpp/include/pystrtod.h +37 -0
  357. pytron/platforms/android/shell/app/src/main/cpp/include/pythonrun.h +42 -0
  358. pytron/platforms/android/shell/app/src/main/cpp/include/pythread.h +131 -0
  359. pytron/platforms/android/shell/app/src/main/cpp/include/pytypedefs.h +30 -0
  360. pytron/platforms/android/shell/app/src/main/cpp/include/rangeobject.h +27 -0
  361. pytron/platforms/android/shell/app/src/main/cpp/include/refcount.h +555 -0
  362. pytron/platforms/android/shell/app/src/main/cpp/include/setobject.h +49 -0
  363. pytron/platforms/android/shell/app/src/main/cpp/include/sliceobject.h +69 -0
  364. pytron/platforms/android/shell/app/src/main/cpp/include/structmember.h +56 -0
  365. pytron/platforms/android/shell/app/src/main/cpp/include/structseq.h +46 -0
  366. pytron/platforms/android/shell/app/src/main/cpp/include/sysmodule.h +27 -0
  367. pytron/platforms/android/shell/app/src/main/cpp/include/traceback.h +26 -0
  368. pytron/platforms/android/shell/app/src/main/cpp/include/tupleobject.h +46 -0
  369. pytron/platforms/android/shell/app/src/main/cpp/include/typeslots.h +96 -0
  370. pytron/platforms/android/shell/app/src/main/cpp/include/unicodeobject.h +1029 -0
  371. pytron/platforms/android/shell/app/src/main/cpp/include/warnings.h +45 -0
  372. pytron/platforms/android/shell/app/src/main/cpp/include/weakrefobject.h +46 -0
  373. pytron/platforms/android/shell/app/src/main/cpp/pytron_bridge.cpp +224 -0
  374. pytron/platforms/android/shell/app/src/main/java/com/pytron/shell/MainActivity.kt +208 -0
  375. pytron/platforms/android/shell/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  376. pytron/platforms/android/shell/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  377. pytron/platforms/android/shell/build.gradle +11 -0
  378. pytron/platforms/android/shell/gradle/wrapper/gradle-wrapper.jar +0 -0
  379. pytron/platforms/android/shell/gradle/wrapper/gradle-wrapper.properties +5 -0
  380. pytron/platforms/android/shell/gradle.properties +2 -0
  381. pytron/platforms/android/shell/gradlew.bat +85 -0
  382. pytron/platforms/android/shell/settings.gradle +16 -0
  383. pytron/platforms/darwin.py +82 -0
  384. pytron/platforms/darwin_ops/libs.py +31 -0
  385. pytron/platforms/darwin_ops/system.py +182 -0
  386. pytron/platforms/darwin_ops/utils.py +85 -0
  387. pytron/platforms/darwin_ops/webview.py +5 -0
  388. pytron/platforms/darwin_ops/window.py +102 -0
  389. pytron/platforms/interface.py +152 -0
  390. pytron/platforms/linux.py +82 -0
  391. pytron/platforms/linux_ops/libs.py +49 -0
  392. pytron/platforms/linux_ops/system.py +316 -0
  393. pytron/platforms/linux_ops/utils.py +19 -0
  394. pytron/platforms/linux_ops/webview.py +5 -0
  395. pytron/platforms/linux_ops/window.py +115 -0
  396. pytron/platforms/windows.py +136 -0
  397. pytron/platforms/windows_ops/__init__.py +0 -0
  398. pytron/platforms/windows_ops/constants.py +126 -0
  399. pytron/platforms/windows_ops/system.py +518 -0
  400. pytron/platforms/windows_ops/utils.py +3 -0
  401. pytron/platforms/windows_ops/webview.py +5 -0
  402. pytron/platforms/windows_ops/window.py +361 -0
  403. pytron/plugin.py +467 -0
  404. pytron/rcedit-x64.exe +0 -0
  405. pytron/router.py +146 -0
  406. pytron/serializer.py +240 -0
  407. pytron/shortcuts.py +279 -0
  408. pytron/state.py +76 -0
  409. pytron/tray.py +399 -0
  410. pytron/updater.py +181 -0
  411. pytron/utf8_hook.py +112 -0
  412. pytron/utils.py +44 -0
  413. pytron/webview.py +722 -0
  414. pytron_kit-0.3.12.dist-info/METADATA +131 -0
  415. pytron_kit-0.3.12.dist-info/RECORD +419 -0
  416. pytron_kit-0.3.12.dist-info/WHEEL +5 -0
  417. pytron_kit-0.3.12.dist-info/entry_points.txt +2 -0
  418. pytron_kit-0.3.12.dist-info/licenses/LICENSE +201 -0
  419. pytron_kit-0.3.12.dist-info/top_level.txt +1 -0
@@ -0,0 +1,211 @@
1
+ // The PyObject_ memory family: high-level object memory interfaces.
2
+ // See pymem.h for the low-level PyMem_ family.
3
+
4
+ #ifndef Py_OBJIMPL_H
5
+ #define Py_OBJIMPL_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ /* BEWARE:
11
+
12
+ Each interface exports both functions and macros. Extension modules should
13
+ use the functions, to ensure binary compatibility across Python versions.
14
+ Because the Python implementation is free to change internal details, and
15
+ the macros may (or may not) expose details for speed, if you do use the
16
+ macros you must recompile your extensions with each Python release.
17
+
18
+ Never mix calls to PyObject_ memory functions with calls to the platform
19
+ malloc/realloc/ calloc/free, or with calls to PyMem_.
20
+ */
21
+
22
+ /*
23
+ Functions and macros for modules that implement new object types.
24
+
25
+ - PyObject_New(type, typeobj) allocates memory for a new object of the given
26
+ type, and initializes part of it. 'type' must be the C structure type used
27
+ to represent the object, and 'typeobj' the address of the corresponding
28
+ type object. Reference count and type pointer are filled in; the rest of
29
+ the bytes of the object are *undefined*! The resulting expression type is
30
+ 'type *'. The size of the object is determined by the tp_basicsize field
31
+ of the type object.
32
+
33
+ - PyObject_NewVar(type, typeobj, n) is similar but allocates a variable-size
34
+ object with room for n items. In addition to the refcount and type pointer
35
+ fields, this also fills in the ob_size field.
36
+
37
+ - PyObject_Free(op) releases the memory allocated for an object. It does not
38
+ run a destructor -- it only frees the memory.
39
+
40
+ - PyObject_Init(op, typeobj) and PyObject_InitVar(op, typeobj, n) don't
41
+ allocate memory. Instead of a 'type' parameter, they take a pointer to a
42
+ new object (allocated by an arbitrary allocator), and initialize its object
43
+ header fields.
44
+
45
+ Note that objects created with PyObject_{New, NewVar} are allocated using the
46
+ specialized Python allocator (implemented in obmalloc.c), if WITH_PYMALLOC is
47
+ enabled. In addition, a special debugging allocator is used if Py_DEBUG
48
+ macro is also defined.
49
+
50
+ In case a specific form of memory management is needed (for example, if you
51
+ must use the platform malloc heap(s), or shared memory, or C++ local storage or
52
+ operator new), you must first allocate the object with your custom allocator,
53
+ then pass its pointer to PyObject_{Init, InitVar} for filling in its Python-
54
+ specific fields: reference count, type pointer, possibly others. You should
55
+ be aware that Python has no control over these objects because they don't
56
+ cooperate with the Python memory manager. Such objects may not be eligible
57
+ for automatic garbage collection and you have to make sure that they are
58
+ released accordingly whenever their destructor gets called (cf. the specific
59
+ form of memory management you're using).
60
+
61
+ Unless you have specific memory management requirements, use
62
+ PyObject_{New, NewVar, Del}.
63
+ */
64
+
65
+ /*
66
+ * Raw object memory interface
67
+ * ===========================
68
+ */
69
+
70
+ /* Functions to call the same malloc/realloc/free as used by Python's
71
+ object allocator. If WITH_PYMALLOC is enabled, these may differ from
72
+ the platform malloc/realloc/free. The Python object allocator is
73
+ designed for fast, cache-conscious allocation of many "small" objects,
74
+ and with low hidden memory overhead.
75
+
76
+ PyObject_Malloc(0) returns a unique non-NULL pointer if possible.
77
+
78
+ PyObject_Realloc(NULL, n) acts like PyObject_Malloc(n).
79
+ PyObject_Realloc(p != NULL, 0) does not return NULL, or free the memory
80
+ at p.
81
+
82
+ Returned pointers must be checked for NULL explicitly; no action is
83
+ performed on failure other than to return NULL (no warning it printed, no
84
+ exception is set, etc).
85
+
86
+ For allocating objects, use PyObject_{New, NewVar} instead whenever
87
+ possible. The PyObject_{Malloc, Realloc, Free} family is exposed
88
+ so that you can exploit Python's small-block allocator for non-object
89
+ uses. If you must use these routines to allocate object memory, make sure
90
+ the object gets initialized via PyObject_{Init, InitVar} after obtaining
91
+ the raw memory.
92
+ */
93
+ PyAPI_FUNC(void *) PyObject_Malloc(size_t size);
94
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
95
+ PyAPI_FUNC(void *) PyObject_Calloc(size_t nelem, size_t elsize);
96
+ #endif
97
+ PyAPI_FUNC(void *) PyObject_Realloc(void *ptr, size_t new_size);
98
+ PyAPI_FUNC(void) PyObject_Free(void *ptr);
99
+
100
+
101
+ // Deprecated aliases only kept for backward compatibility.
102
+ // PyObject_Del and PyObject_DEL are defined with no parameter to be able to
103
+ // use them as function pointers (ex: tp_free = PyObject_Del).
104
+ #define PyObject_MALLOC PyObject_Malloc
105
+ #define PyObject_REALLOC PyObject_Realloc
106
+ #define PyObject_FREE PyObject_Free
107
+ #define PyObject_Del PyObject_Free
108
+ #define PyObject_DEL PyObject_Free
109
+
110
+
111
+ /*
112
+ * Generic object allocator interface
113
+ * ==================================
114
+ */
115
+
116
+ /* Functions */
117
+ PyAPI_FUNC(PyObject *) PyObject_Init(PyObject *, PyTypeObject *);
118
+ PyAPI_FUNC(PyVarObject *) PyObject_InitVar(PyVarObject *,
119
+ PyTypeObject *, Py_ssize_t);
120
+
121
+ #define PyObject_INIT(op, typeobj) \
122
+ PyObject_Init(_PyObject_CAST(op), (typeobj))
123
+ #define PyObject_INIT_VAR(op, typeobj, size) \
124
+ PyObject_InitVar(_PyVarObject_CAST(op), (typeobj), (size))
125
+
126
+
127
+ PyAPI_FUNC(PyObject *) _PyObject_New(PyTypeObject *);
128
+ PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
129
+
130
+ #define PyObject_New(type, typeobj) ((type *)_PyObject_New(typeobj))
131
+
132
+ // Alias to PyObject_New(). In Python 3.8, PyObject_NEW() called directly
133
+ // PyObject_MALLOC() with _PyObject_SIZE().
134
+ #define PyObject_NEW(type, typeobj) PyObject_New(type, (typeobj))
135
+
136
+ #define PyObject_NewVar(type, typeobj, n) \
137
+ ( (type *) _PyObject_NewVar((typeobj), (n)) )
138
+
139
+ // Alias to PyObject_NewVar(). In Python 3.8, PyObject_NEW_VAR() called
140
+ // directly PyObject_MALLOC() with _PyObject_VAR_SIZE().
141
+ #define PyObject_NEW_VAR(type, typeobj, n) PyObject_NewVar(type, (typeobj), (n))
142
+
143
+
144
+ /*
145
+ * Garbage Collection Support
146
+ * ==========================
147
+ */
148
+
149
+ /* C equivalent of gc.collect(). */
150
+ PyAPI_FUNC(Py_ssize_t) PyGC_Collect(void);
151
+ /* C API for controlling the state of the garbage collector */
152
+ PyAPI_FUNC(int) PyGC_Enable(void);
153
+ PyAPI_FUNC(int) PyGC_Disable(void);
154
+ PyAPI_FUNC(int) PyGC_IsEnabled(void);
155
+
156
+ /* Test if a type has a GC head */
157
+ #define PyType_IS_GC(t) PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)
158
+
159
+ PyAPI_FUNC(PyVarObject *) _PyObject_GC_Resize(PyVarObject *, Py_ssize_t);
160
+ #define PyObject_GC_Resize(type, op, n) \
161
+ ( (type *) _PyObject_GC_Resize(_PyVarObject_CAST(op), (n)) )
162
+
163
+
164
+
165
+ PyAPI_FUNC(PyObject *) _PyObject_GC_New(PyTypeObject *);
166
+ PyAPI_FUNC(PyVarObject *) _PyObject_GC_NewVar(PyTypeObject *, Py_ssize_t);
167
+
168
+ /* Tell the GC to track this object.
169
+ *
170
+ * See also private _PyObject_GC_TRACK() macro. */
171
+ PyAPI_FUNC(void) PyObject_GC_Track(void *);
172
+
173
+ /* Tell the GC to stop tracking this object.
174
+ *
175
+ * See also private _PyObject_GC_UNTRACK() macro. */
176
+ PyAPI_FUNC(void) PyObject_GC_UnTrack(void *);
177
+
178
+ PyAPI_FUNC(void) PyObject_GC_Del(void *);
179
+
180
+ #define PyObject_GC_New(type, typeobj) \
181
+ _Py_CAST(type*, _PyObject_GC_New(typeobj))
182
+ #define PyObject_GC_NewVar(type, typeobj, n) \
183
+ _Py_CAST(type*, _PyObject_GC_NewVar((typeobj), (n)))
184
+
185
+ PyAPI_FUNC(int) PyObject_GC_IsTracked(PyObject *);
186
+ PyAPI_FUNC(int) PyObject_GC_IsFinalized(PyObject *);
187
+
188
+ /* Utility macro to help write tp_traverse functions.
189
+ * To use this macro, the tp_traverse function must name its arguments
190
+ * "visit" and "arg". This is intended to keep tp_traverse functions
191
+ * looking as much alike as possible.
192
+ */
193
+ #define Py_VISIT(op) \
194
+ do { \
195
+ if (op) { \
196
+ int vret = visit(_PyObject_CAST(op), arg); \
197
+ if (vret) \
198
+ return vret; \
199
+ } \
200
+ } while (0)
201
+
202
+ #ifndef Py_LIMITED_API
203
+ # define Py_CPYTHON_OBJIMPL_H
204
+ # include "cpython/objimpl.h"
205
+ # undef Py_CPYTHON_OBJIMPL_H
206
+ #endif
207
+
208
+ #ifdef __cplusplus
209
+ }
210
+ #endif
211
+ #endif // !Py_OBJIMPL_H
@@ -0,0 +1,43 @@
1
+ #ifndef Py_OPCODE_H
2
+ #define Py_OPCODE_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ #include "opcode_ids.h"
8
+
9
+
10
+ #define NB_ADD 0
11
+ #define NB_AND 1
12
+ #define NB_FLOOR_DIVIDE 2
13
+ #define NB_LSHIFT 3
14
+ #define NB_MATRIX_MULTIPLY 4
15
+ #define NB_MULTIPLY 5
16
+ #define NB_REMAINDER 6
17
+ #define NB_OR 7
18
+ #define NB_POWER 8
19
+ #define NB_RSHIFT 9
20
+ #define NB_SUBTRACT 10
21
+ #define NB_TRUE_DIVIDE 11
22
+ #define NB_XOR 12
23
+ #define NB_INPLACE_ADD 13
24
+ #define NB_INPLACE_AND 14
25
+ #define NB_INPLACE_FLOOR_DIVIDE 15
26
+ #define NB_INPLACE_LSHIFT 16
27
+ #define NB_INPLACE_MATRIX_MULTIPLY 17
28
+ #define NB_INPLACE_MULTIPLY 18
29
+ #define NB_INPLACE_REMAINDER 19
30
+ #define NB_INPLACE_OR 20
31
+ #define NB_INPLACE_POWER 21
32
+ #define NB_INPLACE_RSHIFT 22
33
+ #define NB_INPLACE_SUBTRACT 23
34
+ #define NB_INPLACE_TRUE_DIVIDE 24
35
+ #define NB_INPLACE_XOR 25
36
+ #define NB_SUBSCR 26
37
+
38
+ #define NB_OPARG_LAST 26
39
+
40
+ #ifdef __cplusplus
41
+ }
42
+ #endif
43
+ #endif /* !Py_OPCODE_H */
@@ -0,0 +1,259 @@
1
+ // This file is generated by Tools/cases_generator/opcode_id_generator.py
2
+ // from:
3
+ // Python/bytecodes.c
4
+ // Do not edit!
5
+
6
+ #ifndef Py_OPCODE_IDS_H
7
+ #define Py_OPCODE_IDS_H
8
+ #ifdef __cplusplus
9
+ extern "C" {
10
+ #endif
11
+
12
+ /* Instruction opcodes for compiled code */
13
+ #define CACHE 0
14
+ #define BINARY_SLICE 1
15
+ #define BUILD_TEMPLATE 2
16
+ #define BINARY_OP_INPLACE_ADD_UNICODE 3
17
+ #define CALL_FUNCTION_EX 4
18
+ #define CHECK_EG_MATCH 5
19
+ #define CHECK_EXC_MATCH 6
20
+ #define CLEANUP_THROW 7
21
+ #define DELETE_SUBSCR 8
22
+ #define END_FOR 9
23
+ #define END_SEND 10
24
+ #define EXIT_INIT_CHECK 11
25
+ #define FORMAT_SIMPLE 12
26
+ #define FORMAT_WITH_SPEC 13
27
+ #define GET_AITER 14
28
+ #define GET_ANEXT 15
29
+ #define GET_ITER 16
30
+ #define RESERVED 17
31
+ #define GET_LEN 18
32
+ #define GET_YIELD_FROM_ITER 19
33
+ #define INTERPRETER_EXIT 20
34
+ #define LOAD_BUILD_CLASS 21
35
+ #define LOAD_LOCALS 22
36
+ #define MAKE_FUNCTION 23
37
+ #define MATCH_KEYS 24
38
+ #define MATCH_MAPPING 25
39
+ #define MATCH_SEQUENCE 26
40
+ #define NOP 27
41
+ #define NOT_TAKEN 28
42
+ #define POP_EXCEPT 29
43
+ #define POP_ITER 30
44
+ #define POP_TOP 31
45
+ #define PUSH_EXC_INFO 32
46
+ #define PUSH_NULL 33
47
+ #define RETURN_GENERATOR 34
48
+ #define RETURN_VALUE 35
49
+ #define SETUP_ANNOTATIONS 36
50
+ #define STORE_SLICE 37
51
+ #define STORE_SUBSCR 38
52
+ #define TO_BOOL 39
53
+ #define UNARY_INVERT 40
54
+ #define UNARY_NEGATIVE 41
55
+ #define UNARY_NOT 42
56
+ #define WITH_EXCEPT_START 43
57
+ #define BINARY_OP 44
58
+ #define BUILD_INTERPOLATION 45
59
+ #define BUILD_LIST 46
60
+ #define BUILD_MAP 47
61
+ #define BUILD_SET 48
62
+ #define BUILD_SLICE 49
63
+ #define BUILD_STRING 50
64
+ #define BUILD_TUPLE 51
65
+ #define CALL 52
66
+ #define CALL_INTRINSIC_1 53
67
+ #define CALL_INTRINSIC_2 54
68
+ #define CALL_KW 55
69
+ #define COMPARE_OP 56
70
+ #define CONTAINS_OP 57
71
+ #define CONVERT_VALUE 58
72
+ #define COPY 59
73
+ #define COPY_FREE_VARS 60
74
+ #define DELETE_ATTR 61
75
+ #define DELETE_DEREF 62
76
+ #define DELETE_FAST 63
77
+ #define DELETE_GLOBAL 64
78
+ #define DELETE_NAME 65
79
+ #define DICT_MERGE 66
80
+ #define DICT_UPDATE 67
81
+ #define END_ASYNC_FOR 68
82
+ #define EXTENDED_ARG 69
83
+ #define FOR_ITER 70
84
+ #define GET_AWAITABLE 71
85
+ #define IMPORT_FROM 72
86
+ #define IMPORT_NAME 73
87
+ #define IS_OP 74
88
+ #define JUMP_BACKWARD 75
89
+ #define JUMP_BACKWARD_NO_INTERRUPT 76
90
+ #define JUMP_FORWARD 77
91
+ #define LIST_APPEND 78
92
+ #define LIST_EXTEND 79
93
+ #define LOAD_ATTR 80
94
+ #define LOAD_COMMON_CONSTANT 81
95
+ #define LOAD_CONST 82
96
+ #define LOAD_DEREF 83
97
+ #define LOAD_FAST 84
98
+ #define LOAD_FAST_AND_CLEAR 85
99
+ #define LOAD_FAST_BORROW 86
100
+ #define LOAD_FAST_BORROW_LOAD_FAST_BORROW 87
101
+ #define LOAD_FAST_CHECK 88
102
+ #define LOAD_FAST_LOAD_FAST 89
103
+ #define LOAD_FROM_DICT_OR_DEREF 90
104
+ #define LOAD_FROM_DICT_OR_GLOBALS 91
105
+ #define LOAD_GLOBAL 92
106
+ #define LOAD_NAME 93
107
+ #define LOAD_SMALL_INT 94
108
+ #define LOAD_SPECIAL 95
109
+ #define LOAD_SUPER_ATTR 96
110
+ #define MAKE_CELL 97
111
+ #define MAP_ADD 98
112
+ #define MATCH_CLASS 99
113
+ #define POP_JUMP_IF_FALSE 100
114
+ #define POP_JUMP_IF_NONE 101
115
+ #define POP_JUMP_IF_NOT_NONE 102
116
+ #define POP_JUMP_IF_TRUE 103
117
+ #define RAISE_VARARGS 104
118
+ #define RERAISE 105
119
+ #define SEND 106
120
+ #define SET_ADD 107
121
+ #define SET_FUNCTION_ATTRIBUTE 108
122
+ #define SET_UPDATE 109
123
+ #define STORE_ATTR 110
124
+ #define STORE_DEREF 111
125
+ #define STORE_FAST 112
126
+ #define STORE_FAST_LOAD_FAST 113
127
+ #define STORE_FAST_STORE_FAST 114
128
+ #define STORE_GLOBAL 115
129
+ #define STORE_NAME 116
130
+ #define SWAP 117
131
+ #define UNPACK_EX 118
132
+ #define UNPACK_SEQUENCE 119
133
+ #define YIELD_VALUE 120
134
+ #define RESUME 128
135
+ #define BINARY_OP_ADD_FLOAT 129
136
+ #define BINARY_OP_ADD_INT 130
137
+ #define BINARY_OP_ADD_UNICODE 131
138
+ #define BINARY_OP_EXTEND 132
139
+ #define BINARY_OP_MULTIPLY_FLOAT 133
140
+ #define BINARY_OP_MULTIPLY_INT 134
141
+ #define BINARY_OP_SUBSCR_DICT 135
142
+ #define BINARY_OP_SUBSCR_GETITEM 136
143
+ #define BINARY_OP_SUBSCR_LIST_INT 137
144
+ #define BINARY_OP_SUBSCR_LIST_SLICE 138
145
+ #define BINARY_OP_SUBSCR_STR_INT 139
146
+ #define BINARY_OP_SUBSCR_TUPLE_INT 140
147
+ #define BINARY_OP_SUBTRACT_FLOAT 141
148
+ #define BINARY_OP_SUBTRACT_INT 142
149
+ #define CALL_ALLOC_AND_ENTER_INIT 143
150
+ #define CALL_BOUND_METHOD_EXACT_ARGS 144
151
+ #define CALL_BOUND_METHOD_GENERAL 145
152
+ #define CALL_BUILTIN_CLASS 146
153
+ #define CALL_BUILTIN_FAST 147
154
+ #define CALL_BUILTIN_FAST_WITH_KEYWORDS 148
155
+ #define CALL_BUILTIN_O 149
156
+ #define CALL_ISINSTANCE 150
157
+ #define CALL_KW_BOUND_METHOD 151
158
+ #define CALL_KW_NON_PY 152
159
+ #define CALL_KW_PY 153
160
+ #define CALL_LEN 154
161
+ #define CALL_LIST_APPEND 155
162
+ #define CALL_METHOD_DESCRIPTOR_FAST 156
163
+ #define CALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS 157
164
+ #define CALL_METHOD_DESCRIPTOR_NOARGS 158
165
+ #define CALL_METHOD_DESCRIPTOR_O 159
166
+ #define CALL_NON_PY_GENERAL 160
167
+ #define CALL_PY_EXACT_ARGS 161
168
+ #define CALL_PY_GENERAL 162
169
+ #define CALL_STR_1 163
170
+ #define CALL_TUPLE_1 164
171
+ #define CALL_TYPE_1 165
172
+ #define COMPARE_OP_FLOAT 166
173
+ #define COMPARE_OP_INT 167
174
+ #define COMPARE_OP_STR 168
175
+ #define CONTAINS_OP_DICT 169
176
+ #define CONTAINS_OP_SET 170
177
+ #define FOR_ITER_GEN 171
178
+ #define FOR_ITER_LIST 172
179
+ #define FOR_ITER_RANGE 173
180
+ #define FOR_ITER_TUPLE 174
181
+ #define JUMP_BACKWARD_JIT 175
182
+ #define JUMP_BACKWARD_NO_JIT 176
183
+ #define LOAD_ATTR_CLASS 177
184
+ #define LOAD_ATTR_CLASS_WITH_METACLASS_CHECK 178
185
+ #define LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN 179
186
+ #define LOAD_ATTR_INSTANCE_VALUE 180
187
+ #define LOAD_ATTR_METHOD_LAZY_DICT 181
188
+ #define LOAD_ATTR_METHOD_NO_DICT 182
189
+ #define LOAD_ATTR_METHOD_WITH_VALUES 183
190
+ #define LOAD_ATTR_MODULE 184
191
+ #define LOAD_ATTR_NONDESCRIPTOR_NO_DICT 185
192
+ #define LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES 186
193
+ #define LOAD_ATTR_PROPERTY 187
194
+ #define LOAD_ATTR_SLOT 188
195
+ #define LOAD_ATTR_WITH_HINT 189
196
+ #define LOAD_CONST_IMMORTAL 190
197
+ #define LOAD_CONST_MORTAL 191
198
+ #define LOAD_GLOBAL_BUILTIN 192
199
+ #define LOAD_GLOBAL_MODULE 193
200
+ #define LOAD_SUPER_ATTR_ATTR 194
201
+ #define LOAD_SUPER_ATTR_METHOD 195
202
+ #define RESUME_CHECK 196
203
+ #define SEND_GEN 197
204
+ #define STORE_ATTR_INSTANCE_VALUE 198
205
+ #define STORE_ATTR_SLOT 199
206
+ #define STORE_ATTR_WITH_HINT 200
207
+ #define STORE_SUBSCR_DICT 201
208
+ #define STORE_SUBSCR_LIST_INT 202
209
+ #define TO_BOOL_ALWAYS_TRUE 203
210
+ #define TO_BOOL_BOOL 204
211
+ #define TO_BOOL_INT 205
212
+ #define TO_BOOL_LIST 206
213
+ #define TO_BOOL_NONE 207
214
+ #define TO_BOOL_STR 208
215
+ #define UNPACK_SEQUENCE_LIST 209
216
+ #define UNPACK_SEQUENCE_TUPLE 210
217
+ #define UNPACK_SEQUENCE_TWO_TUPLE 211
218
+ #define INSTRUMENTED_END_FOR 234
219
+ #define INSTRUMENTED_POP_ITER 235
220
+ #define INSTRUMENTED_END_SEND 236
221
+ #define INSTRUMENTED_FOR_ITER 237
222
+ #define INSTRUMENTED_INSTRUCTION 238
223
+ #define INSTRUMENTED_JUMP_FORWARD 239
224
+ #define INSTRUMENTED_NOT_TAKEN 240
225
+ #define INSTRUMENTED_POP_JUMP_IF_TRUE 241
226
+ #define INSTRUMENTED_POP_JUMP_IF_FALSE 242
227
+ #define INSTRUMENTED_POP_JUMP_IF_NONE 243
228
+ #define INSTRUMENTED_POP_JUMP_IF_NOT_NONE 244
229
+ #define INSTRUMENTED_RESUME 245
230
+ #define INSTRUMENTED_RETURN_VALUE 246
231
+ #define INSTRUMENTED_YIELD_VALUE 247
232
+ #define INSTRUMENTED_END_ASYNC_FOR 248
233
+ #define INSTRUMENTED_LOAD_SUPER_ATTR 249
234
+ #define INSTRUMENTED_CALL 250
235
+ #define INSTRUMENTED_CALL_KW 251
236
+ #define INSTRUMENTED_CALL_FUNCTION_EX 252
237
+ #define INSTRUMENTED_JUMP_BACKWARD 253
238
+ #define INSTRUMENTED_LINE 254
239
+ #define ENTER_EXECUTOR 255
240
+ #define ANNOTATIONS_PLACEHOLDER 256
241
+ #define JUMP 257
242
+ #define JUMP_IF_FALSE 258
243
+ #define JUMP_IF_TRUE 259
244
+ #define JUMP_NO_INTERRUPT 260
245
+ #define LOAD_CLOSURE 261
246
+ #define POP_BLOCK 262
247
+ #define SETUP_CLEANUP 263
248
+ #define SETUP_FINALLY 264
249
+ #define SETUP_WITH 265
250
+ #define STORE_FAST_MAYBE_NULL 266
251
+
252
+ #define HAVE_ARGUMENT 43
253
+ #define MIN_SPECIALIZED_OPCODE 129
254
+ #define MIN_INSTRUMENTED_OPCODE 234
255
+
256
+ #ifdef __cplusplus
257
+ }
258
+ #endif
259
+ #endif /* !Py_OPCODE_IDS_H */
@@ -0,0 +1,57 @@
1
+ // Operating system dependencies.
2
+ //
3
+ // Define constants:
4
+ //
5
+ // - ALTSEP
6
+ // - DELIM
7
+ // - MAXPATHLEN
8
+ // - SEP
9
+
10
+ #ifndef Py_OSDEFS_H
11
+ #define Py_OSDEFS_H
12
+ #ifdef __cplusplus
13
+ extern "C" {
14
+ #endif
15
+
16
+ #ifdef MS_WINDOWS
17
+ # define SEP L'\\'
18
+ # define ALTSEP L'/'
19
+ # define MAXPATHLEN 256
20
+ # define DELIM L';'
21
+ #endif
22
+
23
+ #ifdef __VXWORKS__
24
+ # define DELIM L';'
25
+ #endif
26
+
27
+ /* Filename separator */
28
+ #ifndef SEP
29
+ # define SEP L'/'
30
+ #endif
31
+
32
+ /* Max pathname length */
33
+ #ifdef __hpux
34
+ # include <sys/param.h>
35
+ # include <limits.h>
36
+ # ifndef PATH_MAX
37
+ # define PATH_MAX MAXPATHLEN
38
+ # endif
39
+ #endif
40
+
41
+ #ifndef MAXPATHLEN
42
+ # if defined(PATH_MAX) && PATH_MAX > 1024
43
+ # define MAXPATHLEN PATH_MAX
44
+ # else
45
+ # define MAXPATHLEN 1024
46
+ # endif
47
+ #endif
48
+
49
+ /* Search path entry delimiter */
50
+ #ifndef DELIM
51
+ # define DELIM L':'
52
+ #endif
53
+
54
+ #ifdef __cplusplus
55
+ }
56
+ #endif
57
+ #endif // !Py_OSDEFS_H
@@ -0,0 +1,17 @@
1
+
2
+ /* os module interface */
3
+
4
+ #ifndef Py_OSMODULE_H
5
+ #define Py_OSMODULE_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
11
+ PyAPI_FUNC(PyObject *) PyOS_FSPath(PyObject *path);
12
+ #endif
13
+
14
+ #ifdef __cplusplus
15
+ }
16
+ #endif
17
+ #endif /* !Py_OSMODULE_H */
@@ -0,0 +1,49 @@
1
+ #ifndef _Py_PATCHLEVEL_H
2
+ #define _Py_PATCHLEVEL_H
3
+ /* Python version identification scheme.
4
+
5
+ When the major or minor version changes, the VERSION variable in
6
+ configure.ac must also be changed.
7
+
8
+ There is also (independent) API version information in modsupport.h.
9
+ */
10
+
11
+ /* Values for PY_RELEASE_LEVEL */
12
+ #define PY_RELEASE_LEVEL_ALPHA 0xA
13
+ #define PY_RELEASE_LEVEL_BETA 0xB
14
+ #define PY_RELEASE_LEVEL_GAMMA 0xC /* For release candidates */
15
+ #define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */
16
+ /* Higher for patch releases */
17
+
18
+ /* Version parsed out into numeric values */
19
+ /*--start constants--*/
20
+ #define PY_MAJOR_VERSION 3
21
+ #define PY_MINOR_VERSION 14
22
+ #define PY_MICRO_VERSION 2
23
+ #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
24
+ #define PY_RELEASE_SERIAL 0
25
+
26
+ /* Version as a string */
27
+ #define PY_VERSION "3.14.2"
28
+ /*--end constants--*/
29
+
30
+
31
+ #define _Py_PACK_FULL_VERSION(X, Y, Z, LEVEL, SERIAL) ( \
32
+ (((X) & 0xff) << 24) | \
33
+ (((Y) & 0xff) << 16) | \
34
+ (((Z) & 0xff) << 8) | \
35
+ (((LEVEL) & 0xf) << 4) | \
36
+ (((SERIAL) & 0xf) << 0))
37
+
38
+ /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
39
+ Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
40
+ #define PY_VERSION_HEX _Py_PACK_FULL_VERSION( \
41
+ PY_MAJOR_VERSION, \
42
+ PY_MINOR_VERSION, \
43
+ PY_MICRO_VERSION, \
44
+ PY_RELEASE_LEVEL, \
45
+ PY_RELEASE_SERIAL)
46
+
47
+ // Public Py_PACK_VERSION is declared in pymacro.h; it needs <inttypes.h>.
48
+
49
+ #endif //_Py_PATCHLEVEL_H