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,39 @@
|
|
|
1
|
+
#ifndef Py_LIMITED_API
|
|
2
|
+
#ifndef PYCTYPE_H
|
|
3
|
+
#define PYCTYPE_H
|
|
4
|
+
#ifdef __cplusplus
|
|
5
|
+
extern "C" {
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
#define PY_CTF_LOWER 0x01
|
|
9
|
+
#define PY_CTF_UPPER 0x02
|
|
10
|
+
#define PY_CTF_ALPHA (PY_CTF_LOWER|PY_CTF_UPPER)
|
|
11
|
+
#define PY_CTF_DIGIT 0x04
|
|
12
|
+
#define PY_CTF_ALNUM (PY_CTF_ALPHA|PY_CTF_DIGIT)
|
|
13
|
+
#define PY_CTF_SPACE 0x08
|
|
14
|
+
#define PY_CTF_XDIGIT 0x10
|
|
15
|
+
|
|
16
|
+
PyAPI_DATA(const unsigned int) _Py_ctype_table[256];
|
|
17
|
+
|
|
18
|
+
/* Unlike their C counterparts, the following macros are not meant to
|
|
19
|
+
* handle an int with any of the values [EOF, 0-UCHAR_MAX]. The argument
|
|
20
|
+
* must be a signed/unsigned char. */
|
|
21
|
+
#define Py_ISLOWER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_LOWER)
|
|
22
|
+
#define Py_ISUPPER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_UPPER)
|
|
23
|
+
#define Py_ISALPHA(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALPHA)
|
|
24
|
+
#define Py_ISDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_DIGIT)
|
|
25
|
+
#define Py_ISXDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_XDIGIT)
|
|
26
|
+
#define Py_ISALNUM(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALNUM)
|
|
27
|
+
#define Py_ISSPACE(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_SPACE)
|
|
28
|
+
|
|
29
|
+
PyAPI_DATA(const unsigned char) _Py_ctype_tolower[256];
|
|
30
|
+
PyAPI_DATA(const unsigned char) _Py_ctype_toupper[256];
|
|
31
|
+
|
|
32
|
+
#define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
|
|
33
|
+
#define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
|
|
34
|
+
|
|
35
|
+
#ifdef __cplusplus
|
|
36
|
+
}
|
|
37
|
+
#endif
|
|
38
|
+
#endif /* !PYCTYPE_H */
|
|
39
|
+
#endif /* !Py_LIMITED_API */
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#ifndef Py_LIMITED_API
|
|
2
|
+
#ifndef Py_PYDEBUG_H
|
|
3
|
+
#define Py_PYDEBUG_H
|
|
4
|
+
#ifdef __cplusplus
|
|
5
|
+
extern "C" {
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_DebugFlag;
|
|
9
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_VerboseFlag;
|
|
10
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_QuietFlag;
|
|
11
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_InteractiveFlag;
|
|
12
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_InspectFlag;
|
|
13
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
|
|
14
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_NoSiteFlag;
|
|
15
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_BytesWarningFlag;
|
|
16
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_FrozenFlag;
|
|
17
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
|
|
18
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
|
|
19
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_NoUserSiteDirectory;
|
|
20
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_UnbufferedStdioFlag;
|
|
21
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_HashRandomizationFlag;
|
|
22
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_IsolatedFlag;
|
|
23
|
+
|
|
24
|
+
#ifdef MS_WINDOWS
|
|
25
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_LegacyWindowsFSEncodingFlag;
|
|
26
|
+
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_LegacyWindowsStdioFlag;
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
/* this is a wrapper around getenv() that pays attention to
|
|
30
|
+
Py_IgnoreEnvironmentFlag. It should be used for getting variables like
|
|
31
|
+
PYTHONPATH and PYTHONHOME from the environment */
|
|
32
|
+
PyAPI_FUNC(char*) Py_GETENV(const char *name);
|
|
33
|
+
|
|
34
|
+
#ifdef __cplusplus
|
|
35
|
+
}
|
|
36
|
+
#endif
|
|
37
|
+
#endif /* !Py_PYDEBUG_H */
|
|
38
|
+
#endif /* Py_LIMITED_API */
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
#ifndef Py_CPYTHON_ERRORS_H
|
|
2
|
+
# error "this header file must not be included directly"
|
|
3
|
+
#endif
|
|
4
|
+
|
|
5
|
+
/* Error objects */
|
|
6
|
+
|
|
7
|
+
/* PyException_HEAD defines the initial segment of every exception class. */
|
|
8
|
+
#define PyException_HEAD PyObject_HEAD PyObject *dict;\
|
|
9
|
+
PyObject *args; PyObject *notes; PyObject *traceback;\
|
|
10
|
+
PyObject *context; PyObject *cause;\
|
|
11
|
+
char suppress_context;
|
|
12
|
+
|
|
13
|
+
typedef struct {
|
|
14
|
+
PyException_HEAD
|
|
15
|
+
} PyBaseExceptionObject;
|
|
16
|
+
|
|
17
|
+
typedef struct {
|
|
18
|
+
PyException_HEAD
|
|
19
|
+
PyObject *msg;
|
|
20
|
+
PyObject *excs;
|
|
21
|
+
} PyBaseExceptionGroupObject;
|
|
22
|
+
|
|
23
|
+
typedef struct {
|
|
24
|
+
PyException_HEAD
|
|
25
|
+
PyObject *msg;
|
|
26
|
+
PyObject *filename;
|
|
27
|
+
PyObject *lineno;
|
|
28
|
+
PyObject *offset;
|
|
29
|
+
PyObject *end_lineno;
|
|
30
|
+
PyObject *end_offset;
|
|
31
|
+
PyObject *text;
|
|
32
|
+
PyObject *print_file_and_line;
|
|
33
|
+
PyObject *metadata;
|
|
34
|
+
} PySyntaxErrorObject;
|
|
35
|
+
|
|
36
|
+
typedef struct {
|
|
37
|
+
PyException_HEAD
|
|
38
|
+
PyObject *msg;
|
|
39
|
+
PyObject *name;
|
|
40
|
+
PyObject *path;
|
|
41
|
+
PyObject *name_from;
|
|
42
|
+
} PyImportErrorObject;
|
|
43
|
+
|
|
44
|
+
typedef struct {
|
|
45
|
+
PyException_HEAD
|
|
46
|
+
PyObject *encoding;
|
|
47
|
+
PyObject *object;
|
|
48
|
+
Py_ssize_t start;
|
|
49
|
+
Py_ssize_t end;
|
|
50
|
+
PyObject *reason;
|
|
51
|
+
} PyUnicodeErrorObject;
|
|
52
|
+
|
|
53
|
+
typedef struct {
|
|
54
|
+
PyException_HEAD
|
|
55
|
+
PyObject *code;
|
|
56
|
+
} PySystemExitObject;
|
|
57
|
+
|
|
58
|
+
typedef struct {
|
|
59
|
+
PyException_HEAD
|
|
60
|
+
PyObject *myerrno;
|
|
61
|
+
PyObject *strerror;
|
|
62
|
+
PyObject *filename;
|
|
63
|
+
PyObject *filename2;
|
|
64
|
+
#ifdef MS_WINDOWS
|
|
65
|
+
PyObject *winerror;
|
|
66
|
+
#endif
|
|
67
|
+
Py_ssize_t written; /* only for BlockingIOError, -1 otherwise */
|
|
68
|
+
} PyOSErrorObject;
|
|
69
|
+
|
|
70
|
+
typedef struct {
|
|
71
|
+
PyException_HEAD
|
|
72
|
+
PyObject *value;
|
|
73
|
+
} PyStopIterationObject;
|
|
74
|
+
|
|
75
|
+
typedef struct {
|
|
76
|
+
PyException_HEAD
|
|
77
|
+
PyObject *name;
|
|
78
|
+
} PyNameErrorObject;
|
|
79
|
+
|
|
80
|
+
typedef struct {
|
|
81
|
+
PyException_HEAD
|
|
82
|
+
PyObject *obj;
|
|
83
|
+
PyObject *name;
|
|
84
|
+
} PyAttributeErrorObject;
|
|
85
|
+
|
|
86
|
+
/* Compatibility typedefs */
|
|
87
|
+
typedef PyOSErrorObject PyEnvironmentErrorObject;
|
|
88
|
+
#ifdef MS_WINDOWS
|
|
89
|
+
typedef PyOSErrorObject PyWindowsErrorObject;
|
|
90
|
+
#endif
|
|
91
|
+
|
|
92
|
+
/* Context manipulation (PEP 3134) */
|
|
93
|
+
|
|
94
|
+
PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
|
|
95
|
+
|
|
96
|
+
/* In exceptions.c */
|
|
97
|
+
|
|
98
|
+
PyAPI_FUNC(PyObject*) PyUnstable_Exc_PrepReraiseStar(
|
|
99
|
+
PyObject *orig,
|
|
100
|
+
PyObject *excs);
|
|
101
|
+
|
|
102
|
+
/* In signalmodule.c */
|
|
103
|
+
|
|
104
|
+
PyAPI_FUNC(int) PySignal_SetWakeupFd(int fd);
|
|
105
|
+
|
|
106
|
+
/* Support for adding program text to SyntaxErrors */
|
|
107
|
+
|
|
108
|
+
PyAPI_FUNC(void) PyErr_SyntaxLocationObject(
|
|
109
|
+
PyObject *filename,
|
|
110
|
+
int lineno,
|
|
111
|
+
int col_offset);
|
|
112
|
+
|
|
113
|
+
PyAPI_FUNC(void) PyErr_RangedSyntaxLocationObject(
|
|
114
|
+
PyObject *filename,
|
|
115
|
+
int lineno,
|
|
116
|
+
int col_offset,
|
|
117
|
+
int end_lineno,
|
|
118
|
+
int end_col_offset);
|
|
119
|
+
|
|
120
|
+
PyAPI_FUNC(PyObject *) PyErr_ProgramTextObject(
|
|
121
|
+
PyObject *filename,
|
|
122
|
+
int lineno);
|
|
123
|
+
|
|
124
|
+
PyAPI_FUNC(void) _Py_NO_RETURN _Py_FatalErrorFunc(
|
|
125
|
+
const char *func,
|
|
126
|
+
const char *message);
|
|
127
|
+
|
|
128
|
+
PyAPI_FUNC(void) PyErr_FormatUnraisable(const char *, ...);
|
|
129
|
+
|
|
130
|
+
PyAPI_DATA(PyObject *) PyExc_PythonFinalizationError;
|
|
131
|
+
|
|
132
|
+
#define Py_FatalError(message) _Py_FatalErrorFunc(__func__, (message))
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#ifndef Py_PYFPE_H
|
|
2
|
+
#define Py_PYFPE_H
|
|
3
|
+
/* Header excluded from the stable API */
|
|
4
|
+
#ifndef Py_LIMITED_API
|
|
5
|
+
|
|
6
|
+
/* These macros used to do something when Python was built with --with-fpectl,
|
|
7
|
+
* but support for that was dropped in 3.7. We continue to define them though,
|
|
8
|
+
* to avoid breaking API users.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#define PyFPE_START_PROTECT(err_string, leave_stmt)
|
|
12
|
+
#define PyFPE_END_PROTECT(v)
|
|
13
|
+
|
|
14
|
+
#endif /* !defined(Py_LIMITED_API) */
|
|
15
|
+
#endif /* !Py_PYFPE_H */
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#ifndef Py_CPYTHON_PYFRAME_H
|
|
2
|
+
# error "this header file must not be included directly"
|
|
3
|
+
#endif
|
|
4
|
+
|
|
5
|
+
PyAPI_DATA(PyTypeObject) PyFrame_Type;
|
|
6
|
+
PyAPI_DATA(PyTypeObject) PyFrameLocalsProxy_Type;
|
|
7
|
+
|
|
8
|
+
#define PyFrame_Check(op) Py_IS_TYPE((op), &PyFrame_Type)
|
|
9
|
+
#define PyFrameLocalsProxy_Check(op) Py_IS_TYPE((op), &PyFrameLocalsProxy_Type)
|
|
10
|
+
|
|
11
|
+
PyAPI_FUNC(PyFrameObject *) PyFrame_GetBack(PyFrameObject *frame);
|
|
12
|
+
PyAPI_FUNC(PyObject *) PyFrame_GetLocals(PyFrameObject *frame);
|
|
13
|
+
|
|
14
|
+
PyAPI_FUNC(PyObject *) PyFrame_GetGlobals(PyFrameObject *frame);
|
|
15
|
+
PyAPI_FUNC(PyObject *) PyFrame_GetBuiltins(PyFrameObject *frame);
|
|
16
|
+
|
|
17
|
+
PyAPI_FUNC(PyObject *) PyFrame_GetGenerator(PyFrameObject *frame);
|
|
18
|
+
PyAPI_FUNC(int) PyFrame_GetLasti(PyFrameObject *frame);
|
|
19
|
+
PyAPI_FUNC(PyObject*) PyFrame_GetVar(PyFrameObject *frame, PyObject *name);
|
|
20
|
+
PyAPI_FUNC(PyObject*) PyFrame_GetVarString(PyFrameObject *frame, const char *name);
|
|
21
|
+
|
|
22
|
+
/* The following functions are for use by debuggers and other tools
|
|
23
|
+
* implementing custom frame evaluators with PEP 523. */
|
|
24
|
+
|
|
25
|
+
struct _PyInterpreterFrame;
|
|
26
|
+
|
|
27
|
+
/* Returns the code object of the frame (strong reference).
|
|
28
|
+
* Does not raise an exception. */
|
|
29
|
+
PyAPI_FUNC(PyObject *) PyUnstable_InterpreterFrame_GetCode(struct _PyInterpreterFrame *frame);
|
|
30
|
+
|
|
31
|
+
/* Returns a byte offset into the last executed instruction.
|
|
32
|
+
* Does not raise an exception. */
|
|
33
|
+
PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLasti(struct _PyInterpreterFrame *frame);
|
|
34
|
+
|
|
35
|
+
/* Returns the currently executing line number, or -1 if there is no line number.
|
|
36
|
+
* Does not raise an exception. */
|
|
37
|
+
PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLine(struct _PyInterpreterFrame *frame);
|
|
38
|
+
|
|
39
|
+
#define PyUnstable_EXECUTABLE_KIND_SKIP 0
|
|
40
|
+
#define PyUnstable_EXECUTABLE_KIND_PY_FUNCTION 1
|
|
41
|
+
#define PyUnstable_EXECUTABLE_KIND_BUILTIN_FUNCTION 3
|
|
42
|
+
#define PyUnstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR 4
|
|
43
|
+
#define PyUnstable_EXECUTABLE_KINDS 5
|
|
44
|
+
|
|
45
|
+
PyAPI_DATA(const PyTypeObject *) const PyUnstable_ExecutableKinds[PyUnstable_EXECUTABLE_KINDS+1];
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#ifndef Py_CPYTHON_HASH_H
|
|
2
|
+
# error "this header file must not be included directly"
|
|
3
|
+
#endif
|
|
4
|
+
|
|
5
|
+
/* Prime multiplier used in string and various other hashes. */
|
|
6
|
+
#define PyHASH_MULTIPLIER 1000003UL /* 0xf4243 */
|
|
7
|
+
|
|
8
|
+
/* Parameters used for the numeric hash implementation. See notes for
|
|
9
|
+
_Py_HashDouble in Python/pyhash.c. Numeric hashes are based on
|
|
10
|
+
reduction modulo the prime 2**_PyHASH_BITS - 1. */
|
|
11
|
+
|
|
12
|
+
#if SIZEOF_VOID_P >= 8
|
|
13
|
+
# define PyHASH_BITS 61
|
|
14
|
+
#else
|
|
15
|
+
# define PyHASH_BITS 31
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
#define PyHASH_MODULUS (((size_t)1 << _PyHASH_BITS) - 1)
|
|
19
|
+
#define PyHASH_INF 314159
|
|
20
|
+
#define PyHASH_IMAG PyHASH_MULTIPLIER
|
|
21
|
+
|
|
22
|
+
/* Aliases kept for backward compatibility with Python 3.12 */
|
|
23
|
+
#define _PyHASH_MULTIPLIER PyHASH_MULTIPLIER
|
|
24
|
+
#define _PyHASH_BITS PyHASH_BITS
|
|
25
|
+
#define _PyHASH_MODULUS PyHASH_MODULUS
|
|
26
|
+
#define _PyHASH_INF PyHASH_INF
|
|
27
|
+
#define _PyHASH_IMAG PyHASH_IMAG
|
|
28
|
+
|
|
29
|
+
/* Helpers for hash functions */
|
|
30
|
+
PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/* hash function definition */
|
|
34
|
+
typedef struct {
|
|
35
|
+
Py_hash_t (*const hash)(const void *, Py_ssize_t);
|
|
36
|
+
const char *name;
|
|
37
|
+
const int hash_bits;
|
|
38
|
+
const int seed_bits;
|
|
39
|
+
} PyHash_FuncDef;
|
|
40
|
+
|
|
41
|
+
PyAPI_FUNC(PyHash_FuncDef*) PyHash_GetFuncDef(void);
|
|
42
|
+
|
|
43
|
+
PyAPI_FUNC(Py_hash_t) Py_HashPointer(const void *ptr);
|
|
44
|
+
|
|
45
|
+
// Deprecated alias kept for backward compatibility
|
|
46
|
+
Py_DEPRECATED(3.14) static inline Py_hash_t
|
|
47
|
+
_Py_HashPointer(const void *ptr)
|
|
48
|
+
{
|
|
49
|
+
return Py_HashPointer(ptr);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
PyAPI_FUNC(Py_hash_t) PyObject_GenericHash(PyObject *);
|
|
53
|
+
|
|
54
|
+
PyAPI_FUNC(Py_hash_t) Py_HashBuffer(const void *ptr, Py_ssize_t len);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#ifndef Py_CPYTHON_PYLIFECYCLE_H
|
|
2
|
+
# error "this header file must not be included directly"
|
|
3
|
+
#endif
|
|
4
|
+
|
|
5
|
+
/* Py_FrozenMain is kept out of the Limited API until documented and present
|
|
6
|
+
in all builds of Python */
|
|
7
|
+
PyAPI_FUNC(int) Py_FrozenMain(int argc, char **argv);
|
|
8
|
+
|
|
9
|
+
/* PEP 432 Multi-phase initialization API (Private while provisional!) */
|
|
10
|
+
|
|
11
|
+
PyAPI_FUNC(PyStatus) Py_PreInitialize(
|
|
12
|
+
const PyPreConfig *src_config);
|
|
13
|
+
PyAPI_FUNC(PyStatus) Py_PreInitializeFromBytesArgs(
|
|
14
|
+
const PyPreConfig *src_config,
|
|
15
|
+
Py_ssize_t argc,
|
|
16
|
+
char **argv);
|
|
17
|
+
PyAPI_FUNC(PyStatus) Py_PreInitializeFromArgs(
|
|
18
|
+
const PyPreConfig *src_config,
|
|
19
|
+
Py_ssize_t argc,
|
|
20
|
+
wchar_t **argv);
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/* Initialization and finalization */
|
|
24
|
+
|
|
25
|
+
PyAPI_FUNC(PyStatus) Py_InitializeFromConfig(
|
|
26
|
+
const PyConfig *config);
|
|
27
|
+
|
|
28
|
+
PyAPI_FUNC(int) Py_RunMain(void);
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
PyAPI_FUNC(void) _Py_NO_RETURN Py_ExitStatusException(PyStatus err);
|
|
32
|
+
|
|
33
|
+
PyAPI_FUNC(int) Py_FdIsInteractive(FILE *, const char *);
|
|
34
|
+
|
|
35
|
+
/* --- PyInterpreterConfig ------------------------------------ */
|
|
36
|
+
|
|
37
|
+
#define PyInterpreterConfig_DEFAULT_GIL (0)
|
|
38
|
+
#define PyInterpreterConfig_SHARED_GIL (1)
|
|
39
|
+
#define PyInterpreterConfig_OWN_GIL (2)
|
|
40
|
+
|
|
41
|
+
typedef struct {
|
|
42
|
+
// XXX "allow_object_sharing"? "own_objects"?
|
|
43
|
+
int use_main_obmalloc;
|
|
44
|
+
int allow_fork;
|
|
45
|
+
int allow_exec;
|
|
46
|
+
int allow_threads;
|
|
47
|
+
int allow_daemon_threads;
|
|
48
|
+
int check_multi_interp_extensions;
|
|
49
|
+
int gil;
|
|
50
|
+
} PyInterpreterConfig;
|
|
51
|
+
|
|
52
|
+
#define _PyInterpreterConfig_INIT \
|
|
53
|
+
{ \
|
|
54
|
+
.use_main_obmalloc = 0, \
|
|
55
|
+
.allow_fork = 0, \
|
|
56
|
+
.allow_exec = 0, \
|
|
57
|
+
.allow_threads = 1, \
|
|
58
|
+
.allow_daemon_threads = 0, \
|
|
59
|
+
.check_multi_interp_extensions = 1, \
|
|
60
|
+
.gil = PyInterpreterConfig_OWN_GIL, \
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// gh-117649: The free-threaded build does not currently support single-phase
|
|
64
|
+
// init extensions in subinterpreters. For now, we ensure that
|
|
65
|
+
// `check_multi_interp_extensions` is always `1`, even in the legacy config.
|
|
66
|
+
#ifdef Py_GIL_DISABLED
|
|
67
|
+
# define _PyInterpreterConfig_LEGACY_CHECK_MULTI_INTERP_EXTENSIONS 1
|
|
68
|
+
#else
|
|
69
|
+
# define _PyInterpreterConfig_LEGACY_CHECK_MULTI_INTERP_EXTENSIONS 0
|
|
70
|
+
#endif
|
|
71
|
+
|
|
72
|
+
#define _PyInterpreterConfig_LEGACY_INIT \
|
|
73
|
+
{ \
|
|
74
|
+
.use_main_obmalloc = 1, \
|
|
75
|
+
.allow_fork = 1, \
|
|
76
|
+
.allow_exec = 1, \
|
|
77
|
+
.allow_threads = 1, \
|
|
78
|
+
.allow_daemon_threads = 1, \
|
|
79
|
+
.check_multi_interp_extensions = _PyInterpreterConfig_LEGACY_CHECK_MULTI_INTERP_EXTENSIONS, \
|
|
80
|
+
.gil = PyInterpreterConfig_SHARED_GIL, \
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
PyAPI_FUNC(PyStatus) Py_NewInterpreterFromConfig(
|
|
84
|
+
PyThreadState **tstate_p,
|
|
85
|
+
const PyInterpreterConfig *config);
|
|
86
|
+
|
|
87
|
+
typedef void (*atexit_datacallbackfunc)(void *);
|
|
88
|
+
PyAPI_FUNC(int) PyUnstable_AtExit(
|
|
89
|
+
PyInterpreterState *, atexit_datacallbackfunc, void *);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
#ifndef Py_CPYTHON_PYMEM_H
|
|
2
|
+
# error "this header file must not be included directly"
|
|
3
|
+
#endif
|
|
4
|
+
|
|
5
|
+
typedef enum {
|
|
6
|
+
/* PyMem_RawMalloc(), PyMem_RawRealloc() and PyMem_RawFree() */
|
|
7
|
+
PYMEM_DOMAIN_RAW,
|
|
8
|
+
|
|
9
|
+
/* PyMem_Malloc(), PyMem_Realloc() and PyMem_Free() */
|
|
10
|
+
PYMEM_DOMAIN_MEM,
|
|
11
|
+
|
|
12
|
+
/* PyObject_Malloc(), PyObject_Realloc() and PyObject_Free() */
|
|
13
|
+
PYMEM_DOMAIN_OBJ
|
|
14
|
+
} PyMemAllocatorDomain;
|
|
15
|
+
|
|
16
|
+
typedef enum {
|
|
17
|
+
PYMEM_ALLOCATOR_NOT_SET = 0,
|
|
18
|
+
PYMEM_ALLOCATOR_DEFAULT = 1,
|
|
19
|
+
PYMEM_ALLOCATOR_DEBUG = 2,
|
|
20
|
+
PYMEM_ALLOCATOR_MALLOC = 3,
|
|
21
|
+
PYMEM_ALLOCATOR_MALLOC_DEBUG = 4,
|
|
22
|
+
#ifdef WITH_PYMALLOC
|
|
23
|
+
PYMEM_ALLOCATOR_PYMALLOC = 5,
|
|
24
|
+
PYMEM_ALLOCATOR_PYMALLOC_DEBUG = 6,
|
|
25
|
+
#endif
|
|
26
|
+
#ifdef WITH_MIMALLOC
|
|
27
|
+
PYMEM_ALLOCATOR_MIMALLOC = 7,
|
|
28
|
+
PYMEM_ALLOCATOR_MIMALLOC_DEBUG = 8,
|
|
29
|
+
#endif
|
|
30
|
+
} PyMemAllocatorName;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
typedef struct {
|
|
34
|
+
/* user context passed as the first argument to the 4 functions */
|
|
35
|
+
void *ctx;
|
|
36
|
+
|
|
37
|
+
/* allocate a memory block */
|
|
38
|
+
void* (*malloc) (void *ctx, size_t size);
|
|
39
|
+
|
|
40
|
+
/* allocate a memory block initialized by zeros */
|
|
41
|
+
void* (*calloc) (void *ctx, size_t nelem, size_t elsize);
|
|
42
|
+
|
|
43
|
+
/* allocate or resize a memory block */
|
|
44
|
+
void* (*realloc) (void *ctx, void *ptr, size_t new_size);
|
|
45
|
+
|
|
46
|
+
/* release a memory block */
|
|
47
|
+
void (*free) (void *ctx, void *ptr);
|
|
48
|
+
} PyMemAllocatorEx;
|
|
49
|
+
|
|
50
|
+
/* Get the memory block allocator of the specified domain. */
|
|
51
|
+
PyAPI_FUNC(void) PyMem_GetAllocator(PyMemAllocatorDomain domain,
|
|
52
|
+
PyMemAllocatorEx *allocator);
|
|
53
|
+
|
|
54
|
+
/* Set the memory block allocator of the specified domain.
|
|
55
|
+
|
|
56
|
+
The new allocator must return a distinct non-NULL pointer when requesting
|
|
57
|
+
zero bytes.
|
|
58
|
+
|
|
59
|
+
For the PYMEM_DOMAIN_RAW domain, the allocator must be thread-safe: the GIL
|
|
60
|
+
is not held when the allocator is called.
|
|
61
|
+
|
|
62
|
+
If the new allocator is not a hook (don't call the previous allocator), the
|
|
63
|
+
PyMem_SetupDebugHooks() function must be called to reinstall the debug hooks
|
|
64
|
+
on top on the new allocator. */
|
|
65
|
+
PyAPI_FUNC(void) PyMem_SetAllocator(PyMemAllocatorDomain domain,
|
|
66
|
+
PyMemAllocatorEx *allocator);
|
|
67
|
+
|
|
68
|
+
/* Setup hooks to detect bugs in the following Python memory allocator
|
|
69
|
+
functions:
|
|
70
|
+
|
|
71
|
+
- PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree()
|
|
72
|
+
- PyMem_Malloc(), PyMem_Realloc(), PyMem_Free()
|
|
73
|
+
- PyObject_Malloc(), PyObject_Realloc() and PyObject_Free()
|
|
74
|
+
|
|
75
|
+
Newly allocated memory is filled with the byte 0xCB, freed memory is filled
|
|
76
|
+
with the byte 0xDB. Additional checks:
|
|
77
|
+
|
|
78
|
+
- detect API violations, ex: PyObject_Free() called on a buffer allocated
|
|
79
|
+
by PyMem_Malloc()
|
|
80
|
+
- detect write before the start of the buffer (buffer underflow)
|
|
81
|
+
- detect write after the end of the buffer (buffer overflow)
|
|
82
|
+
|
|
83
|
+
The function does nothing if Python is not compiled is debug mode. */
|
|
84
|
+
PyAPI_FUNC(void) PyMem_SetupDebugHooks(void);
|