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.
- pytron/__init__.py +112 -0
- pytron/application.py +562 -0
- pytron/apputils/__init__.py +0 -0
- pytron/apputils/chrome_ipc.py +203 -0
- pytron/apputils/codegen.py +261 -0
- pytron/apputils/config.py +303 -0
- pytron/apputils/deadmansswitch.py +47 -0
- pytron/apputils/extras.py +76 -0
- pytron/apputils/native.py +148 -0
- pytron/apputils/shell.py +73 -0
- pytron/apputils/windows.py +286 -0
- pytron/cli.py +384 -0
- pytron/commands/__init__.py +0 -0
- pytron/commands/android.py +28 -0
- pytron/commands/build.py +26 -0
- pytron/commands/doctor.py +221 -0
- pytron/commands/engine.py +23 -0
- pytron/commands/frontend.py +60 -0
- pytron/commands/harvest.py +112 -0
- pytron/commands/helpers.py +239 -0
- pytron/commands/info.py +50 -0
- pytron/commands/init.py +521 -0
- pytron/commands/install.py +294 -0
- pytron/commands/login.py +130 -0
- pytron/commands/package.py +228 -0
- pytron/commands/plugin.py +442 -0
- pytron/commands/run.py +312 -0
- pytron/commands/scan.py +210 -0
- pytron/commands/show.py +23 -0
- pytron/commands/uninstall.py +150 -0
- pytron/commands/utils.py +42 -0
- pytron/commands/workflow.py +95 -0
- pytron/console.py +133 -0
- pytron/core.py +18 -0
- pytron/dependencies/WebView2Loader.dll +0 -0
- pytron/dependencies/__init__.py +1 -0
- pytron/dependencies/pytron_native.so +0 -0
- pytron/engines/chrome/adapter.py +445 -0
- pytron/engines/chrome/engine.py +576 -0
- pytron/engines/chrome/forge.py +147 -0
- pytron/engines/chrome/shell/package.json +8 -0
- pytron/engines/chrome/shell/preload.js +12 -0
- pytron/engines/chrome/shell/shell.js +534 -0
- pytron/exceptions.py +36 -0
- pytron/inspector.py +201 -0
- pytron/inspector_ui.py +512 -0
- pytron/installer/Installation.nsi +236 -0
- pytron/installer/header.bmp +0 -0
- pytron/installer/pytron.ico +0 -0
- pytron/installer/sidebar.bmp +0 -0
- pytron/llms.md +98 -0
- pytron/manifests/README.md +29 -0
- pytron/manifests/windows-utf8.manifest +44 -0
- pytron/menu.py +128 -0
- pytron/nsis-setup.exe +0 -0
- pytron/pack/__init__.py +0 -0
- pytron/pack/assets.py +131 -0
- pytron/pack/compilers.py +289 -0
- pytron/pack/crystal.py +297 -0
- pytron/pack/graph.py +377 -0
- pytron/pack/inference.py +157 -0
- pytron/pack/installers.py +402 -0
- pytron/pack/introspect.py +357 -0
- pytron/pack/metadata.py +213 -0
- pytron/pack/modules.py +618 -0
- pytron/pack/nuitka.py +108 -0
- pytron/pack/pipeline.py +107 -0
- pytron/pack/pyinstaller.py +176 -0
- pytron/pack/rust_engine.py +273 -0
- pytron/pack/secure.py +309 -0
- pytron/pack/secure_loader/bin/pytron_rust_bootloader +0 -0
- pytron/pack/secure_loader/icon.ico +0 -0
- pytron/pack/utils.py +110 -0
- pytron/pack/virtual_root.py +124 -0
- pytron/platforms/__init__.py +0 -0
- pytron/platforms/android/__init__.py +3 -0
- pytron/platforms/android/android.py +103 -0
- pytron/platforms/android/builder.py +736 -0
- pytron/platforms/android/ops/build.py +79 -0
- pytron/platforms/android/ops/init.py +63 -0
- pytron/platforms/android/ops/run.py +79 -0
- pytron/platforms/android/ops/sync.py +770 -0
- pytron/platforms/android/ops/utils.py +8 -0
- pytron/platforms/android/shell/README.md +30 -0
- pytron/platforms/android/shell/app/build.gradle +64 -0
- pytron/platforms/android/shell/app/src/main/AndroidManifest.xml +29 -0
- pytron/platforms/android/shell/app/src/main/assets/python/main.py +86 -0
- pytron/platforms/android/shell/app/src/main/assets/python/python314.zip +0 -0
- pytron/platforms/android/shell/app/src/main/cpp/CMakeLists.txt +25 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/Python.h +155 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/abstract.h +915 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/audit.h +30 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/bltinmodule.h +14 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/boolobject.h +54 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/bytearrayobject.h +44 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/bytesobject.h +66 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/ceval.h +145 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/codecs.h +176 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/compile.h +22 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/complexobject.h +30 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/abstract.h +104 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/audit.h +8 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/bytearrayobject.h +38 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/bytesobject.h +42 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/cellobject.h +50 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/ceval.h +43 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/classobject.h +71 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/code.h +340 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/compile.h +50 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/complexobject.h +33 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/context.h +107 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/critical_section.h +154 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/descrobject.h +62 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/dictobject.h +105 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/fileobject.h +16 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/fileutils.h +16 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/floatobject.h +27 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/frameobject.h +35 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/funcobject.h +185 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/genobject.h +56 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/import.h +30 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/initconfig.h +334 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/listobject.h +53 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/lock.h +74 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/longintrepr.h +184 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/longobject.h +89 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/memoryobject.h +50 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/methodobject.h +66 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/modsupport.h +26 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/monitoring.h +269 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/object.h +493 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/objimpl.h +104 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/odictobject.h +43 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/picklebufobject.h +31 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pthread_stubs.h +105 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic.h +614 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic_gcc.h +615 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic_msc.h +1197 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyatomic_std.h +1112 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyctype.h +39 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pydebug.h +38 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyerrors.h +132 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyfpe.h +15 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyframe.h +45 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pyhash.h +54 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pylifecycle.h +89 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pymem.h +84 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pystate.h +275 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pystats.h +194 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pythonrun.h +96 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pythread.h +43 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/pytime.h +27 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/setobject.h +71 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/traceback.h +13 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/tracemalloc.h +32 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/tupleobject.h +40 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/unicodeobject.h +773 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/warnings.h +20 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/cpython/weakrefobject.h +66 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/critical_section.h +16 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/datetime.h +267 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/descrobject.h +100 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/dictobject.h +108 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/dynamic_annotations.h +499 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/enumobject.h +17 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/errcode.h +45 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/exports.h +105 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/fileobject.h +41 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/fileutils.h +62 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/floatobject.h +54 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/frameobject.h +20 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/genericaliasobject.h +14 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/import.h +103 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/atomic.h +392 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/internal.h +969 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/prim.h +329 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/track.h +147 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc/types.h +721 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/mimalloc/mimalloc.h +565 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_abstract.h +61 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_asdl.h +112 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ast.h +945 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ast_state.h +271 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_atexit.h +31 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_audit.h +35 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_backoff.h +133 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_bitutils.h +186 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_blocks_output_buffer.h +321 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_brc.h +73 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_bytes_methods.h +82 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_bytesobject.h +149 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_c_array.h +39 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_call.h +206 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_capsule.h +17 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_cell.h +75 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ceval.h +390 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ceval_state.h +48 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_code.h +671 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_codecs.h +76 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_compile.h +230 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_complexobject.h +34 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_condvar.h +93 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_context.h +59 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_critical_section.h +237 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_crossinterp.h +406 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_crossinterp_data_registry.h +41 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_debug_offsets.h +379 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_descrobject.h +28 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_dict.h +410 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_dict_state.h +28 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_dtoa.h +40 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_emscripten_signal.h +30 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_emscripten_trampoline.h +70 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_exceptions.h +40 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_faulthandler.h +100 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_fileutils.h +320 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_fileutils_windows.h +98 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_floatobject.h +49 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_flowgraph.h +47 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_format.h +27 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_frame.h +61 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_freelist.h +111 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_freelist_state.h +70 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_function.h +53 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_gc.h +378 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_genobject.h +43 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_getopt.h +22 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_gil.h +66 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_global_objects.h +34 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_global_objects_fini_generated.h +1592 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_global_strings.h +854 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_hamt.h +113 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_hashtable.h +150 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_import.h +141 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_importdl.h +139 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_index_pool.h +36 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_initconfig.h +197 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_instruction_sequence.h +83 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_instruments.h +127 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interp.h +109 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interp_structs.h +977 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interpframe.h +401 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interpframe_structs.h +95 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_interpolation.h +26 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_intrinsics.h +51 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_jit.h +29 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_list.h +81 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_llist.h +106 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_lock.h +236 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_long.h +319 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_magic_number.h +305 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_memoryobject.h +20 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_mimalloc.h +69 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_modsupport.h +99 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_moduleobject.h +62 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_namespace.h +21 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object.h +1029 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_alloc.h +71 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_deferred.h +32 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_stack.h +95 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_object_state.h +49 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_obmalloc.h +702 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_obmalloc_init.h +66 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_opcode_metadata.h +2117 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_opcode_utils.h +90 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_optimizer.h +318 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_parking_lot.h +97 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_parser.h +78 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pathconfig.h +26 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyarena.h +68 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyatomic_ft_wrappers.h +174 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pybuffer.h +21 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyerrors.h +213 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pyhash.h +91 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pylifecycle.h +136 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pymath.h +205 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pymem.h +145 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pymem_init.h +103 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pystate.h +339 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pystats.h +21 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pythonrun.h +68 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_pythread.h +172 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_qsbr.h +172 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_range.h +21 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime.h +63 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime_init.h +239 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime_init_generated.h +1589 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_runtime_structs.h +310 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_semaphore.h +67 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_setobject.h +41 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_signal.h +108 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_sliceobject.h +20 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_stackref.h +791 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_stats.h +97 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_strhex.h +39 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_structs.h +88 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_structseq.h +40 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_symtable.h +201 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_sysmodule.h +32 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_template.h +26 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_time.h +334 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_token.h +110 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_traceback.h +111 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_tracemalloc.h +164 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_tstate.h +88 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_tuple.h +75 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_typedefs.h +18 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_typeobject.h +155 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_typevarobject.h +28 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_ucnhash.h +36 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_unicodeobject.h +308 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_unicodeobject_generated.h +3132 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_unionobject.h +26 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_uniqueid.h +57 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_uop_ids.h +335 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_uop_metadata.h +1204 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_warnings.h +21 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/internal/pycore_weakref.h +133 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/intrcheck.h +23 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/iterobject.h +24 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/listobject.h +55 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/lock.h +16 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/longobject.h +178 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/marshal.h +31 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/memoryobject.h +34 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/methodobject.h +146 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/modsupport.h +146 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/moduleobject.h +122 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/monitoring.h +18 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/object.h +828 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/objimpl.h +211 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/opcode.h +43 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/opcode_ids.h +259 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/osdefs.h +57 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/osmodule.h +17 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/patchlevel.h +49 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/py_curses.h +117 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pyatomic.h +16 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pybuffer.h +145 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pycapsule.h +58 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pyconfig.h +2088 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pydtrace.h +59 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pyerrors.h +335 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pyexpat.h +62 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pyframe.h +26 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pyhash.h +59 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pylifecycle.h +80 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pymacconfig.h +91 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pymacro.h +243 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pymath.h +65 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pymem.h +110 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pyport.h +710 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pystate.h +132 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pystats.h +28 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pystrcmp.h +23 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pystrtod.h +37 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pythonrun.h +42 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pythread.h +131 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/pytypedefs.h +30 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/rangeobject.h +27 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/refcount.h +555 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/setobject.h +49 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/sliceobject.h +69 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/structmember.h +56 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/structseq.h +46 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/sysmodule.h +27 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/traceback.h +26 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/tupleobject.h +46 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/typeslots.h +96 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/unicodeobject.h +1029 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/warnings.h +45 -0
- pytron/platforms/android/shell/app/src/main/cpp/include/weakrefobject.h +46 -0
- pytron/platforms/android/shell/app/src/main/cpp/pytron_bridge.cpp +224 -0
- pytron/platforms/android/shell/app/src/main/java/com/pytron/shell/MainActivity.kt +208 -0
- pytron/platforms/android/shell/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- pytron/platforms/android/shell/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- pytron/platforms/android/shell/build.gradle +11 -0
- pytron/platforms/android/shell/gradle/wrapper/gradle-wrapper.jar +0 -0
- pytron/platforms/android/shell/gradle/wrapper/gradle-wrapper.properties +5 -0
- pytron/platforms/android/shell/gradle.properties +2 -0
- pytron/platforms/android/shell/gradlew.bat +85 -0
- pytron/platforms/android/shell/settings.gradle +16 -0
- pytron/platforms/darwin.py +82 -0
- pytron/platforms/darwin_ops/libs.py +31 -0
- pytron/platforms/darwin_ops/system.py +182 -0
- pytron/platforms/darwin_ops/utils.py +85 -0
- pytron/platforms/darwin_ops/webview.py +5 -0
- pytron/platforms/darwin_ops/window.py +102 -0
- pytron/platforms/interface.py +152 -0
- pytron/platforms/linux.py +82 -0
- pytron/platforms/linux_ops/libs.py +49 -0
- pytron/platforms/linux_ops/system.py +316 -0
- pytron/platforms/linux_ops/utils.py +19 -0
- pytron/platforms/linux_ops/webview.py +5 -0
- pytron/platforms/linux_ops/window.py +115 -0
- pytron/platforms/windows.py +136 -0
- pytron/platforms/windows_ops/__init__.py +0 -0
- pytron/platforms/windows_ops/constants.py +126 -0
- pytron/platforms/windows_ops/system.py +518 -0
- pytron/platforms/windows_ops/utils.py +3 -0
- pytron/platforms/windows_ops/webview.py +5 -0
- pytron/platforms/windows_ops/window.py +361 -0
- pytron/plugin.py +467 -0
- pytron/rcedit-x64.exe +0 -0
- pytron/router.py +146 -0
- pytron/serializer.py +240 -0
- pytron/shortcuts.py +279 -0
- pytron/state.py +76 -0
- pytron/tray.py +399 -0
- pytron/updater.py +181 -0
- pytron/utf8_hook.py +112 -0
- pytron/utils.py +44 -0
- pytron/webview.py +722 -0
- pytron_kit-0.3.12.dist-info/METADATA +131 -0
- pytron_kit-0.3.12.dist-info/RECORD +419 -0
- pytron_kit-0.3.12.dist-info/WHEEL +5 -0
- pytron_kit-0.3.12.dist-info/entry_points.txt +2 -0
- pytron_kit-0.3.12.dist-info/licenses/LICENSE +201 -0
- pytron_kit-0.3.12.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
#ifndef Py_INTERNAL_DEBUG_OFFSETS_H
|
|
2
|
+
#define Py_INTERNAL_DEBUG_OFFSETS_H
|
|
3
|
+
#ifdef __cplusplus
|
|
4
|
+
extern "C" {
|
|
5
|
+
#endif
|
|
6
|
+
|
|
7
|
+
#ifndef Py_BUILD_CORE
|
|
8
|
+
# error "this header requires Py_BUILD_CORE define"
|
|
9
|
+
#endif
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
#define _Py_Debug_Cookie "xdebugpy"
|
|
13
|
+
|
|
14
|
+
#if defined(__APPLE__)
|
|
15
|
+
# include <mach-o/loader.h>
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
// Macros to burn global values in custom sections so out-of-process
|
|
19
|
+
// profilers can locate them easily.
|
|
20
|
+
#define GENERATE_DEBUG_SECTION(name, declaration) \
|
|
21
|
+
_GENERATE_DEBUG_SECTION_WINDOWS(name) \
|
|
22
|
+
_GENERATE_DEBUG_SECTION_APPLE(name) \
|
|
23
|
+
declaration \
|
|
24
|
+
_GENERATE_DEBUG_SECTION_LINUX(name)
|
|
25
|
+
|
|
26
|
+
// Please note that section names are truncated to eight bytes
|
|
27
|
+
// on Windows!
|
|
28
|
+
#if defined(MS_WINDOWS)
|
|
29
|
+
#define _GENERATE_DEBUG_SECTION_WINDOWS(name) \
|
|
30
|
+
_Pragma(Py_STRINGIFY(section(Py_STRINGIFY(name), read, write))) \
|
|
31
|
+
__declspec(allocate(Py_STRINGIFY(name)))
|
|
32
|
+
#else
|
|
33
|
+
#define _GENERATE_DEBUG_SECTION_WINDOWS(name)
|
|
34
|
+
#endif
|
|
35
|
+
|
|
36
|
+
#if defined(__APPLE__)
|
|
37
|
+
#define _GENERATE_DEBUG_SECTION_APPLE(name) \
|
|
38
|
+
__attribute__((section(SEG_DATA "," Py_STRINGIFY(name)))) \
|
|
39
|
+
__attribute__((used))
|
|
40
|
+
#else
|
|
41
|
+
#define _GENERATE_DEBUG_SECTION_APPLE(name)
|
|
42
|
+
#endif
|
|
43
|
+
|
|
44
|
+
#if defined(__linux__) && (defined(__GNUC__) || defined(__clang__))
|
|
45
|
+
#define _GENERATE_DEBUG_SECTION_LINUX(name) \
|
|
46
|
+
__attribute__((section("." Py_STRINGIFY(name)))) \
|
|
47
|
+
__attribute__((used))
|
|
48
|
+
#else
|
|
49
|
+
#define _GENERATE_DEBUG_SECTION_LINUX(name)
|
|
50
|
+
#endif
|
|
51
|
+
|
|
52
|
+
#ifdef Py_GIL_DISABLED
|
|
53
|
+
# define _Py_Debug_gilruntimestate_enabled offsetof(struct _gil_runtime_state, enabled)
|
|
54
|
+
# define _Py_Debug_Free_Threaded 1
|
|
55
|
+
# define _Py_Debug_code_object_co_tlbc offsetof(PyCodeObject, co_tlbc)
|
|
56
|
+
# define _Py_Debug_interpreter_frame_tlbc_index offsetof(_PyInterpreterFrame, tlbc_index)
|
|
57
|
+
# define _Py_Debug_interpreter_state_tlbc_generation offsetof(PyInterpreterState, tlbc_indices.tlbc_generation)
|
|
58
|
+
#else
|
|
59
|
+
# define _Py_Debug_gilruntimestate_enabled 0
|
|
60
|
+
# define _Py_Debug_Free_Threaded 0
|
|
61
|
+
# define _Py_Debug_code_object_co_tlbc 0
|
|
62
|
+
# define _Py_Debug_interpreter_frame_tlbc_index 0
|
|
63
|
+
# define _Py_Debug_interpreter_state_tlbc_generation 0
|
|
64
|
+
#endif
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
typedef struct _Py_DebugOffsets {
|
|
68
|
+
char cookie[8] _Py_NONSTRING;
|
|
69
|
+
uint64_t version;
|
|
70
|
+
uint64_t free_threaded;
|
|
71
|
+
// Runtime state offset;
|
|
72
|
+
struct _runtime_state {
|
|
73
|
+
uint64_t size;
|
|
74
|
+
uint64_t finalizing;
|
|
75
|
+
uint64_t interpreters_head;
|
|
76
|
+
} runtime_state;
|
|
77
|
+
|
|
78
|
+
// Interpreter state offset;
|
|
79
|
+
struct _interpreter_state {
|
|
80
|
+
uint64_t size;
|
|
81
|
+
uint64_t id;
|
|
82
|
+
uint64_t next;
|
|
83
|
+
uint64_t threads_head;
|
|
84
|
+
uint64_t threads_main;
|
|
85
|
+
uint64_t gc;
|
|
86
|
+
uint64_t imports_modules;
|
|
87
|
+
uint64_t sysdict;
|
|
88
|
+
uint64_t builtins;
|
|
89
|
+
uint64_t ceval_gil;
|
|
90
|
+
uint64_t gil_runtime_state;
|
|
91
|
+
uint64_t gil_runtime_state_enabled;
|
|
92
|
+
uint64_t gil_runtime_state_locked;
|
|
93
|
+
uint64_t gil_runtime_state_holder;
|
|
94
|
+
uint64_t code_object_generation;
|
|
95
|
+
uint64_t tlbc_generation;
|
|
96
|
+
} interpreter_state;
|
|
97
|
+
|
|
98
|
+
// Thread state offset;
|
|
99
|
+
struct _thread_state{
|
|
100
|
+
uint64_t size;
|
|
101
|
+
uint64_t prev;
|
|
102
|
+
uint64_t next;
|
|
103
|
+
uint64_t interp;
|
|
104
|
+
uint64_t current_frame;
|
|
105
|
+
uint64_t thread_id;
|
|
106
|
+
uint64_t native_thread_id;
|
|
107
|
+
uint64_t datastack_chunk;
|
|
108
|
+
uint64_t status;
|
|
109
|
+
} thread_state;
|
|
110
|
+
|
|
111
|
+
// InterpreterFrame offset;
|
|
112
|
+
struct _interpreter_frame {
|
|
113
|
+
uint64_t size;
|
|
114
|
+
uint64_t previous;
|
|
115
|
+
uint64_t executable;
|
|
116
|
+
uint64_t instr_ptr;
|
|
117
|
+
uint64_t localsplus;
|
|
118
|
+
uint64_t owner;
|
|
119
|
+
uint64_t stackpointer;
|
|
120
|
+
uint64_t tlbc_index;
|
|
121
|
+
} interpreter_frame;
|
|
122
|
+
|
|
123
|
+
// Code object offset;
|
|
124
|
+
struct _code_object {
|
|
125
|
+
uint64_t size;
|
|
126
|
+
uint64_t filename;
|
|
127
|
+
uint64_t name;
|
|
128
|
+
uint64_t qualname;
|
|
129
|
+
uint64_t linetable;
|
|
130
|
+
uint64_t firstlineno;
|
|
131
|
+
uint64_t argcount;
|
|
132
|
+
uint64_t localsplusnames;
|
|
133
|
+
uint64_t localspluskinds;
|
|
134
|
+
uint64_t co_code_adaptive;
|
|
135
|
+
uint64_t co_tlbc;
|
|
136
|
+
} code_object;
|
|
137
|
+
|
|
138
|
+
// PyObject offset;
|
|
139
|
+
struct _pyobject {
|
|
140
|
+
uint64_t size;
|
|
141
|
+
uint64_t ob_type;
|
|
142
|
+
} pyobject;
|
|
143
|
+
|
|
144
|
+
// PyTypeObject object offset;
|
|
145
|
+
struct _type_object {
|
|
146
|
+
uint64_t size;
|
|
147
|
+
uint64_t tp_name;
|
|
148
|
+
uint64_t tp_repr;
|
|
149
|
+
uint64_t tp_flags;
|
|
150
|
+
} type_object;
|
|
151
|
+
|
|
152
|
+
// PyTuple object offset;
|
|
153
|
+
struct _tuple_object {
|
|
154
|
+
uint64_t size;
|
|
155
|
+
uint64_t ob_item;
|
|
156
|
+
uint64_t ob_size;
|
|
157
|
+
} tuple_object;
|
|
158
|
+
|
|
159
|
+
// PyList object offset;
|
|
160
|
+
struct _list_object {
|
|
161
|
+
uint64_t size;
|
|
162
|
+
uint64_t ob_item;
|
|
163
|
+
uint64_t ob_size;
|
|
164
|
+
} list_object;
|
|
165
|
+
|
|
166
|
+
// PySet object offset;
|
|
167
|
+
struct _set_object {
|
|
168
|
+
uint64_t size;
|
|
169
|
+
uint64_t used;
|
|
170
|
+
uint64_t table;
|
|
171
|
+
uint64_t mask;
|
|
172
|
+
} set_object;
|
|
173
|
+
|
|
174
|
+
// PyDict object offset;
|
|
175
|
+
struct _dict_object {
|
|
176
|
+
uint64_t size;
|
|
177
|
+
uint64_t ma_keys;
|
|
178
|
+
uint64_t ma_values;
|
|
179
|
+
} dict_object;
|
|
180
|
+
|
|
181
|
+
// PyFloat object offset;
|
|
182
|
+
struct _float_object {
|
|
183
|
+
uint64_t size;
|
|
184
|
+
uint64_t ob_fval;
|
|
185
|
+
} float_object;
|
|
186
|
+
|
|
187
|
+
// PyLong object offset;
|
|
188
|
+
struct _long_object {
|
|
189
|
+
uint64_t size;
|
|
190
|
+
uint64_t lv_tag;
|
|
191
|
+
uint64_t ob_digit;
|
|
192
|
+
} long_object;
|
|
193
|
+
|
|
194
|
+
// PyBytes object offset;
|
|
195
|
+
struct _bytes_object {
|
|
196
|
+
uint64_t size;
|
|
197
|
+
uint64_t ob_size;
|
|
198
|
+
uint64_t ob_sval;
|
|
199
|
+
} bytes_object;
|
|
200
|
+
|
|
201
|
+
// Unicode object offset;
|
|
202
|
+
struct _unicode_object {
|
|
203
|
+
uint64_t size;
|
|
204
|
+
uint64_t state;
|
|
205
|
+
uint64_t length;
|
|
206
|
+
uint64_t asciiobject_size;
|
|
207
|
+
} unicode_object;
|
|
208
|
+
|
|
209
|
+
// GC runtime state offset;
|
|
210
|
+
struct _gc {
|
|
211
|
+
uint64_t size;
|
|
212
|
+
uint64_t collecting;
|
|
213
|
+
} gc;
|
|
214
|
+
|
|
215
|
+
// Generator object offset;
|
|
216
|
+
struct _gen_object {
|
|
217
|
+
uint64_t size;
|
|
218
|
+
uint64_t gi_name;
|
|
219
|
+
uint64_t gi_iframe;
|
|
220
|
+
uint64_t gi_frame_state;
|
|
221
|
+
} gen_object;
|
|
222
|
+
|
|
223
|
+
struct _llist_node {
|
|
224
|
+
uint64_t next;
|
|
225
|
+
uint64_t prev;
|
|
226
|
+
} llist_node;
|
|
227
|
+
|
|
228
|
+
struct _debugger_support {
|
|
229
|
+
uint64_t eval_breaker;
|
|
230
|
+
uint64_t remote_debugger_support;
|
|
231
|
+
uint64_t remote_debugging_enabled;
|
|
232
|
+
uint64_t debugger_pending_call;
|
|
233
|
+
uint64_t debugger_script_path;
|
|
234
|
+
uint64_t debugger_script_path_size;
|
|
235
|
+
} debugger_support;
|
|
236
|
+
} _Py_DebugOffsets;
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
#define _Py_DebugOffsets_INIT(debug_cookie) { \
|
|
240
|
+
.cookie = debug_cookie, \
|
|
241
|
+
.version = PY_VERSION_HEX, \
|
|
242
|
+
.free_threaded = _Py_Debug_Free_Threaded, \
|
|
243
|
+
.runtime_state = { \
|
|
244
|
+
.size = sizeof(_PyRuntimeState), \
|
|
245
|
+
.finalizing = offsetof(_PyRuntimeState, _finalizing), \
|
|
246
|
+
.interpreters_head = offsetof(_PyRuntimeState, interpreters.head), \
|
|
247
|
+
}, \
|
|
248
|
+
.interpreter_state = { \
|
|
249
|
+
.size = sizeof(PyInterpreterState), \
|
|
250
|
+
.id = offsetof(PyInterpreterState, id), \
|
|
251
|
+
.next = offsetof(PyInterpreterState, next), \
|
|
252
|
+
.threads_head = offsetof(PyInterpreterState, threads.head), \
|
|
253
|
+
.threads_main = offsetof(PyInterpreterState, threads.main), \
|
|
254
|
+
.gc = offsetof(PyInterpreterState, gc), \
|
|
255
|
+
.imports_modules = offsetof(PyInterpreterState, imports.modules), \
|
|
256
|
+
.sysdict = offsetof(PyInterpreterState, sysdict), \
|
|
257
|
+
.builtins = offsetof(PyInterpreterState, builtins), \
|
|
258
|
+
.ceval_gil = offsetof(PyInterpreterState, ceval.gil), \
|
|
259
|
+
.gil_runtime_state = offsetof(PyInterpreterState, _gil), \
|
|
260
|
+
.gil_runtime_state_enabled = _Py_Debug_gilruntimestate_enabled, \
|
|
261
|
+
.gil_runtime_state_locked = offsetof(PyInterpreterState, _gil.locked), \
|
|
262
|
+
.gil_runtime_state_holder = offsetof(PyInterpreterState, _gil.last_holder), \
|
|
263
|
+
.code_object_generation = offsetof(PyInterpreterState, _code_object_generation), \
|
|
264
|
+
.tlbc_generation = _Py_Debug_interpreter_state_tlbc_generation, \
|
|
265
|
+
}, \
|
|
266
|
+
.thread_state = { \
|
|
267
|
+
.size = sizeof(PyThreadState), \
|
|
268
|
+
.prev = offsetof(PyThreadState, prev), \
|
|
269
|
+
.next = offsetof(PyThreadState, next), \
|
|
270
|
+
.interp = offsetof(PyThreadState, interp), \
|
|
271
|
+
.current_frame = offsetof(PyThreadState, current_frame), \
|
|
272
|
+
.thread_id = offsetof(PyThreadState, thread_id), \
|
|
273
|
+
.native_thread_id = offsetof(PyThreadState, native_thread_id), \
|
|
274
|
+
.datastack_chunk = offsetof(PyThreadState, datastack_chunk), \
|
|
275
|
+
.status = offsetof(PyThreadState, _status), \
|
|
276
|
+
}, \
|
|
277
|
+
.interpreter_frame = { \
|
|
278
|
+
.size = sizeof(_PyInterpreterFrame), \
|
|
279
|
+
.previous = offsetof(_PyInterpreterFrame, previous), \
|
|
280
|
+
.executable = offsetof(_PyInterpreterFrame, f_executable), \
|
|
281
|
+
.instr_ptr = offsetof(_PyInterpreterFrame, instr_ptr), \
|
|
282
|
+
.localsplus = offsetof(_PyInterpreterFrame, localsplus), \
|
|
283
|
+
.owner = offsetof(_PyInterpreterFrame, owner), \
|
|
284
|
+
.stackpointer = offsetof(_PyInterpreterFrame, stackpointer), \
|
|
285
|
+
.tlbc_index = _Py_Debug_interpreter_frame_tlbc_index, \
|
|
286
|
+
}, \
|
|
287
|
+
.code_object = { \
|
|
288
|
+
.size = sizeof(PyCodeObject), \
|
|
289
|
+
.filename = offsetof(PyCodeObject, co_filename), \
|
|
290
|
+
.name = offsetof(PyCodeObject, co_name), \
|
|
291
|
+
.qualname = offsetof(PyCodeObject, co_qualname), \
|
|
292
|
+
.linetable = offsetof(PyCodeObject, co_linetable), \
|
|
293
|
+
.firstlineno = offsetof(PyCodeObject, co_firstlineno), \
|
|
294
|
+
.argcount = offsetof(PyCodeObject, co_argcount), \
|
|
295
|
+
.localsplusnames = offsetof(PyCodeObject, co_localsplusnames), \
|
|
296
|
+
.localspluskinds = offsetof(PyCodeObject, co_localspluskinds), \
|
|
297
|
+
.co_code_adaptive = offsetof(PyCodeObject, co_code_adaptive), \
|
|
298
|
+
.co_tlbc = _Py_Debug_code_object_co_tlbc, \
|
|
299
|
+
}, \
|
|
300
|
+
.pyobject = { \
|
|
301
|
+
.size = sizeof(PyObject), \
|
|
302
|
+
.ob_type = offsetof(PyObject, ob_type), \
|
|
303
|
+
}, \
|
|
304
|
+
.type_object = { \
|
|
305
|
+
.size = sizeof(PyTypeObject), \
|
|
306
|
+
.tp_name = offsetof(PyTypeObject, tp_name), \
|
|
307
|
+
.tp_repr = offsetof(PyTypeObject, tp_repr), \
|
|
308
|
+
.tp_flags = offsetof(PyTypeObject, tp_flags), \
|
|
309
|
+
}, \
|
|
310
|
+
.tuple_object = { \
|
|
311
|
+
.size = sizeof(PyTupleObject), \
|
|
312
|
+
.ob_item = offsetof(PyTupleObject, ob_item), \
|
|
313
|
+
.ob_size = offsetof(PyTupleObject, ob_base.ob_size), \
|
|
314
|
+
}, \
|
|
315
|
+
.list_object = { \
|
|
316
|
+
.size = sizeof(PyListObject), \
|
|
317
|
+
.ob_item = offsetof(PyListObject, ob_item), \
|
|
318
|
+
.ob_size = offsetof(PyListObject, ob_base.ob_size), \
|
|
319
|
+
}, \
|
|
320
|
+
.set_object = { \
|
|
321
|
+
.size = sizeof(PySetObject), \
|
|
322
|
+
.used = offsetof(PySetObject, used), \
|
|
323
|
+
.table = offsetof(PySetObject, table), \
|
|
324
|
+
.mask = offsetof(PySetObject, mask), \
|
|
325
|
+
}, \
|
|
326
|
+
.dict_object = { \
|
|
327
|
+
.size = sizeof(PyDictObject), \
|
|
328
|
+
.ma_keys = offsetof(PyDictObject, ma_keys), \
|
|
329
|
+
.ma_values = offsetof(PyDictObject, ma_values), \
|
|
330
|
+
}, \
|
|
331
|
+
.float_object = { \
|
|
332
|
+
.size = sizeof(PyFloatObject), \
|
|
333
|
+
.ob_fval = offsetof(PyFloatObject, ob_fval), \
|
|
334
|
+
}, \
|
|
335
|
+
.long_object = { \
|
|
336
|
+
.size = sizeof(PyLongObject), \
|
|
337
|
+
.lv_tag = offsetof(PyLongObject, long_value.lv_tag), \
|
|
338
|
+
.ob_digit = offsetof(PyLongObject, long_value.ob_digit), \
|
|
339
|
+
}, \
|
|
340
|
+
.bytes_object = { \
|
|
341
|
+
.size = sizeof(PyBytesObject), \
|
|
342
|
+
.ob_size = offsetof(PyBytesObject, ob_base.ob_size), \
|
|
343
|
+
.ob_sval = offsetof(PyBytesObject, ob_sval), \
|
|
344
|
+
}, \
|
|
345
|
+
.unicode_object = { \
|
|
346
|
+
.size = sizeof(PyUnicodeObject), \
|
|
347
|
+
.state = offsetof(PyUnicodeObject, _base._base.state), \
|
|
348
|
+
.length = offsetof(PyUnicodeObject, _base._base.length), \
|
|
349
|
+
.asciiobject_size = sizeof(PyASCIIObject), \
|
|
350
|
+
}, \
|
|
351
|
+
.gc = { \
|
|
352
|
+
.size = sizeof(struct _gc_runtime_state), \
|
|
353
|
+
.collecting = offsetof(struct _gc_runtime_state, collecting), \
|
|
354
|
+
}, \
|
|
355
|
+
.gen_object = { \
|
|
356
|
+
.size = sizeof(PyGenObject), \
|
|
357
|
+
.gi_name = offsetof(PyGenObject, gi_name), \
|
|
358
|
+
.gi_iframe = offsetof(PyGenObject, gi_iframe), \
|
|
359
|
+
.gi_frame_state = offsetof(PyGenObject, gi_frame_state), \
|
|
360
|
+
}, \
|
|
361
|
+
.llist_node = { \
|
|
362
|
+
.next = offsetof(struct llist_node, next), \
|
|
363
|
+
.prev = offsetof(struct llist_node, prev), \
|
|
364
|
+
}, \
|
|
365
|
+
.debugger_support = { \
|
|
366
|
+
.eval_breaker = offsetof(PyThreadState, eval_breaker), \
|
|
367
|
+
.remote_debugger_support = offsetof(PyThreadState, remote_debugger_support), \
|
|
368
|
+
.remote_debugging_enabled = offsetof(PyInterpreterState, config.remote_debug), \
|
|
369
|
+
.debugger_pending_call = offsetof(_PyRemoteDebuggerSupport, debugger_pending_call), \
|
|
370
|
+
.debugger_script_path = offsetof(_PyRemoteDebuggerSupport, debugger_script_path), \
|
|
371
|
+
.debugger_script_path_size = _Py_MAX_SCRIPT_PATH_SIZE, \
|
|
372
|
+
}, \
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
#ifdef __cplusplus
|
|
377
|
+
}
|
|
378
|
+
#endif
|
|
379
|
+
#endif /* !Py_INTERNAL_DEBUG_OFFSETS_H */
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#ifndef Py_INTERNAL_DESCROBJECT_H
|
|
2
|
+
#define Py_INTERNAL_DESCROBJECT_H
|
|
3
|
+
#ifdef __cplusplus
|
|
4
|
+
extern "C" {
|
|
5
|
+
#endif
|
|
6
|
+
|
|
7
|
+
#ifndef Py_BUILD_CORE
|
|
8
|
+
# error "this header requires Py_BUILD_CORE define"
|
|
9
|
+
#endif
|
|
10
|
+
|
|
11
|
+
typedef struct {
|
|
12
|
+
PyObject_HEAD
|
|
13
|
+
PyObject *prop_get;
|
|
14
|
+
PyObject *prop_set;
|
|
15
|
+
PyObject *prop_del;
|
|
16
|
+
PyObject *prop_doc;
|
|
17
|
+
PyObject *prop_name;
|
|
18
|
+
int getter_doc;
|
|
19
|
+
} propertyobject;
|
|
20
|
+
|
|
21
|
+
typedef propertyobject _PyPropertyObject;
|
|
22
|
+
|
|
23
|
+
extern PyTypeObject _PyMethodWrapper_Type;
|
|
24
|
+
|
|
25
|
+
#ifdef __cplusplus
|
|
26
|
+
}
|
|
27
|
+
#endif
|
|
28
|
+
#endif /* !Py_INTERNAL_DESCROBJECT_H */
|