@ai-ecoverse/wasix-python 3.14.2-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2512) hide show
  1. package/LICENSE +277 -0
  2. package/README.md +22 -0
  3. package/bin/python.wasm +0 -0
  4. package/include/python3.14/Python.h +155 -0
  5. package/include/python3.14/README.rst +14 -0
  6. package/include/python3.14/abstract.h +915 -0
  7. package/include/python3.14/audit.h +30 -0
  8. package/include/python3.14/bltinmodule.h +14 -0
  9. package/include/python3.14/boolobject.h +54 -0
  10. package/include/python3.14/bytearrayobject.h +44 -0
  11. package/include/python3.14/bytesobject.h +66 -0
  12. package/include/python3.14/ceval.h +145 -0
  13. package/include/python3.14/codecs.h +176 -0
  14. package/include/python3.14/compile.h +22 -0
  15. package/include/python3.14/complexobject.h +30 -0
  16. package/include/python3.14/cpython/abstract.h +104 -0
  17. package/include/python3.14/cpython/audit.h +8 -0
  18. package/include/python3.14/cpython/bytearrayobject.h +38 -0
  19. package/include/python3.14/cpython/bytesobject.h +42 -0
  20. package/include/python3.14/cpython/cellobject.h +50 -0
  21. package/include/python3.14/cpython/ceval.h +43 -0
  22. package/include/python3.14/cpython/classobject.h +71 -0
  23. package/include/python3.14/cpython/code.h +340 -0
  24. package/include/python3.14/cpython/compile.h +50 -0
  25. package/include/python3.14/cpython/complexobject.h +33 -0
  26. package/include/python3.14/cpython/context.h +107 -0
  27. package/include/python3.14/cpython/critical_section.h +154 -0
  28. package/include/python3.14/cpython/descrobject.h +62 -0
  29. package/include/python3.14/cpython/dictobject.h +105 -0
  30. package/include/python3.14/cpython/fileobject.h +16 -0
  31. package/include/python3.14/cpython/fileutils.h +16 -0
  32. package/include/python3.14/cpython/floatobject.h +27 -0
  33. package/include/python3.14/cpython/frameobject.h +35 -0
  34. package/include/python3.14/cpython/funcobject.h +185 -0
  35. package/include/python3.14/cpython/genobject.h +56 -0
  36. package/include/python3.14/cpython/import.h +30 -0
  37. package/include/python3.14/cpython/initconfig.h +334 -0
  38. package/include/python3.14/cpython/listobject.h +53 -0
  39. package/include/python3.14/cpython/lock.h +74 -0
  40. package/include/python3.14/cpython/longintrepr.h +184 -0
  41. package/include/python3.14/cpython/longobject.h +89 -0
  42. package/include/python3.14/cpython/memoryobject.h +50 -0
  43. package/include/python3.14/cpython/methodobject.h +66 -0
  44. package/include/python3.14/cpython/modsupport.h +26 -0
  45. package/include/python3.14/cpython/monitoring.h +269 -0
  46. package/include/python3.14/cpython/object.h +493 -0
  47. package/include/python3.14/cpython/objimpl.h +104 -0
  48. package/include/python3.14/cpython/odictobject.h +43 -0
  49. package/include/python3.14/cpython/picklebufobject.h +31 -0
  50. package/include/python3.14/cpython/pthread_stubs.h +105 -0
  51. package/include/python3.14/cpython/pyatomic.h +614 -0
  52. package/include/python3.14/cpython/pyatomic_gcc.h +615 -0
  53. package/include/python3.14/cpython/pyatomic_msc.h +1197 -0
  54. package/include/python3.14/cpython/pyatomic_std.h +1112 -0
  55. package/include/python3.14/cpython/pyctype.h +39 -0
  56. package/include/python3.14/cpython/pydebug.h +38 -0
  57. package/include/python3.14/cpython/pyerrors.h +132 -0
  58. package/include/python3.14/cpython/pyfpe.h +15 -0
  59. package/include/python3.14/cpython/pyframe.h +45 -0
  60. package/include/python3.14/cpython/pyhash.h +54 -0
  61. package/include/python3.14/cpython/pylifecycle.h +89 -0
  62. package/include/python3.14/cpython/pymem.h +84 -0
  63. package/include/python3.14/cpython/pystate.h +275 -0
  64. package/include/python3.14/cpython/pystats.h +194 -0
  65. package/include/python3.14/cpython/pythonrun.h +96 -0
  66. package/include/python3.14/cpython/pythread.h +43 -0
  67. package/include/python3.14/cpython/pytime.h +27 -0
  68. package/include/python3.14/cpython/setobject.h +71 -0
  69. package/include/python3.14/cpython/traceback.h +13 -0
  70. package/include/python3.14/cpython/tracemalloc.h +32 -0
  71. package/include/python3.14/cpython/tupleobject.h +40 -0
  72. package/include/python3.14/cpython/unicodeobject.h +773 -0
  73. package/include/python3.14/cpython/warnings.h +20 -0
  74. package/include/python3.14/cpython/weakrefobject.h +66 -0
  75. package/include/python3.14/critical_section.h +16 -0
  76. package/include/python3.14/datetime.h +267 -0
  77. package/include/python3.14/descrobject.h +100 -0
  78. package/include/python3.14/dictobject.h +108 -0
  79. package/include/python3.14/dynamic_annotations.h +499 -0
  80. package/include/python3.14/enumobject.h +17 -0
  81. package/include/python3.14/errcode.h +45 -0
  82. package/include/python3.14/exports.h +105 -0
  83. package/include/python3.14/fileobject.h +41 -0
  84. package/include/python3.14/fileutils.h +62 -0
  85. package/include/python3.14/floatobject.h +54 -0
  86. package/include/python3.14/frameobject.h +20 -0
  87. package/include/python3.14/genericaliasobject.h +14 -0
  88. package/include/python3.14/import.h +103 -0
  89. package/include/python3.14/internal/mimalloc/mimalloc/atomic.h +392 -0
  90. package/include/python3.14/internal/mimalloc/mimalloc/internal.h +969 -0
  91. package/include/python3.14/internal/mimalloc/mimalloc/prim.h +329 -0
  92. package/include/python3.14/internal/mimalloc/mimalloc/track.h +147 -0
  93. package/include/python3.14/internal/mimalloc/mimalloc/types.h +721 -0
  94. package/include/python3.14/internal/mimalloc/mimalloc.h +565 -0
  95. package/include/python3.14/internal/pycore_abstract.h +61 -0
  96. package/include/python3.14/internal/pycore_asdl.h +112 -0
  97. package/include/python3.14/internal/pycore_ast.h +945 -0
  98. package/include/python3.14/internal/pycore_ast_state.h +271 -0
  99. package/include/python3.14/internal/pycore_atexit.h +31 -0
  100. package/include/python3.14/internal/pycore_audit.h +35 -0
  101. package/include/python3.14/internal/pycore_backoff.h +133 -0
  102. package/include/python3.14/internal/pycore_bitutils.h +186 -0
  103. package/include/python3.14/internal/pycore_blocks_output_buffer.h +321 -0
  104. package/include/python3.14/internal/pycore_brc.h +73 -0
  105. package/include/python3.14/internal/pycore_bytes_methods.h +82 -0
  106. package/include/python3.14/internal/pycore_bytesobject.h +149 -0
  107. package/include/python3.14/internal/pycore_c_array.h +39 -0
  108. package/include/python3.14/internal/pycore_call.h +206 -0
  109. package/include/python3.14/internal/pycore_capsule.h +17 -0
  110. package/include/python3.14/internal/pycore_cell.h +75 -0
  111. package/include/python3.14/internal/pycore_ceval.h +390 -0
  112. package/include/python3.14/internal/pycore_ceval_state.h +48 -0
  113. package/include/python3.14/internal/pycore_code.h +671 -0
  114. package/include/python3.14/internal/pycore_codecs.h +76 -0
  115. package/include/python3.14/internal/pycore_compile.h +230 -0
  116. package/include/python3.14/internal/pycore_complexobject.h +34 -0
  117. package/include/python3.14/internal/pycore_condvar.h +93 -0
  118. package/include/python3.14/internal/pycore_context.h +59 -0
  119. package/include/python3.14/internal/pycore_critical_section.h +237 -0
  120. package/include/python3.14/internal/pycore_crossinterp.h +406 -0
  121. package/include/python3.14/internal/pycore_crossinterp_data_registry.h +41 -0
  122. package/include/python3.14/internal/pycore_debug_offsets.h +379 -0
  123. package/include/python3.14/internal/pycore_descrobject.h +28 -0
  124. package/include/python3.14/internal/pycore_dict.h +410 -0
  125. package/include/python3.14/internal/pycore_dict_state.h +28 -0
  126. package/include/python3.14/internal/pycore_dtoa.h +40 -0
  127. package/include/python3.14/internal/pycore_emscripten_signal.h +30 -0
  128. package/include/python3.14/internal/pycore_emscripten_trampoline.h +70 -0
  129. package/include/python3.14/internal/pycore_exceptions.h +40 -0
  130. package/include/python3.14/internal/pycore_faulthandler.h +100 -0
  131. package/include/python3.14/internal/pycore_fileutils.h +320 -0
  132. package/include/python3.14/internal/pycore_fileutils_windows.h +98 -0
  133. package/include/python3.14/internal/pycore_floatobject.h +49 -0
  134. package/include/python3.14/internal/pycore_flowgraph.h +47 -0
  135. package/include/python3.14/internal/pycore_format.h +27 -0
  136. package/include/python3.14/internal/pycore_frame.h +61 -0
  137. package/include/python3.14/internal/pycore_freelist.h +111 -0
  138. package/include/python3.14/internal/pycore_freelist_state.h +70 -0
  139. package/include/python3.14/internal/pycore_function.h +53 -0
  140. package/include/python3.14/internal/pycore_gc.h +378 -0
  141. package/include/python3.14/internal/pycore_genobject.h +43 -0
  142. package/include/python3.14/internal/pycore_getopt.h +22 -0
  143. package/include/python3.14/internal/pycore_gil.h +66 -0
  144. package/include/python3.14/internal/pycore_global_objects.h +34 -0
  145. package/include/python3.14/internal/pycore_global_objects_fini_generated.h +1592 -0
  146. package/include/python3.14/internal/pycore_global_strings.h +854 -0
  147. package/include/python3.14/internal/pycore_hamt.h +113 -0
  148. package/include/python3.14/internal/pycore_hashtable.h +150 -0
  149. package/include/python3.14/internal/pycore_import.h +141 -0
  150. package/include/python3.14/internal/pycore_importdl.h +139 -0
  151. package/include/python3.14/internal/pycore_index_pool.h +36 -0
  152. package/include/python3.14/internal/pycore_initconfig.h +197 -0
  153. package/include/python3.14/internal/pycore_instruction_sequence.h +83 -0
  154. package/include/python3.14/internal/pycore_instruments.h +127 -0
  155. package/include/python3.14/internal/pycore_interp.h +109 -0
  156. package/include/python3.14/internal/pycore_interp_structs.h +977 -0
  157. package/include/python3.14/internal/pycore_interpframe.h +401 -0
  158. package/include/python3.14/internal/pycore_interpframe_structs.h +95 -0
  159. package/include/python3.14/internal/pycore_interpolation.h +26 -0
  160. package/include/python3.14/internal/pycore_intrinsics.h +51 -0
  161. package/include/python3.14/internal/pycore_jit.h +29 -0
  162. package/include/python3.14/internal/pycore_list.h +81 -0
  163. package/include/python3.14/internal/pycore_llist.h +106 -0
  164. package/include/python3.14/internal/pycore_lock.h +236 -0
  165. package/include/python3.14/internal/pycore_long.h +319 -0
  166. package/include/python3.14/internal/pycore_magic_number.h +305 -0
  167. package/include/python3.14/internal/pycore_memoryobject.h +20 -0
  168. package/include/python3.14/internal/pycore_mimalloc.h +69 -0
  169. package/include/python3.14/internal/pycore_modsupport.h +99 -0
  170. package/include/python3.14/internal/pycore_moduleobject.h +62 -0
  171. package/include/python3.14/internal/pycore_namespace.h +21 -0
  172. package/include/python3.14/internal/pycore_object.h +1029 -0
  173. package/include/python3.14/internal/pycore_object_alloc.h +71 -0
  174. package/include/python3.14/internal/pycore_object_deferred.h +32 -0
  175. package/include/python3.14/internal/pycore_object_stack.h +95 -0
  176. package/include/python3.14/internal/pycore_object_state.h +49 -0
  177. package/include/python3.14/internal/pycore_obmalloc.h +702 -0
  178. package/include/python3.14/internal/pycore_obmalloc_init.h +66 -0
  179. package/include/python3.14/internal/pycore_opcode_metadata.h +2117 -0
  180. package/include/python3.14/internal/pycore_opcode_utils.h +90 -0
  181. package/include/python3.14/internal/pycore_optimizer.h +318 -0
  182. package/include/python3.14/internal/pycore_parking_lot.h +97 -0
  183. package/include/python3.14/internal/pycore_parser.h +78 -0
  184. package/include/python3.14/internal/pycore_pathconfig.h +26 -0
  185. package/include/python3.14/internal/pycore_pyarena.h +68 -0
  186. package/include/python3.14/internal/pycore_pyatomic_ft_wrappers.h +174 -0
  187. package/include/python3.14/internal/pycore_pybuffer.h +21 -0
  188. package/include/python3.14/internal/pycore_pyerrors.h +213 -0
  189. package/include/python3.14/internal/pycore_pyhash.h +91 -0
  190. package/include/python3.14/internal/pycore_pylifecycle.h +136 -0
  191. package/include/python3.14/internal/pycore_pymath.h +205 -0
  192. package/include/python3.14/internal/pycore_pymem.h +145 -0
  193. package/include/python3.14/internal/pycore_pymem_init.h +103 -0
  194. package/include/python3.14/internal/pycore_pystate.h +339 -0
  195. package/include/python3.14/internal/pycore_pystats.h +21 -0
  196. package/include/python3.14/internal/pycore_pythonrun.h +68 -0
  197. package/include/python3.14/internal/pycore_pythread.h +172 -0
  198. package/include/python3.14/internal/pycore_qsbr.h +172 -0
  199. package/include/python3.14/internal/pycore_range.h +21 -0
  200. package/include/python3.14/internal/pycore_runtime.h +63 -0
  201. package/include/python3.14/internal/pycore_runtime_init.h +239 -0
  202. package/include/python3.14/internal/pycore_runtime_init_generated.h +1589 -0
  203. package/include/python3.14/internal/pycore_runtime_structs.h +310 -0
  204. package/include/python3.14/internal/pycore_semaphore.h +67 -0
  205. package/include/python3.14/internal/pycore_setobject.h +41 -0
  206. package/include/python3.14/internal/pycore_signal.h +108 -0
  207. package/include/python3.14/internal/pycore_sliceobject.h +20 -0
  208. package/include/python3.14/internal/pycore_stackref.h +791 -0
  209. package/include/python3.14/internal/pycore_stats.h +97 -0
  210. package/include/python3.14/internal/pycore_strhex.h +39 -0
  211. package/include/python3.14/internal/pycore_structs.h +88 -0
  212. package/include/python3.14/internal/pycore_structseq.h +40 -0
  213. package/include/python3.14/internal/pycore_symtable.h +201 -0
  214. package/include/python3.14/internal/pycore_sysmodule.h +32 -0
  215. package/include/python3.14/internal/pycore_template.h +26 -0
  216. package/include/python3.14/internal/pycore_time.h +334 -0
  217. package/include/python3.14/internal/pycore_token.h +110 -0
  218. package/include/python3.14/internal/pycore_traceback.h +111 -0
  219. package/include/python3.14/internal/pycore_tracemalloc.h +164 -0
  220. package/include/python3.14/internal/pycore_tstate.h +88 -0
  221. package/include/python3.14/internal/pycore_tuple.h +75 -0
  222. package/include/python3.14/internal/pycore_typedefs.h +18 -0
  223. package/include/python3.14/internal/pycore_typeobject.h +155 -0
  224. package/include/python3.14/internal/pycore_typevarobject.h +28 -0
  225. package/include/python3.14/internal/pycore_ucnhash.h +36 -0
  226. package/include/python3.14/internal/pycore_unicodeobject.h +308 -0
  227. package/include/python3.14/internal/pycore_unicodeobject_generated.h +3132 -0
  228. package/include/python3.14/internal/pycore_unionobject.h +26 -0
  229. package/include/python3.14/internal/pycore_uniqueid.h +57 -0
  230. package/include/python3.14/internal/pycore_uop_ids.h +335 -0
  231. package/include/python3.14/internal/pycore_uop_metadata.h +1204 -0
  232. package/include/python3.14/internal/pycore_warnings.h +21 -0
  233. package/include/python3.14/internal/pycore_weakref.h +133 -0
  234. package/include/python3.14/intrcheck.h +23 -0
  235. package/include/python3.14/iterobject.h +24 -0
  236. package/include/python3.14/listobject.h +55 -0
  237. package/include/python3.14/lock.h +16 -0
  238. package/include/python3.14/longobject.h +178 -0
  239. package/include/python3.14/marshal.h +31 -0
  240. package/include/python3.14/memoryobject.h +34 -0
  241. package/include/python3.14/methodobject.h +146 -0
  242. package/include/python3.14/modsupport.h +146 -0
  243. package/include/python3.14/moduleobject.h +122 -0
  244. package/include/python3.14/monitoring.h +18 -0
  245. package/include/python3.14/object.h +828 -0
  246. package/include/python3.14/objimpl.h +211 -0
  247. package/include/python3.14/opcode.h +43 -0
  248. package/include/python3.14/opcode_ids.h +259 -0
  249. package/include/python3.14/osdefs.h +57 -0
  250. package/include/python3.14/osmodule.h +17 -0
  251. package/include/python3.14/patchlevel.h +49 -0
  252. package/include/python3.14/py_curses.h +117 -0
  253. package/include/python3.14/pyatomic.h +16 -0
  254. package/include/python3.14/pybuffer.h +145 -0
  255. package/include/python3.14/pycapsule.h +58 -0
  256. package/include/python3.14/pyconfig.h +2087 -0
  257. package/include/python3.14/pydtrace.d +22 -0
  258. package/include/python3.14/pydtrace.h +59 -0
  259. package/include/python3.14/pyerrors.h +335 -0
  260. package/include/python3.14/pyexpat.h +62 -0
  261. package/include/python3.14/pyframe.h +26 -0
  262. package/include/python3.14/pyhash.h +59 -0
  263. package/include/python3.14/pylifecycle.h +80 -0
  264. package/include/python3.14/pymacconfig.h +91 -0
  265. package/include/python3.14/pymacro.h +243 -0
  266. package/include/python3.14/pymath.h +65 -0
  267. package/include/python3.14/pymem.h +110 -0
  268. package/include/python3.14/pyport.h +710 -0
  269. package/include/python3.14/pystate.h +132 -0
  270. package/include/python3.14/pystats.h +28 -0
  271. package/include/python3.14/pystrcmp.h +23 -0
  272. package/include/python3.14/pystrtod.h +37 -0
  273. package/include/python3.14/pythonrun.h +42 -0
  274. package/include/python3.14/pythread.h +131 -0
  275. package/include/python3.14/pytypedefs.h +30 -0
  276. package/include/python3.14/rangeobject.h +27 -0
  277. package/include/python3.14/refcount.h +555 -0
  278. package/include/python3.14/setobject.h +49 -0
  279. package/include/python3.14/sliceobject.h +69 -0
  280. package/include/python3.14/structmember.h +56 -0
  281. package/include/python3.14/structseq.h +46 -0
  282. package/include/python3.14/sysmodule.h +27 -0
  283. package/include/python3.14/traceback.h +26 -0
  284. package/include/python3.14/tupleobject.h +46 -0
  285. package/include/python3.14/typeslots.h +96 -0
  286. package/include/python3.14/unicodeobject.h +1029 -0
  287. package/include/python3.14/warnings.h +45 -0
  288. package/include/python3.14/weakrefobject.h +46 -0
  289. package/lib/libpython3.14.a +4 -0
  290. package/lib/pkgconfig/python-3.14-embed.pc +13 -0
  291. package/lib/pkgconfig/python-3.14.pc +13 -0
  292. package/lib/python3.14/LICENSE.txt +277 -0
  293. package/lib/python3.14/__future__.py +147 -0
  294. package/lib/python3.14/__hello__.py +16 -0
  295. package/lib/python3.14/__phello__/__init__.py +7 -0
  296. package/lib/python3.14/__phello__/__pycache__/__init__.cpython-314.pyc +0 -0
  297. package/lib/python3.14/__phello__/__pycache__/spam.cpython-314.pyc +0 -0
  298. package/lib/python3.14/__phello__/spam.py +7 -0
  299. package/lib/python3.14/__pycache__/__future__.cpython-314.pyc +0 -0
  300. package/lib/python3.14/__pycache__/__hello__.cpython-314.pyc +0 -0
  301. package/lib/python3.14/__pycache__/_aix_support.cpython-314.pyc +0 -0
  302. package/lib/python3.14/__pycache__/_android_support.cpython-314.pyc +0 -0
  303. package/lib/python3.14/__pycache__/_apple_support.cpython-314.pyc +0 -0
  304. package/lib/python3.14/__pycache__/_ast_unparse.cpython-314.pyc +0 -0
  305. package/lib/python3.14/__pycache__/_collections_abc.cpython-314.pyc +0 -0
  306. package/lib/python3.14/__pycache__/_colorize.cpython-314.pyc +0 -0
  307. package/lib/python3.14/__pycache__/_compat_pickle.cpython-314.pyc +0 -0
  308. package/lib/python3.14/__pycache__/_ios_support.cpython-314.pyc +0 -0
  309. package/lib/python3.14/__pycache__/_markupbase.cpython-314.pyc +0 -0
  310. package/lib/python3.14/__pycache__/_opcode_metadata.cpython-314.pyc +0 -0
  311. package/lib/python3.14/__pycache__/_osx_support.cpython-314.pyc +0 -0
  312. package/lib/python3.14/__pycache__/_py_abc.cpython-314.pyc +0 -0
  313. package/lib/python3.14/__pycache__/_py_warnings.cpython-314.pyc +0 -0
  314. package/lib/python3.14/__pycache__/_pydatetime.cpython-314.pyc +0 -0
  315. package/lib/python3.14/__pycache__/_pydecimal.cpython-314.pyc +0 -0
  316. package/lib/python3.14/__pycache__/_pyio.cpython-314.pyc +0 -0
  317. package/lib/python3.14/__pycache__/_pylong.cpython-314.pyc +0 -0
  318. package/lib/python3.14/__pycache__/_sitebuiltins.cpython-314.pyc +0 -0
  319. package/lib/python3.14/__pycache__/_strptime.cpython-314.pyc +0 -0
  320. package/lib/python3.14/__pycache__/_sysconfigdata__wasi_wasm32-wasi-threads.cpython-314.pyc +0 -0
  321. package/lib/python3.14/__pycache__/_threading_local.cpython-314.pyc +0 -0
  322. package/lib/python3.14/__pycache__/_weakrefset.cpython-314.pyc +0 -0
  323. package/lib/python3.14/__pycache__/abc.cpython-314.pyc +0 -0
  324. package/lib/python3.14/__pycache__/annotationlib.cpython-314.pyc +0 -0
  325. package/lib/python3.14/__pycache__/antigravity.cpython-314.pyc +0 -0
  326. package/lib/python3.14/__pycache__/argparse.cpython-314.pyc +0 -0
  327. package/lib/python3.14/__pycache__/ast.cpython-314.pyc +0 -0
  328. package/lib/python3.14/__pycache__/base64.cpython-314.pyc +0 -0
  329. package/lib/python3.14/__pycache__/bdb.cpython-314.pyc +0 -0
  330. package/lib/python3.14/__pycache__/bisect.cpython-314.pyc +0 -0
  331. package/lib/python3.14/__pycache__/bz2.cpython-314.pyc +0 -0
  332. package/lib/python3.14/__pycache__/cProfile.cpython-314.pyc +0 -0
  333. package/lib/python3.14/__pycache__/calendar.cpython-314.pyc +0 -0
  334. package/lib/python3.14/__pycache__/cmd.cpython-314.pyc +0 -0
  335. package/lib/python3.14/__pycache__/code.cpython-314.pyc +0 -0
  336. package/lib/python3.14/__pycache__/codecs.cpython-314.pyc +0 -0
  337. package/lib/python3.14/__pycache__/codeop.cpython-314.pyc +0 -0
  338. package/lib/python3.14/__pycache__/colorsys.cpython-314.pyc +0 -0
  339. package/lib/python3.14/__pycache__/compileall.cpython-314.pyc +0 -0
  340. package/lib/python3.14/__pycache__/configparser.cpython-314.pyc +0 -0
  341. package/lib/python3.14/__pycache__/contextlib.cpython-314.pyc +0 -0
  342. package/lib/python3.14/__pycache__/contextvars.cpython-314.pyc +0 -0
  343. package/lib/python3.14/__pycache__/copy.cpython-314.pyc +0 -0
  344. package/lib/python3.14/__pycache__/copyreg.cpython-314.pyc +0 -0
  345. package/lib/python3.14/__pycache__/csv.cpython-314.pyc +0 -0
  346. package/lib/python3.14/__pycache__/dataclasses.cpython-314.pyc +0 -0
  347. package/lib/python3.14/__pycache__/datetime.cpython-314.pyc +0 -0
  348. package/lib/python3.14/__pycache__/decimal.cpython-314.pyc +0 -0
  349. package/lib/python3.14/__pycache__/difflib.cpython-314.pyc +0 -0
  350. package/lib/python3.14/__pycache__/dis.cpython-314.pyc +0 -0
  351. package/lib/python3.14/__pycache__/doctest.cpython-314.pyc +0 -0
  352. package/lib/python3.14/__pycache__/enum.cpython-314.pyc +0 -0
  353. package/lib/python3.14/__pycache__/filecmp.cpython-314.pyc +0 -0
  354. package/lib/python3.14/__pycache__/fileinput.cpython-314.pyc +0 -0
  355. package/lib/python3.14/__pycache__/fnmatch.cpython-314.pyc +0 -0
  356. package/lib/python3.14/__pycache__/fractions.cpython-314.pyc +0 -0
  357. package/lib/python3.14/__pycache__/ftplib.cpython-314.pyc +0 -0
  358. package/lib/python3.14/__pycache__/functools.cpython-314.pyc +0 -0
  359. package/lib/python3.14/__pycache__/genericpath.cpython-314.pyc +0 -0
  360. package/lib/python3.14/__pycache__/getopt.cpython-314.pyc +0 -0
  361. package/lib/python3.14/__pycache__/getpass.cpython-314.pyc +0 -0
  362. package/lib/python3.14/__pycache__/gettext.cpython-314.pyc +0 -0
  363. package/lib/python3.14/__pycache__/glob.cpython-314.pyc +0 -0
  364. package/lib/python3.14/__pycache__/graphlib.cpython-314.pyc +0 -0
  365. package/lib/python3.14/__pycache__/gzip.cpython-314.pyc +0 -0
  366. package/lib/python3.14/__pycache__/hashlib.cpython-314.pyc +0 -0
  367. package/lib/python3.14/__pycache__/heapq.cpython-314.pyc +0 -0
  368. package/lib/python3.14/__pycache__/hmac.cpython-314.pyc +0 -0
  369. package/lib/python3.14/__pycache__/imaplib.cpython-314.pyc +0 -0
  370. package/lib/python3.14/__pycache__/inspect.cpython-314.pyc +0 -0
  371. package/lib/python3.14/__pycache__/io.cpython-314.pyc +0 -0
  372. package/lib/python3.14/__pycache__/ipaddress.cpython-314.pyc +0 -0
  373. package/lib/python3.14/__pycache__/keyword.cpython-314.pyc +0 -0
  374. package/lib/python3.14/__pycache__/linecache.cpython-314.pyc +0 -0
  375. package/lib/python3.14/__pycache__/locale.cpython-314.pyc +0 -0
  376. package/lib/python3.14/__pycache__/lzma.cpython-314.pyc +0 -0
  377. package/lib/python3.14/__pycache__/mailbox.cpython-314.pyc +0 -0
  378. package/lib/python3.14/__pycache__/mimetypes.cpython-314.pyc +0 -0
  379. package/lib/python3.14/__pycache__/modulefinder.cpython-314.pyc +0 -0
  380. package/lib/python3.14/__pycache__/netrc.cpython-314.pyc +0 -0
  381. package/lib/python3.14/__pycache__/ntpath.cpython-314.pyc +0 -0
  382. package/lib/python3.14/__pycache__/nturl2path.cpython-314.pyc +0 -0
  383. package/lib/python3.14/__pycache__/numbers.cpython-314.pyc +0 -0
  384. package/lib/python3.14/__pycache__/opcode.cpython-314.pyc +0 -0
  385. package/lib/python3.14/__pycache__/operator.cpython-314.pyc +0 -0
  386. package/lib/python3.14/__pycache__/optparse.cpython-314.pyc +0 -0
  387. package/lib/python3.14/__pycache__/os.cpython-314.pyc +0 -0
  388. package/lib/python3.14/__pycache__/pdb.cpython-314.pyc +0 -0
  389. package/lib/python3.14/__pycache__/pickle.cpython-314.pyc +0 -0
  390. package/lib/python3.14/__pycache__/pickletools.cpython-314.pyc +0 -0
  391. package/lib/python3.14/__pycache__/pkgutil.cpython-314.pyc +0 -0
  392. package/lib/python3.14/__pycache__/platform.cpython-314.pyc +0 -0
  393. package/lib/python3.14/__pycache__/plistlib.cpython-314.pyc +0 -0
  394. package/lib/python3.14/__pycache__/poplib.cpython-314.pyc +0 -0
  395. package/lib/python3.14/__pycache__/posixpath.cpython-314.pyc +0 -0
  396. package/lib/python3.14/__pycache__/pprint.cpython-314.pyc +0 -0
  397. package/lib/python3.14/__pycache__/profile.cpython-314.pyc +0 -0
  398. package/lib/python3.14/__pycache__/pstats.cpython-314.pyc +0 -0
  399. package/lib/python3.14/__pycache__/pty.cpython-314.pyc +0 -0
  400. package/lib/python3.14/__pycache__/py_compile.cpython-314.pyc +0 -0
  401. package/lib/python3.14/__pycache__/pyclbr.cpython-314.pyc +0 -0
  402. package/lib/python3.14/__pycache__/pydoc.cpython-314.pyc +0 -0
  403. package/lib/python3.14/__pycache__/queue.cpython-314.pyc +0 -0
  404. package/lib/python3.14/__pycache__/quopri.cpython-314.pyc +0 -0
  405. package/lib/python3.14/__pycache__/random.cpython-314.pyc +0 -0
  406. package/lib/python3.14/__pycache__/reprlib.cpython-314.pyc +0 -0
  407. package/lib/python3.14/__pycache__/rlcompleter.cpython-314.pyc +0 -0
  408. package/lib/python3.14/__pycache__/runpy.cpython-314.pyc +0 -0
  409. package/lib/python3.14/__pycache__/sched.cpython-314.pyc +0 -0
  410. package/lib/python3.14/__pycache__/secrets.cpython-314.pyc +0 -0
  411. package/lib/python3.14/__pycache__/selectors.cpython-314.pyc +0 -0
  412. package/lib/python3.14/__pycache__/shelve.cpython-314.pyc +0 -0
  413. package/lib/python3.14/__pycache__/shlex.cpython-314.pyc +0 -0
  414. package/lib/python3.14/__pycache__/shutil.cpython-314.pyc +0 -0
  415. package/lib/python3.14/__pycache__/signal.cpython-314.pyc +0 -0
  416. package/lib/python3.14/__pycache__/site.cpython-314.pyc +0 -0
  417. package/lib/python3.14/__pycache__/smtplib.cpython-314.pyc +0 -0
  418. package/lib/python3.14/__pycache__/socket.cpython-314.pyc +0 -0
  419. package/lib/python3.14/__pycache__/socketserver.cpython-314.pyc +0 -0
  420. package/lib/python3.14/__pycache__/sre_compile.cpython-314.pyc +0 -0
  421. package/lib/python3.14/__pycache__/sre_constants.cpython-314.pyc +0 -0
  422. package/lib/python3.14/__pycache__/sre_parse.cpython-314.pyc +0 -0
  423. package/lib/python3.14/__pycache__/ssl.cpython-314.pyc +0 -0
  424. package/lib/python3.14/__pycache__/stat.cpython-314.pyc +0 -0
  425. package/lib/python3.14/__pycache__/statistics.cpython-314.pyc +0 -0
  426. package/lib/python3.14/__pycache__/stringprep.cpython-314.pyc +0 -0
  427. package/lib/python3.14/__pycache__/struct.cpython-314.pyc +0 -0
  428. package/lib/python3.14/__pycache__/subprocess.cpython-314.pyc +0 -0
  429. package/lib/python3.14/__pycache__/symtable.cpython-314.pyc +0 -0
  430. package/lib/python3.14/__pycache__/tabnanny.cpython-314.pyc +0 -0
  431. package/lib/python3.14/__pycache__/tarfile.cpython-314.pyc +0 -0
  432. package/lib/python3.14/__pycache__/tempfile.cpython-314.pyc +0 -0
  433. package/lib/python3.14/__pycache__/textwrap.cpython-314.pyc +0 -0
  434. package/lib/python3.14/__pycache__/this.cpython-314.pyc +0 -0
  435. package/lib/python3.14/__pycache__/threading.cpython-314.pyc +0 -0
  436. package/lib/python3.14/__pycache__/timeit.cpython-314.pyc +0 -0
  437. package/lib/python3.14/__pycache__/token.cpython-314.pyc +0 -0
  438. package/lib/python3.14/__pycache__/tokenize.cpython-314.pyc +0 -0
  439. package/lib/python3.14/__pycache__/trace.cpython-314.pyc +0 -0
  440. package/lib/python3.14/__pycache__/traceback.cpython-314.pyc +0 -0
  441. package/lib/python3.14/__pycache__/tracemalloc.cpython-314.pyc +0 -0
  442. package/lib/python3.14/__pycache__/tty.cpython-314.pyc +0 -0
  443. package/lib/python3.14/__pycache__/turtle.cpython-314.pyc +0 -0
  444. package/lib/python3.14/__pycache__/types.cpython-314.pyc +0 -0
  445. package/lib/python3.14/__pycache__/typing.cpython-314.pyc +0 -0
  446. package/lib/python3.14/__pycache__/uuid.cpython-314.pyc +0 -0
  447. package/lib/python3.14/__pycache__/warnings.cpython-314.pyc +0 -0
  448. package/lib/python3.14/__pycache__/wave.cpython-314.pyc +0 -0
  449. package/lib/python3.14/__pycache__/weakref.cpython-314.pyc +0 -0
  450. package/lib/python3.14/__pycache__/webbrowser.cpython-314.pyc +0 -0
  451. package/lib/python3.14/__pycache__/zipapp.cpython-314.pyc +0 -0
  452. package/lib/python3.14/__pycache__/zipimport.cpython-314.pyc +0 -0
  453. package/lib/python3.14/_aix_support.py +108 -0
  454. package/lib/python3.14/_android_support.py +185 -0
  455. package/lib/python3.14/_apple_support.py +66 -0
  456. package/lib/python3.14/_ast_unparse.py +1161 -0
  457. package/lib/python3.14/_collections_abc.py +1167 -0
  458. package/lib/python3.14/_colorize.py +355 -0
  459. package/lib/python3.14/_compat_pickle.py +251 -0
  460. package/lib/python3.14/_ios_support.py +71 -0
  461. package/lib/python3.14/_markupbase.py +396 -0
  462. package/lib/python3.14/_opcode_metadata.py +371 -0
  463. package/lib/python3.14/_osx_support.py +579 -0
  464. package/lib/python3.14/_py_abc.py +147 -0
  465. package/lib/python3.14/_py_warnings.py +869 -0
  466. package/lib/python3.14/_pydatetime.py +2723 -0
  467. package/lib/python3.14/_pydecimal.py +6401 -0
  468. package/lib/python3.14/_pyio.py +2752 -0
  469. package/lib/python3.14/_pylong.py +729 -0
  470. package/lib/python3.14/_pyrepl/__init__.py +19 -0
  471. package/lib/python3.14/_pyrepl/__main__.py +10 -0
  472. package/lib/python3.14/_pyrepl/__pycache__/__init__.cpython-314.pyc +0 -0
  473. package/lib/python3.14/_pyrepl/__pycache__/__main__.cpython-314.pyc +0 -0
  474. package/lib/python3.14/_pyrepl/__pycache__/_module_completer.cpython-314.pyc +0 -0
  475. package/lib/python3.14/_pyrepl/__pycache__/_threading_handler.cpython-314.pyc +0 -0
  476. package/lib/python3.14/_pyrepl/__pycache__/base_eventqueue.cpython-314.pyc +0 -0
  477. package/lib/python3.14/_pyrepl/__pycache__/commands.cpython-314.pyc +0 -0
  478. package/lib/python3.14/_pyrepl/__pycache__/completing_reader.cpython-314.pyc +0 -0
  479. package/lib/python3.14/_pyrepl/__pycache__/console.cpython-314.pyc +0 -0
  480. package/lib/python3.14/_pyrepl/__pycache__/fancy_termios.cpython-314.pyc +0 -0
  481. package/lib/python3.14/_pyrepl/__pycache__/historical_reader.cpython-314.pyc +0 -0
  482. package/lib/python3.14/_pyrepl/__pycache__/input.cpython-314.pyc +0 -0
  483. package/lib/python3.14/_pyrepl/__pycache__/keymap.cpython-314.pyc +0 -0
  484. package/lib/python3.14/_pyrepl/__pycache__/main.cpython-314.pyc +0 -0
  485. package/lib/python3.14/_pyrepl/__pycache__/pager.cpython-314.pyc +0 -0
  486. package/lib/python3.14/_pyrepl/__pycache__/reader.cpython-314.pyc +0 -0
  487. package/lib/python3.14/_pyrepl/__pycache__/readline.cpython-314.pyc +0 -0
  488. package/lib/python3.14/_pyrepl/__pycache__/simple_interact.cpython-314.pyc +0 -0
  489. package/lib/python3.14/_pyrepl/__pycache__/terminfo.cpython-314.pyc +0 -0
  490. package/lib/python3.14/_pyrepl/__pycache__/trace.cpython-314.pyc +0 -0
  491. package/lib/python3.14/_pyrepl/__pycache__/types.cpython-314.pyc +0 -0
  492. package/lib/python3.14/_pyrepl/__pycache__/unix_console.cpython-314.pyc +0 -0
  493. package/lib/python3.14/_pyrepl/__pycache__/unix_eventqueue.cpython-314.pyc +0 -0
  494. package/lib/python3.14/_pyrepl/__pycache__/utils.cpython-314.pyc +0 -0
  495. package/lib/python3.14/_pyrepl/__pycache__/windows_console.cpython-314.pyc +0 -0
  496. package/lib/python3.14/_pyrepl/__pycache__/windows_eventqueue.cpython-314.pyc +0 -0
  497. package/lib/python3.14/_pyrepl/_module_completer.py +415 -0
  498. package/lib/python3.14/_pyrepl/_threading_handler.py +74 -0
  499. package/lib/python3.14/_pyrepl/base_eventqueue.py +110 -0
  500. package/lib/python3.14/_pyrepl/commands.py +505 -0
  501. package/lib/python3.14/_pyrepl/completing_reader.py +299 -0
  502. package/lib/python3.14/_pyrepl/console.py +229 -0
  503. package/lib/python3.14/_pyrepl/fancy_termios.py +82 -0
  504. package/lib/python3.14/_pyrepl/historical_reader.py +419 -0
  505. package/lib/python3.14/_pyrepl/input.py +114 -0
  506. package/lib/python3.14/_pyrepl/keymap.py +213 -0
  507. package/lib/python3.14/_pyrepl/main.py +58 -0
  508. package/lib/python3.14/_pyrepl/mypy.ini +25 -0
  509. package/lib/python3.14/_pyrepl/pager.py +175 -0
  510. package/lib/python3.14/_pyrepl/reader.py +762 -0
  511. package/lib/python3.14/_pyrepl/readline.py +620 -0
  512. package/lib/python3.14/_pyrepl/simple_interact.py +181 -0
  513. package/lib/python3.14/_pyrepl/terminfo.py +488 -0
  514. package/lib/python3.14/_pyrepl/trace.py +34 -0
  515. package/lib/python3.14/_pyrepl/types.py +10 -0
  516. package/lib/python3.14/_pyrepl/unix_console.py +842 -0
  517. package/lib/python3.14/_pyrepl/unix_eventqueue.py +77 -0
  518. package/lib/python3.14/_pyrepl/utils.py +391 -0
  519. package/lib/python3.14/_pyrepl/windows_console.py +725 -0
  520. package/lib/python3.14/_pyrepl/windows_eventqueue.py +42 -0
  521. package/lib/python3.14/_sitebuiltins.py +103 -0
  522. package/lib/python3.14/_strptime.py +822 -0
  523. package/lib/python3.14/_sysconfig_vars__wasi_wasm32-wasi-threads.json +1097 -0
  524. package/lib/python3.14/_sysconfigdata__wasi_wasm32-wasi-threads.py +1084 -0
  525. package/lib/python3.14/_threading_local.py +120 -0
  526. package/lib/python3.14/_weakrefset.py +147 -0
  527. package/lib/python3.14/abc.py +188 -0
  528. package/lib/python3.14/annotationlib.py +1143 -0
  529. package/lib/python3.14/antigravity.py +17 -0
  530. package/lib/python3.14/argparse.py +2777 -0
  531. package/lib/python3.14/ast.py +680 -0
  532. package/lib/python3.14/asyncio/__init__.py +74 -0
  533. package/lib/python3.14/asyncio/__main__.py +239 -0
  534. package/lib/python3.14/asyncio/__pycache__/__init__.cpython-314.pyc +0 -0
  535. package/lib/python3.14/asyncio/__pycache__/__main__.cpython-314.pyc +0 -0
  536. package/lib/python3.14/asyncio/__pycache__/base_events.cpython-314.pyc +0 -0
  537. package/lib/python3.14/asyncio/__pycache__/base_futures.cpython-314.pyc +0 -0
  538. package/lib/python3.14/asyncio/__pycache__/base_subprocess.cpython-314.pyc +0 -0
  539. package/lib/python3.14/asyncio/__pycache__/base_tasks.cpython-314.pyc +0 -0
  540. package/lib/python3.14/asyncio/__pycache__/constants.cpython-314.pyc +0 -0
  541. package/lib/python3.14/asyncio/__pycache__/coroutines.cpython-314.pyc +0 -0
  542. package/lib/python3.14/asyncio/__pycache__/events.cpython-314.pyc +0 -0
  543. package/lib/python3.14/asyncio/__pycache__/exceptions.cpython-314.pyc +0 -0
  544. package/lib/python3.14/asyncio/__pycache__/format_helpers.cpython-314.pyc +0 -0
  545. package/lib/python3.14/asyncio/__pycache__/futures.cpython-314.pyc +0 -0
  546. package/lib/python3.14/asyncio/__pycache__/graph.cpython-314.pyc +0 -0
  547. package/lib/python3.14/asyncio/__pycache__/locks.cpython-314.pyc +0 -0
  548. package/lib/python3.14/asyncio/__pycache__/log.cpython-314.pyc +0 -0
  549. package/lib/python3.14/asyncio/__pycache__/mixins.cpython-314.pyc +0 -0
  550. package/lib/python3.14/asyncio/__pycache__/proactor_events.cpython-314.pyc +0 -0
  551. package/lib/python3.14/asyncio/__pycache__/protocols.cpython-314.pyc +0 -0
  552. package/lib/python3.14/asyncio/__pycache__/queues.cpython-314.pyc +0 -0
  553. package/lib/python3.14/asyncio/__pycache__/runners.cpython-314.pyc +0 -0
  554. package/lib/python3.14/asyncio/__pycache__/selector_events.cpython-314.pyc +0 -0
  555. package/lib/python3.14/asyncio/__pycache__/sslproto.cpython-314.pyc +0 -0
  556. package/lib/python3.14/asyncio/__pycache__/staggered.cpython-314.pyc +0 -0
  557. package/lib/python3.14/asyncio/__pycache__/streams.cpython-314.pyc +0 -0
  558. package/lib/python3.14/asyncio/__pycache__/subprocess.cpython-314.pyc +0 -0
  559. package/lib/python3.14/asyncio/__pycache__/taskgroups.cpython-314.pyc +0 -0
  560. package/lib/python3.14/asyncio/__pycache__/tasks.cpython-314.pyc +0 -0
  561. package/lib/python3.14/asyncio/__pycache__/threads.cpython-314.pyc +0 -0
  562. package/lib/python3.14/asyncio/__pycache__/timeouts.cpython-314.pyc +0 -0
  563. package/lib/python3.14/asyncio/__pycache__/tools.cpython-314.pyc +0 -0
  564. package/lib/python3.14/asyncio/__pycache__/transports.cpython-314.pyc +0 -0
  565. package/lib/python3.14/asyncio/__pycache__/trsock.cpython-314.pyc +0 -0
  566. package/lib/python3.14/asyncio/__pycache__/unix_events.cpython-314.pyc +0 -0
  567. package/lib/python3.14/asyncio/__pycache__/windows_events.cpython-314.pyc +0 -0
  568. package/lib/python3.14/asyncio/__pycache__/windows_utils.cpython-314.pyc +0 -0
  569. package/lib/python3.14/asyncio/base_events.py +2071 -0
  570. package/lib/python3.14/asyncio/base_futures.py +67 -0
  571. package/lib/python3.14/asyncio/base_subprocess.py +319 -0
  572. package/lib/python3.14/asyncio/base_tasks.py +94 -0
  573. package/lib/python3.14/asyncio/constants.py +41 -0
  574. package/lib/python3.14/asyncio/coroutines.py +118 -0
  575. package/lib/python3.14/asyncio/events.py +878 -0
  576. package/lib/python3.14/asyncio/exceptions.py +62 -0
  577. package/lib/python3.14/asyncio/format_helpers.py +84 -0
  578. package/lib/python3.14/asyncio/futures.py +481 -0
  579. package/lib/python3.14/asyncio/graph.py +276 -0
  580. package/lib/python3.14/asyncio/locks.py +617 -0
  581. package/lib/python3.14/asyncio/log.py +7 -0
  582. package/lib/python3.14/asyncio/mixins.py +21 -0
  583. package/lib/python3.14/asyncio/proactor_events.py +896 -0
  584. package/lib/python3.14/asyncio/protocols.py +216 -0
  585. package/lib/python3.14/asyncio/queues.py +307 -0
  586. package/lib/python3.14/asyncio/runners.py +225 -0
  587. package/lib/python3.14/asyncio/selector_events.py +1326 -0
  588. package/lib/python3.14/asyncio/sslproto.py +929 -0
  589. package/lib/python3.14/asyncio/staggered.py +179 -0
  590. package/lib/python3.14/asyncio/streams.py +787 -0
  591. package/lib/python3.14/asyncio/subprocess.py +229 -0
  592. package/lib/python3.14/asyncio/taskgroups.py +280 -0
  593. package/lib/python3.14/asyncio/tasks.py +1141 -0
  594. package/lib/python3.14/asyncio/threads.py +25 -0
  595. package/lib/python3.14/asyncio/timeouts.py +182 -0
  596. package/lib/python3.14/asyncio/tools.py +276 -0
  597. package/lib/python3.14/asyncio/transports.py +337 -0
  598. package/lib/python3.14/asyncio/trsock.py +98 -0
  599. package/lib/python3.14/asyncio/unix_events.py +972 -0
  600. package/lib/python3.14/asyncio/windows_events.py +903 -0
  601. package/lib/python3.14/asyncio/windows_utils.py +173 -0
  602. package/lib/python3.14/base64.py +618 -0
  603. package/lib/python3.14/bdb.py +1206 -0
  604. package/lib/python3.14/bisect.py +118 -0
  605. package/lib/python3.14/build-details.json +53 -0
  606. package/lib/python3.14/bz2.py +352 -0
  607. package/lib/python3.14/cProfile.py +205 -0
  608. package/lib/python3.14/calendar.py +926 -0
  609. package/lib/python3.14/cmd.py +414 -0
  610. package/lib/python3.14/code.py +396 -0
  611. package/lib/python3.14/codecs.py +1125 -0
  612. package/lib/python3.14/codeop.py +154 -0
  613. package/lib/python3.14/collections/__init__.py +1609 -0
  614. package/lib/python3.14/collections/__pycache__/__init__.cpython-314.pyc +0 -0
  615. package/lib/python3.14/colorsys.py +166 -0
  616. package/lib/python3.14/compileall.py +472 -0
  617. package/lib/python3.14/compression/__init__.py +0 -0
  618. package/lib/python3.14/compression/__pycache__/__init__.cpython-314.pyc +0 -0
  619. package/lib/python3.14/compression/__pycache__/bz2.cpython-314.pyc +0 -0
  620. package/lib/python3.14/compression/__pycache__/gzip.cpython-314.pyc +0 -0
  621. package/lib/python3.14/compression/__pycache__/lzma.cpython-314.pyc +0 -0
  622. package/lib/python3.14/compression/__pycache__/zlib.cpython-314.pyc +0 -0
  623. package/lib/python3.14/compression/_common/__init__.py +0 -0
  624. package/lib/python3.14/compression/_common/__pycache__/__init__.cpython-314.pyc +0 -0
  625. package/lib/python3.14/compression/_common/__pycache__/_streams.cpython-314.pyc +0 -0
  626. package/lib/python3.14/compression/_common/_streams.py +162 -0
  627. package/lib/python3.14/compression/bz2.py +5 -0
  628. package/lib/python3.14/compression/gzip.py +5 -0
  629. package/lib/python3.14/compression/lzma.py +5 -0
  630. package/lib/python3.14/compression/zlib.py +5 -0
  631. package/lib/python3.14/compression/zstd/__init__.py +242 -0
  632. package/lib/python3.14/compression/zstd/__pycache__/__init__.cpython-314.pyc +0 -0
  633. package/lib/python3.14/compression/zstd/__pycache__/_zstdfile.cpython-314.pyc +0 -0
  634. package/lib/python3.14/compression/zstd/_zstdfile.py +345 -0
  635. package/lib/python3.14/concurrent/__init__.py +1 -0
  636. package/lib/python3.14/concurrent/__pycache__/__init__.cpython-314.pyc +0 -0
  637. package/lib/python3.14/concurrent/futures/__init__.py +65 -0
  638. package/lib/python3.14/concurrent/futures/__pycache__/__init__.cpython-314.pyc +0 -0
  639. package/lib/python3.14/concurrent/futures/__pycache__/_base.cpython-314.pyc +0 -0
  640. package/lib/python3.14/concurrent/futures/__pycache__/interpreter.cpython-314.pyc +0 -0
  641. package/lib/python3.14/concurrent/futures/__pycache__/process.cpython-314.pyc +0 -0
  642. package/lib/python3.14/concurrent/futures/__pycache__/thread.cpython-314.pyc +0 -0
  643. package/lib/python3.14/concurrent/futures/_base.py +674 -0
  644. package/lib/python3.14/concurrent/futures/interpreter.py +123 -0
  645. package/lib/python3.14/concurrent/futures/process.py +939 -0
  646. package/lib/python3.14/concurrent/futures/thread.py +274 -0
  647. package/lib/python3.14/concurrent/interpreters/__init__.py +247 -0
  648. package/lib/python3.14/concurrent/interpreters/__pycache__/__init__.cpython-314.pyc +0 -0
  649. package/lib/python3.14/concurrent/interpreters/__pycache__/_crossinterp.cpython-314.pyc +0 -0
  650. package/lib/python3.14/concurrent/interpreters/__pycache__/_queues.cpython-314.pyc +0 -0
  651. package/lib/python3.14/concurrent/interpreters/_crossinterp.py +107 -0
  652. package/lib/python3.14/concurrent/interpreters/_queues.py +289 -0
  653. package/lib/python3.14/configparser.py +1414 -0
  654. package/lib/python3.14/contextlib.py +814 -0
  655. package/lib/python3.14/contextvars.py +8 -0
  656. package/lib/python3.14/copy.py +286 -0
  657. package/lib/python3.14/copyreg.py +222 -0
  658. package/lib/python3.14/csv.py +513 -0
  659. package/lib/python3.14/ctypes/__init__.py +681 -0
  660. package/lib/python3.14/ctypes/__pycache__/__init__.cpython-314.pyc +0 -0
  661. package/lib/python3.14/ctypes/__pycache__/_aix.cpython-314.pyc +0 -0
  662. package/lib/python3.14/ctypes/__pycache__/_endian.cpython-314.pyc +0 -0
  663. package/lib/python3.14/ctypes/__pycache__/_layout.cpython-314.pyc +0 -0
  664. package/lib/python3.14/ctypes/__pycache__/util.cpython-314.pyc +0 -0
  665. package/lib/python3.14/ctypes/__pycache__/wintypes.cpython-314.pyc +0 -0
  666. package/lib/python3.14/ctypes/_aix.py +327 -0
  667. package/lib/python3.14/ctypes/_endian.py +78 -0
  668. package/lib/python3.14/ctypes/_layout.py +330 -0
  669. package/lib/python3.14/ctypes/macholib/README.ctypes +7 -0
  670. package/lib/python3.14/ctypes/macholib/__init__.py +9 -0
  671. package/lib/python3.14/ctypes/macholib/__pycache__/__init__.cpython-314.pyc +0 -0
  672. package/lib/python3.14/ctypes/macholib/__pycache__/dyld.cpython-314.pyc +0 -0
  673. package/lib/python3.14/ctypes/macholib/__pycache__/dylib.cpython-314.pyc +0 -0
  674. package/lib/python3.14/ctypes/macholib/__pycache__/framework.cpython-314.pyc +0 -0
  675. package/lib/python3.14/ctypes/macholib/dyld.py +165 -0
  676. package/lib/python3.14/ctypes/macholib/dylib.py +42 -0
  677. package/lib/python3.14/ctypes/macholib/fetch_macholib +2 -0
  678. package/lib/python3.14/ctypes/macholib/fetch_macholib.bat +1 -0
  679. package/lib/python3.14/ctypes/macholib/framework.py +42 -0
  680. package/lib/python3.14/ctypes/util.py +538 -0
  681. package/lib/python3.14/ctypes/wintypes.py +210 -0
  682. package/lib/python3.14/curses/__init__.py +101 -0
  683. package/lib/python3.14/curses/__pycache__/__init__.cpython-314.pyc +0 -0
  684. package/lib/python3.14/curses/__pycache__/ascii.cpython-314.pyc +0 -0
  685. package/lib/python3.14/curses/__pycache__/has_key.cpython-314.pyc +0 -0
  686. package/lib/python3.14/curses/__pycache__/panel.cpython-314.pyc +0 -0
  687. package/lib/python3.14/curses/__pycache__/textpad.cpython-314.pyc +0 -0
  688. package/lib/python3.14/curses/ascii.py +99 -0
  689. package/lib/python3.14/curses/has_key.py +192 -0
  690. package/lib/python3.14/curses/panel.py +6 -0
  691. package/lib/python3.14/curses/textpad.py +204 -0
  692. package/lib/python3.14/dataclasses.py +1804 -0
  693. package/lib/python3.14/datetime.py +13 -0
  694. package/lib/python3.14/dbm/__init__.py +194 -0
  695. package/lib/python3.14/dbm/__pycache__/__init__.cpython-314.pyc +0 -0
  696. package/lib/python3.14/dbm/__pycache__/dumb.cpython-314.pyc +0 -0
  697. package/lib/python3.14/dbm/__pycache__/gnu.cpython-314.pyc +0 -0
  698. package/lib/python3.14/dbm/__pycache__/ndbm.cpython-314.pyc +0 -0
  699. package/lib/python3.14/dbm/__pycache__/sqlite3.cpython-314.pyc +0 -0
  700. package/lib/python3.14/dbm/dumb.py +319 -0
  701. package/lib/python3.14/dbm/gnu.py +3 -0
  702. package/lib/python3.14/dbm/ndbm.py +3 -0
  703. package/lib/python3.14/dbm/sqlite3.py +144 -0
  704. package/lib/python3.14/decimal.py +109 -0
  705. package/lib/python3.14/difflib.py +2064 -0
  706. package/lib/python3.14/dis.py +1157 -0
  707. package/lib/python3.14/doctest.py +2921 -0
  708. package/lib/python3.14/email/__init__.py +61 -0
  709. package/lib/python3.14/email/__pycache__/__init__.cpython-314.pyc +0 -0
  710. package/lib/python3.14/email/__pycache__/_encoded_words.cpython-314.pyc +0 -0
  711. package/lib/python3.14/email/__pycache__/_header_value_parser.cpython-314.pyc +0 -0
  712. package/lib/python3.14/email/__pycache__/_parseaddr.cpython-314.pyc +0 -0
  713. package/lib/python3.14/email/__pycache__/_policybase.cpython-314.pyc +0 -0
  714. package/lib/python3.14/email/__pycache__/base64mime.cpython-314.pyc +0 -0
  715. package/lib/python3.14/email/__pycache__/charset.cpython-314.pyc +0 -0
  716. package/lib/python3.14/email/__pycache__/contentmanager.cpython-314.pyc +0 -0
  717. package/lib/python3.14/email/__pycache__/encoders.cpython-314.pyc +0 -0
  718. package/lib/python3.14/email/__pycache__/errors.cpython-314.pyc +0 -0
  719. package/lib/python3.14/email/__pycache__/feedparser.cpython-314.pyc +0 -0
  720. package/lib/python3.14/email/__pycache__/generator.cpython-314.pyc +0 -0
  721. package/lib/python3.14/email/__pycache__/header.cpython-314.pyc +0 -0
  722. package/lib/python3.14/email/__pycache__/headerregistry.cpython-314.pyc +0 -0
  723. package/lib/python3.14/email/__pycache__/iterators.cpython-314.pyc +0 -0
  724. package/lib/python3.14/email/__pycache__/message.cpython-314.pyc +0 -0
  725. package/lib/python3.14/email/__pycache__/parser.cpython-314.pyc +0 -0
  726. package/lib/python3.14/email/__pycache__/policy.cpython-314.pyc +0 -0
  727. package/lib/python3.14/email/__pycache__/quoprimime.cpython-314.pyc +0 -0
  728. package/lib/python3.14/email/__pycache__/utils.cpython-314.pyc +0 -0
  729. package/lib/python3.14/email/_encoded_words.py +233 -0
  730. package/lib/python3.14/email/_header_value_parser.py +3097 -0
  731. package/lib/python3.14/email/_parseaddr.py +563 -0
  732. package/lib/python3.14/email/_policybase.py +392 -0
  733. package/lib/python3.14/email/architecture.rst +216 -0
  734. package/lib/python3.14/email/base64mime.py +115 -0
  735. package/lib/python3.14/email/charset.py +398 -0
  736. package/lib/python3.14/email/contentmanager.py +253 -0
  737. package/lib/python3.14/email/encoders.py +65 -0
  738. package/lib/python3.14/email/errors.py +117 -0
  739. package/lib/python3.14/email/feedparser.py +537 -0
  740. package/lib/python3.14/email/generator.py +520 -0
  741. package/lib/python3.14/email/header.py +582 -0
  742. package/lib/python3.14/email/headerregistry.py +604 -0
  743. package/lib/python3.14/email/iterators.py +68 -0
  744. package/lib/python3.14/email/message.py +1217 -0
  745. package/lib/python3.14/email/mime/__init__.py +0 -0
  746. package/lib/python3.14/email/mime/__pycache__/__init__.cpython-314.pyc +0 -0
  747. package/lib/python3.14/email/mime/__pycache__/application.cpython-314.pyc +0 -0
  748. package/lib/python3.14/email/mime/__pycache__/audio.cpython-314.pyc +0 -0
  749. package/lib/python3.14/email/mime/__pycache__/base.cpython-314.pyc +0 -0
  750. package/lib/python3.14/email/mime/__pycache__/image.cpython-314.pyc +0 -0
  751. package/lib/python3.14/email/mime/__pycache__/message.cpython-314.pyc +0 -0
  752. package/lib/python3.14/email/mime/__pycache__/multipart.cpython-314.pyc +0 -0
  753. package/lib/python3.14/email/mime/__pycache__/nonmultipart.cpython-314.pyc +0 -0
  754. package/lib/python3.14/email/mime/__pycache__/text.cpython-314.pyc +0 -0
  755. package/lib/python3.14/email/mime/application.py +37 -0
  756. package/lib/python3.14/email/mime/audio.py +97 -0
  757. package/lib/python3.14/email/mime/base.py +29 -0
  758. package/lib/python3.14/email/mime/image.py +152 -0
  759. package/lib/python3.14/email/mime/message.py +33 -0
  760. package/lib/python3.14/email/mime/multipart.py +47 -0
  761. package/lib/python3.14/email/mime/nonmultipart.py +21 -0
  762. package/lib/python3.14/email/mime/text.py +40 -0
  763. package/lib/python3.14/email/parser.py +127 -0
  764. package/lib/python3.14/email/policy.py +239 -0
  765. package/lib/python3.14/email/quoprimime.py +300 -0
  766. package/lib/python3.14/email/utils.py +486 -0
  767. package/lib/python3.14/encodings/__init__.py +177 -0
  768. package/lib/python3.14/encodings/__pycache__/__init__.cpython-314.pyc +0 -0
  769. package/lib/python3.14/encodings/__pycache__/_win_cp_codecs.cpython-314.pyc +0 -0
  770. package/lib/python3.14/encodings/__pycache__/aliases.cpython-314.pyc +0 -0
  771. package/lib/python3.14/encodings/__pycache__/ascii.cpython-314.pyc +0 -0
  772. package/lib/python3.14/encodings/__pycache__/base64_codec.cpython-314.pyc +0 -0
  773. package/lib/python3.14/encodings/__pycache__/big5.cpython-314.pyc +0 -0
  774. package/lib/python3.14/encodings/__pycache__/big5hkscs.cpython-314.pyc +0 -0
  775. package/lib/python3.14/encodings/__pycache__/bz2_codec.cpython-314.pyc +0 -0
  776. package/lib/python3.14/encodings/__pycache__/charmap.cpython-314.pyc +0 -0
  777. package/lib/python3.14/encodings/__pycache__/cp037.cpython-314.pyc +0 -0
  778. package/lib/python3.14/encodings/__pycache__/cp1006.cpython-314.pyc +0 -0
  779. package/lib/python3.14/encodings/__pycache__/cp1026.cpython-314.pyc +0 -0
  780. package/lib/python3.14/encodings/__pycache__/cp1125.cpython-314.pyc +0 -0
  781. package/lib/python3.14/encodings/__pycache__/cp1140.cpython-314.pyc +0 -0
  782. package/lib/python3.14/encodings/__pycache__/cp1250.cpython-314.pyc +0 -0
  783. package/lib/python3.14/encodings/__pycache__/cp1251.cpython-314.pyc +0 -0
  784. package/lib/python3.14/encodings/__pycache__/cp1252.cpython-314.pyc +0 -0
  785. package/lib/python3.14/encodings/__pycache__/cp1253.cpython-314.pyc +0 -0
  786. package/lib/python3.14/encodings/__pycache__/cp1254.cpython-314.pyc +0 -0
  787. package/lib/python3.14/encodings/__pycache__/cp1255.cpython-314.pyc +0 -0
  788. package/lib/python3.14/encodings/__pycache__/cp1256.cpython-314.pyc +0 -0
  789. package/lib/python3.14/encodings/__pycache__/cp1257.cpython-314.pyc +0 -0
  790. package/lib/python3.14/encodings/__pycache__/cp1258.cpython-314.pyc +0 -0
  791. package/lib/python3.14/encodings/__pycache__/cp273.cpython-314.pyc +0 -0
  792. package/lib/python3.14/encodings/__pycache__/cp424.cpython-314.pyc +0 -0
  793. package/lib/python3.14/encodings/__pycache__/cp437.cpython-314.pyc +0 -0
  794. package/lib/python3.14/encodings/__pycache__/cp500.cpython-314.pyc +0 -0
  795. package/lib/python3.14/encodings/__pycache__/cp720.cpython-314.pyc +0 -0
  796. package/lib/python3.14/encodings/__pycache__/cp737.cpython-314.pyc +0 -0
  797. package/lib/python3.14/encodings/__pycache__/cp775.cpython-314.pyc +0 -0
  798. package/lib/python3.14/encodings/__pycache__/cp850.cpython-314.pyc +0 -0
  799. package/lib/python3.14/encodings/__pycache__/cp852.cpython-314.pyc +0 -0
  800. package/lib/python3.14/encodings/__pycache__/cp855.cpython-314.pyc +0 -0
  801. package/lib/python3.14/encodings/__pycache__/cp856.cpython-314.pyc +0 -0
  802. package/lib/python3.14/encodings/__pycache__/cp857.cpython-314.pyc +0 -0
  803. package/lib/python3.14/encodings/__pycache__/cp858.cpython-314.pyc +0 -0
  804. package/lib/python3.14/encodings/__pycache__/cp860.cpython-314.pyc +0 -0
  805. package/lib/python3.14/encodings/__pycache__/cp861.cpython-314.pyc +0 -0
  806. package/lib/python3.14/encodings/__pycache__/cp862.cpython-314.pyc +0 -0
  807. package/lib/python3.14/encodings/__pycache__/cp863.cpython-314.pyc +0 -0
  808. package/lib/python3.14/encodings/__pycache__/cp864.cpython-314.pyc +0 -0
  809. package/lib/python3.14/encodings/__pycache__/cp865.cpython-314.pyc +0 -0
  810. package/lib/python3.14/encodings/__pycache__/cp866.cpython-314.pyc +0 -0
  811. package/lib/python3.14/encodings/__pycache__/cp869.cpython-314.pyc +0 -0
  812. package/lib/python3.14/encodings/__pycache__/cp874.cpython-314.pyc +0 -0
  813. package/lib/python3.14/encodings/__pycache__/cp875.cpython-314.pyc +0 -0
  814. package/lib/python3.14/encodings/__pycache__/cp932.cpython-314.pyc +0 -0
  815. package/lib/python3.14/encodings/__pycache__/cp949.cpython-314.pyc +0 -0
  816. package/lib/python3.14/encodings/__pycache__/cp950.cpython-314.pyc +0 -0
  817. package/lib/python3.14/encodings/__pycache__/euc_jis_2004.cpython-314.pyc +0 -0
  818. package/lib/python3.14/encodings/__pycache__/euc_jisx0213.cpython-314.pyc +0 -0
  819. package/lib/python3.14/encodings/__pycache__/euc_jp.cpython-314.pyc +0 -0
  820. package/lib/python3.14/encodings/__pycache__/euc_kr.cpython-314.pyc +0 -0
  821. package/lib/python3.14/encodings/__pycache__/gb18030.cpython-314.pyc +0 -0
  822. package/lib/python3.14/encodings/__pycache__/gb2312.cpython-314.pyc +0 -0
  823. package/lib/python3.14/encodings/__pycache__/gbk.cpython-314.pyc +0 -0
  824. package/lib/python3.14/encodings/__pycache__/hex_codec.cpython-314.pyc +0 -0
  825. package/lib/python3.14/encodings/__pycache__/hp_roman8.cpython-314.pyc +0 -0
  826. package/lib/python3.14/encodings/__pycache__/hz.cpython-314.pyc +0 -0
  827. package/lib/python3.14/encodings/__pycache__/idna.cpython-314.pyc +0 -0
  828. package/lib/python3.14/encodings/__pycache__/iso2022_jp.cpython-314.pyc +0 -0
  829. package/lib/python3.14/encodings/__pycache__/iso2022_jp_1.cpython-314.pyc +0 -0
  830. package/lib/python3.14/encodings/__pycache__/iso2022_jp_2.cpython-314.pyc +0 -0
  831. package/lib/python3.14/encodings/__pycache__/iso2022_jp_2004.cpython-314.pyc +0 -0
  832. package/lib/python3.14/encodings/__pycache__/iso2022_jp_3.cpython-314.pyc +0 -0
  833. package/lib/python3.14/encodings/__pycache__/iso2022_jp_ext.cpython-314.pyc +0 -0
  834. package/lib/python3.14/encodings/__pycache__/iso2022_kr.cpython-314.pyc +0 -0
  835. package/lib/python3.14/encodings/__pycache__/iso8859_1.cpython-314.pyc +0 -0
  836. package/lib/python3.14/encodings/__pycache__/iso8859_10.cpython-314.pyc +0 -0
  837. package/lib/python3.14/encodings/__pycache__/iso8859_11.cpython-314.pyc +0 -0
  838. package/lib/python3.14/encodings/__pycache__/iso8859_13.cpython-314.pyc +0 -0
  839. package/lib/python3.14/encodings/__pycache__/iso8859_14.cpython-314.pyc +0 -0
  840. package/lib/python3.14/encodings/__pycache__/iso8859_15.cpython-314.pyc +0 -0
  841. package/lib/python3.14/encodings/__pycache__/iso8859_16.cpython-314.pyc +0 -0
  842. package/lib/python3.14/encodings/__pycache__/iso8859_2.cpython-314.pyc +0 -0
  843. package/lib/python3.14/encodings/__pycache__/iso8859_3.cpython-314.pyc +0 -0
  844. package/lib/python3.14/encodings/__pycache__/iso8859_4.cpython-314.pyc +0 -0
  845. package/lib/python3.14/encodings/__pycache__/iso8859_5.cpython-314.pyc +0 -0
  846. package/lib/python3.14/encodings/__pycache__/iso8859_6.cpython-314.pyc +0 -0
  847. package/lib/python3.14/encodings/__pycache__/iso8859_7.cpython-314.pyc +0 -0
  848. package/lib/python3.14/encodings/__pycache__/iso8859_8.cpython-314.pyc +0 -0
  849. package/lib/python3.14/encodings/__pycache__/iso8859_9.cpython-314.pyc +0 -0
  850. package/lib/python3.14/encodings/__pycache__/johab.cpython-314.pyc +0 -0
  851. package/lib/python3.14/encodings/__pycache__/koi8_r.cpython-314.pyc +0 -0
  852. package/lib/python3.14/encodings/__pycache__/koi8_t.cpython-314.pyc +0 -0
  853. package/lib/python3.14/encodings/__pycache__/koi8_u.cpython-314.pyc +0 -0
  854. package/lib/python3.14/encodings/__pycache__/kz1048.cpython-314.pyc +0 -0
  855. package/lib/python3.14/encodings/__pycache__/latin_1.cpython-314.pyc +0 -0
  856. package/lib/python3.14/encodings/__pycache__/mac_arabic.cpython-314.pyc +0 -0
  857. package/lib/python3.14/encodings/__pycache__/mac_croatian.cpython-314.pyc +0 -0
  858. package/lib/python3.14/encodings/__pycache__/mac_cyrillic.cpython-314.pyc +0 -0
  859. package/lib/python3.14/encodings/__pycache__/mac_farsi.cpython-314.pyc +0 -0
  860. package/lib/python3.14/encodings/__pycache__/mac_greek.cpython-314.pyc +0 -0
  861. package/lib/python3.14/encodings/__pycache__/mac_iceland.cpython-314.pyc +0 -0
  862. package/lib/python3.14/encodings/__pycache__/mac_latin2.cpython-314.pyc +0 -0
  863. package/lib/python3.14/encodings/__pycache__/mac_roman.cpython-314.pyc +0 -0
  864. package/lib/python3.14/encodings/__pycache__/mac_romanian.cpython-314.pyc +0 -0
  865. package/lib/python3.14/encodings/__pycache__/mac_turkish.cpython-314.pyc +0 -0
  866. package/lib/python3.14/encodings/__pycache__/mbcs.cpython-314.pyc +0 -0
  867. package/lib/python3.14/encodings/__pycache__/oem.cpython-314.pyc +0 -0
  868. package/lib/python3.14/encodings/__pycache__/palmos.cpython-314.pyc +0 -0
  869. package/lib/python3.14/encodings/__pycache__/ptcp154.cpython-314.pyc +0 -0
  870. package/lib/python3.14/encodings/__pycache__/punycode.cpython-314.pyc +0 -0
  871. package/lib/python3.14/encodings/__pycache__/quopri_codec.cpython-314.pyc +0 -0
  872. package/lib/python3.14/encodings/__pycache__/raw_unicode_escape.cpython-314.pyc +0 -0
  873. package/lib/python3.14/encodings/__pycache__/rot_13.cpython-314.pyc +0 -0
  874. package/lib/python3.14/encodings/__pycache__/shift_jis.cpython-314.pyc +0 -0
  875. package/lib/python3.14/encodings/__pycache__/shift_jis_2004.cpython-314.pyc +0 -0
  876. package/lib/python3.14/encodings/__pycache__/shift_jisx0213.cpython-314.pyc +0 -0
  877. package/lib/python3.14/encodings/__pycache__/tis_620.cpython-314.pyc +0 -0
  878. package/lib/python3.14/encodings/__pycache__/undefined.cpython-314.pyc +0 -0
  879. package/lib/python3.14/encodings/__pycache__/unicode_escape.cpython-314.pyc +0 -0
  880. package/lib/python3.14/encodings/__pycache__/utf_16.cpython-314.pyc +0 -0
  881. package/lib/python3.14/encodings/__pycache__/utf_16_be.cpython-314.pyc +0 -0
  882. package/lib/python3.14/encodings/__pycache__/utf_16_le.cpython-314.pyc +0 -0
  883. package/lib/python3.14/encodings/__pycache__/utf_32.cpython-314.pyc +0 -0
  884. package/lib/python3.14/encodings/__pycache__/utf_32_be.cpython-314.pyc +0 -0
  885. package/lib/python3.14/encodings/__pycache__/utf_32_le.cpython-314.pyc +0 -0
  886. package/lib/python3.14/encodings/__pycache__/utf_7.cpython-314.pyc +0 -0
  887. package/lib/python3.14/encodings/__pycache__/utf_8.cpython-314.pyc +0 -0
  888. package/lib/python3.14/encodings/__pycache__/utf_8_sig.cpython-314.pyc +0 -0
  889. package/lib/python3.14/encodings/__pycache__/uu_codec.cpython-314.pyc +0 -0
  890. package/lib/python3.14/encodings/__pycache__/zlib_codec.cpython-314.pyc +0 -0
  891. package/lib/python3.14/encodings/_win_cp_codecs.py +36 -0
  892. package/lib/python3.14/encodings/aliases.py +560 -0
  893. package/lib/python3.14/encodings/ascii.py +50 -0
  894. package/lib/python3.14/encodings/base64_codec.py +55 -0
  895. package/lib/python3.14/encodings/big5.py +39 -0
  896. package/lib/python3.14/encodings/big5hkscs.py +39 -0
  897. package/lib/python3.14/encodings/bz2_codec.py +78 -0
  898. package/lib/python3.14/encodings/charmap.py +69 -0
  899. package/lib/python3.14/encodings/cp037.py +307 -0
  900. package/lib/python3.14/encodings/cp1006.py +307 -0
  901. package/lib/python3.14/encodings/cp1026.py +307 -0
  902. package/lib/python3.14/encodings/cp1125.py +698 -0
  903. package/lib/python3.14/encodings/cp1140.py +307 -0
  904. package/lib/python3.14/encodings/cp1250.py +307 -0
  905. package/lib/python3.14/encodings/cp1251.py +307 -0
  906. package/lib/python3.14/encodings/cp1252.py +307 -0
  907. package/lib/python3.14/encodings/cp1253.py +307 -0
  908. package/lib/python3.14/encodings/cp1254.py +307 -0
  909. package/lib/python3.14/encodings/cp1255.py +307 -0
  910. package/lib/python3.14/encodings/cp1256.py +307 -0
  911. package/lib/python3.14/encodings/cp1257.py +307 -0
  912. package/lib/python3.14/encodings/cp1258.py +307 -0
  913. package/lib/python3.14/encodings/cp273.py +307 -0
  914. package/lib/python3.14/encodings/cp424.py +307 -0
  915. package/lib/python3.14/encodings/cp437.py +698 -0
  916. package/lib/python3.14/encodings/cp500.py +307 -0
  917. package/lib/python3.14/encodings/cp720.py +309 -0
  918. package/lib/python3.14/encodings/cp737.py +698 -0
  919. package/lib/python3.14/encodings/cp775.py +697 -0
  920. package/lib/python3.14/encodings/cp850.py +698 -0
  921. package/lib/python3.14/encodings/cp852.py +698 -0
  922. package/lib/python3.14/encodings/cp855.py +698 -0
  923. package/lib/python3.14/encodings/cp856.py +307 -0
  924. package/lib/python3.14/encodings/cp857.py +694 -0
  925. package/lib/python3.14/encodings/cp858.py +698 -0
  926. package/lib/python3.14/encodings/cp860.py +698 -0
  927. package/lib/python3.14/encodings/cp861.py +698 -0
  928. package/lib/python3.14/encodings/cp862.py +698 -0
  929. package/lib/python3.14/encodings/cp863.py +698 -0
  930. package/lib/python3.14/encodings/cp864.py +690 -0
  931. package/lib/python3.14/encodings/cp865.py +698 -0
  932. package/lib/python3.14/encodings/cp866.py +698 -0
  933. package/lib/python3.14/encodings/cp869.py +689 -0
  934. package/lib/python3.14/encodings/cp874.py +307 -0
  935. package/lib/python3.14/encodings/cp875.py +307 -0
  936. package/lib/python3.14/encodings/cp932.py +39 -0
  937. package/lib/python3.14/encodings/cp949.py +39 -0
  938. package/lib/python3.14/encodings/cp950.py +39 -0
  939. package/lib/python3.14/encodings/euc_jis_2004.py +39 -0
  940. package/lib/python3.14/encodings/euc_jisx0213.py +39 -0
  941. package/lib/python3.14/encodings/euc_jp.py +39 -0
  942. package/lib/python3.14/encodings/euc_kr.py +39 -0
  943. package/lib/python3.14/encodings/gb18030.py +39 -0
  944. package/lib/python3.14/encodings/gb2312.py +39 -0
  945. package/lib/python3.14/encodings/gbk.py +39 -0
  946. package/lib/python3.14/encodings/hex_codec.py +55 -0
  947. package/lib/python3.14/encodings/hp_roman8.py +314 -0
  948. package/lib/python3.14/encodings/hz.py +39 -0
  949. package/lib/python3.14/encodings/idna.py +387 -0
  950. package/lib/python3.14/encodings/iso2022_jp.py +39 -0
  951. package/lib/python3.14/encodings/iso2022_jp_1.py +39 -0
  952. package/lib/python3.14/encodings/iso2022_jp_2.py +39 -0
  953. package/lib/python3.14/encodings/iso2022_jp_2004.py +39 -0
  954. package/lib/python3.14/encodings/iso2022_jp_3.py +39 -0
  955. package/lib/python3.14/encodings/iso2022_jp_ext.py +39 -0
  956. package/lib/python3.14/encodings/iso2022_kr.py +39 -0
  957. package/lib/python3.14/encodings/iso8859_1.py +307 -0
  958. package/lib/python3.14/encodings/iso8859_10.py +307 -0
  959. package/lib/python3.14/encodings/iso8859_11.py +307 -0
  960. package/lib/python3.14/encodings/iso8859_13.py +307 -0
  961. package/lib/python3.14/encodings/iso8859_14.py +307 -0
  962. package/lib/python3.14/encodings/iso8859_15.py +307 -0
  963. package/lib/python3.14/encodings/iso8859_16.py +307 -0
  964. package/lib/python3.14/encodings/iso8859_2.py +307 -0
  965. package/lib/python3.14/encodings/iso8859_3.py +307 -0
  966. package/lib/python3.14/encodings/iso8859_4.py +307 -0
  967. package/lib/python3.14/encodings/iso8859_5.py +307 -0
  968. package/lib/python3.14/encodings/iso8859_6.py +307 -0
  969. package/lib/python3.14/encodings/iso8859_7.py +307 -0
  970. package/lib/python3.14/encodings/iso8859_8.py +307 -0
  971. package/lib/python3.14/encodings/iso8859_9.py +307 -0
  972. package/lib/python3.14/encodings/johab.py +39 -0
  973. package/lib/python3.14/encodings/koi8_r.py +307 -0
  974. package/lib/python3.14/encodings/koi8_t.py +308 -0
  975. package/lib/python3.14/encodings/koi8_u.py +307 -0
  976. package/lib/python3.14/encodings/kz1048.py +307 -0
  977. package/lib/python3.14/encodings/latin_1.py +50 -0
  978. package/lib/python3.14/encodings/mac_arabic.py +698 -0
  979. package/lib/python3.14/encodings/mac_croatian.py +307 -0
  980. package/lib/python3.14/encodings/mac_cyrillic.py +307 -0
  981. package/lib/python3.14/encodings/mac_farsi.py +307 -0
  982. package/lib/python3.14/encodings/mac_greek.py +307 -0
  983. package/lib/python3.14/encodings/mac_iceland.py +307 -0
  984. package/lib/python3.14/encodings/mac_latin2.py +312 -0
  985. package/lib/python3.14/encodings/mac_roman.py +307 -0
  986. package/lib/python3.14/encodings/mac_romanian.py +307 -0
  987. package/lib/python3.14/encodings/mac_turkish.py +307 -0
  988. package/lib/python3.14/encodings/mbcs.py +47 -0
  989. package/lib/python3.14/encodings/oem.py +41 -0
  990. package/lib/python3.14/encodings/palmos.py +308 -0
  991. package/lib/python3.14/encodings/ptcp154.py +312 -0
  992. package/lib/python3.14/encodings/punycode.py +253 -0
  993. package/lib/python3.14/encodings/quopri_codec.py +56 -0
  994. package/lib/python3.14/encodings/raw_unicode_escape.py +46 -0
  995. package/lib/python3.14/encodings/rot_13.py +113 -0
  996. package/lib/python3.14/encodings/shift_jis.py +39 -0
  997. package/lib/python3.14/encodings/shift_jis_2004.py +39 -0
  998. package/lib/python3.14/encodings/shift_jisx0213.py +39 -0
  999. package/lib/python3.14/encodings/tis_620.py +307 -0
  1000. package/lib/python3.14/encodings/undefined.py +49 -0
  1001. package/lib/python3.14/encodings/unicode_escape.py +46 -0
  1002. package/lib/python3.14/encodings/utf_16.py +155 -0
  1003. package/lib/python3.14/encodings/utf_16_be.py +42 -0
  1004. package/lib/python3.14/encodings/utf_16_le.py +42 -0
  1005. package/lib/python3.14/encodings/utf_32.py +150 -0
  1006. package/lib/python3.14/encodings/utf_32_be.py +37 -0
  1007. package/lib/python3.14/encodings/utf_32_le.py +37 -0
  1008. package/lib/python3.14/encodings/utf_7.py +38 -0
  1009. package/lib/python3.14/encodings/utf_8.py +42 -0
  1010. package/lib/python3.14/encodings/utf_8_sig.py +130 -0
  1011. package/lib/python3.14/encodings/uu_codec.py +103 -0
  1012. package/lib/python3.14/encodings/zlib_codec.py +77 -0
  1013. package/lib/python3.14/ensurepip/__init__.py +264 -0
  1014. package/lib/python3.14/ensurepip/__main__.py +5 -0
  1015. package/lib/python3.14/ensurepip/__pycache__/__init__.cpython-314.pyc +0 -0
  1016. package/lib/python3.14/ensurepip/__pycache__/__main__.cpython-314.pyc +0 -0
  1017. package/lib/python3.14/ensurepip/__pycache__/_uninstall.cpython-314.pyc +0 -0
  1018. package/lib/python3.14/ensurepip/_bundled/pip-25.3-py3-none-any.whl +0 -0
  1019. package/lib/python3.14/ensurepip/_uninstall.py +31 -0
  1020. package/lib/python3.14/enum.py +2167 -0
  1021. package/lib/python3.14/filecmp.py +320 -0
  1022. package/lib/python3.14/fileinput.py +442 -0
  1023. package/lib/python3.14/fnmatch.py +209 -0
  1024. package/lib/python3.14/fractions.py +1078 -0
  1025. package/lib/python3.14/ftplib.py +966 -0
  1026. package/lib/python3.14/functools.py +1165 -0
  1027. package/lib/python3.14/genericpath.py +200 -0
  1028. package/lib/python3.14/getopt.py +232 -0
  1029. package/lib/python3.14/getpass.py +256 -0
  1030. package/lib/python3.14/gettext.py +657 -0
  1031. package/lib/python3.14/glob.py +553 -0
  1032. package/lib/python3.14/graphlib.py +254 -0
  1033. package/lib/python3.14/gzip.py +717 -0
  1034. package/lib/python3.14/hashlib.py +255 -0
  1035. package/lib/python3.14/heapq.py +611 -0
  1036. package/lib/python3.14/hmac.py +268 -0
  1037. package/lib/python3.14/html/__init__.py +132 -0
  1038. package/lib/python3.14/html/__pycache__/__init__.cpython-314.pyc +0 -0
  1039. package/lib/python3.14/html/__pycache__/entities.cpython-314.pyc +0 -0
  1040. package/lib/python3.14/html/__pycache__/parser.cpython-314.pyc +0 -0
  1041. package/lib/python3.14/html/entities.py +2513 -0
  1042. package/lib/python3.14/html/parser.py +553 -0
  1043. package/lib/python3.14/http/__init__.py +213 -0
  1044. package/lib/python3.14/http/__pycache__/__init__.cpython-314.pyc +0 -0
  1045. package/lib/python3.14/http/__pycache__/client.cpython-314.pyc +0 -0
  1046. package/lib/python3.14/http/__pycache__/cookiejar.cpython-314.pyc +0 -0
  1047. package/lib/python3.14/http/__pycache__/cookies.cpython-314.pyc +0 -0
  1048. package/lib/python3.14/http/__pycache__/server.cpython-314.pyc +0 -0
  1049. package/lib/python3.14/http/client.py +1570 -0
  1050. package/lib/python3.14/http/cookiejar.py +2122 -0
  1051. package/lib/python3.14/http/cookies.py +598 -0
  1052. package/lib/python3.14/http/server.py +1441 -0
  1053. package/lib/python3.14/idlelib/CREDITS.txt +48 -0
  1054. package/lib/python3.14/idlelib/ChangeLog +1591 -0
  1055. package/lib/python3.14/idlelib/HISTORY.txt +296 -0
  1056. package/lib/python3.14/idlelib/Icons/README.txt +51 -0
  1057. package/lib/python3.14/idlelib/Icons/folder.gif +0 -0
  1058. package/lib/python3.14/idlelib/Icons/idle.ico +0 -0
  1059. package/lib/python3.14/idlelib/Icons/idle_16.gif +0 -0
  1060. package/lib/python3.14/idlelib/Icons/idle_16.png +0 -0
  1061. package/lib/python3.14/idlelib/Icons/idle_256.png +0 -0
  1062. package/lib/python3.14/idlelib/Icons/idle_32.gif +0 -0
  1063. package/lib/python3.14/idlelib/Icons/idle_32.png +0 -0
  1064. package/lib/python3.14/idlelib/Icons/idle_48.gif +0 -0
  1065. package/lib/python3.14/idlelib/Icons/idle_48.png +0 -0
  1066. package/lib/python3.14/idlelib/Icons/minusnode.gif +0 -0
  1067. package/lib/python3.14/idlelib/Icons/openfolder.gif +0 -0
  1068. package/lib/python3.14/idlelib/Icons/plusnode.gif +0 -0
  1069. package/lib/python3.14/idlelib/Icons/python.gif +0 -0
  1070. package/lib/python3.14/idlelib/Icons/tk.gif +0 -0
  1071. package/lib/python3.14/idlelib/NEWS2x.txt +660 -0
  1072. package/lib/python3.14/idlelib/News3.txt +1404 -0
  1073. package/lib/python3.14/idlelib/README.txt +290 -0
  1074. package/lib/python3.14/idlelib/TODO.txt +210 -0
  1075. package/lib/python3.14/idlelib/__init__.py +10 -0
  1076. package/lib/python3.14/idlelib/__main__.py +7 -0
  1077. package/lib/python3.14/idlelib/__pycache__/__init__.cpython-314.pyc +0 -0
  1078. package/lib/python3.14/idlelib/__pycache__/__main__.cpython-314.pyc +0 -0
  1079. package/lib/python3.14/idlelib/__pycache__/autocomplete.cpython-314.pyc +0 -0
  1080. package/lib/python3.14/idlelib/__pycache__/autocomplete_w.cpython-314.pyc +0 -0
  1081. package/lib/python3.14/idlelib/__pycache__/autoexpand.cpython-314.pyc +0 -0
  1082. package/lib/python3.14/idlelib/__pycache__/browser.cpython-314.pyc +0 -0
  1083. package/lib/python3.14/idlelib/__pycache__/calltip.cpython-314.pyc +0 -0
  1084. package/lib/python3.14/idlelib/__pycache__/calltip_w.cpython-314.pyc +0 -0
  1085. package/lib/python3.14/idlelib/__pycache__/codecontext.cpython-314.pyc +0 -0
  1086. package/lib/python3.14/idlelib/__pycache__/colorizer.cpython-314.pyc +0 -0
  1087. package/lib/python3.14/idlelib/__pycache__/config.cpython-314.pyc +0 -0
  1088. package/lib/python3.14/idlelib/__pycache__/config_key.cpython-314.pyc +0 -0
  1089. package/lib/python3.14/idlelib/__pycache__/configdialog.cpython-314.pyc +0 -0
  1090. package/lib/python3.14/idlelib/__pycache__/debugger.cpython-314.pyc +0 -0
  1091. package/lib/python3.14/idlelib/__pycache__/debugger_r.cpython-314.pyc +0 -0
  1092. package/lib/python3.14/idlelib/__pycache__/debugobj.cpython-314.pyc +0 -0
  1093. package/lib/python3.14/idlelib/__pycache__/debugobj_r.cpython-314.pyc +0 -0
  1094. package/lib/python3.14/idlelib/__pycache__/delegator.cpython-314.pyc +0 -0
  1095. package/lib/python3.14/idlelib/__pycache__/dynoption.cpython-314.pyc +0 -0
  1096. package/lib/python3.14/idlelib/__pycache__/editor.cpython-314.pyc +0 -0
  1097. package/lib/python3.14/idlelib/__pycache__/filelist.cpython-314.pyc +0 -0
  1098. package/lib/python3.14/idlelib/__pycache__/format.cpython-314.pyc +0 -0
  1099. package/lib/python3.14/idlelib/__pycache__/grep.cpython-314.pyc +0 -0
  1100. package/lib/python3.14/idlelib/__pycache__/help.cpython-314.pyc +0 -0
  1101. package/lib/python3.14/idlelib/__pycache__/help_about.cpython-314.pyc +0 -0
  1102. package/lib/python3.14/idlelib/__pycache__/history.cpython-314.pyc +0 -0
  1103. package/lib/python3.14/idlelib/__pycache__/hyperparser.cpython-314.pyc +0 -0
  1104. package/lib/python3.14/idlelib/__pycache__/idle.cpython-314.pyc +0 -0
  1105. package/lib/python3.14/idlelib/__pycache__/iomenu.cpython-314.pyc +0 -0
  1106. package/lib/python3.14/idlelib/__pycache__/macosx.cpython-314.pyc +0 -0
  1107. package/lib/python3.14/idlelib/__pycache__/mainmenu.cpython-314.pyc +0 -0
  1108. package/lib/python3.14/idlelib/__pycache__/multicall.cpython-314.pyc +0 -0
  1109. package/lib/python3.14/idlelib/__pycache__/outwin.cpython-314.pyc +0 -0
  1110. package/lib/python3.14/idlelib/__pycache__/parenmatch.cpython-314.pyc +0 -0
  1111. package/lib/python3.14/idlelib/__pycache__/pathbrowser.cpython-314.pyc +0 -0
  1112. package/lib/python3.14/idlelib/__pycache__/percolator.cpython-314.pyc +0 -0
  1113. package/lib/python3.14/idlelib/__pycache__/pyparse.cpython-314.pyc +0 -0
  1114. package/lib/python3.14/idlelib/__pycache__/pyshell.cpython-314.pyc +0 -0
  1115. package/lib/python3.14/idlelib/__pycache__/query.cpython-314.pyc +0 -0
  1116. package/lib/python3.14/idlelib/__pycache__/redirector.cpython-314.pyc +0 -0
  1117. package/lib/python3.14/idlelib/__pycache__/replace.cpython-314.pyc +0 -0
  1118. package/lib/python3.14/idlelib/__pycache__/rpc.cpython-314.pyc +0 -0
  1119. package/lib/python3.14/idlelib/__pycache__/run.cpython-314.pyc +0 -0
  1120. package/lib/python3.14/idlelib/__pycache__/runscript.cpython-314.pyc +0 -0
  1121. package/lib/python3.14/idlelib/__pycache__/scrolledlist.cpython-314.pyc +0 -0
  1122. package/lib/python3.14/idlelib/__pycache__/search.cpython-314.pyc +0 -0
  1123. package/lib/python3.14/idlelib/__pycache__/searchbase.cpython-314.pyc +0 -0
  1124. package/lib/python3.14/idlelib/__pycache__/searchengine.cpython-314.pyc +0 -0
  1125. package/lib/python3.14/idlelib/__pycache__/sidebar.cpython-314.pyc +0 -0
  1126. package/lib/python3.14/idlelib/__pycache__/squeezer.cpython-314.pyc +0 -0
  1127. package/lib/python3.14/idlelib/__pycache__/stackviewer.cpython-314.pyc +0 -0
  1128. package/lib/python3.14/idlelib/__pycache__/statusbar.cpython-314.pyc +0 -0
  1129. package/lib/python3.14/idlelib/__pycache__/textview.cpython-314.pyc +0 -0
  1130. package/lib/python3.14/idlelib/__pycache__/tooltip.cpython-314.pyc +0 -0
  1131. package/lib/python3.14/idlelib/__pycache__/tree.cpython-314.pyc +0 -0
  1132. package/lib/python3.14/idlelib/__pycache__/undo.cpython-314.pyc +0 -0
  1133. package/lib/python3.14/idlelib/__pycache__/util.cpython-314.pyc +0 -0
  1134. package/lib/python3.14/idlelib/__pycache__/window.cpython-314.pyc +0 -0
  1135. package/lib/python3.14/idlelib/__pycache__/zoomheight.cpython-314.pyc +0 -0
  1136. package/lib/python3.14/idlelib/__pycache__/zzdummy.cpython-314.pyc +0 -0
  1137. package/lib/python3.14/idlelib/autocomplete.py +228 -0
  1138. package/lib/python3.14/idlelib/autocomplete_w.py +498 -0
  1139. package/lib/python3.14/idlelib/autoexpand.py +96 -0
  1140. package/lib/python3.14/idlelib/browser.py +260 -0
  1141. package/lib/python3.14/idlelib/calltip.py +205 -0
  1142. package/lib/python3.14/idlelib/calltip_w.py +202 -0
  1143. package/lib/python3.14/idlelib/codecontext.py +270 -0
  1144. package/lib/python3.14/idlelib/colorizer.py +384 -0
  1145. package/lib/python3.14/idlelib/config-extensions.def +62 -0
  1146. package/lib/python3.14/idlelib/config-highlight.def +105 -0
  1147. package/lib/python3.14/idlelib/config-keys.def +309 -0
  1148. package/lib/python3.14/idlelib/config-main.def +93 -0
  1149. package/lib/python3.14/idlelib/config.py +917 -0
  1150. package/lib/python3.14/idlelib/config_key.py +354 -0
  1151. package/lib/python3.14/idlelib/configdialog.py +2408 -0
  1152. package/lib/python3.14/idlelib/debugger.py +602 -0
  1153. package/lib/python3.14/idlelib/debugger_r.py +390 -0
  1154. package/lib/python3.14/idlelib/debugobj.py +146 -0
  1155. package/lib/python3.14/idlelib/debugobj_r.py +41 -0
  1156. package/lib/python3.14/idlelib/delegator.py +34 -0
  1157. package/lib/python3.14/idlelib/dynoption.py +57 -0
  1158. package/lib/python3.14/idlelib/editor.py +1734 -0
  1159. package/lib/python3.14/idlelib/extend.txt +83 -0
  1160. package/lib/python3.14/idlelib/filelist.py +132 -0
  1161. package/lib/python3.14/idlelib/format.py +426 -0
  1162. package/lib/python3.14/idlelib/grep.py +223 -0
  1163. package/lib/python3.14/idlelib/help.html +851 -0
  1164. package/lib/python3.14/idlelib/help.py +343 -0
  1165. package/lib/python3.14/idlelib/help_about.py +211 -0
  1166. package/lib/python3.14/idlelib/history.py +106 -0
  1167. package/lib/python3.14/idlelib/hyperparser.py +312 -0
  1168. package/lib/python3.14/idlelib/idle.bat +4 -0
  1169. package/lib/python3.14/idlelib/idle.py +14 -0
  1170. package/lib/python3.14/idlelib/idle.pyw +17 -0
  1171. package/lib/python3.14/idlelib/iomenu.py +441 -0
  1172. package/lib/python3.14/idlelib/macosx.py +278 -0
  1173. package/lib/python3.14/idlelib/mainmenu.py +126 -0
  1174. package/lib/python3.14/idlelib/multicall.py +451 -0
  1175. package/lib/python3.14/idlelib/outwin.py +188 -0
  1176. package/lib/python3.14/idlelib/parenmatch.py +183 -0
  1177. package/lib/python3.14/idlelib/pathbrowser.py +107 -0
  1178. package/lib/python3.14/idlelib/percolator.py +120 -0
  1179. package/lib/python3.14/idlelib/pyparse.py +589 -0
  1180. package/lib/python3.14/idlelib/pyshell.py +1699 -0
  1181. package/lib/python3.14/idlelib/query.py +392 -0
  1182. package/lib/python3.14/idlelib/redirector.py +174 -0
  1183. package/lib/python3.14/idlelib/replace.py +299 -0
  1184. package/lib/python3.14/idlelib/rpc.py +635 -0
  1185. package/lib/python3.14/idlelib/run.py +653 -0
  1186. package/lib/python3.14/idlelib/runscript.py +213 -0
  1187. package/lib/python3.14/idlelib/scrolledlist.py +151 -0
  1188. package/lib/python3.14/idlelib/search.py +165 -0
  1189. package/lib/python3.14/idlelib/searchbase.py +210 -0
  1190. package/lib/python3.14/idlelib/searchengine.py +234 -0
  1191. package/lib/python3.14/idlelib/sidebar.py +543 -0
  1192. package/lib/python3.14/idlelib/squeezer.py +345 -0
  1193. package/lib/python3.14/idlelib/stackviewer.py +134 -0
  1194. package/lib/python3.14/idlelib/statusbar.py +52 -0
  1195. package/lib/python3.14/idlelib/textview.py +193 -0
  1196. package/lib/python3.14/idlelib/tooltip.py +190 -0
  1197. package/lib/python3.14/idlelib/tree.py +509 -0
  1198. package/lib/python3.14/idlelib/undo.py +367 -0
  1199. package/lib/python3.14/idlelib/util.py +37 -0
  1200. package/lib/python3.14/idlelib/window.py +98 -0
  1201. package/lib/python3.14/idlelib/zoomheight.py +124 -0
  1202. package/lib/python3.14/idlelib/zzdummy.py +73 -0
  1203. package/lib/python3.14/imaplib.py +1967 -0
  1204. package/lib/python3.14/importlib/__init__.py +136 -0
  1205. package/lib/python3.14/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1206. package/lib/python3.14/importlib/__pycache__/_abc.cpython-314.pyc +0 -0
  1207. package/lib/python3.14/importlib/__pycache__/_bootstrap.cpython-314.pyc +0 -0
  1208. package/lib/python3.14/importlib/__pycache__/_bootstrap_external.cpython-314.pyc +0 -0
  1209. package/lib/python3.14/importlib/__pycache__/abc.cpython-314.pyc +0 -0
  1210. package/lib/python3.14/importlib/__pycache__/machinery.cpython-314.pyc +0 -0
  1211. package/lib/python3.14/importlib/__pycache__/readers.cpython-314.pyc +0 -0
  1212. package/lib/python3.14/importlib/__pycache__/simple.cpython-314.pyc +0 -0
  1213. package/lib/python3.14/importlib/__pycache__/util.cpython-314.pyc +0 -0
  1214. package/lib/python3.14/importlib/_abc.py +39 -0
  1215. package/lib/python3.14/importlib/_bootstrap.py +1562 -0
  1216. package/lib/python3.14/importlib/_bootstrap_external.py +1562 -0
  1217. package/lib/python3.14/importlib/abc.py +234 -0
  1218. package/lib/python3.14/importlib/machinery.py +50 -0
  1219. package/lib/python3.14/importlib/metadata/__init__.py +1093 -0
  1220. package/lib/python3.14/importlib/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
  1221. package/lib/python3.14/importlib/metadata/__pycache__/_adapters.cpython-314.pyc +0 -0
  1222. package/lib/python3.14/importlib/metadata/__pycache__/_collections.cpython-314.pyc +0 -0
  1223. package/lib/python3.14/importlib/metadata/__pycache__/_functools.cpython-314.pyc +0 -0
  1224. package/lib/python3.14/importlib/metadata/__pycache__/_itertools.cpython-314.pyc +0 -0
  1225. package/lib/python3.14/importlib/metadata/__pycache__/_meta.cpython-314.pyc +0 -0
  1226. package/lib/python3.14/importlib/metadata/__pycache__/_text.cpython-314.pyc +0 -0
  1227. package/lib/python3.14/importlib/metadata/__pycache__/diagnose.cpython-314.pyc +0 -0
  1228. package/lib/python3.14/importlib/metadata/_adapters.py +89 -0
  1229. package/lib/python3.14/importlib/metadata/_collections.py +30 -0
  1230. package/lib/python3.14/importlib/metadata/_functools.py +104 -0
  1231. package/lib/python3.14/importlib/metadata/_itertools.py +73 -0
  1232. package/lib/python3.14/importlib/metadata/_meta.py +67 -0
  1233. package/lib/python3.14/importlib/metadata/_text.py +99 -0
  1234. package/lib/python3.14/importlib/metadata/diagnose.py +21 -0
  1235. package/lib/python3.14/importlib/readers.py +12 -0
  1236. package/lib/python3.14/importlib/resources/__init__.py +43 -0
  1237. package/lib/python3.14/importlib/resources/__pycache__/__init__.cpython-314.pyc +0 -0
  1238. package/lib/python3.14/importlib/resources/__pycache__/_adapters.cpython-314.pyc +0 -0
  1239. package/lib/python3.14/importlib/resources/__pycache__/_common.cpython-314.pyc +0 -0
  1240. package/lib/python3.14/importlib/resources/__pycache__/_functional.cpython-314.pyc +0 -0
  1241. package/lib/python3.14/importlib/resources/__pycache__/_itertools.cpython-314.pyc +0 -0
  1242. package/lib/python3.14/importlib/resources/__pycache__/abc.cpython-314.pyc +0 -0
  1243. package/lib/python3.14/importlib/resources/__pycache__/readers.cpython-314.pyc +0 -0
  1244. package/lib/python3.14/importlib/resources/__pycache__/simple.cpython-314.pyc +0 -0
  1245. package/lib/python3.14/importlib/resources/_adapters.py +168 -0
  1246. package/lib/python3.14/importlib/resources/_common.py +211 -0
  1247. package/lib/python3.14/importlib/resources/_functional.py +81 -0
  1248. package/lib/python3.14/importlib/resources/_itertools.py +38 -0
  1249. package/lib/python3.14/importlib/resources/abc.py +173 -0
  1250. package/lib/python3.14/importlib/resources/readers.py +203 -0
  1251. package/lib/python3.14/importlib/resources/simple.py +106 -0
  1252. package/lib/python3.14/importlib/simple.py +14 -0
  1253. package/lib/python3.14/importlib/util.py +279 -0
  1254. package/lib/python3.14/inspect.py +3407 -0
  1255. package/lib/python3.14/io.py +150 -0
  1256. package/lib/python3.14/ipaddress.py +2417 -0
  1257. package/lib/python3.14/json/__init__.py +365 -0
  1258. package/lib/python3.14/json/__main__.py +20 -0
  1259. package/lib/python3.14/json/__pycache__/__init__.cpython-314.pyc +0 -0
  1260. package/lib/python3.14/json/__pycache__/__main__.cpython-314.pyc +0 -0
  1261. package/lib/python3.14/json/__pycache__/decoder.cpython-314.pyc +0 -0
  1262. package/lib/python3.14/json/__pycache__/encoder.cpython-314.pyc +0 -0
  1263. package/lib/python3.14/json/__pycache__/scanner.cpython-314.pyc +0 -0
  1264. package/lib/python3.14/json/__pycache__/tool.cpython-314.pyc +0 -0
  1265. package/lib/python3.14/json/decoder.py +364 -0
  1266. package/lib/python3.14/json/encoder.py +461 -0
  1267. package/lib/python3.14/json/scanner.py +73 -0
  1268. package/lib/python3.14/json/tool.py +121 -0
  1269. package/lib/python3.14/keyword.py +64 -0
  1270. package/lib/python3.14/linecache.py +251 -0
  1271. package/lib/python3.14/locale.py +1783 -0
  1272. package/lib/python3.14/logging/__init__.py +2326 -0
  1273. package/lib/python3.14/logging/__pycache__/__init__.cpython-314.pyc +0 -0
  1274. package/lib/python3.14/logging/__pycache__/config.cpython-314.pyc +0 -0
  1275. package/lib/python3.14/logging/__pycache__/handlers.cpython-314.pyc +0 -0
  1276. package/lib/python3.14/logging/config.py +1077 -0
  1277. package/lib/python3.14/logging/handlers.py +1641 -0
  1278. package/lib/python3.14/lzma.py +364 -0
  1279. package/lib/python3.14/mailbox.py +2223 -0
  1280. package/lib/python3.14/mimetypes.py +747 -0
  1281. package/lib/python3.14/modulefinder.py +671 -0
  1282. package/lib/python3.14/multiprocessing/__init__.py +37 -0
  1283. package/lib/python3.14/multiprocessing/__pycache__/__init__.cpython-314.pyc +0 -0
  1284. package/lib/python3.14/multiprocessing/__pycache__/connection.cpython-314.pyc +0 -0
  1285. package/lib/python3.14/multiprocessing/__pycache__/context.cpython-314.pyc +0 -0
  1286. package/lib/python3.14/multiprocessing/__pycache__/forkserver.cpython-314.pyc +0 -0
  1287. package/lib/python3.14/multiprocessing/__pycache__/heap.cpython-314.pyc +0 -0
  1288. package/lib/python3.14/multiprocessing/__pycache__/managers.cpython-314.pyc +0 -0
  1289. package/lib/python3.14/multiprocessing/__pycache__/pool.cpython-314.pyc +0 -0
  1290. package/lib/python3.14/multiprocessing/__pycache__/popen_fork.cpython-314.pyc +0 -0
  1291. package/lib/python3.14/multiprocessing/__pycache__/popen_forkserver.cpython-314.pyc +0 -0
  1292. package/lib/python3.14/multiprocessing/__pycache__/popen_spawn_posix.cpython-314.pyc +0 -0
  1293. package/lib/python3.14/multiprocessing/__pycache__/popen_spawn_win32.cpython-314.pyc +0 -0
  1294. package/lib/python3.14/multiprocessing/__pycache__/process.cpython-314.pyc +0 -0
  1295. package/lib/python3.14/multiprocessing/__pycache__/queues.cpython-314.pyc +0 -0
  1296. package/lib/python3.14/multiprocessing/__pycache__/reduction.cpython-314.pyc +0 -0
  1297. package/lib/python3.14/multiprocessing/__pycache__/resource_sharer.cpython-314.pyc +0 -0
  1298. package/lib/python3.14/multiprocessing/__pycache__/resource_tracker.cpython-314.pyc +0 -0
  1299. package/lib/python3.14/multiprocessing/__pycache__/shared_memory.cpython-314.pyc +0 -0
  1300. package/lib/python3.14/multiprocessing/__pycache__/sharedctypes.cpython-314.pyc +0 -0
  1301. package/lib/python3.14/multiprocessing/__pycache__/spawn.cpython-314.pyc +0 -0
  1302. package/lib/python3.14/multiprocessing/__pycache__/synchronize.cpython-314.pyc +0 -0
  1303. package/lib/python3.14/multiprocessing/__pycache__/util.cpython-314.pyc +0 -0
  1304. package/lib/python3.14/multiprocessing/connection.py +1207 -0
  1305. package/lib/python3.14/multiprocessing/context.py +377 -0
  1306. package/lib/python3.14/multiprocessing/dummy/__init__.py +126 -0
  1307. package/lib/python3.14/multiprocessing/dummy/__pycache__/__init__.cpython-314.pyc +0 -0
  1308. package/lib/python3.14/multiprocessing/dummy/__pycache__/connection.cpython-314.pyc +0 -0
  1309. package/lib/python3.14/multiprocessing/dummy/connection.py +75 -0
  1310. package/lib/python3.14/multiprocessing/forkserver.py +416 -0
  1311. package/lib/python3.14/multiprocessing/heap.py +337 -0
  1312. package/lib/python3.14/multiprocessing/managers.py +1438 -0
  1313. package/lib/python3.14/multiprocessing/pool.py +957 -0
  1314. package/lib/python3.14/multiprocessing/popen_fork.py +90 -0
  1315. package/lib/python3.14/multiprocessing/popen_forkserver.py +74 -0
  1316. package/lib/python3.14/multiprocessing/popen_spawn_posix.py +76 -0
  1317. package/lib/python3.14/multiprocessing/popen_spawn_win32.py +147 -0
  1318. package/lib/python3.14/multiprocessing/process.py +443 -0
  1319. package/lib/python3.14/multiprocessing/queues.py +399 -0
  1320. package/lib/python3.14/multiprocessing/reduction.py +281 -0
  1321. package/lib/python3.14/multiprocessing/resource_sharer.py +154 -0
  1322. package/lib/python3.14/multiprocessing/resource_tracker.py +416 -0
  1323. package/lib/python3.14/multiprocessing/shared_memory.py +544 -0
  1324. package/lib/python3.14/multiprocessing/sharedctypes.py +240 -0
  1325. package/lib/python3.14/multiprocessing/spawn.py +307 -0
  1326. package/lib/python3.14/multiprocessing/synchronize.py +411 -0
  1327. package/lib/python3.14/multiprocessing/util.py +560 -0
  1328. package/lib/python3.14/netrc.py +199 -0
  1329. package/lib/python3.14/ntpath.py +870 -0
  1330. package/lib/python3.14/nturl2path.py +74 -0
  1331. package/lib/python3.14/numbers.py +427 -0
  1332. package/lib/python3.14/opcode.py +122 -0
  1333. package/lib/python3.14/operator.py +475 -0
  1334. package/lib/python3.14/optparse.py +1671 -0
  1335. package/lib/python3.14/os.py +1191 -0
  1336. package/lib/python3.14/pathlib/__init__.py +1307 -0
  1337. package/lib/python3.14/pathlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1338. package/lib/python3.14/pathlib/__pycache__/_local.cpython-314.pyc +0 -0
  1339. package/lib/python3.14/pathlib/__pycache__/_os.cpython-314.pyc +0 -0
  1340. package/lib/python3.14/pathlib/__pycache__/types.cpython-314.pyc +0 -0
  1341. package/lib/python3.14/pathlib/_local.py +12 -0
  1342. package/lib/python3.14/pathlib/_os.py +530 -0
  1343. package/lib/python3.14/pathlib/types.py +430 -0
  1344. package/lib/python3.14/pdb.py +3660 -0
  1345. package/lib/python3.14/pickle.py +1931 -0
  1346. package/lib/python3.14/pickletools.py +2887 -0
  1347. package/lib/python3.14/pkgutil.py +474 -0
  1348. package/lib/python3.14/platform.py +1515 -0
  1349. package/lib/python3.14/plistlib.py +948 -0
  1350. package/lib/python3.14/poplib.py +477 -0
  1351. package/lib/python3.14/posixpath.py +592 -0
  1352. package/lib/python3.14/pprint.py +675 -0
  1353. package/lib/python3.14/profile.py +615 -0
  1354. package/lib/python3.14/pstats.py +777 -0
  1355. package/lib/python3.14/pty.py +182 -0
  1356. package/lib/python3.14/py_compile.py +212 -0
  1357. package/lib/python3.14/pyclbr.py +314 -0
  1358. package/lib/python3.14/pydoc.py +2876 -0
  1359. package/lib/python3.14/pydoc_data/__init__.py +0 -0
  1360. package/lib/python3.14/pydoc_data/__pycache__/__init__.cpython-314.pyc +0 -0
  1361. package/lib/python3.14/pydoc_data/__pycache__/topics.cpython-314.pyc +0 -0
  1362. package/lib/python3.14/pydoc_data/_pydoc.css +112 -0
  1363. package/lib/python3.14/pydoc_data/topics.py +14103 -0
  1364. package/lib/python3.14/queue.py +383 -0
  1365. package/lib/python3.14/quopri.py +235 -0
  1366. package/lib/python3.14/random.py +1078 -0
  1367. package/lib/python3.14/re/__init__.py +428 -0
  1368. package/lib/python3.14/re/__pycache__/__init__.cpython-314.pyc +0 -0
  1369. package/lib/python3.14/re/__pycache__/_casefix.cpython-314.pyc +0 -0
  1370. package/lib/python3.14/re/__pycache__/_compiler.cpython-314.pyc +0 -0
  1371. package/lib/python3.14/re/__pycache__/_constants.cpython-314.pyc +0 -0
  1372. package/lib/python3.14/re/__pycache__/_parser.cpython-314.pyc +0 -0
  1373. package/lib/python3.14/re/_casefix.py +106 -0
  1374. package/lib/python3.14/re/_compiler.py +782 -0
  1375. package/lib/python3.14/re/_constants.py +224 -0
  1376. package/lib/python3.14/re/_parser.py +1066 -0
  1377. package/lib/python3.14/reprlib.py +230 -0
  1378. package/lib/python3.14/rlcompleter.py +221 -0
  1379. package/lib/python3.14/runpy.py +319 -0
  1380. package/lib/python3.14/sched.py +167 -0
  1381. package/lib/python3.14/secrets.py +71 -0
  1382. package/lib/python3.14/selectors.py +603 -0
  1383. package/lib/python3.14/shelve.py +250 -0
  1384. package/lib/python3.14/shlex.py +351 -0
  1385. package/lib/python3.14/shutil.py +1667 -0
  1386. package/lib/python3.14/signal.py +94 -0
  1387. package/lib/python3.14/site-packages/README.txt +2 -0
  1388. package/lib/python3.14/site-packages/pip/__init__.py +13 -0
  1389. package/lib/python3.14/site-packages/pip/__main__.py +24 -0
  1390. package/lib/python3.14/site-packages/pip/__pip-runner__.py +50 -0
  1391. package/lib/python3.14/site-packages/pip/__pycache__/__init__.cpython-314.pyc +0 -0
  1392. package/lib/python3.14/site-packages/pip/__pycache__/__main__.cpython-314.pyc +0 -0
  1393. package/lib/python3.14/site-packages/pip/__pycache__/__pip-runner__.cpython-314.pyc +0 -0
  1394. package/lib/python3.14/site-packages/pip/_internal/__init__.py +18 -0
  1395. package/lib/python3.14/site-packages/pip/_internal/__pycache__/__init__.cpython-314.pyc +0 -0
  1396. package/lib/python3.14/site-packages/pip/_internal/__pycache__/build_env.cpython-314.pyc +0 -0
  1397. package/lib/python3.14/site-packages/pip/_internal/__pycache__/cache.cpython-314.pyc +0 -0
  1398. package/lib/python3.14/site-packages/pip/_internal/__pycache__/configuration.cpython-314.pyc +0 -0
  1399. package/lib/python3.14/site-packages/pip/_internal/__pycache__/exceptions.cpython-314.pyc +0 -0
  1400. package/lib/python3.14/site-packages/pip/_internal/__pycache__/main.cpython-314.pyc +0 -0
  1401. package/lib/python3.14/site-packages/pip/_internal/__pycache__/pyproject.cpython-314.pyc +0 -0
  1402. package/lib/python3.14/site-packages/pip/_internal/__pycache__/self_outdated_check.cpython-314.pyc +0 -0
  1403. package/lib/python3.14/site-packages/pip/_internal/__pycache__/wheel_builder.cpython-314.pyc +0 -0
  1404. package/lib/python3.14/site-packages/pip/_internal/build_env.py +417 -0
  1405. package/lib/python3.14/site-packages/pip/_internal/cache.py +291 -0
  1406. package/lib/python3.14/site-packages/pip/_internal/cli/__init__.py +3 -0
  1407. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/__init__.cpython-314.pyc +0 -0
  1408. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/autocompletion.cpython-314.pyc +0 -0
  1409. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/base_command.cpython-314.pyc +0 -0
  1410. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/cmdoptions.cpython-314.pyc +0 -0
  1411. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/command_context.cpython-314.pyc +0 -0
  1412. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/index_command.cpython-314.pyc +0 -0
  1413. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/main.cpython-314.pyc +0 -0
  1414. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/main_parser.cpython-314.pyc +0 -0
  1415. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/parser.cpython-314.pyc +0 -0
  1416. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/progress_bars.cpython-314.pyc +0 -0
  1417. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/req_command.cpython-314.pyc +0 -0
  1418. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/spinners.cpython-314.pyc +0 -0
  1419. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/status_codes.cpython-314.pyc +0 -0
  1420. package/lib/python3.14/site-packages/pip/_internal/cli/autocompletion.py +184 -0
  1421. package/lib/python3.14/site-packages/pip/_internal/cli/base_command.py +244 -0
  1422. package/lib/python3.14/site-packages/pip/_internal/cli/cmdoptions.py +1110 -0
  1423. package/lib/python3.14/site-packages/pip/_internal/cli/command_context.py +28 -0
  1424. package/lib/python3.14/site-packages/pip/_internal/cli/index_command.py +175 -0
  1425. package/lib/python3.14/site-packages/pip/_internal/cli/main.py +80 -0
  1426. package/lib/python3.14/site-packages/pip/_internal/cli/main_parser.py +134 -0
  1427. package/lib/python3.14/site-packages/pip/_internal/cli/parser.py +298 -0
  1428. package/lib/python3.14/site-packages/pip/_internal/cli/progress_bars.py +151 -0
  1429. package/lib/python3.14/site-packages/pip/_internal/cli/req_command.py +371 -0
  1430. package/lib/python3.14/site-packages/pip/_internal/cli/spinners.py +235 -0
  1431. package/lib/python3.14/site-packages/pip/_internal/cli/status_codes.py +6 -0
  1432. package/lib/python3.14/site-packages/pip/_internal/commands/__init__.py +139 -0
  1433. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/__init__.cpython-314.pyc +0 -0
  1434. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/cache.cpython-314.pyc +0 -0
  1435. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/check.cpython-314.pyc +0 -0
  1436. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/completion.cpython-314.pyc +0 -0
  1437. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/configuration.cpython-314.pyc +0 -0
  1438. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/debug.cpython-314.pyc +0 -0
  1439. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/download.cpython-314.pyc +0 -0
  1440. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/freeze.cpython-314.pyc +0 -0
  1441. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/hash.cpython-314.pyc +0 -0
  1442. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/help.cpython-314.pyc +0 -0
  1443. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/index.cpython-314.pyc +0 -0
  1444. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/inspect.cpython-314.pyc +0 -0
  1445. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/install.cpython-314.pyc +0 -0
  1446. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/list.cpython-314.pyc +0 -0
  1447. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/lock.cpython-314.pyc +0 -0
  1448. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/search.cpython-314.pyc +0 -0
  1449. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/show.cpython-314.pyc +0 -0
  1450. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/uninstall.cpython-314.pyc +0 -0
  1451. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/wheel.cpython-314.pyc +0 -0
  1452. package/lib/python3.14/site-packages/pip/_internal/commands/cache.py +231 -0
  1453. package/lib/python3.14/site-packages/pip/_internal/commands/check.py +66 -0
  1454. package/lib/python3.14/site-packages/pip/_internal/commands/completion.py +135 -0
  1455. package/lib/python3.14/site-packages/pip/_internal/commands/configuration.py +288 -0
  1456. package/lib/python3.14/site-packages/pip/_internal/commands/debug.py +203 -0
  1457. package/lib/python3.14/site-packages/pip/_internal/commands/download.py +142 -0
  1458. package/lib/python3.14/site-packages/pip/_internal/commands/freeze.py +107 -0
  1459. package/lib/python3.14/site-packages/pip/_internal/commands/hash.py +58 -0
  1460. package/lib/python3.14/site-packages/pip/_internal/commands/help.py +40 -0
  1461. package/lib/python3.14/site-packages/pip/_internal/commands/index.py +159 -0
  1462. package/lib/python3.14/site-packages/pip/_internal/commands/inspect.py +92 -0
  1463. package/lib/python3.14/site-packages/pip/_internal/commands/install.py +803 -0
  1464. package/lib/python3.14/site-packages/pip/_internal/commands/list.py +400 -0
  1465. package/lib/python3.14/site-packages/pip/_internal/commands/lock.py +167 -0
  1466. package/lib/python3.14/site-packages/pip/_internal/commands/search.py +178 -0
  1467. package/lib/python3.14/site-packages/pip/_internal/commands/show.py +231 -0
  1468. package/lib/python3.14/site-packages/pip/_internal/commands/uninstall.py +113 -0
  1469. package/lib/python3.14/site-packages/pip/_internal/commands/wheel.py +176 -0
  1470. package/lib/python3.14/site-packages/pip/_internal/configuration.py +396 -0
  1471. package/lib/python3.14/site-packages/pip/_internal/distributions/__init__.py +21 -0
  1472. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/__init__.cpython-314.pyc +0 -0
  1473. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/base.cpython-314.pyc +0 -0
  1474. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/installed.cpython-314.pyc +0 -0
  1475. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/sdist.cpython-314.pyc +0 -0
  1476. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/wheel.cpython-314.pyc +0 -0
  1477. package/lib/python3.14/site-packages/pip/_internal/distributions/base.py +55 -0
  1478. package/lib/python3.14/site-packages/pip/_internal/distributions/installed.py +33 -0
  1479. package/lib/python3.14/site-packages/pip/_internal/distributions/sdist.py +164 -0
  1480. package/lib/python3.14/site-packages/pip/_internal/distributions/wheel.py +44 -0
  1481. package/lib/python3.14/site-packages/pip/_internal/exceptions.py +898 -0
  1482. package/lib/python3.14/site-packages/pip/_internal/index/__init__.py +1 -0
  1483. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/__init__.cpython-314.pyc +0 -0
  1484. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/collector.cpython-314.pyc +0 -0
  1485. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/package_finder.cpython-314.pyc +0 -0
  1486. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/sources.cpython-314.pyc +0 -0
  1487. package/lib/python3.14/site-packages/pip/_internal/index/collector.py +489 -0
  1488. package/lib/python3.14/site-packages/pip/_internal/index/package_finder.py +1059 -0
  1489. package/lib/python3.14/site-packages/pip/_internal/index/sources.py +287 -0
  1490. package/lib/python3.14/site-packages/pip/_internal/locations/__init__.py +441 -0
  1491. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/__init__.cpython-314.pyc +0 -0
  1492. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/_distutils.cpython-314.pyc +0 -0
  1493. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/_sysconfig.cpython-314.pyc +0 -0
  1494. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/base.cpython-314.pyc +0 -0
  1495. package/lib/python3.14/site-packages/pip/_internal/locations/_distutils.py +173 -0
  1496. package/lib/python3.14/site-packages/pip/_internal/locations/_sysconfig.py +215 -0
  1497. package/lib/python3.14/site-packages/pip/_internal/locations/base.py +82 -0
  1498. package/lib/python3.14/site-packages/pip/_internal/main.py +12 -0
  1499. package/lib/python3.14/site-packages/pip/_internal/metadata/__init__.py +169 -0
  1500. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
  1501. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/_json.cpython-314.pyc +0 -0
  1502. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/base.cpython-314.pyc +0 -0
  1503. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/pkg_resources.cpython-314.pyc +0 -0
  1504. package/lib/python3.14/site-packages/pip/_internal/metadata/_json.py +87 -0
  1505. package/lib/python3.14/site-packages/pip/_internal/metadata/base.py +685 -0
  1506. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__init__.py +6 -0
  1507. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1508. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/_compat.cpython-314.pyc +0 -0
  1509. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/_dists.cpython-314.pyc +0 -0
  1510. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/_envs.cpython-314.pyc +0 -0
  1511. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/_compat.py +87 -0
  1512. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/_dists.py +229 -0
  1513. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/_envs.py +143 -0
  1514. package/lib/python3.14/site-packages/pip/_internal/metadata/pkg_resources.py +298 -0
  1515. package/lib/python3.14/site-packages/pip/_internal/models/__init__.py +1 -0
  1516. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/__init__.cpython-314.pyc +0 -0
  1517. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/candidate.cpython-314.pyc +0 -0
  1518. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/direct_url.cpython-314.pyc +0 -0
  1519. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/format_control.cpython-314.pyc +0 -0
  1520. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/index.cpython-314.pyc +0 -0
  1521. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/installation_report.cpython-314.pyc +0 -0
  1522. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/link.cpython-314.pyc +0 -0
  1523. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/pylock.cpython-314.pyc +0 -0
  1524. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/scheme.cpython-314.pyc +0 -0
  1525. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/search_scope.cpython-314.pyc +0 -0
  1526. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/selection_prefs.cpython-314.pyc +0 -0
  1527. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/target_python.cpython-314.pyc +0 -0
  1528. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/wheel.cpython-314.pyc +0 -0
  1529. package/lib/python3.14/site-packages/pip/_internal/models/candidate.py +25 -0
  1530. package/lib/python3.14/site-packages/pip/_internal/models/direct_url.py +227 -0
  1531. package/lib/python3.14/site-packages/pip/_internal/models/format_control.py +78 -0
  1532. package/lib/python3.14/site-packages/pip/_internal/models/index.py +28 -0
  1533. package/lib/python3.14/site-packages/pip/_internal/models/installation_report.py +57 -0
  1534. package/lib/python3.14/site-packages/pip/_internal/models/link.py +613 -0
  1535. package/lib/python3.14/site-packages/pip/_internal/models/pylock.py +188 -0
  1536. package/lib/python3.14/site-packages/pip/_internal/models/scheme.py +25 -0
  1537. package/lib/python3.14/site-packages/pip/_internal/models/search_scope.py +126 -0
  1538. package/lib/python3.14/site-packages/pip/_internal/models/selection_prefs.py +53 -0
  1539. package/lib/python3.14/site-packages/pip/_internal/models/target_python.py +122 -0
  1540. package/lib/python3.14/site-packages/pip/_internal/models/wheel.py +80 -0
  1541. package/lib/python3.14/site-packages/pip/_internal/network/__init__.py +1 -0
  1542. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/__init__.cpython-314.pyc +0 -0
  1543. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/auth.cpython-314.pyc +0 -0
  1544. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/cache.cpython-314.pyc +0 -0
  1545. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/download.cpython-314.pyc +0 -0
  1546. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/lazy_wheel.cpython-314.pyc +0 -0
  1547. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/session.cpython-314.pyc +0 -0
  1548. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/utils.cpython-314.pyc +0 -0
  1549. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/xmlrpc.cpython-314.pyc +0 -0
  1550. package/lib/python3.14/site-packages/pip/_internal/network/auth.py +564 -0
  1551. package/lib/python3.14/site-packages/pip/_internal/network/cache.py +128 -0
  1552. package/lib/python3.14/site-packages/pip/_internal/network/download.py +342 -0
  1553. package/lib/python3.14/site-packages/pip/_internal/network/lazy_wheel.py +215 -0
  1554. package/lib/python3.14/site-packages/pip/_internal/network/session.py +528 -0
  1555. package/lib/python3.14/site-packages/pip/_internal/network/utils.py +98 -0
  1556. package/lib/python3.14/site-packages/pip/_internal/network/xmlrpc.py +61 -0
  1557. package/lib/python3.14/site-packages/pip/_internal/operations/__init__.py +0 -0
  1558. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/__init__.cpython-314.pyc +0 -0
  1559. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/check.cpython-314.pyc +0 -0
  1560. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/freeze.cpython-314.pyc +0 -0
  1561. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/prepare.cpython-314.pyc +0 -0
  1562. package/lib/python3.14/site-packages/pip/_internal/operations/build/__init__.py +0 -0
  1563. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/__init__.cpython-314.pyc +0 -0
  1564. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/build_tracker.cpython-314.pyc +0 -0
  1565. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/metadata.cpython-314.pyc +0 -0
  1566. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/metadata_editable.cpython-314.pyc +0 -0
  1567. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/wheel.cpython-314.pyc +0 -0
  1568. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-314.pyc +0 -0
  1569. package/lib/python3.14/site-packages/pip/_internal/operations/build/build_tracker.py +140 -0
  1570. package/lib/python3.14/site-packages/pip/_internal/operations/build/metadata.py +38 -0
  1571. package/lib/python3.14/site-packages/pip/_internal/operations/build/metadata_editable.py +41 -0
  1572. package/lib/python3.14/site-packages/pip/_internal/operations/build/wheel.py +38 -0
  1573. package/lib/python3.14/site-packages/pip/_internal/operations/build/wheel_editable.py +47 -0
  1574. package/lib/python3.14/site-packages/pip/_internal/operations/check.py +175 -0
  1575. package/lib/python3.14/site-packages/pip/_internal/operations/freeze.py +259 -0
  1576. package/lib/python3.14/site-packages/pip/_internal/operations/install/__init__.py +1 -0
  1577. package/lib/python3.14/site-packages/pip/_internal/operations/install/__pycache__/__init__.cpython-314.pyc +0 -0
  1578. package/lib/python3.14/site-packages/pip/_internal/operations/install/__pycache__/wheel.cpython-314.pyc +0 -0
  1579. package/lib/python3.14/site-packages/pip/_internal/operations/install/wheel.py +746 -0
  1580. package/lib/python3.14/site-packages/pip/_internal/operations/prepare.py +748 -0
  1581. package/lib/python3.14/site-packages/pip/_internal/pyproject.py +123 -0
  1582. package/lib/python3.14/site-packages/pip/_internal/req/__init__.py +103 -0
  1583. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/__init__.cpython-314.pyc +0 -0
  1584. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/constructors.cpython-314.pyc +0 -0
  1585. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_dependency_group.cpython-314.pyc +0 -0
  1586. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_file.cpython-314.pyc +0 -0
  1587. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_install.cpython-314.pyc +0 -0
  1588. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_set.cpython-314.pyc +0 -0
  1589. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_uninstall.cpython-314.pyc +0 -0
  1590. package/lib/python3.14/site-packages/pip/_internal/req/constructors.py +566 -0
  1591. package/lib/python3.14/site-packages/pip/_internal/req/req_dependency_group.py +75 -0
  1592. package/lib/python3.14/site-packages/pip/_internal/req/req_file.py +619 -0
  1593. package/lib/python3.14/site-packages/pip/_internal/req/req_install.py +828 -0
  1594. package/lib/python3.14/site-packages/pip/_internal/req/req_set.py +81 -0
  1595. package/lib/python3.14/site-packages/pip/_internal/req/req_uninstall.py +639 -0
  1596. package/lib/python3.14/site-packages/pip/_internal/resolution/__init__.py +0 -0
  1597. package/lib/python3.14/site-packages/pip/_internal/resolution/__pycache__/__init__.cpython-314.pyc +0 -0
  1598. package/lib/python3.14/site-packages/pip/_internal/resolution/__pycache__/base.cpython-314.pyc +0 -0
  1599. package/lib/python3.14/site-packages/pip/_internal/resolution/base.py +20 -0
  1600. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
  1601. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/__pycache__/__init__.cpython-314.pyc +0 -0
  1602. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/__pycache__/resolver.cpython-314.pyc +0 -0
  1603. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/resolver.py +598 -0
  1604. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
  1605. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/__init__.cpython-314.pyc +0 -0
  1606. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/base.cpython-314.pyc +0 -0
  1607. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/candidates.cpython-314.pyc +0 -0
  1608. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/factory.cpython-314.pyc +0 -0
  1609. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/found_candidates.cpython-314.pyc +0 -0
  1610. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/provider.cpython-314.pyc +0 -0
  1611. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/reporter.cpython-314.pyc +0 -0
  1612. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/requirements.cpython-314.pyc +0 -0
  1613. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/resolver.cpython-314.pyc +0 -0
  1614. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/base.py +142 -0
  1615. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/candidates.py +591 -0
  1616. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/factory.py +845 -0
  1617. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +166 -0
  1618. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/provider.py +285 -0
  1619. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/reporter.py +98 -0
  1620. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/requirements.py +247 -0
  1621. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/resolver.py +332 -0
  1622. package/lib/python3.14/site-packages/pip/_internal/self_outdated_check.py +262 -0
  1623. package/lib/python3.14/site-packages/pip/_internal/utils/__init__.py +0 -0
  1624. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/__init__.cpython-314.pyc +0 -0
  1625. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/_jaraco_text.cpython-314.pyc +0 -0
  1626. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/_log.cpython-314.pyc +0 -0
  1627. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/appdirs.cpython-314.pyc +0 -0
  1628. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/compat.cpython-314.pyc +0 -0
  1629. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/compatibility_tags.cpython-314.pyc +0 -0
  1630. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/datetime.cpython-314.pyc +0 -0
  1631. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/deprecation.cpython-314.pyc +0 -0
  1632. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/direct_url_helpers.cpython-314.pyc +0 -0
  1633. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/egg_link.cpython-314.pyc +0 -0
  1634. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/entrypoints.cpython-314.pyc +0 -0
  1635. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/filesystem.cpython-314.pyc +0 -0
  1636. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/filetypes.cpython-314.pyc +0 -0
  1637. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/glibc.cpython-314.pyc +0 -0
  1638. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/hashes.cpython-314.pyc +0 -0
  1639. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/logging.cpython-314.pyc +0 -0
  1640. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/misc.cpython-314.pyc +0 -0
  1641. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/packaging.cpython-314.pyc +0 -0
  1642. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/retry.cpython-314.pyc +0 -0
  1643. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/subprocess.cpython-314.pyc +0 -0
  1644. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/temp_dir.cpython-314.pyc +0 -0
  1645. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/unpacking.cpython-314.pyc +0 -0
  1646. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/urls.cpython-314.pyc +0 -0
  1647. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/virtualenv.cpython-314.pyc +0 -0
  1648. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/wheel.cpython-314.pyc +0 -0
  1649. package/lib/python3.14/site-packages/pip/_internal/utils/_jaraco_text.py +109 -0
  1650. package/lib/python3.14/site-packages/pip/_internal/utils/_log.py +38 -0
  1651. package/lib/python3.14/site-packages/pip/_internal/utils/appdirs.py +52 -0
  1652. package/lib/python3.14/site-packages/pip/_internal/utils/compat.py +85 -0
  1653. package/lib/python3.14/site-packages/pip/_internal/utils/compatibility_tags.py +201 -0
  1654. package/lib/python3.14/site-packages/pip/_internal/utils/datetime.py +10 -0
  1655. package/lib/python3.14/site-packages/pip/_internal/utils/deprecation.py +126 -0
  1656. package/lib/python3.14/site-packages/pip/_internal/utils/direct_url_helpers.py +87 -0
  1657. package/lib/python3.14/site-packages/pip/_internal/utils/egg_link.py +81 -0
  1658. package/lib/python3.14/site-packages/pip/_internal/utils/entrypoints.py +88 -0
  1659. package/lib/python3.14/site-packages/pip/_internal/utils/filesystem.py +164 -0
  1660. package/lib/python3.14/site-packages/pip/_internal/utils/filetypes.py +24 -0
  1661. package/lib/python3.14/site-packages/pip/_internal/utils/glibc.py +102 -0
  1662. package/lib/python3.14/site-packages/pip/_internal/utils/hashes.py +150 -0
  1663. package/lib/python3.14/site-packages/pip/_internal/utils/logging.py +364 -0
  1664. package/lib/python3.14/site-packages/pip/_internal/utils/misc.py +765 -0
  1665. package/lib/python3.14/site-packages/pip/_internal/utils/packaging.py +44 -0
  1666. package/lib/python3.14/site-packages/pip/_internal/utils/retry.py +45 -0
  1667. package/lib/python3.14/site-packages/pip/_internal/utils/subprocess.py +248 -0
  1668. package/lib/python3.14/site-packages/pip/_internal/utils/temp_dir.py +294 -0
  1669. package/lib/python3.14/site-packages/pip/_internal/utils/unpacking.py +362 -0
  1670. package/lib/python3.14/site-packages/pip/_internal/utils/urls.py +55 -0
  1671. package/lib/python3.14/site-packages/pip/_internal/utils/virtualenv.py +105 -0
  1672. package/lib/python3.14/site-packages/pip/_internal/utils/wheel.py +132 -0
  1673. package/lib/python3.14/site-packages/pip/_internal/vcs/__init__.py +15 -0
  1674. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/__init__.cpython-314.pyc +0 -0
  1675. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/bazaar.cpython-314.pyc +0 -0
  1676. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/git.cpython-314.pyc +0 -0
  1677. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/mercurial.cpython-314.pyc +0 -0
  1678. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/subversion.cpython-314.pyc +0 -0
  1679. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/versioncontrol.cpython-314.pyc +0 -0
  1680. package/lib/python3.14/site-packages/pip/_internal/vcs/bazaar.py +130 -0
  1681. package/lib/python3.14/site-packages/pip/_internal/vcs/git.py +571 -0
  1682. package/lib/python3.14/site-packages/pip/_internal/vcs/mercurial.py +186 -0
  1683. package/lib/python3.14/site-packages/pip/_internal/vcs/subversion.py +335 -0
  1684. package/lib/python3.14/site-packages/pip/_internal/vcs/versioncontrol.py +693 -0
  1685. package/lib/python3.14/site-packages/pip/_internal/wheel_builder.py +261 -0
  1686. package/lib/python3.14/site-packages/pip/_vendor/README.rst +180 -0
  1687. package/lib/python3.14/site-packages/pip/_vendor/__init__.py +117 -0
  1688. package/lib/python3.14/site-packages/pip/_vendor/__pycache__/__init__.cpython-314.pyc +0 -0
  1689. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
  1690. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__init__.py +29 -0
  1691. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/__init__.cpython-314.pyc +0 -0
  1692. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-314.pyc +0 -0
  1693. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/adapter.cpython-314.pyc +0 -0
  1694. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-314.pyc +0 -0
  1695. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-314.pyc +0 -0
  1696. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-314.pyc +0 -0
  1697. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/heuristics.cpython-314.pyc +0 -0
  1698. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/serialize.cpython-314.pyc +0 -0
  1699. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-314.pyc +0 -0
  1700. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/_cmd.py +70 -0
  1701. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/adapter.py +168 -0
  1702. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/cache.py +75 -0
  1703. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +8 -0
  1704. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/__init__.cpython-314.pyc +0 -0
  1705. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/file_cache.cpython-314.pyc +0 -0
  1706. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/redis_cache.cpython-314.pyc +0 -0
  1707. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +145 -0
  1708. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +48 -0
  1709. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/controller.py +511 -0
  1710. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/filewrapper.py +119 -0
  1711. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/heuristics.py +157 -0
  1712. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
  1713. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/serialize.py +146 -0
  1714. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/wrapper.py +43 -0
  1715. package/lib/python3.14/site-packages/pip/_vendor/certifi/LICENSE +20 -0
  1716. package/lib/python3.14/site-packages/pip/_vendor/certifi/__init__.py +4 -0
  1717. package/lib/python3.14/site-packages/pip/_vendor/certifi/__main__.py +12 -0
  1718. package/lib/python3.14/site-packages/pip/_vendor/certifi/__pycache__/__init__.cpython-314.pyc +0 -0
  1719. package/lib/python3.14/site-packages/pip/_vendor/certifi/__pycache__/__main__.cpython-314.pyc +0 -0
  1720. package/lib/python3.14/site-packages/pip/_vendor/certifi/__pycache__/core.cpython-314.pyc +0 -0
  1721. package/lib/python3.14/site-packages/pip/_vendor/certifi/cacert.pem +4800 -0
  1722. package/lib/python3.14/site-packages/pip/_vendor/certifi/core.py +83 -0
  1723. package/lib/python3.14/site-packages/pip/_vendor/certifi/py.typed +0 -0
  1724. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/LICENSE.txt +9 -0
  1725. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__init__.py +13 -0
  1726. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__main__.py +65 -0
  1727. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/__init__.cpython-314.pyc +0 -0
  1728. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/__main__.cpython-314.pyc +0 -0
  1729. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_implementation.cpython-314.pyc +0 -0
  1730. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_lint_dependency_groups.cpython-314.pyc +0 -0
  1731. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_pip_wrapper.cpython-314.pyc +0 -0
  1732. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_toml_compat.cpython-314.pyc +0 -0
  1733. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_implementation.py +209 -0
  1734. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_lint_dependency_groups.py +59 -0
  1735. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_pip_wrapper.py +62 -0
  1736. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_toml_compat.py +9 -0
  1737. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/py.typed +0 -0
  1738. package/lib/python3.14/site-packages/pip/_vendor/distlib/LICENSE.txt +284 -0
  1739. package/lib/python3.14/site-packages/pip/_vendor/distlib/__init__.py +33 -0
  1740. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1741. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-314.pyc +0 -0
  1742. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-314.pyc +0 -0
  1743. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-314.pyc +0 -0
  1744. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-314.pyc +0 -0
  1745. package/lib/python3.14/site-packages/pip/_vendor/distlib/compat.py +1137 -0
  1746. package/lib/python3.14/site-packages/pip/_vendor/distlib/resources.py +358 -0
  1747. package/lib/python3.14/site-packages/pip/_vendor/distlib/scripts.py +447 -0
  1748. package/lib/python3.14/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  1749. package/lib/python3.14/site-packages/pip/_vendor/distlib/t64-arm.exe +0 -0
  1750. package/lib/python3.14/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  1751. package/lib/python3.14/site-packages/pip/_vendor/distlib/util.py +1984 -0
  1752. package/lib/python3.14/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  1753. package/lib/python3.14/site-packages/pip/_vendor/distlib/w64-arm.exe +0 -0
  1754. package/lib/python3.14/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  1755. package/lib/python3.14/site-packages/pip/_vendor/distro/LICENSE +202 -0
  1756. package/lib/python3.14/site-packages/pip/_vendor/distro/__init__.py +54 -0
  1757. package/lib/python3.14/site-packages/pip/_vendor/distro/__main__.py +4 -0
  1758. package/lib/python3.14/site-packages/pip/_vendor/distro/__pycache__/__init__.cpython-314.pyc +0 -0
  1759. package/lib/python3.14/site-packages/pip/_vendor/distro/__pycache__/__main__.cpython-314.pyc +0 -0
  1760. package/lib/python3.14/site-packages/pip/_vendor/distro/__pycache__/distro.cpython-314.pyc +0 -0
  1761. package/lib/python3.14/site-packages/pip/_vendor/distro/distro.py +1403 -0
  1762. package/lib/python3.14/site-packages/pip/_vendor/distro/py.typed +0 -0
  1763. package/lib/python3.14/site-packages/pip/_vendor/idna/LICENSE.md +31 -0
  1764. package/lib/python3.14/site-packages/pip/_vendor/idna/__init__.py +45 -0
  1765. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/__init__.cpython-314.pyc +0 -0
  1766. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-314.pyc +0 -0
  1767. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/compat.cpython-314.pyc +0 -0
  1768. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/core.cpython-314.pyc +0 -0
  1769. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/idnadata.cpython-314.pyc +0 -0
  1770. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/intranges.cpython-314.pyc +0 -0
  1771. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/package_data.cpython-314.pyc +0 -0
  1772. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/uts46data.cpython-314.pyc +0 -0
  1773. package/lib/python3.14/site-packages/pip/_vendor/idna/codec.py +122 -0
  1774. package/lib/python3.14/site-packages/pip/_vendor/idna/compat.py +15 -0
  1775. package/lib/python3.14/site-packages/pip/_vendor/idna/core.py +437 -0
  1776. package/lib/python3.14/site-packages/pip/_vendor/idna/idnadata.py +4243 -0
  1777. package/lib/python3.14/site-packages/pip/_vendor/idna/intranges.py +57 -0
  1778. package/lib/python3.14/site-packages/pip/_vendor/idna/package_data.py +1 -0
  1779. package/lib/python3.14/site-packages/pip/_vendor/idna/py.typed +0 -0
  1780. package/lib/python3.14/site-packages/pip/_vendor/idna/uts46data.py +8681 -0
  1781. package/lib/python3.14/site-packages/pip/_vendor/msgpack/COPYING +14 -0
  1782. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__init__.py +55 -0
  1783. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/__init__.cpython-314.pyc +0 -0
  1784. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/exceptions.cpython-314.pyc +0 -0
  1785. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/ext.cpython-314.pyc +0 -0
  1786. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/fallback.cpython-314.pyc +0 -0
  1787. package/lib/python3.14/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
  1788. package/lib/python3.14/site-packages/pip/_vendor/msgpack/ext.py +170 -0
  1789. package/lib/python3.14/site-packages/pip/_vendor/msgpack/fallback.py +929 -0
  1790. package/lib/python3.14/site-packages/pip/_vendor/packaging/LICENSE +3 -0
  1791. package/lib/python3.14/site-packages/pip/_vendor/packaging/LICENSE.APACHE +177 -0
  1792. package/lib/python3.14/site-packages/pip/_vendor/packaging/LICENSE.BSD +23 -0
  1793. package/lib/python3.14/site-packages/pip/_vendor/packaging/__init__.py +15 -0
  1794. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/__init__.cpython-314.pyc +0 -0
  1795. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_elffile.cpython-314.pyc +0 -0
  1796. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_manylinux.cpython-314.pyc +0 -0
  1797. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_musllinux.cpython-314.pyc +0 -0
  1798. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_parser.cpython-314.pyc +0 -0
  1799. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_structures.cpython-314.pyc +0 -0
  1800. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_tokenizer.cpython-314.pyc +0 -0
  1801. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/markers.cpython-314.pyc +0 -0
  1802. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/metadata.cpython-314.pyc +0 -0
  1803. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/requirements.cpython-314.pyc +0 -0
  1804. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/specifiers.cpython-314.pyc +0 -0
  1805. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/tags.cpython-314.pyc +0 -0
  1806. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/utils.cpython-314.pyc +0 -0
  1807. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/version.cpython-314.pyc +0 -0
  1808. package/lib/python3.14/site-packages/pip/_vendor/packaging/_elffile.py +109 -0
  1809. package/lib/python3.14/site-packages/pip/_vendor/packaging/_manylinux.py +262 -0
  1810. package/lib/python3.14/site-packages/pip/_vendor/packaging/_musllinux.py +85 -0
  1811. package/lib/python3.14/site-packages/pip/_vendor/packaging/_parser.py +353 -0
  1812. package/lib/python3.14/site-packages/pip/_vendor/packaging/_structures.py +61 -0
  1813. package/lib/python3.14/site-packages/pip/_vendor/packaging/_tokenizer.py +195 -0
  1814. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/__init__.py +145 -0
  1815. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/__pycache__/__init__.cpython-314.pyc +0 -0
  1816. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/__pycache__/_spdx.cpython-314.pyc +0 -0
  1817. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/_spdx.py +759 -0
  1818. package/lib/python3.14/site-packages/pip/_vendor/packaging/markers.py +362 -0
  1819. package/lib/python3.14/site-packages/pip/_vendor/packaging/metadata.py +862 -0
  1820. package/lib/python3.14/site-packages/pip/_vendor/packaging/py.typed +0 -0
  1821. package/lib/python3.14/site-packages/pip/_vendor/packaging/requirements.py +91 -0
  1822. package/lib/python3.14/site-packages/pip/_vendor/packaging/specifiers.py +1019 -0
  1823. package/lib/python3.14/site-packages/pip/_vendor/packaging/tags.py +656 -0
  1824. package/lib/python3.14/site-packages/pip/_vendor/packaging/utils.py +163 -0
  1825. package/lib/python3.14/site-packages/pip/_vendor/packaging/version.py +582 -0
  1826. package/lib/python3.14/site-packages/pip/_vendor/pkg_resources/LICENSE +17 -0
  1827. package/lib/python3.14/site-packages/pip/_vendor/pkg_resources/__init__.py +3676 -0
  1828. package/lib/python3.14/site-packages/pip/_vendor/pkg_resources/__pycache__/__init__.cpython-314.pyc +0 -0
  1829. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/LICENSE +21 -0
  1830. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__init__.py +631 -0
  1831. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__main__.py +55 -0
  1832. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/__init__.cpython-314.pyc +0 -0
  1833. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/__main__.cpython-314.pyc +0 -0
  1834. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/android.cpython-314.pyc +0 -0
  1835. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/api.cpython-314.pyc +0 -0
  1836. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/macos.cpython-314.pyc +0 -0
  1837. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/unix.cpython-314.pyc +0 -0
  1838. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/version.cpython-314.pyc +0 -0
  1839. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/windows.cpython-314.pyc +0 -0
  1840. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/android.py +249 -0
  1841. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/api.py +299 -0
  1842. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/macos.py +146 -0
  1843. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
  1844. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/unix.py +272 -0
  1845. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/version.py +34 -0
  1846. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/windows.py +272 -0
  1847. package/lib/python3.14/site-packages/pip/_vendor/pygments/LICENSE +25 -0
  1848. package/lib/python3.14/site-packages/pip/_vendor/pygments/__init__.py +82 -0
  1849. package/lib/python3.14/site-packages/pip/_vendor/pygments/__main__.py +17 -0
  1850. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/__init__.cpython-314.pyc +0 -0
  1851. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/__main__.cpython-314.pyc +0 -0
  1852. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/console.cpython-314.pyc +0 -0
  1853. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/filter.cpython-314.pyc +0 -0
  1854. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/formatter.cpython-314.pyc +0 -0
  1855. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/lexer.cpython-314.pyc +0 -0
  1856. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/modeline.cpython-314.pyc +0 -0
  1857. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/plugin.cpython-314.pyc +0 -0
  1858. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/regexopt.cpython-314.pyc +0 -0
  1859. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/scanner.cpython-314.pyc +0 -0
  1860. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/sphinxext.cpython-314.pyc +0 -0
  1861. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/style.cpython-314.pyc +0 -0
  1862. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/token.cpython-314.pyc +0 -0
  1863. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/unistring.cpython-314.pyc +0 -0
  1864. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/util.cpython-314.pyc +0 -0
  1865. package/lib/python3.14/site-packages/pip/_vendor/pygments/console.py +70 -0
  1866. package/lib/python3.14/site-packages/pip/_vendor/pygments/filter.py +70 -0
  1867. package/lib/python3.14/site-packages/pip/_vendor/pygments/filters/__init__.py +940 -0
  1868. package/lib/python3.14/site-packages/pip/_vendor/pygments/filters/__pycache__/__init__.cpython-314.pyc +0 -0
  1869. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatter.py +129 -0
  1870. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/__init__.py +157 -0
  1871. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/__pycache__/__init__.cpython-314.pyc +0 -0
  1872. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/__pycache__/_mapping.cpython-314.pyc +0 -0
  1873. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/_mapping.py +23 -0
  1874. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexer.py +963 -0
  1875. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__init__.py +362 -0
  1876. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__pycache__/__init__.cpython-314.pyc +0 -0
  1877. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__pycache__/_mapping.cpython-314.pyc +0 -0
  1878. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__pycache__/python.cpython-314.pyc +0 -0
  1879. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/_mapping.py +602 -0
  1880. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/python.py +1201 -0
  1881. package/lib/python3.14/site-packages/pip/_vendor/pygments/modeline.py +43 -0
  1882. package/lib/python3.14/site-packages/pip/_vendor/pygments/plugin.py +72 -0
  1883. package/lib/python3.14/site-packages/pip/_vendor/pygments/regexopt.py +91 -0
  1884. package/lib/python3.14/site-packages/pip/_vendor/pygments/scanner.py +104 -0
  1885. package/lib/python3.14/site-packages/pip/_vendor/pygments/sphinxext.py +247 -0
  1886. package/lib/python3.14/site-packages/pip/_vendor/pygments/style.py +203 -0
  1887. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/__init__.py +61 -0
  1888. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/__pycache__/__init__.cpython-314.pyc +0 -0
  1889. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/__pycache__/_mapping.cpython-314.pyc +0 -0
  1890. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/_mapping.py +54 -0
  1891. package/lib/python3.14/site-packages/pip/_vendor/pygments/token.py +214 -0
  1892. package/lib/python3.14/site-packages/pip/_vendor/pygments/unistring.py +153 -0
  1893. package/lib/python3.14/site-packages/pip/_vendor/pygments/util.py +324 -0
  1894. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/LICENSE +21 -0
  1895. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/__init__.py +31 -0
  1896. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  1897. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/__pycache__/_impl.cpython-314.pyc +0 -0
  1898. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_impl.py +410 -0
  1899. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/__init__.py +21 -0
  1900. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/__init__.cpython-314.pyc +0 -0
  1901. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/_in_process.cpython-314.pyc +0 -0
  1902. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +389 -0
  1903. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/py.typed +0 -0
  1904. package/lib/python3.14/site-packages/pip/_vendor/requests/LICENSE +175 -0
  1905. package/lib/python3.14/site-packages/pip/_vendor/requests/__init__.py +179 -0
  1906. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/__init__.cpython-314.pyc +0 -0
  1907. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/__version__.cpython-314.pyc +0 -0
  1908. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/_internal_utils.cpython-314.pyc +0 -0
  1909. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/adapters.cpython-314.pyc +0 -0
  1910. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/api.cpython-314.pyc +0 -0
  1911. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/auth.cpython-314.pyc +0 -0
  1912. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/certs.cpython-314.pyc +0 -0
  1913. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/compat.cpython-314.pyc +0 -0
  1914. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/cookies.cpython-314.pyc +0 -0
  1915. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/exceptions.cpython-314.pyc +0 -0
  1916. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/help.cpython-314.pyc +0 -0
  1917. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/hooks.cpython-314.pyc +0 -0
  1918. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/models.cpython-314.pyc +0 -0
  1919. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/packages.cpython-314.pyc +0 -0
  1920. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/sessions.cpython-314.pyc +0 -0
  1921. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/status_codes.cpython-314.pyc +0 -0
  1922. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/structures.cpython-314.pyc +0 -0
  1923. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/utils.cpython-314.pyc +0 -0
  1924. package/lib/python3.14/site-packages/pip/_vendor/requests/__version__.py +14 -0
  1925. package/lib/python3.14/site-packages/pip/_vendor/requests/_internal_utils.py +50 -0
  1926. package/lib/python3.14/site-packages/pip/_vendor/requests/adapters.py +696 -0
  1927. package/lib/python3.14/site-packages/pip/_vendor/requests/api.py +157 -0
  1928. package/lib/python3.14/site-packages/pip/_vendor/requests/auth.py +314 -0
  1929. package/lib/python3.14/site-packages/pip/_vendor/requests/certs.py +17 -0
  1930. package/lib/python3.14/site-packages/pip/_vendor/requests/compat.py +90 -0
  1931. package/lib/python3.14/site-packages/pip/_vendor/requests/cookies.py +561 -0
  1932. package/lib/python3.14/site-packages/pip/_vendor/requests/exceptions.py +151 -0
  1933. package/lib/python3.14/site-packages/pip/_vendor/requests/help.py +127 -0
  1934. package/lib/python3.14/site-packages/pip/_vendor/requests/hooks.py +33 -0
  1935. package/lib/python3.14/site-packages/pip/_vendor/requests/models.py +1039 -0
  1936. package/lib/python3.14/site-packages/pip/_vendor/requests/packages.py +25 -0
  1937. package/lib/python3.14/site-packages/pip/_vendor/requests/sessions.py +831 -0
  1938. package/lib/python3.14/site-packages/pip/_vendor/requests/status_codes.py +128 -0
  1939. package/lib/python3.14/site-packages/pip/_vendor/requests/structures.py +99 -0
  1940. package/lib/python3.14/site-packages/pip/_vendor/requests/utils.py +1086 -0
  1941. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/LICENSE +13 -0
  1942. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__init__.py +27 -0
  1943. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/__init__.cpython-314.pyc +0 -0
  1944. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/providers.cpython-314.pyc +0 -0
  1945. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/reporters.cpython-314.pyc +0 -0
  1946. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/structs.cpython-314.pyc +0 -0
  1947. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/providers.py +196 -0
  1948. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
  1949. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/reporters.py +55 -0
  1950. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__init__.py +27 -0
  1951. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/__init__.cpython-314.pyc +0 -0
  1952. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/abstract.cpython-314.pyc +0 -0
  1953. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/criterion.cpython-314.pyc +0 -0
  1954. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/exceptions.cpython-314.pyc +0 -0
  1955. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/resolution.cpython-314.pyc +0 -0
  1956. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/abstract.py +47 -0
  1957. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/criterion.py +48 -0
  1958. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/exceptions.py +57 -0
  1959. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/resolution.py +627 -0
  1960. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/structs.py +209 -0
  1961. package/lib/python3.14/site-packages/pip/_vendor/rich/LICENSE +19 -0
  1962. package/lib/python3.14/site-packages/pip/_vendor/rich/__init__.py +177 -0
  1963. package/lib/python3.14/site-packages/pip/_vendor/rich/__main__.py +245 -0
  1964. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/__init__.cpython-314.pyc +0 -0
  1965. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/__main__.cpython-314.pyc +0 -0
  1966. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_cell_widths.cpython-314.pyc +0 -0
  1967. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_emoji_codes.cpython-314.pyc +0 -0
  1968. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_emoji_replace.cpython-314.pyc +0 -0
  1969. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_export_format.cpython-314.pyc +0 -0
  1970. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_extension.cpython-314.pyc +0 -0
  1971. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_fileno.cpython-314.pyc +0 -0
  1972. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_inspect.cpython-314.pyc +0 -0
  1973. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_log_render.cpython-314.pyc +0 -0
  1974. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_loop.cpython-314.pyc +0 -0
  1975. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_null_file.cpython-314.pyc +0 -0
  1976. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_palettes.cpython-314.pyc +0 -0
  1977. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_pick.cpython-314.pyc +0 -0
  1978. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_ratio.cpython-314.pyc +0 -0
  1979. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_spinners.cpython-314.pyc +0 -0
  1980. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_stack.cpython-314.pyc +0 -0
  1981. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_timer.cpython-314.pyc +0 -0
  1982. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_win32_console.cpython-314.pyc +0 -0
  1983. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_windows.cpython-314.pyc +0 -0
  1984. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_windows_renderer.cpython-314.pyc +0 -0
  1985. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_wrap.cpython-314.pyc +0 -0
  1986. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/abc.cpython-314.pyc +0 -0
  1987. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/align.cpython-314.pyc +0 -0
  1988. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/ansi.cpython-314.pyc +0 -0
  1989. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/bar.cpython-314.pyc +0 -0
  1990. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/box.cpython-314.pyc +0 -0
  1991. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/cells.cpython-314.pyc +0 -0
  1992. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/color.cpython-314.pyc +0 -0
  1993. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/color_triplet.cpython-314.pyc +0 -0
  1994. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/columns.cpython-314.pyc +0 -0
  1995. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/console.cpython-314.pyc +0 -0
  1996. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/constrain.cpython-314.pyc +0 -0
  1997. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/containers.cpython-314.pyc +0 -0
  1998. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/control.cpython-314.pyc +0 -0
  1999. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/default_styles.cpython-314.pyc +0 -0
  2000. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/diagnose.cpython-314.pyc +0 -0
  2001. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/emoji.cpython-314.pyc +0 -0
  2002. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/errors.cpython-314.pyc +0 -0
  2003. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/file_proxy.cpython-314.pyc +0 -0
  2004. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/filesize.cpython-314.pyc +0 -0
  2005. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/highlighter.cpython-314.pyc +0 -0
  2006. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/json.cpython-314.pyc +0 -0
  2007. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/jupyter.cpython-314.pyc +0 -0
  2008. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/layout.cpython-314.pyc +0 -0
  2009. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/live.cpython-314.pyc +0 -0
  2010. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/live_render.cpython-314.pyc +0 -0
  2011. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/logging.cpython-314.pyc +0 -0
  2012. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/markup.cpython-314.pyc +0 -0
  2013. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/measure.cpython-314.pyc +0 -0
  2014. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/padding.cpython-314.pyc +0 -0
  2015. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/pager.cpython-314.pyc +0 -0
  2016. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/palette.cpython-314.pyc +0 -0
  2017. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/panel.cpython-314.pyc +0 -0
  2018. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/pretty.cpython-314.pyc +0 -0
  2019. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/progress.cpython-314.pyc +0 -0
  2020. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/progress_bar.cpython-314.pyc +0 -0
  2021. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/prompt.cpython-314.pyc +0 -0
  2022. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/protocol.cpython-314.pyc +0 -0
  2023. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/region.cpython-314.pyc +0 -0
  2024. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/repr.cpython-314.pyc +0 -0
  2025. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/rule.cpython-314.pyc +0 -0
  2026. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/scope.cpython-314.pyc +0 -0
  2027. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/screen.cpython-314.pyc +0 -0
  2028. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/segment.cpython-314.pyc +0 -0
  2029. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/spinner.cpython-314.pyc +0 -0
  2030. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/status.cpython-314.pyc +0 -0
  2031. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/style.cpython-314.pyc +0 -0
  2032. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/styled.cpython-314.pyc +0 -0
  2033. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/syntax.cpython-314.pyc +0 -0
  2034. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/table.cpython-314.pyc +0 -0
  2035. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/terminal_theme.cpython-314.pyc +0 -0
  2036. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/text.cpython-314.pyc +0 -0
  2037. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/theme.cpython-314.pyc +0 -0
  2038. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/themes.cpython-314.pyc +0 -0
  2039. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/traceback.cpython-314.pyc +0 -0
  2040. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/tree.cpython-314.pyc +0 -0
  2041. package/lib/python3.14/site-packages/pip/_vendor/rich/_cell_widths.py +454 -0
  2042. package/lib/python3.14/site-packages/pip/_vendor/rich/_emoji_codes.py +3610 -0
  2043. package/lib/python3.14/site-packages/pip/_vendor/rich/_emoji_replace.py +32 -0
  2044. package/lib/python3.14/site-packages/pip/_vendor/rich/_export_format.py +76 -0
  2045. package/lib/python3.14/site-packages/pip/_vendor/rich/_extension.py +10 -0
  2046. package/lib/python3.14/site-packages/pip/_vendor/rich/_fileno.py +24 -0
  2047. package/lib/python3.14/site-packages/pip/_vendor/rich/_inspect.py +268 -0
  2048. package/lib/python3.14/site-packages/pip/_vendor/rich/_log_render.py +94 -0
  2049. package/lib/python3.14/site-packages/pip/_vendor/rich/_loop.py +43 -0
  2050. package/lib/python3.14/site-packages/pip/_vendor/rich/_null_file.py +69 -0
  2051. package/lib/python3.14/site-packages/pip/_vendor/rich/_palettes.py +309 -0
  2052. package/lib/python3.14/site-packages/pip/_vendor/rich/_pick.py +17 -0
  2053. package/lib/python3.14/site-packages/pip/_vendor/rich/_ratio.py +153 -0
  2054. package/lib/python3.14/site-packages/pip/_vendor/rich/_spinners.py +482 -0
  2055. package/lib/python3.14/site-packages/pip/_vendor/rich/_stack.py +16 -0
  2056. package/lib/python3.14/site-packages/pip/_vendor/rich/_timer.py +19 -0
  2057. package/lib/python3.14/site-packages/pip/_vendor/rich/_win32_console.py +661 -0
  2058. package/lib/python3.14/site-packages/pip/_vendor/rich/_windows.py +71 -0
  2059. package/lib/python3.14/site-packages/pip/_vendor/rich/_windows_renderer.py +56 -0
  2060. package/lib/python3.14/site-packages/pip/_vendor/rich/_wrap.py +93 -0
  2061. package/lib/python3.14/site-packages/pip/_vendor/rich/abc.py +33 -0
  2062. package/lib/python3.14/site-packages/pip/_vendor/rich/align.py +306 -0
  2063. package/lib/python3.14/site-packages/pip/_vendor/rich/ansi.py +241 -0
  2064. package/lib/python3.14/site-packages/pip/_vendor/rich/bar.py +93 -0
  2065. package/lib/python3.14/site-packages/pip/_vendor/rich/box.py +474 -0
  2066. package/lib/python3.14/site-packages/pip/_vendor/rich/cells.py +174 -0
  2067. package/lib/python3.14/site-packages/pip/_vendor/rich/color.py +621 -0
  2068. package/lib/python3.14/site-packages/pip/_vendor/rich/color_triplet.py +38 -0
  2069. package/lib/python3.14/site-packages/pip/_vendor/rich/columns.py +187 -0
  2070. package/lib/python3.14/site-packages/pip/_vendor/rich/console.py +2680 -0
  2071. package/lib/python3.14/site-packages/pip/_vendor/rich/constrain.py +37 -0
  2072. package/lib/python3.14/site-packages/pip/_vendor/rich/containers.py +167 -0
  2073. package/lib/python3.14/site-packages/pip/_vendor/rich/control.py +219 -0
  2074. package/lib/python3.14/site-packages/pip/_vendor/rich/default_styles.py +193 -0
  2075. package/lib/python3.14/site-packages/pip/_vendor/rich/diagnose.py +39 -0
  2076. package/lib/python3.14/site-packages/pip/_vendor/rich/emoji.py +91 -0
  2077. package/lib/python3.14/site-packages/pip/_vendor/rich/errors.py +34 -0
  2078. package/lib/python3.14/site-packages/pip/_vendor/rich/file_proxy.py +57 -0
  2079. package/lib/python3.14/site-packages/pip/_vendor/rich/filesize.py +88 -0
  2080. package/lib/python3.14/site-packages/pip/_vendor/rich/highlighter.py +232 -0
  2081. package/lib/python3.14/site-packages/pip/_vendor/rich/json.py +139 -0
  2082. package/lib/python3.14/site-packages/pip/_vendor/rich/jupyter.py +101 -0
  2083. package/lib/python3.14/site-packages/pip/_vendor/rich/layout.py +442 -0
  2084. package/lib/python3.14/site-packages/pip/_vendor/rich/live.py +400 -0
  2085. package/lib/python3.14/site-packages/pip/_vendor/rich/live_render.py +106 -0
  2086. package/lib/python3.14/site-packages/pip/_vendor/rich/logging.py +297 -0
  2087. package/lib/python3.14/site-packages/pip/_vendor/rich/markup.py +251 -0
  2088. package/lib/python3.14/site-packages/pip/_vendor/rich/measure.py +151 -0
  2089. package/lib/python3.14/site-packages/pip/_vendor/rich/padding.py +141 -0
  2090. package/lib/python3.14/site-packages/pip/_vendor/rich/pager.py +34 -0
  2091. package/lib/python3.14/site-packages/pip/_vendor/rich/palette.py +100 -0
  2092. package/lib/python3.14/site-packages/pip/_vendor/rich/panel.py +317 -0
  2093. package/lib/python3.14/site-packages/pip/_vendor/rich/pretty.py +1016 -0
  2094. package/lib/python3.14/site-packages/pip/_vendor/rich/progress.py +1715 -0
  2095. package/lib/python3.14/site-packages/pip/_vendor/rich/progress_bar.py +223 -0
  2096. package/lib/python3.14/site-packages/pip/_vendor/rich/prompt.py +400 -0
  2097. package/lib/python3.14/site-packages/pip/_vendor/rich/protocol.py +42 -0
  2098. package/lib/python3.14/site-packages/pip/_vendor/rich/py.typed +0 -0
  2099. package/lib/python3.14/site-packages/pip/_vendor/rich/region.py +10 -0
  2100. package/lib/python3.14/site-packages/pip/_vendor/rich/repr.py +149 -0
  2101. package/lib/python3.14/site-packages/pip/_vendor/rich/rule.py +130 -0
  2102. package/lib/python3.14/site-packages/pip/_vendor/rich/scope.py +86 -0
  2103. package/lib/python3.14/site-packages/pip/_vendor/rich/screen.py +54 -0
  2104. package/lib/python3.14/site-packages/pip/_vendor/rich/segment.py +752 -0
  2105. package/lib/python3.14/site-packages/pip/_vendor/rich/spinner.py +132 -0
  2106. package/lib/python3.14/site-packages/pip/_vendor/rich/status.py +131 -0
  2107. package/lib/python3.14/site-packages/pip/_vendor/rich/style.py +792 -0
  2108. package/lib/python3.14/site-packages/pip/_vendor/rich/styled.py +42 -0
  2109. package/lib/python3.14/site-packages/pip/_vendor/rich/syntax.py +985 -0
  2110. package/lib/python3.14/site-packages/pip/_vendor/rich/table.py +1006 -0
  2111. package/lib/python3.14/site-packages/pip/_vendor/rich/terminal_theme.py +153 -0
  2112. package/lib/python3.14/site-packages/pip/_vendor/rich/text.py +1361 -0
  2113. package/lib/python3.14/site-packages/pip/_vendor/rich/theme.py +115 -0
  2114. package/lib/python3.14/site-packages/pip/_vendor/rich/themes.py +5 -0
  2115. package/lib/python3.14/site-packages/pip/_vendor/rich/traceback.py +899 -0
  2116. package/lib/python3.14/site-packages/pip/_vendor/rich/tree.py +257 -0
  2117. package/lib/python3.14/site-packages/pip/_vendor/tomli/LICENSE +21 -0
  2118. package/lib/python3.14/site-packages/pip/_vendor/tomli/__init__.py +8 -0
  2119. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/__init__.cpython-314.pyc +0 -0
  2120. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/_parser.cpython-314.pyc +0 -0
  2121. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/_re.cpython-314.pyc +0 -0
  2122. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/_types.cpython-314.pyc +0 -0
  2123. package/lib/python3.14/site-packages/pip/_vendor/tomli/_parser.py +777 -0
  2124. package/lib/python3.14/site-packages/pip/_vendor/tomli/_re.py +115 -0
  2125. package/lib/python3.14/site-packages/pip/_vendor/tomli/_types.py +10 -0
  2126. package/lib/python3.14/site-packages/pip/_vendor/tomli/py.typed +1 -0
  2127. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/LICENSE +21 -0
  2128. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/__init__.py +4 -0
  2129. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/__pycache__/__init__.cpython-314.pyc +0 -0
  2130. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/__pycache__/_writer.cpython-314.pyc +0 -0
  2131. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/_writer.py +229 -0
  2132. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/py.typed +1 -0
  2133. package/lib/python3.14/site-packages/pip/_vendor/truststore/LICENSE +21 -0
  2134. package/lib/python3.14/site-packages/pip/_vendor/truststore/__init__.py +36 -0
  2135. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/__init__.cpython-314.pyc +0 -0
  2136. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_api.cpython-314.pyc +0 -0
  2137. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_macos.cpython-314.pyc +0 -0
  2138. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_openssl.cpython-314.pyc +0 -0
  2139. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_ssl_constants.cpython-314.pyc +0 -0
  2140. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_windows.cpython-314.pyc +0 -0
  2141. package/lib/python3.14/site-packages/pip/_vendor/truststore/_api.py +341 -0
  2142. package/lib/python3.14/site-packages/pip/_vendor/truststore/_macos.py +571 -0
  2143. package/lib/python3.14/site-packages/pip/_vendor/truststore/_openssl.py +68 -0
  2144. package/lib/python3.14/site-packages/pip/_vendor/truststore/_ssl_constants.py +31 -0
  2145. package/lib/python3.14/site-packages/pip/_vendor/truststore/_windows.py +567 -0
  2146. package/lib/python3.14/site-packages/pip/_vendor/truststore/py.typed +0 -0
  2147. package/lib/python3.14/site-packages/pip/_vendor/urllib3/LICENSE.txt +21 -0
  2148. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__init__.py +102 -0
  2149. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/__init__.cpython-314.pyc +0 -0
  2150. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/_collections.cpython-314.pyc +0 -0
  2151. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/_version.cpython-314.pyc +0 -0
  2152. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/connection.cpython-314.pyc +0 -0
  2153. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/connectionpool.cpython-314.pyc +0 -0
  2154. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/exceptions.cpython-314.pyc +0 -0
  2155. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/fields.cpython-314.pyc +0 -0
  2156. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/filepost.cpython-314.pyc +0 -0
  2157. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/poolmanager.cpython-314.pyc +0 -0
  2158. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/request.cpython-314.pyc +0 -0
  2159. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/response.cpython-314.pyc +0 -0
  2160. package/lib/python3.14/site-packages/pip/_vendor/urllib3/_collections.py +355 -0
  2161. package/lib/python3.14/site-packages/pip/_vendor/urllib3/_version.py +2 -0
  2162. package/lib/python3.14/site-packages/pip/_vendor/urllib3/connection.py +572 -0
  2163. package/lib/python3.14/site-packages/pip/_vendor/urllib3/connectionpool.py +1140 -0
  2164. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  2165. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/__init__.cpython-314.pyc +0 -0
  2166. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/_appengine_environ.cpython-314.pyc +0 -0
  2167. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/appengine.cpython-314.pyc +0 -0
  2168. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/ntlmpool.cpython-314.pyc +0 -0
  2169. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/pyopenssl.cpython-314.pyc +0 -0
  2170. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/securetransport.cpython-314.pyc +0 -0
  2171. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/socks.cpython-314.pyc +0 -0
  2172. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
  2173. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  2174. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/__init__.cpython-314.pyc +0 -0
  2175. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/bindings.cpython-314.pyc +0 -0
  2176. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/low_level.cpython-314.pyc +0 -0
  2177. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
  2178. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +397 -0
  2179. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
  2180. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +130 -0
  2181. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +518 -0
  2182. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +920 -0
  2183. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
  2184. package/lib/python3.14/site-packages/pip/_vendor/urllib3/exceptions.py +323 -0
  2185. package/lib/python3.14/site-packages/pip/_vendor/urllib3/fields.py +274 -0
  2186. package/lib/python3.14/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
  2187. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
  2188. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/__pycache__/__init__.cpython-314.pyc +0 -0
  2189. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/__pycache__/six.cpython-314.pyc +0 -0
  2190. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  2191. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/__init__.cpython-314.pyc +0 -0
  2192. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/makefile.cpython-314.pyc +0 -0
  2193. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/weakref_finalize.cpython-314.pyc +0 -0
  2194. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
  2195. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py +155 -0
  2196. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/six.py +1076 -0
  2197. package/lib/python3.14/site-packages/pip/_vendor/urllib3/poolmanager.py +540 -0
  2198. package/lib/python3.14/site-packages/pip/_vendor/urllib3/request.py +191 -0
  2199. package/lib/python3.14/site-packages/pip/_vendor/urllib3/response.py +879 -0
  2200. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
  2201. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/__init__.cpython-314.pyc +0 -0
  2202. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/connection.cpython-314.pyc +0 -0
  2203. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/proxy.cpython-314.pyc +0 -0
  2204. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/queue.cpython-314.pyc +0 -0
  2205. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/request.cpython-314.pyc +0 -0
  2206. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/response.cpython-314.pyc +0 -0
  2207. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/retry.cpython-314.pyc +0 -0
  2208. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_.cpython-314.pyc +0 -0
  2209. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_match_hostname.cpython-314.pyc +0 -0
  2210. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/ssltransport.cpython-314.pyc +0 -0
  2211. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/timeout.cpython-314.pyc +0 -0
  2212. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/url.cpython-314.pyc +0 -0
  2213. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/wait.cpython-314.pyc +0 -0
  2214. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/connection.py +149 -0
  2215. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/proxy.py +57 -0
  2216. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
  2217. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/request.py +137 -0
  2218. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
  2219. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/retry.py +622 -0
  2220. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/ssl_.py +504 -0
  2221. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +159 -0
  2222. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
  2223. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/timeout.py +271 -0
  2224. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/url.py +435 -0
  2225. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/wait.py +152 -0
  2226. package/lib/python3.14/site-packages/pip/_vendor/vendor.txt +19 -0
  2227. package/lib/python3.14/site-packages/pip/py.typed +4 -0
  2228. package/lib/python3.14/site-packages/pip-25.3.dist-info/METADATA +111 -0
  2229. package/lib/python3.14/site-packages/pip-25.3.dist-info/RECORD +469 -0
  2230. package/lib/python3.14/site-packages/pip-25.3.dist-info/WHEEL +4 -0
  2231. package/lib/python3.14/site-packages/pip-25.3.dist-info/entry_points.txt +4 -0
  2232. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/AUTHORS.txt +842 -0
  2233. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/LICENSE.txt +20 -0
  2234. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
  2235. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/certifi/LICENSE +20 -0
  2236. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/dependency_groups/LICENSE.txt +9 -0
  2237. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/distlib/LICENSE.txt +284 -0
  2238. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/distro/LICENSE +202 -0
  2239. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/idna/LICENSE.md +31 -0
  2240. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/msgpack/COPYING +14 -0
  2241. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE +3 -0
  2242. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.APACHE +177 -0
  2243. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.BSD +23 -0
  2244. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/pkg_resources/LICENSE +17 -0
  2245. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/platformdirs/LICENSE +21 -0
  2246. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/pygments/LICENSE +25 -0
  2247. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/pyproject_hooks/LICENSE +21 -0
  2248. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/requests/LICENSE +175 -0
  2249. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/resolvelib/LICENSE +13 -0
  2250. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/rich/LICENSE +19 -0
  2251. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/tomli/LICENSE +21 -0
  2252. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/tomli_w/LICENSE +21 -0
  2253. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/truststore/LICENSE +21 -0
  2254. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/urllib3/LICENSE.txt +21 -0
  2255. package/lib/python3.14/site.py +787 -0
  2256. package/lib/python3.14/smtplib.py +1121 -0
  2257. package/lib/python3.14/socket.py +988 -0
  2258. package/lib/python3.14/socketserver.py +863 -0
  2259. package/lib/python3.14/sqlite3/__init__.py +57 -0
  2260. package/lib/python3.14/sqlite3/__main__.py +139 -0
  2261. package/lib/python3.14/sqlite3/__pycache__/__init__.cpython-314.pyc +0 -0
  2262. package/lib/python3.14/sqlite3/__pycache__/__main__.cpython-314.pyc +0 -0
  2263. package/lib/python3.14/sqlite3/__pycache__/dbapi2.cpython-314.pyc +0 -0
  2264. package/lib/python3.14/sqlite3/__pycache__/dump.cpython-314.pyc +0 -0
  2265. package/lib/python3.14/sqlite3/dbapi2.py +96 -0
  2266. package/lib/python3.14/sqlite3/dump.py +113 -0
  2267. package/lib/python3.14/sre_compile.py +7 -0
  2268. package/lib/python3.14/sre_constants.py +7 -0
  2269. package/lib/python3.14/sre_parse.py +7 -0
  2270. package/lib/python3.14/ssl.py +1529 -0
  2271. package/lib/python3.14/stat.py +207 -0
  2272. package/lib/python3.14/statistics.py +1879 -0
  2273. package/lib/python3.14/string/__init__.py +325 -0
  2274. package/lib/python3.14/string/__pycache__/__init__.cpython-314.pyc +0 -0
  2275. package/lib/python3.14/string/__pycache__/templatelib.cpython-314.pyc +0 -0
  2276. package/lib/python3.14/string/templatelib.py +33 -0
  2277. package/lib/python3.14/stringprep.py +272 -0
  2278. package/lib/python3.14/struct.py +15 -0
  2279. package/lib/python3.14/subprocess.py +2198 -0
  2280. package/lib/python3.14/symtable.py +451 -0
  2281. package/lib/python3.14/sysconfig/__init__.py +790 -0
  2282. package/lib/python3.14/sysconfig/__main__.py +276 -0
  2283. package/lib/python3.14/sysconfig/__pycache__/__init__.cpython-314.pyc +0 -0
  2284. package/lib/python3.14/sysconfig/__pycache__/__main__.cpython-314.pyc +0 -0
  2285. package/lib/python3.14/tabnanny.py +338 -0
  2286. package/lib/python3.14/tarfile.py +3136 -0
  2287. package/lib/python3.14/tempfile.py +977 -0
  2288. package/lib/python3.14/textwrap.py +475 -0
  2289. package/lib/python3.14/this.py +28 -0
  2290. package/lib/python3.14/threading.py +1642 -0
  2291. package/lib/python3.14/timeit.py +378 -0
  2292. package/lib/python3.14/tkinter/__init__.py +5005 -0
  2293. package/lib/python3.14/tkinter/__main__.py +7 -0
  2294. package/lib/python3.14/tkinter/__pycache__/__init__.cpython-314.pyc +0 -0
  2295. package/lib/python3.14/tkinter/__pycache__/__main__.cpython-314.pyc +0 -0
  2296. package/lib/python3.14/tkinter/__pycache__/colorchooser.cpython-314.pyc +0 -0
  2297. package/lib/python3.14/tkinter/__pycache__/commondialog.cpython-314.pyc +0 -0
  2298. package/lib/python3.14/tkinter/__pycache__/constants.cpython-314.pyc +0 -0
  2299. package/lib/python3.14/tkinter/__pycache__/dialog.cpython-314.pyc +0 -0
  2300. package/lib/python3.14/tkinter/__pycache__/dnd.cpython-314.pyc +0 -0
  2301. package/lib/python3.14/tkinter/__pycache__/filedialog.cpython-314.pyc +0 -0
  2302. package/lib/python3.14/tkinter/__pycache__/font.cpython-314.pyc +0 -0
  2303. package/lib/python3.14/tkinter/__pycache__/messagebox.cpython-314.pyc +0 -0
  2304. package/lib/python3.14/tkinter/__pycache__/scrolledtext.cpython-314.pyc +0 -0
  2305. package/lib/python3.14/tkinter/__pycache__/simpledialog.cpython-314.pyc +0 -0
  2306. package/lib/python3.14/tkinter/__pycache__/ttk.cpython-314.pyc +0 -0
  2307. package/lib/python3.14/tkinter/colorchooser.py +86 -0
  2308. package/lib/python3.14/tkinter/commondialog.py +53 -0
  2309. package/lib/python3.14/tkinter/constants.py +110 -0
  2310. package/lib/python3.14/tkinter/dialog.py +49 -0
  2311. package/lib/python3.14/tkinter/dnd.py +324 -0
  2312. package/lib/python3.14/tkinter/filedialog.py +492 -0
  2313. package/lib/python3.14/tkinter/font.py +239 -0
  2314. package/lib/python3.14/tkinter/messagebox.py +146 -0
  2315. package/lib/python3.14/tkinter/scrolledtext.py +56 -0
  2316. package/lib/python3.14/tkinter/simpledialog.py +441 -0
  2317. package/lib/python3.14/tkinter/ttk.py +1650 -0
  2318. package/lib/python3.14/token.py +144 -0
  2319. package/lib/python3.14/tokenize.py +598 -0
  2320. package/lib/python3.14/tomllib/__init__.py +10 -0
  2321. package/lib/python3.14/tomllib/__pycache__/__init__.cpython-314.pyc +0 -0
  2322. package/lib/python3.14/tomllib/__pycache__/_parser.cpython-314.pyc +0 -0
  2323. package/lib/python3.14/tomllib/__pycache__/_re.cpython-314.pyc +0 -0
  2324. package/lib/python3.14/tomllib/__pycache__/_types.cpython-314.pyc +0 -0
  2325. package/lib/python3.14/tomllib/_parser.py +753 -0
  2326. package/lib/python3.14/tomllib/_re.py +113 -0
  2327. package/lib/python3.14/tomllib/_types.py +10 -0
  2328. package/lib/python3.14/tomllib/mypy.ini +17 -0
  2329. package/lib/python3.14/trace.py +751 -0
  2330. package/lib/python3.14/traceback.py +1743 -0
  2331. package/lib/python3.14/tracemalloc.py +560 -0
  2332. package/lib/python3.14/tty.py +73 -0
  2333. package/lib/python3.14/turtle.py +4291 -0
  2334. package/lib/python3.14/turtledemo/__init__.py +14 -0
  2335. package/lib/python3.14/turtledemo/__main__.py +399 -0
  2336. package/lib/python3.14/turtledemo/__pycache__/__init__.cpython-314.pyc +0 -0
  2337. package/lib/python3.14/turtledemo/__pycache__/__main__.cpython-314.pyc +0 -0
  2338. package/lib/python3.14/turtledemo/__pycache__/bytedesign.cpython-314.pyc +0 -0
  2339. package/lib/python3.14/turtledemo/__pycache__/chaos.cpython-314.pyc +0 -0
  2340. package/lib/python3.14/turtledemo/__pycache__/clock.cpython-314.pyc +0 -0
  2341. package/lib/python3.14/turtledemo/__pycache__/colormixer.cpython-314.pyc +0 -0
  2342. package/lib/python3.14/turtledemo/__pycache__/forest.cpython-314.pyc +0 -0
  2343. package/lib/python3.14/turtledemo/__pycache__/fractalcurves.cpython-314.pyc +0 -0
  2344. package/lib/python3.14/turtledemo/__pycache__/lindenmayer.cpython-314.pyc +0 -0
  2345. package/lib/python3.14/turtledemo/__pycache__/minimal_hanoi.cpython-314.pyc +0 -0
  2346. package/lib/python3.14/turtledemo/__pycache__/nim.cpython-314.pyc +0 -0
  2347. package/lib/python3.14/turtledemo/__pycache__/paint.cpython-314.pyc +0 -0
  2348. package/lib/python3.14/turtledemo/__pycache__/peace.cpython-314.pyc +0 -0
  2349. package/lib/python3.14/turtledemo/__pycache__/penrose.cpython-314.pyc +0 -0
  2350. package/lib/python3.14/turtledemo/__pycache__/planet_and_moon.cpython-314.pyc +0 -0
  2351. package/lib/python3.14/turtledemo/__pycache__/rosette.cpython-314.pyc +0 -0
  2352. package/lib/python3.14/turtledemo/__pycache__/round_dance.cpython-314.pyc +0 -0
  2353. package/lib/python3.14/turtledemo/__pycache__/sorting_animate.cpython-314.pyc +0 -0
  2354. package/lib/python3.14/turtledemo/__pycache__/tree.cpython-314.pyc +0 -0
  2355. package/lib/python3.14/turtledemo/__pycache__/two_canvases.cpython-314.pyc +0 -0
  2356. package/lib/python3.14/turtledemo/__pycache__/yinyang.cpython-314.pyc +0 -0
  2357. package/lib/python3.14/turtledemo/bytedesign.py +158 -0
  2358. package/lib/python3.14/turtledemo/chaos.py +57 -0
  2359. package/lib/python3.14/turtledemo/clock.py +132 -0
  2360. package/lib/python3.14/turtledemo/colormixer.py +57 -0
  2361. package/lib/python3.14/turtledemo/forest.py +104 -0
  2362. package/lib/python3.14/turtledemo/fractalcurves.py +135 -0
  2363. package/lib/python3.14/turtledemo/lindenmayer.py +116 -0
  2364. package/lib/python3.14/turtledemo/minimal_hanoi.py +73 -0
  2365. package/lib/python3.14/turtledemo/nim.py +224 -0
  2366. package/lib/python3.14/turtledemo/paint.py +48 -0
  2367. package/lib/python3.14/turtledemo/peace.py +58 -0
  2368. package/lib/python3.14/turtledemo/penrose.py +172 -0
  2369. package/lib/python3.14/turtledemo/planet_and_moon.py +108 -0
  2370. package/lib/python3.14/turtledemo/rosette.py +63 -0
  2371. package/lib/python3.14/turtledemo/round_dance.py +81 -0
  2372. package/lib/python3.14/turtledemo/sorting_animate.py +198 -0
  2373. package/lib/python3.14/turtledemo/tree.py +59 -0
  2374. package/lib/python3.14/turtledemo/turtle.cfg +10 -0
  2375. package/lib/python3.14/turtledemo/two_canvases.py +54 -0
  2376. package/lib/python3.14/turtledemo/yinyang.py +46 -0
  2377. package/lib/python3.14/types.py +340 -0
  2378. package/lib/python3.14/typing.py +3854 -0
  2379. package/lib/python3.14/unittest/__init__.py +80 -0
  2380. package/lib/python3.14/unittest/__main__.py +18 -0
  2381. package/lib/python3.14/unittest/__pycache__/__init__.cpython-314.pyc +0 -0
  2382. package/lib/python3.14/unittest/__pycache__/__main__.cpython-314.pyc +0 -0
  2383. package/lib/python3.14/unittest/__pycache__/_log.cpython-314.pyc +0 -0
  2384. package/lib/python3.14/unittest/__pycache__/async_case.cpython-314.pyc +0 -0
  2385. package/lib/python3.14/unittest/__pycache__/case.cpython-314.pyc +0 -0
  2386. package/lib/python3.14/unittest/__pycache__/loader.cpython-314.pyc +0 -0
  2387. package/lib/python3.14/unittest/__pycache__/main.cpython-314.pyc +0 -0
  2388. package/lib/python3.14/unittest/__pycache__/mock.cpython-314.pyc +0 -0
  2389. package/lib/python3.14/unittest/__pycache__/result.cpython-314.pyc +0 -0
  2390. package/lib/python3.14/unittest/__pycache__/runner.cpython-314.pyc +0 -0
  2391. package/lib/python3.14/unittest/__pycache__/signals.cpython-314.pyc +0 -0
  2392. package/lib/python3.14/unittest/__pycache__/suite.cpython-314.pyc +0 -0
  2393. package/lib/python3.14/unittest/__pycache__/util.cpython-314.pyc +0 -0
  2394. package/lib/python3.14/unittest/_log.py +86 -0
  2395. package/lib/python3.14/unittest/async_case.py +158 -0
  2396. package/lib/python3.14/unittest/case.py +1628 -0
  2397. package/lib/python3.14/unittest/loader.py +484 -0
  2398. package/lib/python3.14/unittest/main.py +280 -0
  2399. package/lib/python3.14/unittest/mock.py +3197 -0
  2400. package/lib/python3.14/unittest/result.py +259 -0
  2401. package/lib/python3.14/unittest/runner.py +313 -0
  2402. package/lib/python3.14/unittest/signals.py +71 -0
  2403. package/lib/python3.14/unittest/suite.py +379 -0
  2404. package/lib/python3.14/unittest/util.py +170 -0
  2405. package/lib/python3.14/urllib/__init__.py +0 -0
  2406. package/lib/python3.14/urllib/__pycache__/__init__.cpython-314.pyc +0 -0
  2407. package/lib/python3.14/urllib/__pycache__/error.cpython-314.pyc +0 -0
  2408. package/lib/python3.14/urllib/__pycache__/parse.cpython-314.pyc +0 -0
  2409. package/lib/python3.14/urllib/__pycache__/request.cpython-314.pyc +0 -0
  2410. package/lib/python3.14/urllib/__pycache__/response.cpython-314.pyc +0 -0
  2411. package/lib/python3.14/urllib/__pycache__/robotparser.cpython-314.pyc +0 -0
  2412. package/lib/python3.14/urllib/error.py +74 -0
  2413. package/lib/python3.14/urllib/parse.py +1287 -0
  2414. package/lib/python3.14/urllib/request.py +2158 -0
  2415. package/lib/python3.14/urllib/response.py +84 -0
  2416. package/lib/python3.14/urllib/robotparser.py +288 -0
  2417. package/lib/python3.14/uuid.py +1007 -0
  2418. package/lib/python3.14/venv/__init__.py +700 -0
  2419. package/lib/python3.14/venv/__main__.py +10 -0
  2420. package/lib/python3.14/venv/__pycache__/__init__.cpython-314.pyc +0 -0
  2421. package/lib/python3.14/venv/__pycache__/__main__.cpython-314.pyc +0 -0
  2422. package/lib/python3.14/venv/scripts/common/Activate.ps1 +248 -0
  2423. package/lib/python3.14/venv/scripts/common/activate +76 -0
  2424. package/lib/python3.14/venv/scripts/common/activate.fish +69 -0
  2425. package/lib/python3.14/venv/scripts/posix/activate.csh +27 -0
  2426. package/lib/python3.14/warnings.py +99 -0
  2427. package/lib/python3.14/wave.py +665 -0
  2428. package/lib/python3.14/weakref.py +574 -0
  2429. package/lib/python3.14/webbrowser.py +749 -0
  2430. package/lib/python3.14/wsgiref/__init__.py +25 -0
  2431. package/lib/python3.14/wsgiref/__pycache__/__init__.cpython-314.pyc +0 -0
  2432. package/lib/python3.14/wsgiref/__pycache__/handlers.cpython-314.pyc +0 -0
  2433. package/lib/python3.14/wsgiref/__pycache__/headers.cpython-314.pyc +0 -0
  2434. package/lib/python3.14/wsgiref/__pycache__/simple_server.cpython-314.pyc +0 -0
  2435. package/lib/python3.14/wsgiref/__pycache__/types.cpython-314.pyc +0 -0
  2436. package/lib/python3.14/wsgiref/__pycache__/util.cpython-314.pyc +0 -0
  2437. package/lib/python3.14/wsgiref/__pycache__/validate.cpython-314.pyc +0 -0
  2438. package/lib/python3.14/wsgiref/handlers.py +573 -0
  2439. package/lib/python3.14/wsgiref/headers.py +184 -0
  2440. package/lib/python3.14/wsgiref/simple_server.py +161 -0
  2441. package/lib/python3.14/wsgiref/types.py +54 -0
  2442. package/lib/python3.14/wsgiref/util.py +159 -0
  2443. package/lib/python3.14/wsgiref/validate.py +438 -0
  2444. package/lib/python3.14/xml/__init__.py +20 -0
  2445. package/lib/python3.14/xml/__pycache__/__init__.cpython-314.pyc +0 -0
  2446. package/lib/python3.14/xml/dom/NodeFilter.py +27 -0
  2447. package/lib/python3.14/xml/dom/__init__.py +140 -0
  2448. package/lib/python3.14/xml/dom/__pycache__/NodeFilter.cpython-314.pyc +0 -0
  2449. package/lib/python3.14/xml/dom/__pycache__/__init__.cpython-314.pyc +0 -0
  2450. package/lib/python3.14/xml/dom/__pycache__/domreg.cpython-314.pyc +0 -0
  2451. package/lib/python3.14/xml/dom/__pycache__/expatbuilder.cpython-314.pyc +0 -0
  2452. package/lib/python3.14/xml/dom/__pycache__/minicompat.cpython-314.pyc +0 -0
  2453. package/lib/python3.14/xml/dom/__pycache__/minidom.cpython-314.pyc +0 -0
  2454. package/lib/python3.14/xml/dom/__pycache__/pulldom.cpython-314.pyc +0 -0
  2455. package/lib/python3.14/xml/dom/__pycache__/xmlbuilder.cpython-314.pyc +0 -0
  2456. package/lib/python3.14/xml/dom/domreg.py +99 -0
  2457. package/lib/python3.14/xml/dom/expatbuilder.py +962 -0
  2458. package/lib/python3.14/xml/dom/minicompat.py +109 -0
  2459. package/lib/python3.14/xml/dom/minidom.py +2022 -0
  2460. package/lib/python3.14/xml/dom/pulldom.py +336 -0
  2461. package/lib/python3.14/xml/dom/xmlbuilder.py +389 -0
  2462. package/lib/python3.14/xml/etree/ElementInclude.py +186 -0
  2463. package/lib/python3.14/xml/etree/ElementPath.py +423 -0
  2464. package/lib/python3.14/xml/etree/ElementTree.py +2102 -0
  2465. package/lib/python3.14/xml/etree/__init__.py +33 -0
  2466. package/lib/python3.14/xml/etree/__pycache__/ElementInclude.cpython-314.pyc +0 -0
  2467. package/lib/python3.14/xml/etree/__pycache__/ElementPath.cpython-314.pyc +0 -0
  2468. package/lib/python3.14/xml/etree/__pycache__/ElementTree.cpython-314.pyc +0 -0
  2469. package/lib/python3.14/xml/etree/__pycache__/__init__.cpython-314.pyc +0 -0
  2470. package/lib/python3.14/xml/etree/__pycache__/cElementTree.cpython-314.pyc +0 -0
  2471. package/lib/python3.14/xml/etree/cElementTree.py +3 -0
  2472. package/lib/python3.14/xml/parsers/__init__.py +8 -0
  2473. package/lib/python3.14/xml/parsers/__pycache__/__init__.cpython-314.pyc +0 -0
  2474. package/lib/python3.14/xml/parsers/__pycache__/expat.cpython-314.pyc +0 -0
  2475. package/lib/python3.14/xml/parsers/expat.py +8 -0
  2476. package/lib/python3.14/xml/sax/__init__.py +100 -0
  2477. package/lib/python3.14/xml/sax/__pycache__/__init__.cpython-314.pyc +0 -0
  2478. package/lib/python3.14/xml/sax/__pycache__/_exceptions.cpython-314.pyc +0 -0
  2479. package/lib/python3.14/xml/sax/__pycache__/expatreader.cpython-314.pyc +0 -0
  2480. package/lib/python3.14/xml/sax/__pycache__/handler.cpython-314.pyc +0 -0
  2481. package/lib/python3.14/xml/sax/__pycache__/saxutils.cpython-314.pyc +0 -0
  2482. package/lib/python3.14/xml/sax/__pycache__/xmlreader.cpython-314.pyc +0 -0
  2483. package/lib/python3.14/xml/sax/_exceptions.py +127 -0
  2484. package/lib/python3.14/xml/sax/expatreader.py +454 -0
  2485. package/lib/python3.14/xml/sax/handler.py +387 -0
  2486. package/lib/python3.14/xml/sax/saxutils.py +369 -0
  2487. package/lib/python3.14/xml/sax/xmlreader.py +378 -0
  2488. package/lib/python3.14/xmlrpc/__init__.py +1 -0
  2489. package/lib/python3.14/xmlrpc/__pycache__/__init__.cpython-314.pyc +0 -0
  2490. package/lib/python3.14/xmlrpc/__pycache__/client.cpython-314.pyc +0 -0
  2491. package/lib/python3.14/xmlrpc/__pycache__/server.cpython-314.pyc +0 -0
  2492. package/lib/python3.14/xmlrpc/client.py +1503 -0
  2493. package/lib/python3.14/xmlrpc/server.py +1003 -0
  2494. package/lib/python3.14/zipapp.py +231 -0
  2495. package/lib/python3.14/zipfile/__init__.py +2435 -0
  2496. package/lib/python3.14/zipfile/__main__.py +4 -0
  2497. package/lib/python3.14/zipfile/__pycache__/__init__.cpython-314.pyc +0 -0
  2498. package/lib/python3.14/zipfile/__pycache__/__main__.cpython-314.pyc +0 -0
  2499. package/lib/python3.14/zipfile/_path/__init__.py +452 -0
  2500. package/lib/python3.14/zipfile/_path/__pycache__/__init__.cpython-314.pyc +0 -0
  2501. package/lib/python3.14/zipfile/_path/__pycache__/glob.cpython-314.pyc +0 -0
  2502. package/lib/python3.14/zipfile/_path/glob.py +113 -0
  2503. package/lib/python3.14/zipimport.py +822 -0
  2504. package/lib/python3.14/zoneinfo/__init__.py +34 -0
  2505. package/lib/python3.14/zoneinfo/__pycache__/__init__.cpython-314.pyc +0 -0
  2506. package/lib/python3.14/zoneinfo/__pycache__/_common.cpython-314.pyc +0 -0
  2507. package/lib/python3.14/zoneinfo/__pycache__/_tzpath.cpython-314.pyc +0 -0
  2508. package/lib/python3.14/zoneinfo/__pycache__/_zoneinfo.cpython-314.pyc +0 -0
  2509. package/lib/python3.14/zoneinfo/_common.py +169 -0
  2510. package/lib/python3.14/zoneinfo/_tzpath.py +189 -0
  2511. package/lib/python3.14/zoneinfo/_zoneinfo.py +772 -0
  2512. package/package.json +62 -0
@@ -0,0 +1,3660 @@
1
+ """
2
+ The Python Debugger Pdb
3
+ =======================
4
+
5
+ To use the debugger in its simplest form:
6
+
7
+ >>> import pdb
8
+ >>> pdb.run('<a statement>')
9
+
10
+ The debugger's prompt is '(Pdb) '. This will stop in the first
11
+ function call in <a statement>.
12
+
13
+ Alternatively, if a statement terminated with an unhandled exception,
14
+ you can use pdb's post-mortem facility to inspect the contents of the
15
+ traceback:
16
+
17
+ >>> <a statement>
18
+ <exception traceback>
19
+ >>> import pdb
20
+ >>> pdb.pm()
21
+
22
+ The commands recognized by the debugger are listed in the next
23
+ section. Most can be abbreviated as indicated; e.g., h(elp) means
24
+ that 'help' can be typed as 'h' or 'help' (but not as 'he' or 'hel',
25
+ nor as 'H' or 'Help' or 'HELP'). Optional arguments are enclosed in
26
+ square brackets. Alternatives in the command syntax are separated
27
+ by a vertical bar (|).
28
+
29
+ A blank line repeats the previous command literally, except for
30
+ 'list', where it lists the next 11 lines.
31
+
32
+ Commands that the debugger doesn't recognize are assumed to be Python
33
+ statements and are executed in the context of the program being
34
+ debugged. Python statements can also be prefixed with an exclamation
35
+ point ('!'). This is a powerful way to inspect the program being
36
+ debugged; it is even possible to change variables or call functions.
37
+ When an exception occurs in such a statement, the exception name is
38
+ printed but the debugger's state is not changed.
39
+
40
+ The debugger supports aliases, which can save typing. And aliases can
41
+ have parameters (see the alias help entry) which allows one a certain
42
+ level of adaptability to the context under examination.
43
+
44
+ Multiple commands may be entered on a single line, separated by the
45
+ pair ';;'. No intelligence is applied to separating the commands; the
46
+ input is split at the first ';;', even if it is in the middle of a
47
+ quoted string.
48
+
49
+ If a file ".pdbrc" exists in your home directory or in the current
50
+ directory, it is read in and executed as if it had been typed at the
51
+ debugger prompt. This is particularly useful for aliases. If both
52
+ files exist, the one in the home directory is read first and aliases
53
+ defined there can be overridden by the local file. This behavior can be
54
+ disabled by passing the "readrc=False" argument to the Pdb constructor.
55
+
56
+ Aside from aliases, the debugger is not directly programmable; but it
57
+ is implemented as a class from which you can derive your own debugger
58
+ class, which you can make as fancy as you like.
59
+
60
+
61
+ Debugger commands
62
+ =================
63
+
64
+ """
65
+ # NOTE: the actual command documentation is collected from docstrings of the
66
+ # commands and is appended to __doc__ after the class has been defined.
67
+
68
+ import os
69
+ import io
70
+ import re
71
+ import sys
72
+ import cmd
73
+ import bdb
74
+ import dis
75
+ import code
76
+ import glob
77
+ import json
78
+ import stat
79
+ import token
80
+ import types
81
+ import atexit
82
+ import codeop
83
+ import pprint
84
+ import signal
85
+ import socket
86
+ import typing
87
+ import asyncio
88
+ import inspect
89
+ import weakref
90
+ import builtins
91
+ import tempfile
92
+ import textwrap
93
+ import tokenize
94
+ import itertools
95
+ import traceback
96
+ import linecache
97
+ import selectors
98
+ import threading
99
+ import _colorize
100
+ import _pyrepl.utils
101
+
102
+ from contextlib import ExitStack, closing, contextmanager
103
+ from types import CodeType
104
+ from warnings import deprecated
105
+
106
+
107
+ class Restart(Exception):
108
+ """Causes a debugger to be restarted for the debugged python program."""
109
+ pass
110
+
111
+ __all__ = ["run", "pm", "Pdb", "runeval", "runctx", "runcall", "set_trace",
112
+ "post_mortem", "set_default_backend", "get_default_backend", "help"]
113
+
114
+
115
+ def find_first_executable_line(code):
116
+ """ Try to find the first executable line of the code object.
117
+
118
+ Equivalently, find the line number of the instruction that's
119
+ after RESUME
120
+
121
+ Return code.co_firstlineno if no executable line is found.
122
+ """
123
+ prev = None
124
+ for instr in dis.get_instructions(code):
125
+ if prev is not None and prev.opname == 'RESUME':
126
+ if instr.positions.lineno is not None:
127
+ return instr.positions.lineno
128
+ return code.co_firstlineno
129
+ prev = instr
130
+ return code.co_firstlineno
131
+
132
+ def find_function(funcname, filename):
133
+ cre = re.compile(r'def\s+%s(\s*\[.+\])?\s*[(]' % re.escape(funcname))
134
+ try:
135
+ fp = tokenize.open(filename)
136
+ except OSError:
137
+ lines = linecache.getlines(filename)
138
+ if not lines:
139
+ return None
140
+ fp = io.StringIO(''.join(lines))
141
+ funcdef = ""
142
+ funcstart = 0
143
+ # consumer of this info expects the first line to be 1
144
+ with fp:
145
+ for lineno, line in enumerate(fp, start=1):
146
+ if cre.match(line):
147
+ funcstart, funcdef = lineno, line
148
+ elif funcdef:
149
+ funcdef += line
150
+
151
+ if funcdef:
152
+ try:
153
+ code = compile(funcdef, filename, 'exec')
154
+ except SyntaxError:
155
+ continue
156
+ # We should always be able to find the code object here
157
+ funccode = next(c for c in code.co_consts if
158
+ isinstance(c, CodeType) and c.co_name == funcname)
159
+ lineno_offset = find_first_executable_line(funccode)
160
+ return funcname, filename, funcstart + lineno_offset - 1
161
+ return None
162
+
163
+ def lasti2lineno(code, lasti):
164
+ linestarts = list(dis.findlinestarts(code))
165
+ linestarts.reverse()
166
+ for i, lineno in linestarts:
167
+ if lasti >= i:
168
+ return lineno
169
+ return 0
170
+
171
+
172
+ class _rstr(str):
173
+ """String that doesn't quote its repr."""
174
+ def __repr__(self):
175
+ return self
176
+
177
+
178
+ class _ExecutableTarget:
179
+ filename: str
180
+ code: CodeType | str
181
+ namespace: dict
182
+
183
+
184
+ class _ScriptTarget(_ExecutableTarget):
185
+ def __init__(self, target):
186
+ self._target = os.path.realpath(target)
187
+
188
+ if not os.path.exists(self._target):
189
+ print(f'Error: {target} does not exist')
190
+ sys.exit(1)
191
+ if os.path.isdir(self._target):
192
+ print(f'Error: {target} is a directory')
193
+ sys.exit(1)
194
+
195
+ # If safe_path(-P) is not set, sys.path[0] is the directory
196
+ # of pdb, and we should replace it with the directory of the script
197
+ if not sys.flags.safe_path:
198
+ sys.path[0] = os.path.dirname(self._target)
199
+
200
+ def __repr__(self):
201
+ return self._target
202
+
203
+ @property
204
+ def filename(self):
205
+ return self._target
206
+
207
+ @property
208
+ def code(self):
209
+ # Open the file each time because the file may be modified
210
+ with io.open_code(self._target) as fp:
211
+ return f"exec(compile({fp.read()!r}, {self._target!r}, 'exec'))"
212
+
213
+ @property
214
+ def namespace(self):
215
+ return dict(
216
+ __name__='__main__',
217
+ __file__=self._target,
218
+ __builtins__=__builtins__,
219
+ __spec__=None,
220
+ )
221
+
222
+
223
+ class _ModuleTarget(_ExecutableTarget):
224
+ def __init__(self, target):
225
+ self._target = target
226
+
227
+ import runpy
228
+ try:
229
+ _, self._spec, self._code = runpy._get_module_details(self._target)
230
+ except ImportError as e:
231
+ print(f"ImportError: {e}")
232
+ sys.exit(1)
233
+ except Exception:
234
+ traceback.print_exc()
235
+ sys.exit(1)
236
+
237
+ def __repr__(self):
238
+ return self._target
239
+
240
+ @property
241
+ def filename(self):
242
+ return self._code.co_filename
243
+
244
+ @property
245
+ def code(self):
246
+ return self._code
247
+
248
+ @property
249
+ def namespace(self):
250
+ return dict(
251
+ __name__='__main__',
252
+ __file__=os.path.normcase(os.path.abspath(self.filename)),
253
+ __package__=self._spec.parent,
254
+ __loader__=self._spec.loader,
255
+ __spec__=self._spec,
256
+ __builtins__=__builtins__,
257
+ )
258
+
259
+
260
+ class _ZipTarget(_ExecutableTarget):
261
+ def __init__(self, target):
262
+ import runpy
263
+
264
+ self._target = os.path.realpath(target)
265
+ sys.path.insert(0, self._target)
266
+ try:
267
+ _, self._spec, self._code = runpy._get_main_module_details()
268
+ except ImportError as e:
269
+ print(f"ImportError: {e}")
270
+ sys.exit(1)
271
+ except Exception:
272
+ traceback.print_exc()
273
+ sys.exit(1)
274
+
275
+ def __repr__(self):
276
+ return self._target
277
+
278
+ @property
279
+ def filename(self):
280
+ return self._code.co_filename
281
+
282
+ @property
283
+ def code(self):
284
+ return self._code
285
+
286
+ @property
287
+ def namespace(self):
288
+ return dict(
289
+ __name__='__main__',
290
+ __file__=os.path.normcase(os.path.abspath(self.filename)),
291
+ __package__=self._spec.parent,
292
+ __loader__=self._spec.loader,
293
+ __spec__=self._spec,
294
+ __builtins__=__builtins__,
295
+ )
296
+
297
+
298
+ class _PdbInteractiveConsole(code.InteractiveConsole):
299
+ def __init__(self, ns, message):
300
+ self._message = message
301
+ super().__init__(locals=ns, local_exit=True)
302
+
303
+ def write(self, data):
304
+ self._message(data, end='')
305
+
306
+
307
+ # Interaction prompt line will separate file and call info from code
308
+ # text using value of line_prefix string. A newline and arrow may
309
+ # be to your liking. You can set it once pdb is imported using the
310
+ # command "pdb.line_prefix = '\n% '".
311
+ # line_prefix = ': ' # Use this to get the old situation back
312
+ line_prefix = '\n-> ' # Probably a better default
313
+
314
+
315
+ # The default backend to use for Pdb instances if not specified
316
+ # Should be either 'settrace' or 'monitoring'
317
+ _default_backend = 'settrace'
318
+
319
+
320
+ def set_default_backend(backend):
321
+ """Set the default backend to use for Pdb instances."""
322
+ global _default_backend
323
+ if backend not in ('settrace', 'monitoring'):
324
+ raise ValueError("Invalid backend: %s" % backend)
325
+ _default_backend = backend
326
+
327
+
328
+ def get_default_backend():
329
+ """Get the default backend to use for Pdb instances."""
330
+ return _default_backend
331
+
332
+
333
+ class Pdb(bdb.Bdb, cmd.Cmd):
334
+ _previous_sigint_handler = None
335
+
336
+ # Limit the maximum depth of chained exceptions, we should be handling cycles,
337
+ # but in case there are recursions, we stop at 999.
338
+ MAX_CHAINED_EXCEPTION_DEPTH = 999
339
+
340
+ _file_mtime_table = {}
341
+
342
+ _last_pdb_instance = None
343
+
344
+ def __init__(self, completekey='tab', stdin=None, stdout=None, skip=None,
345
+ nosigint=False, readrc=True, mode=None, backend=None, colorize=False):
346
+ bdb.Bdb.__init__(self, skip=skip, backend=backend if backend else get_default_backend())
347
+ cmd.Cmd.__init__(self, completekey, stdin, stdout)
348
+ sys.audit("pdb.Pdb")
349
+ if stdout:
350
+ self.use_rawinput = 0
351
+ self.prompt = '(Pdb) '
352
+ self.aliases = {}
353
+ self.displaying = {}
354
+ self.mainpyfile = ''
355
+ self._wait_for_mainpyfile = False
356
+ self.tb_lineno = {}
357
+ self.mode = mode
358
+ self.colorize = colorize and _colorize.can_colorize(file=stdout or sys.stdout)
359
+ # Try to load readline if it exists
360
+ try:
361
+ import readline
362
+ # remove some common file name delimiters
363
+ readline.set_completer_delims(' \t\n`@#%^&*()=+[{]}\\|;:\'",<>?')
364
+ except ImportError:
365
+ pass
366
+
367
+ self.allow_kbdint = False
368
+ self.nosigint = nosigint
369
+ # Consider these characters as part of the command so when the users type
370
+ # c.a or c['a'], it won't be recognized as a c(ontinue) command
371
+ self.identchars = cmd.Cmd.identchars + '=.[](),"\'+-*/%@&|<>~^'
372
+
373
+ # Read ~/.pdbrc and ./.pdbrc
374
+ self.rcLines = []
375
+ if readrc:
376
+ try:
377
+ with open(os.path.expanduser('~/.pdbrc'), encoding='utf-8') as rcFile:
378
+ self.rcLines.extend(rcFile)
379
+ except OSError:
380
+ pass
381
+ try:
382
+ with open(".pdbrc", encoding='utf-8') as rcFile:
383
+ self.rcLines.extend(rcFile)
384
+ except OSError:
385
+ pass
386
+
387
+ self.commands = {} # associates a command list to breakpoint numbers
388
+ self.commands_defining = False # True while in the process of defining
389
+ # a command list
390
+ self.commands_bnum = None # The breakpoint number for which we are
391
+ # defining a list
392
+
393
+ self.async_shim_frame = None
394
+ self.async_awaitable = None
395
+
396
+ self._chained_exceptions = tuple()
397
+ self._chained_exception_index = 0
398
+
399
+ self._current_task = None
400
+
401
+ def set_trace(self, frame=None, *, commands=None):
402
+ Pdb._last_pdb_instance = self
403
+ if frame is None:
404
+ frame = sys._getframe().f_back
405
+
406
+ if commands is not None:
407
+ self.rcLines.extend(commands)
408
+
409
+ super().set_trace(frame)
410
+
411
+ async def set_trace_async(self, frame=None, *, commands=None):
412
+ if self.async_awaitable is not None:
413
+ # We are already in a set_trace_async call, do not mess with it
414
+ return
415
+
416
+ if frame is None:
417
+ frame = sys._getframe().f_back
418
+
419
+ # We need set_trace to set up the basics, however, this will call
420
+ # set_stepinstr() will we need to compensate for, because we don't
421
+ # want to trigger on calls
422
+ self.set_trace(frame, commands=commands)
423
+ # Changing the stopframe will disable trace dispatch on calls
424
+ self.stopframe = frame
425
+ # We need to stop tracing because we don't have the privilege to avoid
426
+ # triggering tracing functions as normal, as we are not already in
427
+ # tracing functions
428
+ self.stop_trace()
429
+
430
+ self.async_shim_frame = sys._getframe()
431
+ self.async_awaitable = None
432
+
433
+ while True:
434
+ self.async_awaitable = None
435
+ # Simulate a trace event
436
+ # This should bring up pdb and make pdb believe it's debugging the
437
+ # caller frame
438
+ self.trace_dispatch(frame, "opcode", None)
439
+ if self.async_awaitable is not None:
440
+ try:
441
+ if self.breaks:
442
+ with self.set_enterframe(frame):
443
+ # set_continue requires enterframe to work
444
+ self.set_continue()
445
+ self.start_trace()
446
+ await self.async_awaitable
447
+ except Exception:
448
+ self._error_exc()
449
+ else:
450
+ break
451
+
452
+ self.async_shim_frame = None
453
+
454
+ # start the trace (the actual command is already set by set_* calls)
455
+ if self.returnframe is None and self.stoplineno == -1 and not self.breaks:
456
+ # This means we did a continue without any breakpoints, we should not
457
+ # start the trace
458
+ return
459
+
460
+ self.start_trace()
461
+
462
+ def sigint_handler(self, signum, frame):
463
+ if self.allow_kbdint:
464
+ raise KeyboardInterrupt
465
+ self.message("\nProgram interrupted. (Use 'cont' to resume).")
466
+ self.set_step()
467
+ self.set_trace(frame)
468
+
469
+ def reset(self):
470
+ bdb.Bdb.reset(self)
471
+ self.forget()
472
+
473
+ def forget(self):
474
+ self.lineno = None
475
+ self.stack = []
476
+ self.curindex = 0
477
+ if hasattr(self, 'curframe') and self.curframe:
478
+ self.curframe.f_globals.pop('__pdb_convenience_variables', None)
479
+ self.curframe = None
480
+ self.tb_lineno.clear()
481
+
482
+ def setup(self, f, tb):
483
+ self.forget()
484
+ self.stack, self.curindex = self.get_stack(f, tb)
485
+ while tb:
486
+ # when setting up post-mortem debugging with a traceback, save all
487
+ # the original line numbers to be displayed along the current line
488
+ # numbers (which can be different, e.g. due to finally clauses)
489
+ lineno = lasti2lineno(tb.tb_frame.f_code, tb.tb_lasti)
490
+ self.tb_lineno[tb.tb_frame] = lineno
491
+ tb = tb.tb_next
492
+ self.curframe = self.stack[self.curindex][0]
493
+ self.set_convenience_variable(self.curframe, '_frame', self.curframe)
494
+ if self._current_task:
495
+ self.set_convenience_variable(self.curframe, '_asynctask', self._current_task)
496
+ self._save_initial_file_mtime(self.curframe)
497
+
498
+ if self._chained_exceptions:
499
+ self.set_convenience_variable(
500
+ self.curframe,
501
+ '_exception',
502
+ self._chained_exceptions[self._chained_exception_index],
503
+ )
504
+
505
+ if self.rcLines:
506
+ self.cmdqueue = [
507
+ line for line in self.rcLines
508
+ if line.strip() and not line.strip().startswith("#")
509
+ ]
510
+ self.rcLines = []
511
+
512
+ @property
513
+ @deprecated("The frame locals reference is no longer cached. Use 'curframe.f_locals' instead.")
514
+ def curframe_locals(self):
515
+ return self.curframe.f_locals
516
+
517
+ @curframe_locals.setter
518
+ @deprecated("Setting 'curframe_locals' no longer has any effect. Update the contents of 'curframe.f_locals' instead.")
519
+ def curframe_locals(self, value):
520
+ pass
521
+
522
+ # Override Bdb methods
523
+
524
+ def user_call(self, frame, argument_list):
525
+ """This method is called when there is the remote possibility
526
+ that we ever need to stop in this function."""
527
+ if self._wait_for_mainpyfile:
528
+ return
529
+ if self.stop_here(frame):
530
+ self.message('--Call--')
531
+ self.interaction(frame, None)
532
+
533
+ def user_line(self, frame):
534
+ """This function is called when we stop or break at this line."""
535
+ if self._wait_for_mainpyfile:
536
+ if (self.mainpyfile != self.canonic(frame.f_code.co_filename)):
537
+ return
538
+ self._wait_for_mainpyfile = False
539
+ if self.trace_opcodes:
540
+ # GH-127321
541
+ # We want to avoid stopping at an opcode that does not have
542
+ # an associated line number because pdb does not like it
543
+ if frame.f_lineno is None:
544
+ self.set_stepinstr()
545
+ return
546
+ self.bp_commands(frame)
547
+ self.interaction(frame, None)
548
+
549
+ user_opcode = user_line
550
+
551
+ def bp_commands(self, frame):
552
+ """Call every command that was set for the current active breakpoint
553
+ (if there is one).
554
+
555
+ Returns True if the normal interaction function must be called,
556
+ False otherwise."""
557
+ # self.currentbp is set in bdb in Bdb.break_here if a breakpoint was hit
558
+ if getattr(self, "currentbp", False) and \
559
+ self.currentbp in self.commands:
560
+ currentbp = self.currentbp
561
+ self.currentbp = 0
562
+ for line in self.commands[currentbp]:
563
+ self.cmdqueue.append(line)
564
+ self.cmdqueue.append(f'_pdbcmd_restore_lastcmd {self.lastcmd}')
565
+
566
+ def user_return(self, frame, return_value):
567
+ """This function is called when a return trap is set here."""
568
+ if self._wait_for_mainpyfile:
569
+ return
570
+ frame.f_locals['__return__'] = return_value
571
+ self.set_convenience_variable(frame, '_retval', return_value)
572
+ self.message('--Return--')
573
+ self.interaction(frame, None)
574
+
575
+ def user_exception(self, frame, exc_info):
576
+ """This function is called if an exception occurs,
577
+ but only if we are to stop at or just below this level."""
578
+ if self._wait_for_mainpyfile:
579
+ return
580
+ exc_type, exc_value, exc_traceback = exc_info
581
+ frame.f_locals['__exception__'] = exc_type, exc_value
582
+ self.set_convenience_variable(frame, '_exception', exc_value)
583
+
584
+ # An 'Internal StopIteration' exception is an exception debug event
585
+ # issued by the interpreter when handling a subgenerator run with
586
+ # 'yield from' or a generator controlled by a for loop. No exception has
587
+ # actually occurred in this case. The debugger uses this debug event to
588
+ # stop when the debuggee is returning from such generators.
589
+ prefix = 'Internal ' if (not exc_traceback
590
+ and exc_type is StopIteration) else ''
591
+ self.message('%s%s' % (prefix, self._format_exc(exc_value)))
592
+ self.interaction(frame, exc_traceback)
593
+
594
+ # General interaction function
595
+ def _cmdloop(self):
596
+ while True:
597
+ try:
598
+ # keyboard interrupts allow for an easy way to cancel
599
+ # the current command, so allow them during interactive input
600
+ self.allow_kbdint = True
601
+ self.cmdloop()
602
+ self.allow_kbdint = False
603
+ break
604
+ except KeyboardInterrupt:
605
+ self.message('--KeyboardInterrupt--')
606
+
607
+ def _save_initial_file_mtime(self, frame):
608
+ """save the mtime of the all the files in the frame stack in the file mtime table
609
+ if they haven't been saved yet."""
610
+ while frame:
611
+ filename = frame.f_code.co_filename
612
+ if filename not in self._file_mtime_table:
613
+ try:
614
+ self._file_mtime_table[filename] = os.path.getmtime(filename)
615
+ except Exception:
616
+ pass
617
+ frame = frame.f_back
618
+
619
+ def _validate_file_mtime(self):
620
+ """Check if the source file of the current frame has been modified.
621
+ If so, give a warning and reset the modify time to current."""
622
+ try:
623
+ filename = self.curframe.f_code.co_filename
624
+ mtime = os.path.getmtime(filename)
625
+ except Exception:
626
+ return
627
+ if (filename in self._file_mtime_table and
628
+ mtime != self._file_mtime_table[filename]):
629
+ self.message(f"*** WARNING: file '{filename}' was edited, "
630
+ "running stale code until the program is rerun")
631
+ self._file_mtime_table[filename] = mtime
632
+
633
+ # Called before loop, handles display expressions
634
+ # Set up convenience variable containers
635
+ def _show_display(self):
636
+ displaying = self.displaying.get(self.curframe)
637
+ if displaying:
638
+ for expr, oldvalue in displaying.items():
639
+ newvalue = self._getval_except(expr)
640
+ # check for identity first; this prevents custom __eq__ to
641
+ # be called at every loop, and also prevents instances whose
642
+ # fields are changed to be displayed
643
+ if newvalue is not oldvalue and newvalue != oldvalue:
644
+ displaying[expr] = newvalue
645
+ self.message('display %s: %s [old: %s]' %
646
+ (expr, self._safe_repr(newvalue, expr),
647
+ self._safe_repr(oldvalue, expr)))
648
+
649
+ def _get_tb_and_exceptions(self, tb_or_exc):
650
+ """
651
+ Given a tracecack or an exception, return a tuple of chained exceptions
652
+ and current traceback to inspect.
653
+
654
+ This will deal with selecting the right ``__cause__`` or ``__context__``
655
+ as well as handling cycles, and return a flattened list of exceptions we
656
+ can jump to with do_exceptions.
657
+
658
+ """
659
+ _exceptions = []
660
+ if isinstance(tb_or_exc, BaseException):
661
+ traceback, current = tb_or_exc.__traceback__, tb_or_exc
662
+
663
+ while current is not None:
664
+ if current in _exceptions:
665
+ break
666
+ _exceptions.append(current)
667
+ if current.__cause__ is not None:
668
+ current = current.__cause__
669
+ elif (
670
+ current.__context__ is not None and not current.__suppress_context__
671
+ ):
672
+ current = current.__context__
673
+
674
+ if len(_exceptions) >= self.MAX_CHAINED_EXCEPTION_DEPTH:
675
+ self.message(
676
+ f"More than {self.MAX_CHAINED_EXCEPTION_DEPTH}"
677
+ " chained exceptions found, not all exceptions"
678
+ "will be browsable with `exceptions`."
679
+ )
680
+ break
681
+ else:
682
+ traceback = tb_or_exc
683
+ return tuple(reversed(_exceptions)), traceback
684
+
685
+ @contextmanager
686
+ def _hold_exceptions(self, exceptions):
687
+ """
688
+ Context manager to ensure proper cleaning of exceptions references
689
+
690
+ When given a chained exception instead of a traceback,
691
+ pdb may hold references to many objects which may leak memory.
692
+
693
+ We use this context manager to make sure everything is properly cleaned
694
+
695
+ """
696
+ try:
697
+ self._chained_exceptions = exceptions
698
+ self._chained_exception_index = len(exceptions) - 1
699
+ yield
700
+ finally:
701
+ # we can't put those in forget as otherwise they would
702
+ # be cleared on exception change
703
+ self._chained_exceptions = tuple()
704
+ self._chained_exception_index = 0
705
+
706
+ def _get_asyncio_task(self):
707
+ try:
708
+ task = asyncio.current_task()
709
+ except RuntimeError:
710
+ task = None
711
+ return task
712
+
713
+ def interaction(self, frame, tb_or_exc):
714
+ # Restore the previous signal handler at the Pdb prompt.
715
+ if Pdb._previous_sigint_handler:
716
+ try:
717
+ signal.signal(signal.SIGINT, Pdb._previous_sigint_handler)
718
+ except ValueError: # ValueError: signal only works in main thread
719
+ pass
720
+ else:
721
+ Pdb._previous_sigint_handler = None
722
+
723
+ self._current_task = self._get_asyncio_task()
724
+
725
+ _chained_exceptions, tb = self._get_tb_and_exceptions(tb_or_exc)
726
+ if isinstance(tb_or_exc, BaseException):
727
+ assert tb is not None, "main exception must have a traceback"
728
+ with self._hold_exceptions(_chained_exceptions):
729
+ self.setup(frame, tb)
730
+ # We should print the stack entry if and only if the user input
731
+ # is expected, and we should print it right before the user input.
732
+ # We achieve this by appending _pdbcmd_print_frame_status to the
733
+ # command queue. If cmdqueue is not exhausted, the user input is
734
+ # not expected and we will not print the stack entry.
735
+ self.cmdqueue.append('_pdbcmd_print_frame_status')
736
+ self._cmdloop()
737
+ # If _pdbcmd_print_frame_status is not used, pop it out
738
+ if self.cmdqueue and self.cmdqueue[-1] == '_pdbcmd_print_frame_status':
739
+ self.cmdqueue.pop()
740
+ self.forget()
741
+
742
+ def displayhook(self, obj):
743
+ """Custom displayhook for the exec in default(), which prevents
744
+ assignment of the _ variable in the builtins.
745
+ """
746
+ # reproduce the behavior of the standard displayhook, not printing None
747
+ if obj is not None:
748
+ self.message(repr(obj))
749
+
750
+ @contextmanager
751
+ def _enable_multiline_input(self):
752
+ try:
753
+ import readline
754
+ except ImportError:
755
+ yield
756
+ return
757
+
758
+ def input_auto_indent():
759
+ last_index = readline.get_current_history_length()
760
+ last_line = readline.get_history_item(last_index)
761
+ if last_line:
762
+ if last_line.isspace():
763
+ # If the last line is empty, we don't need to indent
764
+ return
765
+
766
+ last_line = last_line.rstrip('\r\n')
767
+ indent = len(last_line) - len(last_line.lstrip())
768
+ if last_line.endswith(":"):
769
+ indent += 4
770
+ readline.insert_text(' ' * indent)
771
+
772
+ completenames = self.completenames
773
+ try:
774
+ self.completenames = self.complete_multiline_names
775
+ readline.set_startup_hook(input_auto_indent)
776
+ yield
777
+ finally:
778
+ readline.set_startup_hook()
779
+ self.completenames = completenames
780
+ return
781
+
782
+ def _exec_in_closure(self, source, globals, locals):
783
+ """ Run source code in closure so code object created within source
784
+ can find variables in locals correctly
785
+
786
+ returns True if the source is executed, False otherwise
787
+ """
788
+
789
+ # Determine if the source should be executed in closure. Only when the
790
+ # source compiled to multiple code objects, we should use this feature.
791
+ # Otherwise, we can just raise an exception and normal exec will be used.
792
+
793
+ code = compile(source, "<string>", "exec")
794
+ if not any(isinstance(const, CodeType) for const in code.co_consts):
795
+ return False
796
+
797
+ # locals could be a proxy which does not support pop
798
+ # copy it first to avoid modifying the original locals
799
+ locals_copy = dict(locals)
800
+
801
+ locals_copy["__pdb_eval__"] = {
802
+ "result": None,
803
+ "write_back": {}
804
+ }
805
+
806
+ # If the source is an expression, we need to print its value
807
+ try:
808
+ compile(source, "<string>", "eval")
809
+ except SyntaxError:
810
+ pass
811
+ else:
812
+ source = "__pdb_eval__['result'] = " + source
813
+
814
+ # Add write-back to update the locals
815
+ source = ("try:\n" +
816
+ textwrap.indent(source, " ") + "\n" +
817
+ "finally:\n" +
818
+ " __pdb_eval__['write_back'] = locals()")
819
+
820
+ # Build a closure source code with freevars from locals like:
821
+ # def __pdb_outer():
822
+ # var = None
823
+ # def __pdb_scope(): # This is the code object we want to execute
824
+ # nonlocal var
825
+ # <source>
826
+ # return __pdb_scope.__code__
827
+ source_with_closure = ("def __pdb_outer():\n" +
828
+ "\n".join(f" {var} = None" for var in locals_copy) + "\n" +
829
+ " def __pdb_scope():\n" +
830
+ "\n".join(f" nonlocal {var}" for var in locals_copy) + "\n" +
831
+ textwrap.indent(source, " ") + "\n" +
832
+ " return __pdb_scope.__code__"
833
+ )
834
+
835
+ # Get the code object of __pdb_scope()
836
+ # The exec fills locals_copy with the __pdb_outer() function and we can call
837
+ # that to get the code object of __pdb_scope()
838
+ ns = {}
839
+ try:
840
+ exec(source_with_closure, {}, ns)
841
+ except Exception:
842
+ return False
843
+ code = ns["__pdb_outer"]()
844
+
845
+ cells = tuple(types.CellType(locals_copy.get(var)) for var in code.co_freevars)
846
+
847
+ try:
848
+ exec(code, globals, locals_copy, closure=cells)
849
+ except Exception:
850
+ return False
851
+
852
+ # get the data we need from the statement
853
+ pdb_eval = locals_copy["__pdb_eval__"]
854
+
855
+ # __pdb_eval__ should not be updated back to locals
856
+ pdb_eval["write_back"].pop("__pdb_eval__")
857
+
858
+ # Write all local variables back to locals
859
+ locals.update(pdb_eval["write_back"])
860
+ eval_result = pdb_eval["result"]
861
+ if eval_result is not None:
862
+ print(repr(eval_result))
863
+
864
+ return True
865
+
866
+ def _exec_await(self, source, globals, locals):
867
+ """ Run source code that contains await by playing with async shim frame"""
868
+ # Put the source in an async function
869
+ source_async = (
870
+ "async def __pdb_await():\n" +
871
+ textwrap.indent(source, " ") + '\n' +
872
+ " __pdb_locals.update(locals())"
873
+ )
874
+ ns = globals | locals
875
+ # We use __pdb_locals to do write back
876
+ ns["__pdb_locals"] = locals
877
+ exec(source_async, ns)
878
+ self.async_awaitable = ns["__pdb_await"]()
879
+
880
+ def _read_code(self, line):
881
+ buffer = line
882
+ is_await_code = False
883
+ code = None
884
+ try:
885
+ if (code := codeop.compile_command(line + '\n', '<stdin>', 'single')) is None:
886
+ # Multi-line mode
887
+ with self._enable_multiline_input():
888
+ buffer = line
889
+ continue_prompt = "... "
890
+ while (code := codeop.compile_command(buffer, '<stdin>', 'single')) is None:
891
+ if self.use_rawinput:
892
+ try:
893
+ line = input(continue_prompt)
894
+ except (EOFError, KeyboardInterrupt):
895
+ self.lastcmd = ""
896
+ print('\n')
897
+ return None, None, False
898
+ else:
899
+ self.stdout.write(continue_prompt)
900
+ self.stdout.flush()
901
+ line = self.stdin.readline()
902
+ if not len(line):
903
+ self.lastcmd = ""
904
+ self.stdout.write('\n')
905
+ self.stdout.flush()
906
+ return None, None, False
907
+ else:
908
+ line = line.rstrip('\r\n')
909
+ if line.isspace():
910
+ # empty line, just continue
911
+ buffer += '\n'
912
+ else:
913
+ buffer += '\n' + line
914
+ self.lastcmd = buffer
915
+ except SyntaxError as e:
916
+ # Maybe it's an await expression/statement
917
+ if (
918
+ self.async_shim_frame is not None
919
+ and e.msg == "'await' outside function"
920
+ ):
921
+ is_await_code = True
922
+ else:
923
+ raise
924
+
925
+ return code, buffer, is_await_code
926
+
927
+ def default(self, line):
928
+ if line[:1] == '!': line = line[1:].strip()
929
+ locals = self.curframe.f_locals
930
+ globals = self.curframe.f_globals
931
+ try:
932
+ code, buffer, is_await_code = self._read_code(line)
933
+ if buffer is None:
934
+ return
935
+ save_stdout = sys.stdout
936
+ save_stdin = sys.stdin
937
+ save_displayhook = sys.displayhook
938
+ try:
939
+ sys.stdin = self.stdin
940
+ sys.stdout = self.stdout
941
+ sys.displayhook = self.displayhook
942
+ if is_await_code:
943
+ self._exec_await(buffer, globals, locals)
944
+ return True
945
+ else:
946
+ if not self._exec_in_closure(buffer, globals, locals):
947
+ exec(code, globals, locals)
948
+ finally:
949
+ sys.stdout = save_stdout
950
+ sys.stdin = save_stdin
951
+ sys.displayhook = save_displayhook
952
+ except:
953
+ self._error_exc()
954
+
955
+ def _replace_convenience_variables(self, line):
956
+ """Replace the convenience variables in 'line' with their values.
957
+ e.g. $foo is replaced by __pdb_convenience_variables["foo"].
958
+ Note: such pattern in string literals will be skipped"""
959
+
960
+ if "$" not in line:
961
+ return line
962
+
963
+ dollar_start = dollar_end = (-1, -1)
964
+ replace_variables = []
965
+ try:
966
+ for t in tokenize.generate_tokens(io.StringIO(line).readline):
967
+ token_type, token_string, start, end, _ = t
968
+ if token_type == token.OP and token_string == '$':
969
+ dollar_start, dollar_end = start, end
970
+ elif start == dollar_end and token_type == token.NAME:
971
+ # line is a one-line command so we only care about column
972
+ replace_variables.append((dollar_start[1], end[1], token_string))
973
+ except tokenize.TokenError:
974
+ return line
975
+
976
+ if not replace_variables:
977
+ return line
978
+
979
+ last_end = 0
980
+ line_pieces = []
981
+ for start, end, name in replace_variables:
982
+ line_pieces.append(line[last_end:start] + f'__pdb_convenience_variables["{name}"]')
983
+ last_end = end
984
+ line_pieces.append(line[last_end:])
985
+
986
+ return ''.join(line_pieces)
987
+
988
+ def precmd(self, line):
989
+ """Handle alias expansion and ';;' separator."""
990
+ if not line.strip():
991
+ return line
992
+ args = line.split()
993
+ while args[0] in self.aliases:
994
+ line = self.aliases[args[0]]
995
+ for idx in range(1, 10):
996
+ if f'%{idx}' in line:
997
+ if idx >= len(args):
998
+ self.error(f"Not enough arguments for alias '{args[0]}'")
999
+ # This is a no-op
1000
+ return "!"
1001
+ line = line.replace(f'%{idx}', args[idx])
1002
+ elif '%*' not in line:
1003
+ if idx < len(args):
1004
+ self.error(f"Too many arguments for alias '{args[0]}'")
1005
+ # This is a no-op
1006
+ return "!"
1007
+ break
1008
+
1009
+ line = line.replace("%*", ' '.join(args[1:]))
1010
+ args = line.split()
1011
+ # split into ';;' separated commands
1012
+ # unless it's an alias command
1013
+ if args[0] != 'alias':
1014
+ marker = line.find(';;')
1015
+ if marker >= 0:
1016
+ # queue up everything after marker
1017
+ next = line[marker+2:].lstrip()
1018
+ self.cmdqueue.insert(0, next)
1019
+ line = line[:marker].rstrip()
1020
+
1021
+ # Replace all the convenience variables
1022
+ line = self._replace_convenience_variables(line)
1023
+
1024
+ return line
1025
+
1026
+ def onecmd(self, line):
1027
+ """Interpret the argument as though it had been typed in response
1028
+ to the prompt.
1029
+
1030
+ Checks whether this line is typed at the normal prompt or in
1031
+ a breakpoint command list definition.
1032
+ """
1033
+ if not self.commands_defining:
1034
+ if line.startswith('_pdbcmd'):
1035
+ command, arg, line = self.parseline(line)
1036
+ if hasattr(self, command):
1037
+ return getattr(self, command)(arg)
1038
+ return cmd.Cmd.onecmd(self, line)
1039
+ else:
1040
+ return self.handle_command_def(line)
1041
+
1042
+ def handle_command_def(self, line):
1043
+ """Handles one command line during command list definition."""
1044
+ cmd, arg, line = self.parseline(line)
1045
+ if not cmd:
1046
+ return False
1047
+ if cmd == 'end':
1048
+ return True # end of cmd list
1049
+ elif cmd == 'EOF':
1050
+ self.message('')
1051
+ return True # end of cmd list
1052
+ cmdlist = self.commands[self.commands_bnum]
1053
+ if cmd == 'silent':
1054
+ cmdlist.append('_pdbcmd_silence_frame_status')
1055
+ return False # continue to handle other cmd def in the cmd list
1056
+ if arg:
1057
+ cmdlist.append(cmd+' '+arg)
1058
+ else:
1059
+ cmdlist.append(cmd)
1060
+ # Determine if we must stop
1061
+ try:
1062
+ func = getattr(self, 'do_' + cmd)
1063
+ except AttributeError:
1064
+ func = self.default
1065
+ # one of the resuming commands
1066
+ if func.__name__ in self.commands_resuming:
1067
+ return True
1068
+ return False
1069
+
1070
+ def _colorize_code(self, code):
1071
+ if self.colorize:
1072
+ colors = list(_pyrepl.utils.gen_colors(code))
1073
+ chars, _ = _pyrepl.utils.disp_str(code, colors=colors, force_color=True)
1074
+ code = "".join(chars)
1075
+ return code
1076
+
1077
+ # interface abstraction functions
1078
+
1079
+ def message(self, msg, end='\n'):
1080
+ print(msg, end=end, file=self.stdout)
1081
+
1082
+ def error(self, msg):
1083
+ print('***', msg, file=self.stdout)
1084
+
1085
+ # convenience variables
1086
+
1087
+ def set_convenience_variable(self, frame, name, value):
1088
+ if '__pdb_convenience_variables' not in frame.f_globals:
1089
+ frame.f_globals['__pdb_convenience_variables'] = {}
1090
+ frame.f_globals['__pdb_convenience_variables'][name] = value
1091
+
1092
+ # Generic completion functions. Individual complete_foo methods can be
1093
+ # assigned below to one of these functions.
1094
+
1095
+ @property
1096
+ def rlcompleter(self):
1097
+ """Return the `Completer` class from `rlcompleter`, while avoiding the
1098
+ side effects of changing the completer from `import rlcompleter`.
1099
+
1100
+ This is a compromise between GH-138860 and GH-139289. If GH-139289 is
1101
+ fixed, then we don't need this and we can just `import rlcompleter` in
1102
+ `Pdb.__init__`.
1103
+ """
1104
+ if not hasattr(self, "_rlcompleter"):
1105
+ try:
1106
+ import readline
1107
+ except ImportError:
1108
+ # readline is not available, just get the Completer
1109
+ from rlcompleter import Completer
1110
+ self._rlcompleter = Completer
1111
+ else:
1112
+ # importing rlcompleter could have side effect of changing
1113
+ # the current completer, we need to restore it
1114
+ prev_completer = readline.get_completer()
1115
+ from rlcompleter import Completer
1116
+ self._rlcompleter = Completer
1117
+ readline.set_completer(prev_completer)
1118
+ return self._rlcompleter
1119
+
1120
+ def completenames(self, text, line, begidx, endidx):
1121
+ # Overwrite completenames() of cmd so for the command completion,
1122
+ # if no current command matches, check for expressions as well
1123
+ commands = super().completenames(text, line, begidx, endidx)
1124
+ for alias in self.aliases:
1125
+ if alias.startswith(text):
1126
+ commands.append(alias)
1127
+ if commands:
1128
+ return commands
1129
+ else:
1130
+ expressions = self._complete_expression(text, line, begidx, endidx)
1131
+ if expressions:
1132
+ return expressions
1133
+ return self.completedefault(text, line, begidx, endidx)
1134
+
1135
+ def _complete_location(self, text, line, begidx, endidx):
1136
+ # Complete a file/module/function location for break/tbreak/clear.
1137
+ if line.strip().endswith((':', ',')):
1138
+ # Here comes a line number or a condition which we can't complete.
1139
+ return []
1140
+ # First, try to find matching functions (i.e. expressions).
1141
+ try:
1142
+ ret = self._complete_expression(text, line, begidx, endidx)
1143
+ except Exception:
1144
+ ret = []
1145
+ # Then, try to complete file names as well.
1146
+ globs = glob.glob(glob.escape(text) + '*')
1147
+ for fn in globs:
1148
+ if os.path.isdir(fn):
1149
+ ret.append(fn + '/')
1150
+ elif os.path.isfile(fn) and fn.lower().endswith(('.py', '.pyw')):
1151
+ ret.append(fn + ':')
1152
+ return ret
1153
+
1154
+ def _complete_bpnumber(self, text, line, begidx, endidx):
1155
+ # Complete a breakpoint number. (This would be more helpful if we could
1156
+ # display additional info along with the completions, such as file/line
1157
+ # of the breakpoint.)
1158
+ return [str(i) for i, bp in enumerate(bdb.Breakpoint.bpbynumber)
1159
+ if bp is not None and str(i).startswith(text)]
1160
+
1161
+ def _complete_expression(self, text, line, begidx, endidx):
1162
+ # Complete an arbitrary expression.
1163
+ if not self.curframe:
1164
+ return []
1165
+ # Collect globals and locals. It is usually not really sensible to also
1166
+ # complete builtins, and they clutter the namespace quite heavily, so we
1167
+ # leave them out.
1168
+ ns = {**self.curframe.f_globals, **self.curframe.f_locals}
1169
+ if '.' in text:
1170
+ # Walk an attribute chain up to the last part, similar to what
1171
+ # rlcompleter does. This will bail if any of the parts are not
1172
+ # simple attribute access, which is what we want.
1173
+ dotted = text.split('.')
1174
+ try:
1175
+ if dotted[0].startswith('$'):
1176
+ obj = self.curframe.f_globals['__pdb_convenience_variables'][dotted[0][1:]]
1177
+ else:
1178
+ obj = ns[dotted[0]]
1179
+ for part in dotted[1:-1]:
1180
+ obj = getattr(obj, part)
1181
+ except (KeyError, AttributeError):
1182
+ return []
1183
+ prefix = '.'.join(dotted[:-1]) + '.'
1184
+ return [prefix + n for n in dir(obj) if n.startswith(dotted[-1])]
1185
+ else:
1186
+ if text.startswith("$"):
1187
+ # Complete convenience variables
1188
+ conv_vars = self.curframe.f_globals.get('__pdb_convenience_variables', {})
1189
+ return [f"${name}" for name in conv_vars if name.startswith(text[1:])]
1190
+ # Complete a simple name.
1191
+ return [n for n in ns.keys() if n.startswith(text)]
1192
+
1193
+ def _complete_indentation(self, text, line, begidx, endidx):
1194
+ try:
1195
+ import readline
1196
+ except ImportError:
1197
+ return []
1198
+ # Fill in spaces to form a 4-space indent
1199
+ return [' ' * (4 - readline.get_begidx() % 4)]
1200
+
1201
+ def complete_multiline_names(self, text, line, begidx, endidx):
1202
+ # If text is space-only, the user entered <tab> before any text.
1203
+ # That normally means they want to indent the current line.
1204
+ if not text.strip():
1205
+ return self._complete_indentation(text, line, begidx, endidx)
1206
+ return self.completedefault(text, line, begidx, endidx)
1207
+
1208
+ def completedefault(self, text, line, begidx, endidx):
1209
+ if text.startswith("$"):
1210
+ # Complete convenience variables
1211
+ conv_vars = self.curframe.f_globals.get('__pdb_convenience_variables', {})
1212
+ return [f"${name}" for name in conv_vars if name.startswith(text[1:])]
1213
+
1214
+ state = 0
1215
+ matches = []
1216
+ completer = self.rlcompleter(self.curframe.f_globals | self.curframe.f_locals)
1217
+ while (match := completer.complete(text, state)) is not None:
1218
+ matches.append(match)
1219
+ state += 1
1220
+ return matches
1221
+
1222
+ @contextmanager
1223
+ def _enable_rlcompleter(self, ns):
1224
+ try:
1225
+ import readline
1226
+ except ImportError:
1227
+ yield
1228
+ return
1229
+
1230
+ try:
1231
+ completer = self.rlcompleter(ns)
1232
+ old_completer = readline.get_completer()
1233
+ readline.set_completer(completer.complete)
1234
+ yield
1235
+ finally:
1236
+ readline.set_completer(old_completer)
1237
+
1238
+ # Pdb meta commands, only intended to be used internally by pdb
1239
+
1240
+ def _pdbcmd_print_frame_status(self, arg):
1241
+ self.print_stack_trace(0)
1242
+ self._validate_file_mtime()
1243
+ self._show_display()
1244
+
1245
+ def _pdbcmd_silence_frame_status(self, arg):
1246
+ if self.cmdqueue and self.cmdqueue[-1] == '_pdbcmd_print_frame_status':
1247
+ self.cmdqueue.pop()
1248
+
1249
+ def _pdbcmd_restore_lastcmd(self, arg):
1250
+ self.lastcmd = arg
1251
+
1252
+ # Command definitions, called by cmdloop()
1253
+ # The argument is the remaining string on the command line
1254
+ # Return true to exit from the command loop
1255
+
1256
+ def do_commands(self, arg):
1257
+ """(Pdb) commands [bpnumber]
1258
+ (com) ...
1259
+ (com) end
1260
+ (Pdb)
1261
+
1262
+ Specify a list of commands for breakpoint number bpnumber.
1263
+ The commands themselves are entered on the following lines.
1264
+ Type a line containing just 'end' to terminate the commands.
1265
+ The commands are executed when the breakpoint is hit.
1266
+
1267
+ To remove all commands from a breakpoint, type commands and
1268
+ follow it immediately with end; that is, give no commands.
1269
+
1270
+ With no bpnumber argument, commands refers to the last
1271
+ breakpoint set.
1272
+
1273
+ You can use breakpoint commands to start your program up
1274
+ again. Simply use the continue command, or step, or any other
1275
+ command that resumes execution.
1276
+
1277
+ Specifying any command resuming execution (currently continue,
1278
+ step, next, return, jump, quit and their abbreviations)
1279
+ terminates the command list (as if that command was
1280
+ immediately followed by end). This is because any time you
1281
+ resume execution (even with a simple next or step), you may
1282
+ encounter another breakpoint -- which could have its own
1283
+ command list, leading to ambiguities about which list to
1284
+ execute.
1285
+
1286
+ If you use the 'silent' command in the command list, the usual
1287
+ message about stopping at a breakpoint is not printed. This
1288
+ may be desirable for breakpoints that are to print a specific
1289
+ message and then continue. If none of the other commands
1290
+ print anything, you will see no sign that the breakpoint was
1291
+ reached.
1292
+ """
1293
+ if not arg:
1294
+ bnum = len(bdb.Breakpoint.bpbynumber) - 1
1295
+ else:
1296
+ try:
1297
+ bnum = int(arg)
1298
+ except:
1299
+ self._print_invalid_arg(arg)
1300
+ return
1301
+ try:
1302
+ self.get_bpbynumber(bnum)
1303
+ except ValueError as err:
1304
+ self.error('cannot set commands: %s' % err)
1305
+ return
1306
+
1307
+ self.commands_bnum = bnum
1308
+ # Save old definitions for the case of a keyboard interrupt.
1309
+ if bnum in self.commands:
1310
+ old_commands = self.commands[bnum]
1311
+ else:
1312
+ old_commands = None
1313
+ self.commands[bnum] = []
1314
+
1315
+ prompt_back = self.prompt
1316
+ self.prompt = '(com) '
1317
+ self.commands_defining = True
1318
+ try:
1319
+ self.cmdloop()
1320
+ except KeyboardInterrupt:
1321
+ # Restore old definitions.
1322
+ if old_commands:
1323
+ self.commands[bnum] = old_commands
1324
+ else:
1325
+ del self.commands[bnum]
1326
+ self.error('command definition aborted, old commands restored')
1327
+ finally:
1328
+ self.commands_defining = False
1329
+ self.prompt = prompt_back
1330
+
1331
+ complete_commands = _complete_bpnumber
1332
+
1333
+ def do_break(self, arg, temporary=False):
1334
+ """b(reak) [ ([filename:]lineno | function) [, condition] ]
1335
+
1336
+ Without argument, list all breaks.
1337
+
1338
+ With a line number argument, set a break at this line in the
1339
+ current file. With a function name, set a break at the first
1340
+ executable line of that function. If a second argument is
1341
+ present, it is a string specifying an expression which must
1342
+ evaluate to true before the breakpoint is honored.
1343
+
1344
+ The line number may be prefixed with a filename and a colon,
1345
+ to specify a breakpoint in another file (probably one that
1346
+ hasn't been loaded yet). The file is searched for on
1347
+ sys.path; the .py suffix may be omitted.
1348
+ """
1349
+ if not arg:
1350
+ if self.breaks: # There's at least one
1351
+ self.message("Num Type Disp Enb Where")
1352
+ for bp in bdb.Breakpoint.bpbynumber:
1353
+ if bp:
1354
+ self.message(bp.bpformat())
1355
+ return
1356
+ # parse arguments; comma has lowest precedence
1357
+ # and cannot occur in filename
1358
+ filename = None
1359
+ lineno = None
1360
+ cond = None
1361
+ module_globals = None
1362
+ comma = arg.find(',')
1363
+ if comma > 0:
1364
+ # parse stuff after comma: "condition"
1365
+ cond = arg[comma+1:].lstrip()
1366
+ if err := self._compile_error_message(cond):
1367
+ self.error('Invalid condition %s: %r' % (cond, err))
1368
+ return
1369
+ arg = arg[:comma].rstrip()
1370
+ # parse stuff before comma: [filename:]lineno | function
1371
+ colon = arg.rfind(':')
1372
+ funcname = None
1373
+ if colon >= 0:
1374
+ filename = arg[:colon].rstrip()
1375
+ f = self.lookupmodule(filename)
1376
+ if not f:
1377
+ self.error('%r not found from sys.path' % filename)
1378
+ return
1379
+ else:
1380
+ filename = f
1381
+ arg = arg[colon+1:].lstrip()
1382
+ try:
1383
+ lineno = int(arg)
1384
+ except ValueError:
1385
+ self.error('Bad lineno: %s' % arg)
1386
+ return
1387
+ else:
1388
+ # no colon; can be lineno or function
1389
+ try:
1390
+ lineno = int(arg)
1391
+ except ValueError:
1392
+ try:
1393
+ func = eval(arg,
1394
+ self.curframe.f_globals,
1395
+ self.curframe.f_locals)
1396
+ except:
1397
+ func = arg
1398
+ try:
1399
+ if hasattr(func, '__func__'):
1400
+ func = func.__func__
1401
+ code = func.__code__
1402
+ #use co_name to identify the bkpt (function names
1403
+ #could be aliased, but co_name is invariant)
1404
+ funcname = code.co_name
1405
+ lineno = find_first_executable_line(code)
1406
+ filename = code.co_filename
1407
+ module_globals = func.__globals__
1408
+ except:
1409
+ # last thing to try
1410
+ (ok, filename, ln) = self.lineinfo(arg)
1411
+ if not ok:
1412
+ self.error('The specified object %r is not a function '
1413
+ 'or was not found along sys.path.' % arg)
1414
+ return
1415
+ funcname = ok # ok contains a function name
1416
+ lineno = int(ln)
1417
+ if not filename:
1418
+ filename = self.defaultFile()
1419
+ filename = self.canonic(filename)
1420
+ # Check for reasonable breakpoint
1421
+ line = self.checkline(filename, lineno, module_globals)
1422
+ if line:
1423
+ # now set the break point
1424
+ err = self.set_break(filename, line, temporary, cond, funcname)
1425
+ if err:
1426
+ self.error(err)
1427
+ else:
1428
+ bp = self.get_breaks(filename, line)[-1]
1429
+ self.message("Breakpoint %d at %s:%d" %
1430
+ (bp.number, bp.file, bp.line))
1431
+
1432
+ # To be overridden in derived debuggers
1433
+ def defaultFile(self):
1434
+ """Produce a reasonable default."""
1435
+ filename = self.curframe.f_code.co_filename
1436
+ if filename == '<string>' and self.mainpyfile:
1437
+ filename = self.mainpyfile
1438
+ return filename
1439
+
1440
+ do_b = do_break
1441
+
1442
+ complete_break = _complete_location
1443
+ complete_b = _complete_location
1444
+
1445
+ def do_tbreak(self, arg):
1446
+ """tbreak [ ([filename:]lineno | function) [, condition] ]
1447
+
1448
+ Same arguments as break, but sets a temporary breakpoint: it
1449
+ is automatically deleted when first hit.
1450
+ """
1451
+ self.do_break(arg, True)
1452
+
1453
+ complete_tbreak = _complete_location
1454
+
1455
+ def lineinfo(self, identifier):
1456
+ failed = (None, None, None)
1457
+ # Input is identifier, may be in single quotes
1458
+ idstring = identifier.split("'")
1459
+ if len(idstring) == 1:
1460
+ # not in single quotes
1461
+ id = idstring[0].strip()
1462
+ elif len(idstring) == 3:
1463
+ # quoted
1464
+ id = idstring[1].strip()
1465
+ else:
1466
+ return failed
1467
+ if id == '': return failed
1468
+ parts = id.split('.')
1469
+ # Protection for derived debuggers
1470
+ if parts[0] == 'self':
1471
+ del parts[0]
1472
+ if len(parts) == 0:
1473
+ return failed
1474
+ # Best first guess at file to look at
1475
+ fname = self.defaultFile()
1476
+ if len(parts) == 1:
1477
+ item = parts[0]
1478
+ else:
1479
+ # More than one part.
1480
+ # First is module, second is method/class
1481
+ f = self.lookupmodule(parts[0])
1482
+ if f:
1483
+ fname = f
1484
+ item = parts[1]
1485
+ else:
1486
+ return failed
1487
+ answer = find_function(item, self.canonic(fname))
1488
+ return answer or failed
1489
+
1490
+ def checkline(self, filename, lineno, module_globals=None):
1491
+ """Check whether specified line seems to be executable.
1492
+
1493
+ Return `lineno` if it is, 0 if not (e.g. a docstring, comment, blank
1494
+ line or EOF). Warning: testing is not comprehensive.
1495
+ """
1496
+ # this method should be callable before starting debugging, so default
1497
+ # to "no globals" if there is no current frame
1498
+ frame = getattr(self, 'curframe', None)
1499
+ if module_globals is None:
1500
+ module_globals = frame.f_globals if frame else None
1501
+ line = linecache.getline(filename, lineno, module_globals)
1502
+ if not line:
1503
+ self.message('End of file')
1504
+ return 0
1505
+ line = line.strip()
1506
+ # Don't allow setting breakpoint at a blank line
1507
+ if (not line or (line[0] == '#') or
1508
+ (line[:3] == '"""') or line[:3] == "'''"):
1509
+ self.error('Blank or comment')
1510
+ return 0
1511
+ return lineno
1512
+
1513
+ def do_enable(self, arg):
1514
+ """enable bpnumber [bpnumber ...]
1515
+
1516
+ Enables the breakpoints given as a space separated list of
1517
+ breakpoint numbers.
1518
+ """
1519
+ if not arg:
1520
+ self._print_invalid_arg(arg)
1521
+ return
1522
+ args = arg.split()
1523
+ for i in args:
1524
+ try:
1525
+ bp = self.get_bpbynumber(i)
1526
+ except ValueError as err:
1527
+ self.error(err)
1528
+ else:
1529
+ bp.enable()
1530
+ self.message('Enabled %s' % bp)
1531
+
1532
+ complete_enable = _complete_bpnumber
1533
+
1534
+ def do_disable(self, arg):
1535
+ """disable bpnumber [bpnumber ...]
1536
+
1537
+ Disables the breakpoints given as a space separated list of
1538
+ breakpoint numbers. Disabling a breakpoint means it cannot
1539
+ cause the program to stop execution, but unlike clearing a
1540
+ breakpoint, it remains in the list of breakpoints and can be
1541
+ (re-)enabled.
1542
+ """
1543
+ if not arg:
1544
+ self._print_invalid_arg(arg)
1545
+ return
1546
+ args = arg.split()
1547
+ for i in args:
1548
+ try:
1549
+ bp = self.get_bpbynumber(i)
1550
+ except ValueError as err:
1551
+ self.error(err)
1552
+ else:
1553
+ bp.disable()
1554
+ self.message('Disabled %s' % bp)
1555
+
1556
+ complete_disable = _complete_bpnumber
1557
+
1558
+ def do_condition(self, arg):
1559
+ """condition bpnumber [condition]
1560
+
1561
+ Set a new condition for the breakpoint, an expression which
1562
+ must evaluate to true before the breakpoint is honored. If
1563
+ condition is absent, any existing condition is removed; i.e.,
1564
+ the breakpoint is made unconditional.
1565
+ """
1566
+ if not arg:
1567
+ self._print_invalid_arg(arg)
1568
+ return
1569
+ args = arg.split(' ', 1)
1570
+ try:
1571
+ cond = args[1]
1572
+ if err := self._compile_error_message(cond):
1573
+ self.error('Invalid condition %s: %r' % (cond, err))
1574
+ return
1575
+ except IndexError:
1576
+ cond = None
1577
+ try:
1578
+ bp = self.get_bpbynumber(args[0].strip())
1579
+ except IndexError:
1580
+ self.error('Breakpoint number expected')
1581
+ except ValueError as err:
1582
+ self.error(err)
1583
+ else:
1584
+ bp.cond = cond
1585
+ if not cond:
1586
+ self.message('Breakpoint %d is now unconditional.' % bp.number)
1587
+ else:
1588
+ self.message('New condition set for breakpoint %d.' % bp.number)
1589
+
1590
+ complete_condition = _complete_bpnumber
1591
+
1592
+ def do_ignore(self, arg):
1593
+ """ignore bpnumber [count]
1594
+
1595
+ Set the ignore count for the given breakpoint number. If
1596
+ count is omitted, the ignore count is set to 0. A breakpoint
1597
+ becomes active when the ignore count is zero. When non-zero,
1598
+ the count is decremented each time the breakpoint is reached
1599
+ and the breakpoint is not disabled and any associated
1600
+ condition evaluates to true.
1601
+ """
1602
+ if not arg:
1603
+ self._print_invalid_arg(arg)
1604
+ return
1605
+ args = arg.split()
1606
+ if not args:
1607
+ self.error('Breakpoint number expected')
1608
+ return
1609
+ if len(args) == 1:
1610
+ count = 0
1611
+ elif len(args) == 2:
1612
+ try:
1613
+ count = int(args[1])
1614
+ except ValueError:
1615
+ self._print_invalid_arg(arg)
1616
+ return
1617
+ else:
1618
+ self._print_invalid_arg(arg)
1619
+ return
1620
+ try:
1621
+ bp = self.get_bpbynumber(args[0].strip())
1622
+ except ValueError as err:
1623
+ self.error(err)
1624
+ else:
1625
+ bp.ignore = count
1626
+ if count > 0:
1627
+ if count > 1:
1628
+ countstr = '%d crossings' % count
1629
+ else:
1630
+ countstr = '1 crossing'
1631
+ self.message('Will ignore next %s of breakpoint %d.' %
1632
+ (countstr, bp.number))
1633
+ else:
1634
+ self.message('Will stop next time breakpoint %d is reached.'
1635
+ % bp.number)
1636
+
1637
+ complete_ignore = _complete_bpnumber
1638
+
1639
+ def _prompt_for_confirmation(self, prompt, default):
1640
+ try:
1641
+ reply = input(prompt)
1642
+ except EOFError:
1643
+ reply = default
1644
+ return reply.strip().lower()
1645
+
1646
+ def do_clear(self, arg):
1647
+ """cl(ear) [filename:lineno | bpnumber ...]
1648
+
1649
+ With a space separated list of breakpoint numbers, clear
1650
+ those breakpoints. Without argument, clear all breaks (but
1651
+ first ask confirmation). With a filename:lineno argument,
1652
+ clear all breaks at that line in that file.
1653
+ """
1654
+ if not arg:
1655
+ reply = self._prompt_for_confirmation(
1656
+ 'Clear all breaks? ',
1657
+ default='no',
1658
+ )
1659
+ if reply in ('y', 'yes'):
1660
+ bplist = [bp for bp in bdb.Breakpoint.bpbynumber if bp]
1661
+ self.clear_all_breaks()
1662
+ for bp in bplist:
1663
+ self.message('Deleted %s' % bp)
1664
+ return
1665
+ if ':' in arg:
1666
+ # Make sure it works for "clear C:\foo\bar.py:12"
1667
+ i = arg.rfind(':')
1668
+ filename = arg[:i]
1669
+ arg = arg[i+1:]
1670
+ try:
1671
+ lineno = int(arg)
1672
+ except ValueError:
1673
+ err = "Invalid line number (%s)" % arg
1674
+ else:
1675
+ bplist = self.get_breaks(filename, lineno)[:]
1676
+ err = self.clear_break(filename, lineno)
1677
+ if err:
1678
+ self.error(err)
1679
+ else:
1680
+ for bp in bplist:
1681
+ self.message('Deleted %s' % bp)
1682
+ return
1683
+ numberlist = arg.split()
1684
+ for i in numberlist:
1685
+ try:
1686
+ bp = self.get_bpbynumber(i)
1687
+ except ValueError as err:
1688
+ self.error(err)
1689
+ else:
1690
+ self.clear_bpbynumber(i)
1691
+ self.message('Deleted %s' % bp)
1692
+ do_cl = do_clear # 'c' is already an abbreviation for 'continue'
1693
+
1694
+ complete_clear = _complete_location
1695
+ complete_cl = _complete_location
1696
+
1697
+ def do_where(self, arg):
1698
+ """w(here) [count]
1699
+
1700
+ Print a stack trace. If count is not specified, print the full stack.
1701
+ If count is 0, print the current frame entry. If count is positive,
1702
+ print count entries from the most recent frame. If count is negative,
1703
+ print -count entries from the least recent frame.
1704
+ An arrow indicates the "current frame", which determines the
1705
+ context of most commands. 'bt' is an alias for this command.
1706
+ """
1707
+ if not arg:
1708
+ count = None
1709
+ else:
1710
+ try:
1711
+ count = int(arg)
1712
+ except ValueError:
1713
+ self.error('Invalid count (%s)' % arg)
1714
+ return
1715
+ self.print_stack_trace(count)
1716
+ do_w = do_where
1717
+ do_bt = do_where
1718
+
1719
+ def _select_frame(self, number):
1720
+ assert 0 <= number < len(self.stack)
1721
+ self.curindex = number
1722
+ self.curframe = self.stack[self.curindex][0]
1723
+ self.set_convenience_variable(self.curframe, '_frame', self.curframe)
1724
+ self.print_stack_entry(self.stack[self.curindex])
1725
+ self.lineno = None
1726
+
1727
+ def do_exceptions(self, arg):
1728
+ """exceptions [number]
1729
+
1730
+ List or change current exception in an exception chain.
1731
+
1732
+ Without arguments, list all the current exception in the exception
1733
+ chain. Exceptions will be numbered, with the current exception indicated
1734
+ with an arrow.
1735
+
1736
+ If given an integer as argument, switch to the exception at that index.
1737
+ """
1738
+ if not self._chained_exceptions:
1739
+ self.message(
1740
+ "Did not find chained exceptions. To move between"
1741
+ " exceptions, pdb/post_mortem must be given an exception"
1742
+ " object rather than a traceback."
1743
+ )
1744
+ return
1745
+ if not arg:
1746
+ for ix, exc in enumerate(self._chained_exceptions):
1747
+ prompt = ">" if ix == self._chained_exception_index else " "
1748
+ rep = repr(exc)
1749
+ if len(rep) > 80:
1750
+ rep = rep[:77] + "..."
1751
+ indicator = (
1752
+ " -"
1753
+ if self._chained_exceptions[ix].__traceback__ is None
1754
+ else f"{ix:>3}"
1755
+ )
1756
+ self.message(f"{prompt} {indicator} {rep}")
1757
+ else:
1758
+ try:
1759
+ number = int(arg)
1760
+ except ValueError:
1761
+ self.error("Argument must be an integer")
1762
+ return
1763
+ if 0 <= number < len(self._chained_exceptions):
1764
+ if self._chained_exceptions[number].__traceback__ is None:
1765
+ self.error("This exception does not have a traceback, cannot jump to it")
1766
+ return
1767
+
1768
+ self._chained_exception_index = number
1769
+ self.setup(None, self._chained_exceptions[number].__traceback__)
1770
+ self.print_stack_entry(self.stack[self.curindex])
1771
+ else:
1772
+ self.error("No exception with that number")
1773
+
1774
+ def do_up(self, arg):
1775
+ """u(p) [count]
1776
+
1777
+ Move the current frame count (default one) levels up in the
1778
+ stack trace (to an older frame).
1779
+ """
1780
+ if self.curindex == 0:
1781
+ self.error('Oldest frame')
1782
+ return
1783
+ try:
1784
+ count = int(arg or 1)
1785
+ except ValueError:
1786
+ self.error('Invalid frame count (%s)' % arg)
1787
+ return
1788
+ if count < 0:
1789
+ newframe = 0
1790
+ else:
1791
+ newframe = max(0, self.curindex - count)
1792
+ self._select_frame(newframe)
1793
+ do_u = do_up
1794
+
1795
+ def do_down(self, arg):
1796
+ """d(own) [count]
1797
+
1798
+ Move the current frame count (default one) levels down in the
1799
+ stack trace (to a newer frame).
1800
+ """
1801
+ if self.curindex + 1 == len(self.stack):
1802
+ self.error('Newest frame')
1803
+ return
1804
+ try:
1805
+ count = int(arg or 1)
1806
+ except ValueError:
1807
+ self.error('Invalid frame count (%s)' % arg)
1808
+ return
1809
+ if count < 0:
1810
+ newframe = len(self.stack) - 1
1811
+ else:
1812
+ newframe = min(len(self.stack) - 1, self.curindex + count)
1813
+ self._select_frame(newframe)
1814
+ do_d = do_down
1815
+
1816
+ def do_until(self, arg):
1817
+ """unt(il) [lineno]
1818
+
1819
+ Without argument, continue execution until the line with a
1820
+ number greater than the current one is reached. With a line
1821
+ number, continue execution until a line with a number greater
1822
+ or equal to that is reached. In both cases, also stop when
1823
+ the current frame returns.
1824
+ """
1825
+ if arg:
1826
+ try:
1827
+ lineno = int(arg)
1828
+ except ValueError:
1829
+ self.error('Error in argument: %r' % arg)
1830
+ return
1831
+ if lineno <= self.curframe.f_lineno:
1832
+ self.error('"until" line number is smaller than current '
1833
+ 'line number')
1834
+ return
1835
+ else:
1836
+ lineno = None
1837
+ self.set_until(self.curframe, lineno)
1838
+ return 1
1839
+ do_unt = do_until
1840
+
1841
+ def do_step(self, arg):
1842
+ """s(tep)
1843
+
1844
+ Execute the current line, stop at the first possible occasion
1845
+ (either in a function that is called or in the current
1846
+ function).
1847
+ """
1848
+ if arg:
1849
+ self._print_invalid_arg(arg)
1850
+ return
1851
+ self.set_step()
1852
+ return 1
1853
+ do_s = do_step
1854
+
1855
+ def do_next(self, arg):
1856
+ """n(ext)
1857
+
1858
+ Continue execution until the next line in the current function
1859
+ is reached or it returns.
1860
+ """
1861
+ if arg:
1862
+ self._print_invalid_arg(arg)
1863
+ return
1864
+ self.set_next(self.curframe)
1865
+ return 1
1866
+ do_n = do_next
1867
+
1868
+ def do_run(self, arg):
1869
+ """run [args...]
1870
+
1871
+ Restart the debugged python program. If a string is supplied
1872
+ it is split with "shlex", and the result is used as the new
1873
+ sys.argv. History, breakpoints, actions and debugger options
1874
+ are preserved. "restart" is an alias for "run".
1875
+ """
1876
+ if self.mode == 'inline':
1877
+ self.error('run/restart command is disabled when pdb is running in inline mode.\n'
1878
+ 'Use the command line interface to enable restarting your program\n'
1879
+ 'e.g. "python -m pdb myscript.py"')
1880
+ return
1881
+ if arg:
1882
+ import shlex
1883
+ argv0 = sys.argv[0:1]
1884
+ try:
1885
+ sys.argv = shlex.split(arg)
1886
+ except ValueError as e:
1887
+ self.error('Cannot run %s: %s' % (arg, e))
1888
+ return
1889
+ sys.argv[:0] = argv0
1890
+ # this is caught in the main debugger loop
1891
+ raise Restart
1892
+
1893
+ do_restart = do_run
1894
+
1895
+ def do_return(self, arg):
1896
+ """r(eturn)
1897
+
1898
+ Continue execution until the current function returns.
1899
+ """
1900
+ if arg:
1901
+ self._print_invalid_arg(arg)
1902
+ return
1903
+ self.set_return(self.curframe)
1904
+ return 1
1905
+ do_r = do_return
1906
+
1907
+ def do_continue(self, arg):
1908
+ """c(ont(inue))
1909
+
1910
+ Continue execution, only stop when a breakpoint is encountered.
1911
+ """
1912
+ if arg:
1913
+ self._print_invalid_arg(arg)
1914
+ return
1915
+ if not self.nosigint:
1916
+ try:
1917
+ Pdb._previous_sigint_handler = \
1918
+ signal.signal(signal.SIGINT, self.sigint_handler)
1919
+ except ValueError:
1920
+ # ValueError happens when do_continue() is invoked from
1921
+ # a non-main thread in which case we just continue without
1922
+ # SIGINT set. Would printing a message here (once) make
1923
+ # sense?
1924
+ pass
1925
+ self.set_continue()
1926
+ return 1
1927
+ do_c = do_cont = do_continue
1928
+
1929
+ def do_jump(self, arg):
1930
+ """j(ump) lineno
1931
+
1932
+ Set the next line that will be executed. Only available in
1933
+ the bottom-most frame. This lets you jump back and execute
1934
+ code again, or jump forward to skip code that you don't want
1935
+ to run.
1936
+
1937
+ It should be noted that not all jumps are allowed -- for
1938
+ instance it is not possible to jump into the middle of a
1939
+ for loop or out of a finally clause.
1940
+ """
1941
+ if not arg:
1942
+ self._print_invalid_arg(arg)
1943
+ return
1944
+ if self.curindex + 1 != len(self.stack):
1945
+ self.error('You can only jump within the bottom frame')
1946
+ return
1947
+ try:
1948
+ arg = int(arg)
1949
+ except ValueError:
1950
+ self.error("The 'jump' command requires a line number")
1951
+ else:
1952
+ try:
1953
+ # Do the jump, fix up our copy of the stack, and display the
1954
+ # new position
1955
+ self.curframe.f_lineno = arg
1956
+ self.stack[self.curindex] = self.stack[self.curindex][0], arg
1957
+ self.print_stack_entry(self.stack[self.curindex])
1958
+ except ValueError as e:
1959
+ self.error('Jump failed: %s' % e)
1960
+ do_j = do_jump
1961
+
1962
+ def _create_recursive_debugger(self):
1963
+ return Pdb(self.completekey, self.stdin, self.stdout)
1964
+
1965
+ def do_debug(self, arg):
1966
+ """debug code
1967
+
1968
+ Enter a recursive debugger that steps through the code
1969
+ argument (which is an arbitrary expression or statement to be
1970
+ executed in the current environment).
1971
+ """
1972
+ if not arg:
1973
+ self._print_invalid_arg(arg)
1974
+ return
1975
+ self.stop_trace()
1976
+ globals = self.curframe.f_globals
1977
+ locals = self.curframe.f_locals
1978
+ p = self._create_recursive_debugger()
1979
+ p.prompt = "(%s) " % self.prompt.strip()
1980
+ self.message("ENTERING RECURSIVE DEBUGGER")
1981
+ try:
1982
+ sys.call_tracing(p.run, (arg, globals, locals))
1983
+ except Exception:
1984
+ self._error_exc()
1985
+ self.message("LEAVING RECURSIVE DEBUGGER")
1986
+ self.start_trace()
1987
+ self.lastcmd = p.lastcmd
1988
+
1989
+ complete_debug = _complete_expression
1990
+
1991
+ def do_quit(self, arg):
1992
+ """q(uit) | exit
1993
+
1994
+ Quit from the debugger. The program being executed is aborted.
1995
+ """
1996
+ # Show prompt to kill process when in 'inline' mode and if pdb was not
1997
+ # started from an interactive console. The attribute sys.ps1 is only
1998
+ # defined if the interpreter is in interactive mode.
1999
+ if self.mode == 'inline' and not hasattr(sys, 'ps1'):
2000
+ while True:
2001
+ try:
2002
+ reply = input('Quitting pdb will kill the process. Quit anyway? [y/n] ')
2003
+ reply = reply.lower().strip()
2004
+ except EOFError:
2005
+ reply = 'y'
2006
+ self.message('')
2007
+ if reply == 'y' or reply == '':
2008
+ sys.exit(1)
2009
+ elif reply.lower() == 'n':
2010
+ return
2011
+
2012
+ self._user_requested_quit = True
2013
+ self.set_quit()
2014
+ return 1
2015
+
2016
+ do_q = do_quit
2017
+ do_exit = do_quit
2018
+
2019
+ def do_EOF(self, arg):
2020
+ """EOF
2021
+
2022
+ Handles the receipt of EOF as a command.
2023
+ """
2024
+ self.message('')
2025
+ return self.do_quit(arg)
2026
+
2027
+ def do_args(self, arg):
2028
+ """a(rgs)
2029
+
2030
+ Print the argument list of the current function.
2031
+ """
2032
+ if arg:
2033
+ self._print_invalid_arg(arg)
2034
+ return
2035
+ co = self.curframe.f_code
2036
+ dict = self.curframe.f_locals
2037
+ n = co.co_argcount + co.co_kwonlyargcount
2038
+ if co.co_flags & inspect.CO_VARARGS: n = n+1
2039
+ if co.co_flags & inspect.CO_VARKEYWORDS: n = n+1
2040
+ for i in range(n):
2041
+ name = co.co_varnames[i]
2042
+ if name in dict:
2043
+ self.message('%s = %s' % (name, self._safe_repr(dict[name], name)))
2044
+ else:
2045
+ self.message('%s = *** undefined ***' % (name,))
2046
+ do_a = do_args
2047
+
2048
+ def do_retval(self, arg):
2049
+ """retval
2050
+
2051
+ Print the return value for the last return of a function.
2052
+ """
2053
+ if arg:
2054
+ self._print_invalid_arg(arg)
2055
+ return
2056
+ if '__return__' in self.curframe.f_locals:
2057
+ self.message(self._safe_repr(self.curframe.f_locals['__return__'], "retval"))
2058
+ else:
2059
+ self.error('Not yet returned!')
2060
+ do_rv = do_retval
2061
+
2062
+ def _getval(self, arg):
2063
+ try:
2064
+ return eval(arg, self.curframe.f_globals, self.curframe.f_locals)
2065
+ except:
2066
+ self._error_exc()
2067
+ raise
2068
+
2069
+ def _getval_except(self, arg, frame=None):
2070
+ try:
2071
+ if frame is None:
2072
+ return eval(arg, self.curframe.f_globals, self.curframe.f_locals)
2073
+ else:
2074
+ return eval(arg, frame.f_globals, frame.f_locals)
2075
+ except BaseException as exc:
2076
+ return _rstr('** raised %s **' % self._format_exc(exc))
2077
+
2078
+ def _error_exc(self):
2079
+ exc = sys.exception()
2080
+ self.error(self._format_exc(exc))
2081
+
2082
+ def _msg_val_func(self, arg, func):
2083
+ try:
2084
+ val = self._getval(arg)
2085
+ except:
2086
+ return # _getval() has displayed the error
2087
+ try:
2088
+ self.message(func(val))
2089
+ except:
2090
+ self._error_exc()
2091
+
2092
+ def _safe_repr(self, obj, expr):
2093
+ try:
2094
+ return repr(obj)
2095
+ except Exception as e:
2096
+ return _rstr(f"*** repr({expr}) failed: {self._format_exc(e)} ***")
2097
+
2098
+ def do_p(self, arg):
2099
+ """p expression
2100
+
2101
+ Print the value of the expression.
2102
+ """
2103
+ if not arg:
2104
+ self._print_invalid_arg(arg)
2105
+ return
2106
+ self._msg_val_func(arg, repr)
2107
+
2108
+ def do_pp(self, arg):
2109
+ """pp expression
2110
+
2111
+ Pretty-print the value of the expression.
2112
+ """
2113
+ if not arg:
2114
+ self._print_invalid_arg(arg)
2115
+ return
2116
+ self._msg_val_func(arg, pprint.pformat)
2117
+
2118
+ complete_print = _complete_expression
2119
+ complete_p = _complete_expression
2120
+ complete_pp = _complete_expression
2121
+
2122
+ def do_list(self, arg):
2123
+ """l(ist) [first[, last] | .]
2124
+
2125
+ List source code for the current file. Without arguments,
2126
+ list 11 lines around the current line or continue the previous
2127
+ listing. With . as argument, list 11 lines around the current
2128
+ line. With one argument, list 11 lines starting at that line.
2129
+ With two arguments, list the given range; if the second
2130
+ argument is less than the first, it is a count.
2131
+
2132
+ The current line in the current frame is indicated by "->".
2133
+ If an exception is being debugged, the line where the
2134
+ exception was originally raised or propagated is indicated by
2135
+ ">>", if it differs from the current line.
2136
+ """
2137
+ self.lastcmd = 'list'
2138
+ last = None
2139
+ if arg and arg != '.':
2140
+ try:
2141
+ if ',' in arg:
2142
+ first, last = arg.split(',')
2143
+ first = int(first.strip())
2144
+ last = int(last.strip())
2145
+ if last < first:
2146
+ # assume it's a count
2147
+ last = first + last
2148
+ else:
2149
+ first = int(arg.strip())
2150
+ first = max(1, first - 5)
2151
+ except ValueError:
2152
+ self.error('Error in argument: %r' % arg)
2153
+ return
2154
+ elif self.lineno is None or arg == '.':
2155
+ first = max(1, self.curframe.f_lineno - 5)
2156
+ else:
2157
+ first = self.lineno + 1
2158
+ if last is None:
2159
+ last = first + 10
2160
+ filename = self.curframe.f_code.co_filename
2161
+ breaklist = self.get_file_breaks(filename)
2162
+ try:
2163
+ lines = linecache.getlines(filename, self.curframe.f_globals)
2164
+ self._print_lines(lines[first-1:last], first, breaklist,
2165
+ self.curframe)
2166
+ self.lineno = min(last, len(lines))
2167
+ if len(lines) < last:
2168
+ self.message('[EOF]')
2169
+ except KeyboardInterrupt:
2170
+ pass
2171
+ self._validate_file_mtime()
2172
+ do_l = do_list
2173
+
2174
+ def do_longlist(self, arg):
2175
+ """ll | longlist
2176
+
2177
+ List the whole source code for the current function or frame.
2178
+ """
2179
+ if arg:
2180
+ self._print_invalid_arg(arg)
2181
+ return
2182
+ filename = self.curframe.f_code.co_filename
2183
+ breaklist = self.get_file_breaks(filename)
2184
+ try:
2185
+ lines, lineno = self._getsourcelines(self.curframe)
2186
+ except OSError as err:
2187
+ self.error(err)
2188
+ return
2189
+ self._print_lines(lines, lineno, breaklist, self.curframe)
2190
+ self._validate_file_mtime()
2191
+ do_ll = do_longlist
2192
+
2193
+ def do_source(self, arg):
2194
+ """source expression
2195
+
2196
+ Try to get source code for the given object and display it.
2197
+ """
2198
+ if not arg:
2199
+ self._print_invalid_arg(arg)
2200
+ return
2201
+ try:
2202
+ obj = self._getval(arg)
2203
+ except:
2204
+ return
2205
+ try:
2206
+ lines, lineno = self._getsourcelines(obj)
2207
+ except (OSError, TypeError) as err:
2208
+ self.error(err)
2209
+ return
2210
+ self._print_lines(lines, lineno)
2211
+
2212
+ complete_source = _complete_expression
2213
+
2214
+ def _print_lines(self, lines, start, breaks=(), frame=None):
2215
+ """Print a range of lines."""
2216
+ if frame:
2217
+ current_lineno = frame.f_lineno
2218
+ exc_lineno = self.tb_lineno.get(frame, -1)
2219
+ else:
2220
+ current_lineno = exc_lineno = -1
2221
+ for lineno, line in enumerate(lines, start):
2222
+ s = str(lineno).rjust(3)
2223
+ if len(s) < 4:
2224
+ s += ' '
2225
+ if lineno in breaks:
2226
+ s += 'B'
2227
+ else:
2228
+ s += ' '
2229
+ if lineno == current_lineno:
2230
+ s += '->'
2231
+ elif lineno == exc_lineno:
2232
+ s += '>>'
2233
+ if self.colorize:
2234
+ line = self._colorize_code(line)
2235
+ self.message(s + '\t' + line.rstrip())
2236
+
2237
+ def do_whatis(self, arg):
2238
+ """whatis expression
2239
+
2240
+ Print the type of the argument.
2241
+ """
2242
+ if not arg:
2243
+ self._print_invalid_arg(arg)
2244
+ return
2245
+ try:
2246
+ value = self._getval(arg)
2247
+ except:
2248
+ # _getval() already printed the error
2249
+ return
2250
+ code = None
2251
+ # Is it an instance method?
2252
+ try:
2253
+ code = value.__func__.__code__
2254
+ except Exception:
2255
+ pass
2256
+ if code:
2257
+ self.message('Method %s' % code.co_name)
2258
+ return
2259
+ # Is it a function?
2260
+ try:
2261
+ code = value.__code__
2262
+ except Exception:
2263
+ pass
2264
+ if code:
2265
+ self.message('Function %s' % code.co_name)
2266
+ return
2267
+ # Is it a class?
2268
+ if value.__class__ is type:
2269
+ self.message('Class %s.%s' % (value.__module__, value.__qualname__))
2270
+ return
2271
+ # None of the above...
2272
+ self.message(type(value))
2273
+
2274
+ complete_whatis = _complete_expression
2275
+
2276
+ def do_display(self, arg):
2277
+ """display [expression]
2278
+
2279
+ Display the value of the expression if it changed, each time execution
2280
+ stops in the current frame.
2281
+
2282
+ Without expression, list all display expressions for the current frame.
2283
+ """
2284
+ if not arg:
2285
+ if self.displaying:
2286
+ self.message('Currently displaying:')
2287
+ for key, val in self.displaying.get(self.curframe, {}).items():
2288
+ self.message('%s: %s' % (key, self._safe_repr(val, key)))
2289
+ else:
2290
+ self.message('No expression is being displayed')
2291
+ else:
2292
+ if err := self._compile_error_message(arg):
2293
+ self.error('Unable to display %s: %r' % (arg, err))
2294
+ else:
2295
+ val = self._getval_except(arg)
2296
+ self.displaying.setdefault(self.curframe, {})[arg] = val
2297
+ self.message('display %s: %s' % (arg, self._safe_repr(val, arg)))
2298
+
2299
+ complete_display = _complete_expression
2300
+
2301
+ def do_undisplay(self, arg):
2302
+ """undisplay [expression]
2303
+
2304
+ Do not display the expression any more in the current frame.
2305
+
2306
+ Without expression, clear all display expressions for the current frame.
2307
+ """
2308
+ if arg:
2309
+ try:
2310
+ del self.displaying.get(self.curframe, {})[arg]
2311
+ except KeyError:
2312
+ self.error('not displaying %s' % arg)
2313
+ else:
2314
+ self.displaying.pop(self.curframe, None)
2315
+
2316
+ def complete_undisplay(self, text, line, begidx, endidx):
2317
+ return [e for e in self.displaying.get(self.curframe, {})
2318
+ if e.startswith(text)]
2319
+
2320
+ def do_interact(self, arg):
2321
+ """interact
2322
+
2323
+ Start an interactive interpreter whose global namespace
2324
+ contains all the (global and local) names found in the current scope.
2325
+ """
2326
+ ns = {**self.curframe.f_globals, **self.curframe.f_locals}
2327
+ with self._enable_rlcompleter(ns):
2328
+ console = _PdbInteractiveConsole(ns, message=self.message)
2329
+ console.interact(banner="*pdb interact start*",
2330
+ exitmsg="*exit from pdb interact command*")
2331
+
2332
+ def do_alias(self, arg):
2333
+ """alias [name [command]]
2334
+
2335
+ Create an alias called 'name' that executes 'command'. The
2336
+ command must *not* be enclosed in quotes. Replaceable
2337
+ parameters can be indicated by %1, %2, and so on, while %* is
2338
+ replaced by all the parameters. If no command is given, the
2339
+ current alias for name is shown. If no name is given, all
2340
+ aliases are listed.
2341
+
2342
+ Aliases may be nested and can contain anything that can be
2343
+ legally typed at the pdb prompt. Note! You *can* override
2344
+ internal pdb commands with aliases! Those internal commands
2345
+ are then hidden until the alias is removed. Aliasing is
2346
+ recursively applied to the first word of the command line; all
2347
+ other words in the line are left alone.
2348
+
2349
+ As an example, here are two useful aliases (especially when
2350
+ placed in the .pdbrc file):
2351
+
2352
+ # Print instance variables (usage "pi classInst")
2353
+ alias pi for k in %1.__dict__.keys(): print("%1.",k,"=",%1.__dict__[k])
2354
+ # Print instance variables in self
2355
+ alias ps pi self
2356
+ """
2357
+ args = arg.split()
2358
+ if len(args) == 0:
2359
+ keys = sorted(self.aliases.keys())
2360
+ for alias in keys:
2361
+ self.message("%s = %s" % (alias, self.aliases[alias]))
2362
+ return
2363
+ if len(args) == 1:
2364
+ if args[0] in self.aliases:
2365
+ self.message("%s = %s" % (args[0], self.aliases[args[0]]))
2366
+ else:
2367
+ self.error(f"Unknown alias '{args[0]}'")
2368
+ else:
2369
+ # Do a validation check to make sure no replaceable parameters
2370
+ # are skipped if %* is not used.
2371
+ alias = ' '.join(args[1:])
2372
+ if '%*' not in alias:
2373
+ consecutive = True
2374
+ for idx in range(1, 10):
2375
+ if f'%{idx}' not in alias:
2376
+ consecutive = False
2377
+ if f'%{idx}' in alias and not consecutive:
2378
+ self.error("Replaceable parameters must be consecutive")
2379
+ return
2380
+ self.aliases[args[0]] = alias
2381
+
2382
+ def do_unalias(self, arg):
2383
+ """unalias name
2384
+
2385
+ Delete the specified alias.
2386
+ """
2387
+ args = arg.split()
2388
+ if len(args) == 0:
2389
+ self._print_invalid_arg(arg)
2390
+ return
2391
+ if args[0] in self.aliases:
2392
+ del self.aliases[args[0]]
2393
+
2394
+ def complete_unalias(self, text, line, begidx, endidx):
2395
+ return [a for a in self.aliases if a.startswith(text)]
2396
+
2397
+ # List of all the commands making the program resume execution.
2398
+ commands_resuming = ['do_continue', 'do_step', 'do_next', 'do_return',
2399
+ 'do_until', 'do_quit', 'do_jump']
2400
+
2401
+ # Print a traceback starting at the top stack frame.
2402
+ # The most recently entered frame is printed last;
2403
+ # this is different from dbx and gdb, but consistent with
2404
+ # the Python interpreter's stack trace.
2405
+ # It is also consistent with the up/down commands (which are
2406
+ # compatible with dbx and gdb: up moves towards 'main()'
2407
+ # and down moves towards the most recent stack frame).
2408
+ # * if count is None, prints the full stack
2409
+ # * if count = 0, prints the current frame entry
2410
+ # * if count < 0, prints -count least recent frame entries
2411
+ # * if count > 0, prints count most recent frame entries
2412
+
2413
+ def print_stack_trace(self, count=None):
2414
+ if count is None:
2415
+ stack_to_print = self.stack
2416
+ elif count == 0:
2417
+ stack_to_print = [self.stack[self.curindex]]
2418
+ elif count < 0:
2419
+ stack_to_print = self.stack[:-count]
2420
+ else:
2421
+ stack_to_print = self.stack[-count:]
2422
+ try:
2423
+ for frame_lineno in stack_to_print:
2424
+ self.print_stack_entry(frame_lineno)
2425
+ except KeyboardInterrupt:
2426
+ pass
2427
+
2428
+ def print_stack_entry(self, frame_lineno, prompt_prefix=line_prefix):
2429
+ frame, lineno = frame_lineno
2430
+ if frame is self.curframe:
2431
+ prefix = '> '
2432
+ else:
2433
+ prefix = ' '
2434
+ stack_entry = self.format_stack_entry(frame_lineno, prompt_prefix)
2435
+ if self.colorize:
2436
+ lines = stack_entry.split(prompt_prefix, 1)
2437
+ if len(lines) > 1:
2438
+ # We have some code to display
2439
+ lines[1] = self._colorize_code(lines[1])
2440
+ stack_entry = prompt_prefix.join(lines)
2441
+ self.message(prefix + stack_entry)
2442
+
2443
+ # Provide help
2444
+
2445
+ def do_help(self, arg):
2446
+ """h(elp)
2447
+
2448
+ Without argument, print the list of available commands.
2449
+ With a command name as argument, print help about that command.
2450
+ "help pdb" shows the full pdb documentation.
2451
+ "help exec" gives help on the ! command.
2452
+ """
2453
+ if not arg:
2454
+ return cmd.Cmd.do_help(self, arg)
2455
+ try:
2456
+ try:
2457
+ topic = getattr(self, 'help_' + arg)
2458
+ return topic()
2459
+ except AttributeError:
2460
+ command = getattr(self, 'do_' + arg)
2461
+ except AttributeError:
2462
+ self.error('No help for %r' % arg)
2463
+ else:
2464
+ if sys.flags.optimize >= 2:
2465
+ self.error('No help for %r; please do not run Python with -OO '
2466
+ 'if you need command help' % arg)
2467
+ return
2468
+ if command.__doc__ is None:
2469
+ self.error('No help for %r; __doc__ string missing' % arg)
2470
+ return
2471
+ self.message(self._help_message_from_doc(command.__doc__))
2472
+
2473
+ do_h = do_help
2474
+
2475
+ def help_exec(self):
2476
+ """(!) statement
2477
+
2478
+ Execute the (one-line) statement in the context of the current
2479
+ stack frame. The exclamation point can be omitted unless the
2480
+ first word of the statement resembles a debugger command, e.g.:
2481
+ (Pdb) ! n=42
2482
+ (Pdb)
2483
+
2484
+ To assign to a global variable you must always prefix the command with
2485
+ a 'global' command, e.g.:
2486
+ (Pdb) global list_options; list_options = ['-l']
2487
+ (Pdb)
2488
+ """
2489
+ self.message((self.help_exec.__doc__ or '').strip())
2490
+
2491
+ def help_pdb(self):
2492
+ help()
2493
+
2494
+ # other helper functions
2495
+
2496
+ def lookupmodule(self, filename):
2497
+ """Helper function for break/clear parsing -- may be overridden.
2498
+
2499
+ lookupmodule() translates (possibly incomplete) file or module name
2500
+ into an absolute file name.
2501
+
2502
+ filename could be in format of:
2503
+ * an absolute path like '/path/to/file.py'
2504
+ * a relative path like 'file.py' or 'dir/file.py'
2505
+ * a module name like 'module' or 'package.module'
2506
+
2507
+ files and modules will be searched in sys.path.
2508
+ """
2509
+ if not filename.endswith('.py'):
2510
+ # A module is passed in so convert it to equivalent file
2511
+ filename = filename.replace('.', os.sep) + '.py'
2512
+
2513
+ if os.path.isabs(filename):
2514
+ if os.path.exists(filename):
2515
+ return filename
2516
+ return None
2517
+
2518
+ for dirname in sys.path:
2519
+ while os.path.islink(dirname):
2520
+ dirname = os.readlink(dirname)
2521
+ fullname = os.path.join(dirname, filename)
2522
+ if os.path.exists(fullname):
2523
+ return fullname
2524
+ return None
2525
+
2526
+ def _run(self, target: _ExecutableTarget):
2527
+ # When bdb sets tracing, a number of call and line events happen
2528
+ # BEFORE debugger even reaches user's code (and the exact sequence of
2529
+ # events depends on python version). Take special measures to
2530
+ # avoid stopping before reaching the main script (see user_line and
2531
+ # user_call for details).
2532
+ self._wait_for_mainpyfile = True
2533
+ self._user_requested_quit = False
2534
+
2535
+ self.mainpyfile = self.canonic(target.filename)
2536
+
2537
+ # The target has to run in __main__ namespace (or imports from
2538
+ # __main__ will break). Clear __main__ and replace with
2539
+ # the target namespace.
2540
+ import __main__
2541
+ __main__.__dict__.clear()
2542
+ __main__.__dict__.update(target.namespace)
2543
+
2544
+ # Clear the mtime table for program reruns, assume all the files
2545
+ # are up to date.
2546
+ self._file_mtime_table.clear()
2547
+
2548
+ self.run(target.code)
2549
+
2550
+ def _format_exc(self, exc: BaseException):
2551
+ return traceback.format_exception_only(exc)[-1].strip()
2552
+
2553
+ def _compile_error_message(self, expr):
2554
+ """Return the error message as string if compiling `expr` fails."""
2555
+ try:
2556
+ compile(expr, "<stdin>", "eval")
2557
+ except SyntaxError as exc:
2558
+ return _rstr(self._format_exc(exc))
2559
+ return ""
2560
+
2561
+ def _getsourcelines(self, obj):
2562
+ # GH-103319
2563
+ # inspect.getsourcelines() returns lineno = 0 for
2564
+ # module-level frame which breaks our code print line number
2565
+ # This method should be replaced by inspect.getsourcelines(obj)
2566
+ # once this bug is fixed in inspect
2567
+ lines, lineno = inspect.getsourcelines(obj)
2568
+ lineno = max(1, lineno)
2569
+ return lines, lineno
2570
+
2571
+ def _help_message_from_doc(self, doc, usage_only=False):
2572
+ lines = [line.strip() for line in doc.rstrip().splitlines()]
2573
+ if not lines:
2574
+ return "No help message found."
2575
+ if "" in lines:
2576
+ usage_end = lines.index("")
2577
+ else:
2578
+ usage_end = 1
2579
+ formatted = []
2580
+ indent = " " * len(self.prompt)
2581
+ for i, line in enumerate(lines):
2582
+ if i == 0:
2583
+ prefix = "Usage: "
2584
+ elif i < usage_end:
2585
+ prefix = " "
2586
+ else:
2587
+ if usage_only:
2588
+ break
2589
+ prefix = ""
2590
+ formatted.append(indent + prefix + line)
2591
+ return "\n".join(formatted)
2592
+
2593
+ def _print_invalid_arg(self, arg):
2594
+ """Return the usage string for a function."""
2595
+
2596
+ if not arg:
2597
+ self.error("Argument is required for this command")
2598
+ else:
2599
+ self.error(f"Invalid argument: {arg}")
2600
+
2601
+ # Yes it's a bit hacky. Get the caller name, get the method based on
2602
+ # that name, and get the docstring from that method.
2603
+ # This should NOT fail if the caller is a method of this class.
2604
+ doc = inspect.getdoc(getattr(self, sys._getframe(1).f_code.co_name))
2605
+ if doc is not None:
2606
+ self.message(self._help_message_from_doc(doc, usage_only=True))
2607
+
2608
+ # Collect all command help into docstring, if not run with -OO
2609
+
2610
+ if __doc__ is not None:
2611
+ # unfortunately we can't guess this order from the class definition
2612
+ _help_order = [
2613
+ 'help', 'where', 'down', 'up', 'break', 'tbreak', 'clear', 'disable',
2614
+ 'enable', 'ignore', 'condition', 'commands', 'step', 'next', 'until',
2615
+ 'jump', 'return', 'retval', 'run', 'continue', 'list', 'longlist',
2616
+ 'args', 'p', 'pp', 'whatis', 'source', 'display', 'undisplay',
2617
+ 'interact', 'alias', 'unalias', 'debug', 'quit',
2618
+ ]
2619
+
2620
+ for _command in _help_order:
2621
+ __doc__ += getattr(Pdb, 'do_' + _command).__doc__.strip() + '\n\n'
2622
+ __doc__ += Pdb.help_exec.__doc__
2623
+
2624
+ del _help_order, _command
2625
+
2626
+
2627
+ # Simplified interface
2628
+
2629
+ def run(statement, globals=None, locals=None):
2630
+ """Execute the *statement* (given as a string or a code object)
2631
+ under debugger control.
2632
+
2633
+ The debugger prompt appears before any code is executed; you can set
2634
+ breakpoints and type continue, or you can step through the statement
2635
+ using step or next.
2636
+
2637
+ The optional *globals* and *locals* arguments specify the
2638
+ environment in which the code is executed; by default the
2639
+ dictionary of the module __main__ is used (see the explanation of
2640
+ the built-in exec() or eval() functions.).
2641
+ """
2642
+ Pdb().run(statement, globals, locals)
2643
+
2644
+ def runeval(expression, globals=None, locals=None):
2645
+ """Evaluate the *expression* (given as a string or a code object)
2646
+ under debugger control.
2647
+
2648
+ When runeval() returns, it returns the value of the expression.
2649
+ Otherwise this function is similar to run().
2650
+ """
2651
+ return Pdb().runeval(expression, globals, locals)
2652
+
2653
+ def runctx(statement, globals, locals):
2654
+ # B/W compatibility
2655
+ run(statement, globals, locals)
2656
+
2657
+ def runcall(*args, **kwds):
2658
+ """Call the function (a function or method object, not a string)
2659
+ with the given arguments.
2660
+
2661
+ When runcall() returns, it returns whatever the function call
2662
+ returned. The debugger prompt appears as soon as the function is
2663
+ entered.
2664
+ """
2665
+ return Pdb().runcall(*args, **kwds)
2666
+
2667
+ def set_trace(*, header=None, commands=None):
2668
+ """Enter the debugger at the calling stack frame.
2669
+
2670
+ This is useful to hard-code a breakpoint at a given point in a
2671
+ program, even if the code is not otherwise being debugged (e.g. when
2672
+ an assertion fails). If given, *header* is printed to the console
2673
+ just before debugging begins. *commands* is an optional list of
2674
+ pdb commands to run when the debugger starts.
2675
+ """
2676
+ if Pdb._last_pdb_instance is not None:
2677
+ pdb = Pdb._last_pdb_instance
2678
+ else:
2679
+ pdb = Pdb(mode='inline', backend='monitoring', colorize=True)
2680
+ if header is not None:
2681
+ pdb.message(header)
2682
+ pdb.set_trace(sys._getframe().f_back, commands=commands)
2683
+
2684
+ async def set_trace_async(*, header=None, commands=None):
2685
+ """Enter the debugger at the calling stack frame, but in async mode.
2686
+
2687
+ This should be used as await pdb.set_trace_async(). Users can do await
2688
+ if they enter the debugger with this function. Otherwise it's the same
2689
+ as set_trace().
2690
+ """
2691
+ if Pdb._last_pdb_instance is not None:
2692
+ pdb = Pdb._last_pdb_instance
2693
+ else:
2694
+ pdb = Pdb(mode='inline', backend='monitoring', colorize=True)
2695
+ if header is not None:
2696
+ pdb.message(header)
2697
+ await pdb.set_trace_async(sys._getframe().f_back, commands=commands)
2698
+
2699
+ # Remote PDB
2700
+
2701
+ class _PdbServer(Pdb):
2702
+ def __init__(
2703
+ self,
2704
+ sockfile,
2705
+ signal_server=None,
2706
+ owns_sockfile=True,
2707
+ colorize=False,
2708
+ **kwargs,
2709
+ ):
2710
+ self._owns_sockfile = owns_sockfile
2711
+ self._interact_state = None
2712
+ self._sockfile = sockfile
2713
+ self._command_name_cache = []
2714
+ self._write_failed = False
2715
+ if signal_server:
2716
+ # Only started by the top level _PdbServer, not recursive ones.
2717
+ self._start_signal_listener(signal_server)
2718
+ # Override the `colorize` attribute set by the parent constructor,
2719
+ # because it checks the server's stdout, rather than the client's.
2720
+ super().__init__(colorize=False, **kwargs)
2721
+ self.colorize = colorize
2722
+
2723
+ @staticmethod
2724
+ def protocol_version():
2725
+ # By default, assume a client and server are compatible if they run
2726
+ # the same Python major.minor version. We'll try to keep backwards
2727
+ # compatibility between patch versions of a minor version if possible.
2728
+ # If we do need to change the protocol in a patch version, we'll change
2729
+ # `revision` to the patch version where the protocol changed.
2730
+ # We can ignore compatibility for pre-release versions; sys.remote_exec
2731
+ # can't attach to a pre-release version except from that same version.
2732
+ v = sys.version_info
2733
+ revision = 0
2734
+ return int(f"{v.major:02X}{v.minor:02X}{revision:02X}F0", 16)
2735
+
2736
+ def _ensure_valid_message(self, msg):
2737
+ # Ensure the message conforms to our protocol.
2738
+ # If anything needs to be changed here for a patch release of Python,
2739
+ # the 'revision' in protocol_version() should be updated.
2740
+ match msg:
2741
+ case {"message": str(), "type": str()}:
2742
+ # Have the client show a message. The client chooses how to
2743
+ # format the message based on its type. The currently defined
2744
+ # types are "info" and "error". If a message has a type the
2745
+ # client doesn't recognize, it must be treated as "info".
2746
+ pass
2747
+ case {"help": str()}:
2748
+ # Have the client show the help for a given argument.
2749
+ pass
2750
+ case {"prompt": str(), "state": str()}:
2751
+ # Have the client display the given prompt and wait for a reply
2752
+ # from the user. If the client recognizes the state it may
2753
+ # enable mode-specific features like multi-line editing.
2754
+ # If it doesn't recognize the state it must prompt for a single
2755
+ # line only and send it directly to the server. A server won't
2756
+ # progress until it gets a "reply" or "signal" message, but can
2757
+ # process "complete" requests while waiting for the reply.
2758
+ pass
2759
+ case {
2760
+ "completions": list(completions)
2761
+ } if all(isinstance(c, str) for c in completions):
2762
+ # Return valid completions for a client's "complete" request.
2763
+ pass
2764
+ case {
2765
+ "command_list": list(command_list)
2766
+ } if all(isinstance(c, str) for c in command_list):
2767
+ # Report the list of legal PDB commands to the client.
2768
+ # Due to aliases this list is not static, but the client
2769
+ # needs to know it for multi-line editing.
2770
+ pass
2771
+ case _:
2772
+ raise AssertionError(
2773
+ f"PDB message doesn't follow the schema! {msg}"
2774
+ )
2775
+
2776
+ @classmethod
2777
+ def _start_signal_listener(cls, address):
2778
+ def listener(sock):
2779
+ with closing(sock):
2780
+ # Check if the interpreter is finalizing every quarter of a second.
2781
+ # Clean up and exit if so.
2782
+ sock.settimeout(0.25)
2783
+ sock.shutdown(socket.SHUT_WR)
2784
+ while not shut_down.is_set():
2785
+ try:
2786
+ data = sock.recv(1024)
2787
+ except socket.timeout:
2788
+ continue
2789
+ if data == b"":
2790
+ return # EOF
2791
+ signal.raise_signal(signal.SIGINT)
2792
+
2793
+ def stop_thread():
2794
+ shut_down.set()
2795
+ thread.join()
2796
+
2797
+ # Use a daemon thread so that we don't detach until after all non-daemon
2798
+ # threads are done. Use an atexit handler to stop gracefully at that point,
2799
+ # so that our thread is stopped before the interpreter is torn down.
2800
+ shut_down = threading.Event()
2801
+ thread = threading.Thread(
2802
+ target=listener,
2803
+ args=[socket.create_connection(address, timeout=5)],
2804
+ daemon=True,
2805
+ )
2806
+ atexit.register(stop_thread)
2807
+ thread.start()
2808
+
2809
+ def _send(self, **kwargs):
2810
+ self._ensure_valid_message(kwargs)
2811
+ json_payload = json.dumps(kwargs)
2812
+ try:
2813
+ self._sockfile.write(json_payload.encode() + b"\n")
2814
+ self._sockfile.flush()
2815
+ except (OSError, ValueError):
2816
+ # We get an OSError if the network connection has dropped, and a
2817
+ # ValueError if detach() if the sockfile has been closed. We'll
2818
+ # handle this the next time we try to read from the client instead
2819
+ # of trying to handle it from everywhere _send() may be called.
2820
+ # Track this with a flag rather than assuming readline() will ever
2821
+ # return an empty string because the socket may be half-closed.
2822
+ self._write_failed = True
2823
+
2824
+ @typing.override
2825
+ def message(self, msg, end="\n"):
2826
+ self._send(message=str(msg) + end, type="info")
2827
+
2828
+ @typing.override
2829
+ def error(self, msg):
2830
+ self._send(message=str(msg), type="error")
2831
+
2832
+ def _get_input(self, prompt, state) -> str:
2833
+ # Before displaying a (Pdb) prompt, send the list of PDB commands
2834
+ # unless we've already sent an up-to-date list.
2835
+ if state == "pdb" and not self._command_name_cache:
2836
+ self._command_name_cache = self.completenames("", "", 0, 0)
2837
+ self._send(command_list=self._command_name_cache)
2838
+ self._send(prompt=prompt, state=state)
2839
+ return self._read_reply()
2840
+
2841
+ def _read_reply(self):
2842
+ # Loop until we get a 'reply' or 'signal' from the client,
2843
+ # processing out-of-band 'complete' requests as they arrive.
2844
+ while True:
2845
+ if self._write_failed:
2846
+ raise EOFError
2847
+
2848
+ msg = self._sockfile.readline()
2849
+ if not msg:
2850
+ raise EOFError
2851
+
2852
+ try:
2853
+ payload = json.loads(msg)
2854
+ except json.JSONDecodeError:
2855
+ self.error(f"Disconnecting: client sent invalid JSON {msg!r}")
2856
+ raise EOFError
2857
+
2858
+ match payload:
2859
+ case {"reply": str(reply)}:
2860
+ return reply
2861
+ case {"signal": str(signal)}:
2862
+ if signal == "INT":
2863
+ raise KeyboardInterrupt
2864
+ elif signal == "EOF":
2865
+ raise EOFError
2866
+ else:
2867
+ self.error(
2868
+ f"Received unrecognized signal: {signal}"
2869
+ )
2870
+ # Our best hope of recovering is to pretend we
2871
+ # got an EOF to exit whatever mode we're in.
2872
+ raise EOFError
2873
+ case {
2874
+ "complete": {
2875
+ "text": str(text),
2876
+ "line": str(line),
2877
+ "begidx": int(begidx),
2878
+ "endidx": int(endidx),
2879
+ }
2880
+ }:
2881
+ items = self._complete_any(text, line, begidx, endidx)
2882
+ self._send(completions=items)
2883
+ continue
2884
+ # Valid JSON, but doesn't meet the schema.
2885
+ self.error(f"Ignoring invalid message from client: {msg}")
2886
+
2887
+ def _complete_any(self, text, line, begidx, endidx):
2888
+ # If we're in 'interact' mode, we need to use the default completer
2889
+ if self._interact_state:
2890
+ compfunc = self.completedefault
2891
+ else:
2892
+ if begidx == 0:
2893
+ return self.completenames(text, line, begidx, endidx)
2894
+
2895
+ cmd = self.parseline(line)[0]
2896
+ if cmd:
2897
+ compfunc = getattr(self, "complete_" + cmd, self.completedefault)
2898
+ else:
2899
+ compfunc = self.completedefault
2900
+ return compfunc(text, line, begidx, endidx)
2901
+
2902
+ def cmdloop(self, intro=None):
2903
+ self.preloop()
2904
+ if intro is not None:
2905
+ self.intro = intro
2906
+ if self.intro:
2907
+ self.message(str(self.intro))
2908
+ stop = None
2909
+ while not stop:
2910
+ if self._interact_state is not None:
2911
+ try:
2912
+ reply = self._get_input(prompt=">>> ", state="interact")
2913
+ except KeyboardInterrupt:
2914
+ # Match how KeyboardInterrupt is handled in a REPL
2915
+ self.message("\nKeyboardInterrupt")
2916
+ except EOFError:
2917
+ self.message("\n*exit from pdb interact command*")
2918
+ self._interact_state = None
2919
+ else:
2920
+ self._run_in_python_repl(reply)
2921
+ continue
2922
+
2923
+ if not self.cmdqueue:
2924
+ try:
2925
+ state = "commands" if self.commands_defining else "pdb"
2926
+ reply = self._get_input(prompt=self.prompt, state=state)
2927
+ except EOFError:
2928
+ reply = "EOF"
2929
+
2930
+ self.cmdqueue.append(reply)
2931
+
2932
+ line = self.cmdqueue.pop(0)
2933
+ line = self.precmd(line)
2934
+ stop = self.onecmd(line)
2935
+ stop = self.postcmd(stop, line)
2936
+ self.postloop()
2937
+
2938
+ def postloop(self):
2939
+ super().postloop()
2940
+ if self.quitting:
2941
+ self.detach()
2942
+
2943
+ def detach(self):
2944
+ # Detach the debugger and close the socket without raising BdbQuit
2945
+ self.quitting = False
2946
+ if self._owns_sockfile:
2947
+ # Don't try to reuse this instance, it's not valid anymore.
2948
+ Pdb._last_pdb_instance = None
2949
+ try:
2950
+ self._sockfile.close()
2951
+ except OSError:
2952
+ # close() can fail if the connection was broken unexpectedly.
2953
+ pass
2954
+
2955
+ def do_debug(self, arg):
2956
+ # Clear our cached list of valid commands; the recursive debugger might
2957
+ # send its own differing list, and so ours needs to be re-sent.
2958
+ self._command_name_cache = []
2959
+ return super().do_debug(arg)
2960
+
2961
+ def do_alias(self, arg):
2962
+ # Clear our cached list of valid commands; one might be added.
2963
+ self._command_name_cache = []
2964
+ return super().do_alias(arg)
2965
+
2966
+ def do_unalias(self, arg):
2967
+ # Clear our cached list of valid commands; one might be removed.
2968
+ self._command_name_cache = []
2969
+ return super().do_unalias(arg)
2970
+
2971
+ def do_help(self, arg):
2972
+ # Tell the client to render the help, since it might need a pager.
2973
+ self._send(help=arg)
2974
+
2975
+ do_h = do_help
2976
+
2977
+ def _interact_displayhook(self, obj):
2978
+ # Like the default `sys.displayhook` except sending a socket message.
2979
+ if obj is not None:
2980
+ self.message(repr(obj))
2981
+ builtins._ = obj
2982
+
2983
+ def _run_in_python_repl(self, lines):
2984
+ # Run one 'interact' mode code block against an existing namespace.
2985
+ assert self._interact_state
2986
+ save_displayhook = sys.displayhook
2987
+ try:
2988
+ sys.displayhook = self._interact_displayhook
2989
+ code_obj = self._interact_state["compiler"](lines + "\n")
2990
+ if code_obj is None:
2991
+ raise SyntaxError("Incomplete command")
2992
+ exec(code_obj, self._interact_state["ns"])
2993
+ except:
2994
+ self._error_exc()
2995
+ finally:
2996
+ sys.displayhook = save_displayhook
2997
+
2998
+ def do_interact(self, arg):
2999
+ # Prepare to run 'interact' mode code blocks, and trigger the client
3000
+ # to start treating all input as Python commands, not PDB ones.
3001
+ self.message("*pdb interact start*")
3002
+ self._interact_state = dict(
3003
+ compiler=codeop.CommandCompiler(),
3004
+ ns={**self.curframe.f_globals, **self.curframe.f_locals},
3005
+ )
3006
+
3007
+ @typing.override
3008
+ def _create_recursive_debugger(self):
3009
+ return _PdbServer(
3010
+ self._sockfile,
3011
+ owns_sockfile=False,
3012
+ colorize=self.colorize,
3013
+ )
3014
+
3015
+ @typing.override
3016
+ def _prompt_for_confirmation(self, prompt, default):
3017
+ try:
3018
+ return self._get_input(prompt=prompt, state="confirm")
3019
+ except (EOFError, KeyboardInterrupt):
3020
+ return default
3021
+
3022
+ def do_run(self, arg):
3023
+ self.error("remote PDB cannot restart the program")
3024
+
3025
+ do_restart = do_run
3026
+
3027
+ def _error_exc(self):
3028
+ if self._interact_state and isinstance(sys.exception(), SystemExit):
3029
+ # If we get a SystemExit in 'interact' mode, exit the REPL.
3030
+ self._interact_state = None
3031
+ ret = super()._error_exc()
3032
+ self.message("*exit from pdb interact command*")
3033
+ return ret
3034
+ else:
3035
+ return super()._error_exc()
3036
+
3037
+ def default(self, line):
3038
+ # Unlike Pdb, don't prompt for more lines of a multi-line command.
3039
+ # The remote needs to send us the whole block in one go.
3040
+ try:
3041
+ candidate = line.removeprefix("!") + "\n"
3042
+ if codeop.compile_command(candidate, "<stdin>", "single") is None:
3043
+ raise SyntaxError("Incomplete command")
3044
+ return super().default(candidate)
3045
+ except:
3046
+ self._error_exc()
3047
+
3048
+
3049
+ class _PdbClient:
3050
+ def __init__(self, pid, server_socket, interrupt_sock):
3051
+ self.pid = pid
3052
+ self.read_buf = b""
3053
+ self.signal_read = None
3054
+ self.signal_write = None
3055
+ self.sigint_received = False
3056
+ self.raise_on_sigint = False
3057
+ self.server_socket = server_socket
3058
+ self.interrupt_sock = interrupt_sock
3059
+ self.pdb_instance = Pdb()
3060
+ self.pdb_commands = set()
3061
+ self.completion_matches = []
3062
+ self.state = "dumb"
3063
+ self.write_failed = False
3064
+ self.multiline_block = False
3065
+
3066
+ def _ensure_valid_message(self, msg):
3067
+ # Ensure the message conforms to our protocol.
3068
+ # If anything needs to be changed here for a patch release of Python,
3069
+ # the 'revision' in protocol_version() should be updated.
3070
+ match msg:
3071
+ case {"reply": str()}:
3072
+ # Send input typed by a user at a prompt to the remote PDB.
3073
+ pass
3074
+ case {"signal": "EOF"}:
3075
+ # Tell the remote PDB that the user pressed ^D at a prompt.
3076
+ pass
3077
+ case {"signal": "INT"}:
3078
+ # Tell the remote PDB that the user pressed ^C at a prompt.
3079
+ pass
3080
+ case {
3081
+ "complete": {
3082
+ "text": str(),
3083
+ "line": str(),
3084
+ "begidx": int(),
3085
+ "endidx": int(),
3086
+ }
3087
+ }:
3088
+ # Ask the remote PDB what completions are valid for the given
3089
+ # parameters, using readline's completion protocol.
3090
+ pass
3091
+ case _:
3092
+ raise AssertionError(
3093
+ f"PDB message doesn't follow the schema! {msg}"
3094
+ )
3095
+
3096
+ def _send(self, **kwargs):
3097
+ self._ensure_valid_message(kwargs)
3098
+ json_payload = json.dumps(kwargs)
3099
+ try:
3100
+ self.server_socket.sendall(json_payload.encode() + b"\n")
3101
+ except OSError:
3102
+ # This means that the client has abruptly disconnected, but we'll
3103
+ # handle that the next time we try to read from the client instead
3104
+ # of trying to handle it from everywhere _send() may be called.
3105
+ # Track this with a flag rather than assuming readline() will ever
3106
+ # return an empty string because the socket may be half-closed.
3107
+ self.write_failed = True
3108
+
3109
+ def _readline(self):
3110
+ if self.sigint_received:
3111
+ # There's a pending unhandled SIGINT. Handle it now.
3112
+ self.sigint_received = False
3113
+ raise KeyboardInterrupt
3114
+
3115
+ # Wait for either a SIGINT or a line or EOF from the PDB server.
3116
+ selector = selectors.DefaultSelector()
3117
+ selector.register(self.signal_read, selectors.EVENT_READ)
3118
+ selector.register(self.server_socket, selectors.EVENT_READ)
3119
+
3120
+ while b"\n" not in self.read_buf:
3121
+ for key, _ in selector.select():
3122
+ if key.fileobj == self.signal_read:
3123
+ self.signal_read.recv(1024)
3124
+ if self.sigint_received:
3125
+ # If not, we're reading wakeup events for sigints that
3126
+ # we've previously handled, and can ignore them.
3127
+ self.sigint_received = False
3128
+ raise KeyboardInterrupt
3129
+ elif key.fileobj == self.server_socket:
3130
+ data = self.server_socket.recv(16 * 1024)
3131
+ self.read_buf += data
3132
+ if not data and b"\n" not in self.read_buf:
3133
+ # EOF without a full final line. Drop the partial line.
3134
+ self.read_buf = b""
3135
+ return b""
3136
+
3137
+ ret, sep, self.read_buf = self.read_buf.partition(b"\n")
3138
+ return ret + sep
3139
+
3140
+ def read_input(self, prompt, multiline_block):
3141
+ self.multiline_block = multiline_block
3142
+ with self._sigint_raises_keyboard_interrupt():
3143
+ return input(prompt)
3144
+
3145
+ def read_command(self, prompt):
3146
+ reply = self.read_input(prompt, multiline_block=False)
3147
+ if self.state == "dumb":
3148
+ # No logic applied whatsoever, just pass the raw reply back.
3149
+ return reply
3150
+
3151
+ prefix = ""
3152
+ if self.state == "pdb":
3153
+ # PDB command entry mode
3154
+ cmd = self.pdb_instance.parseline(reply)[0]
3155
+ if cmd in self.pdb_commands or reply.strip() == "":
3156
+ # Recognized PDB command, or blank line repeating last command
3157
+ return reply
3158
+
3159
+ # Otherwise, explicit or implicit exec command
3160
+ if reply.startswith("!"):
3161
+ prefix = "!"
3162
+ reply = reply.removeprefix(prefix).lstrip()
3163
+
3164
+ if codeop.compile_command(reply + "\n", "<stdin>", "single") is not None:
3165
+ # Valid single-line statement
3166
+ return prefix + reply
3167
+
3168
+ # Otherwise, valid first line of a multi-line statement
3169
+ more_prompt = "...".ljust(len(prompt))
3170
+ while codeop.compile_command(reply, "<stdin>", "single") is None:
3171
+ reply += "\n" + self.read_input(more_prompt, multiline_block=True)
3172
+
3173
+ return prefix + reply
3174
+
3175
+ @contextmanager
3176
+ def readline_completion(self, completer):
3177
+ try:
3178
+ import readline
3179
+ except ImportError:
3180
+ yield
3181
+ return
3182
+
3183
+ old_completer = readline.get_completer()
3184
+ try:
3185
+ readline.set_completer(completer)
3186
+ if readline.backend == "editline":
3187
+ # libedit uses "^I" instead of "tab"
3188
+ command_string = "bind ^I rl_complete"
3189
+ else:
3190
+ command_string = "tab: complete"
3191
+ readline.parse_and_bind(command_string)
3192
+ yield
3193
+ finally:
3194
+ readline.set_completer(old_completer)
3195
+
3196
+ @contextmanager
3197
+ def _sigint_handler(self):
3198
+ # Signal handling strategy:
3199
+ # - When we call input() we want a SIGINT to raise KeyboardInterrupt
3200
+ # - Otherwise we want to write to the wakeup FD and set a flag.
3201
+ # We'll break out of select() when the wakeup FD is written to,
3202
+ # and we'll check the flag whenever we're about to accept input.
3203
+ def handler(signum, frame):
3204
+ self.sigint_received = True
3205
+ if self.raise_on_sigint:
3206
+ # One-shot; don't raise again until the flag is set again.
3207
+ self.raise_on_sigint = False
3208
+ self.sigint_received = False
3209
+ raise KeyboardInterrupt
3210
+
3211
+ sentinel = object()
3212
+ old_handler = sentinel
3213
+ old_wakeup_fd = sentinel
3214
+
3215
+ self.signal_read, self.signal_write = socket.socketpair()
3216
+ with (closing(self.signal_read), closing(self.signal_write)):
3217
+ self.signal_read.setblocking(False)
3218
+ self.signal_write.setblocking(False)
3219
+
3220
+ try:
3221
+ old_handler = signal.signal(signal.SIGINT, handler)
3222
+
3223
+ try:
3224
+ old_wakeup_fd = signal.set_wakeup_fd(
3225
+ self.signal_write.fileno(),
3226
+ warn_on_full_buffer=False,
3227
+ )
3228
+ yield
3229
+ finally:
3230
+ # Restore the old wakeup fd if we installed a new one
3231
+ if old_wakeup_fd is not sentinel:
3232
+ signal.set_wakeup_fd(old_wakeup_fd)
3233
+ finally:
3234
+ self.signal_read = self.signal_write = None
3235
+ if old_handler is not sentinel:
3236
+ # Restore the old handler if we installed a new one
3237
+ signal.signal(signal.SIGINT, old_handler)
3238
+
3239
+ @contextmanager
3240
+ def _sigint_raises_keyboard_interrupt(self):
3241
+ if self.sigint_received:
3242
+ # There's a pending unhandled SIGINT. Handle it now.
3243
+ self.sigint_received = False
3244
+ raise KeyboardInterrupt
3245
+
3246
+ try:
3247
+ self.raise_on_sigint = True
3248
+ yield
3249
+ finally:
3250
+ self.raise_on_sigint = False
3251
+
3252
+ def cmdloop(self):
3253
+ with (
3254
+ self._sigint_handler(),
3255
+ self.readline_completion(self.complete),
3256
+ ):
3257
+ while not self.write_failed:
3258
+ try:
3259
+ if not (payload_bytes := self._readline()):
3260
+ break
3261
+ except KeyboardInterrupt:
3262
+ self.send_interrupt()
3263
+ continue
3264
+
3265
+ try:
3266
+ payload = json.loads(payload_bytes)
3267
+ except json.JSONDecodeError:
3268
+ print(
3269
+ f"*** Invalid JSON from remote: {payload_bytes!r}",
3270
+ flush=True,
3271
+ )
3272
+ continue
3273
+
3274
+ self.process_payload(payload)
3275
+
3276
+ def send_interrupt(self):
3277
+ if self.interrupt_sock is not None:
3278
+ # Write to a socket that the PDB server listens on. This triggers
3279
+ # the remote to raise a SIGINT for itself. We do this because
3280
+ # Windows doesn't allow triggering SIGINT remotely.
3281
+ # See https://stackoverflow.com/a/35792192 for many more details.
3282
+ self.interrupt_sock.sendall(signal.SIGINT.to_bytes())
3283
+ else:
3284
+ # On Unix we can just send a SIGINT to the remote process.
3285
+ # This is preferable to using the signal thread approach that we
3286
+ # use on Windows because it can interrupt IO in the main thread.
3287
+ os.kill(self.pid, signal.SIGINT)
3288
+
3289
+ def process_payload(self, payload):
3290
+ match payload:
3291
+ case {
3292
+ "command_list": command_list
3293
+ } if all(isinstance(c, str) for c in command_list):
3294
+ self.pdb_commands = set(command_list)
3295
+ case {"message": str(msg), "type": str(msg_type)}:
3296
+ if msg_type == "error":
3297
+ print("***", msg, flush=True)
3298
+ else:
3299
+ print(msg, end="", flush=True)
3300
+ case {"help": str(arg)}:
3301
+ self.pdb_instance.do_help(arg)
3302
+ case {"prompt": str(prompt), "state": str(state)}:
3303
+ if state not in ("pdb", "interact"):
3304
+ state = "dumb"
3305
+ self.state = state
3306
+ self.prompt_for_reply(prompt)
3307
+ case _:
3308
+ raise RuntimeError(f"Unrecognized payload {payload}")
3309
+
3310
+ def prompt_for_reply(self, prompt):
3311
+ while True:
3312
+ try:
3313
+ payload = {"reply": self.read_command(prompt)}
3314
+ except EOFError:
3315
+ payload = {"signal": "EOF"}
3316
+ except KeyboardInterrupt:
3317
+ payload = {"signal": "INT"}
3318
+ except Exception as exc:
3319
+ msg = traceback.format_exception_only(exc)[-1].strip()
3320
+ print("***", msg, flush=True)
3321
+ continue
3322
+
3323
+ self._send(**payload)
3324
+ return
3325
+
3326
+ def complete(self, text, state):
3327
+ import readline
3328
+
3329
+ if state == 0:
3330
+ self.completion_matches = []
3331
+ if self.state not in ("pdb", "interact"):
3332
+ return None
3333
+
3334
+ origline = readline.get_line_buffer()
3335
+ line = origline.lstrip()
3336
+ if self.multiline_block:
3337
+ # We're completing a line contained in a multi-line block.
3338
+ # Force the remote to treat it as a Python expression.
3339
+ line = "! " + line
3340
+ offset = len(origline) - len(line)
3341
+ begidx = readline.get_begidx() - offset
3342
+ endidx = readline.get_endidx() - offset
3343
+
3344
+ msg = {
3345
+ "complete": {
3346
+ "text": text,
3347
+ "line": line,
3348
+ "begidx": begidx,
3349
+ "endidx": endidx,
3350
+ }
3351
+ }
3352
+
3353
+ self._send(**msg)
3354
+ if self.write_failed:
3355
+ return None
3356
+
3357
+ payload = self._readline()
3358
+ if not payload:
3359
+ return None
3360
+
3361
+ payload = json.loads(payload)
3362
+ if "completions" not in payload:
3363
+ raise RuntimeError(
3364
+ f"Failed to get valid completions. Got: {payload}"
3365
+ )
3366
+
3367
+ self.completion_matches = payload["completions"]
3368
+ try:
3369
+ return self.completion_matches[state]
3370
+ except IndexError:
3371
+ return None
3372
+
3373
+
3374
+ def _connect(
3375
+ *,
3376
+ host,
3377
+ port,
3378
+ frame,
3379
+ commands,
3380
+ version,
3381
+ signal_raising_thread,
3382
+ colorize,
3383
+ ):
3384
+ with closing(socket.create_connection((host, port))) as conn:
3385
+ sockfile = conn.makefile("rwb")
3386
+
3387
+ # The client requests this thread on Windows but not on Unix.
3388
+ # Most tests don't request this thread, to keep them simpler.
3389
+ if signal_raising_thread:
3390
+ signal_server = (host, port)
3391
+ else:
3392
+ signal_server = None
3393
+
3394
+ remote_pdb = _PdbServer(
3395
+ sockfile,
3396
+ signal_server=signal_server,
3397
+ colorize=colorize,
3398
+ )
3399
+ weakref.finalize(remote_pdb, sockfile.close)
3400
+
3401
+ if Pdb._last_pdb_instance is not None:
3402
+ remote_pdb.error("Another PDB instance is already attached.")
3403
+ elif version != remote_pdb.protocol_version():
3404
+ target_ver = f"0x{remote_pdb.protocol_version():08X}"
3405
+ attach_ver = f"0x{version:08X}"
3406
+ remote_pdb.error(
3407
+ f"The target process is running a Python version that is"
3408
+ f" incompatible with this PDB module."
3409
+ f"\nTarget process pdb protocol version: {target_ver}"
3410
+ f"\nLocal pdb module's protocol version: {attach_ver}"
3411
+ )
3412
+ else:
3413
+ remote_pdb.rcLines.extend(commands.splitlines())
3414
+ remote_pdb.set_trace(frame=frame)
3415
+
3416
+
3417
+ def attach(pid, commands=()):
3418
+ """Attach to a running process with the given PID."""
3419
+ with ExitStack() as stack:
3420
+ server = stack.enter_context(
3421
+ closing(socket.create_server(("localhost", 0)))
3422
+ )
3423
+ port = server.getsockname()[1]
3424
+
3425
+ connect_script = stack.enter_context(
3426
+ tempfile.NamedTemporaryFile("w", delete_on_close=False)
3427
+ )
3428
+
3429
+ use_signal_thread = sys.platform == "win32"
3430
+ colorize = _colorize.can_colorize()
3431
+
3432
+ connect_script.write(
3433
+ textwrap.dedent(
3434
+ f"""
3435
+ import pdb, sys
3436
+ pdb._connect(
3437
+ host="localhost",
3438
+ port={port},
3439
+ frame=sys._getframe(1),
3440
+ commands={json.dumps("\n".join(commands))},
3441
+ version={_PdbServer.protocol_version()},
3442
+ signal_raising_thread={use_signal_thread!r},
3443
+ colorize={colorize!r},
3444
+ )
3445
+ """
3446
+ )
3447
+ )
3448
+ connect_script.close()
3449
+ orig_mode = os.stat(connect_script.name).st_mode
3450
+ os.chmod(connect_script.name, orig_mode | stat.S_IROTH | stat.S_IRGRP)
3451
+ sys.remote_exec(pid, connect_script.name)
3452
+
3453
+ # TODO Add a timeout? Or don't bother since the user can ^C?
3454
+ client_sock, _ = server.accept()
3455
+ stack.enter_context(closing(client_sock))
3456
+
3457
+ if use_signal_thread:
3458
+ interrupt_sock, _ = server.accept()
3459
+ stack.enter_context(closing(interrupt_sock))
3460
+ interrupt_sock.setblocking(False)
3461
+ else:
3462
+ interrupt_sock = None
3463
+
3464
+ _PdbClient(pid, client_sock, interrupt_sock).cmdloop()
3465
+
3466
+
3467
+ # Post-Mortem interface
3468
+
3469
+ def post_mortem(t=None):
3470
+ """Enter post-mortem debugging of the given *traceback*, or *exception*
3471
+ object.
3472
+
3473
+ If no traceback is given, it uses the one of the exception that is
3474
+ currently being handled (an exception must be being handled if the
3475
+ default is to be used).
3476
+
3477
+ If `t` is an exception object, the `exceptions` command makes it possible to
3478
+ list and inspect its chained exceptions (if any).
3479
+ """
3480
+ return _post_mortem(t, Pdb())
3481
+
3482
+
3483
+ def _post_mortem(t, pdb_instance):
3484
+ """
3485
+ Private version of post_mortem, which allow to pass a pdb instance
3486
+ for testing purposes.
3487
+ """
3488
+ # handling the default
3489
+ if t is None:
3490
+ exc = sys.exception()
3491
+ if exc is not None:
3492
+ t = exc.__traceback__
3493
+
3494
+ if t is None or (isinstance(t, BaseException) and t.__traceback__ is None):
3495
+ raise ValueError("A valid traceback must be passed if no "
3496
+ "exception is being handled")
3497
+
3498
+ pdb_instance.reset()
3499
+ pdb_instance.interaction(None, t)
3500
+
3501
+
3502
+ def pm():
3503
+ """Enter post-mortem debugging of the traceback found in sys.last_exc."""
3504
+ post_mortem(sys.last_exc)
3505
+
3506
+
3507
+ # Main program for testing
3508
+
3509
+ TESTCMD = 'import x; x.main()'
3510
+
3511
+ def test():
3512
+ run(TESTCMD)
3513
+
3514
+ # print help
3515
+ def help():
3516
+ import pydoc
3517
+ pydoc.pager(__doc__)
3518
+
3519
+ _usage = """\
3520
+ Debug the Python program given by pyfile. Alternatively,
3521
+ an executable module or package to debug can be specified using
3522
+ the -m switch. You can also attach to a running Python process
3523
+ using the -p option with its PID.
3524
+
3525
+ Initial commands are read from .pdbrc files in your home directory
3526
+ and in the current directory, if they exist. Commands supplied with
3527
+ -c are executed after commands from .pdbrc files.
3528
+
3529
+ To let the script run until an exception occurs, use "-c continue".
3530
+ To let the script run up to a given line X in the debugged file, use
3531
+ "-c 'until X'"."""
3532
+
3533
+
3534
+ def exit_with_permission_help_text():
3535
+ """
3536
+ Prints a message pointing to platform-specific permission help text and exits the program.
3537
+ This function is called when a PermissionError is encountered while trying
3538
+ to attach to a process.
3539
+ """
3540
+ print(
3541
+ "Error: The specified process cannot be attached to due to insufficient permissions.\n"
3542
+ "See the Python documentation for details on required privileges and troubleshooting:\n"
3543
+ "https://docs.python.org/3.14/howto/remote_debugging.html#permission-requirements\n"
3544
+ )
3545
+ sys.exit(1)
3546
+
3547
+
3548
+ def parse_args():
3549
+ # We want pdb to be as intuitive as possible to users, so we need to do some
3550
+ # heuristic parsing to deal with ambiguity.
3551
+ # For example:
3552
+ # "python -m pdb -m foo -p 1" should pass "-p 1" to "foo".
3553
+ # "python -m pdb foo.py -m bar" should pass "-m bar" to "foo.py".
3554
+ # "python -m pdb -m foo -m bar" should pass "-m bar" to "foo".
3555
+ # This require some customized parsing logic to find the actual debug target.
3556
+
3557
+ import argparse
3558
+
3559
+ parser = argparse.ArgumentParser(
3560
+ usage="%(prog)s [-h] [-c command] (-m module | -p pid | pyfile) [args ...]",
3561
+ description=_usage,
3562
+ formatter_class=argparse.RawDescriptionHelpFormatter,
3563
+ allow_abbrev=False,
3564
+ color=True,
3565
+ )
3566
+
3567
+ # Get all the commands out first. For backwards compatibility, we allow
3568
+ # -c commands to be after the target.
3569
+ parser.add_argument('-c', '--command', action='append', default=[], metavar='command', dest='commands',
3570
+ help='pdb commands to execute as if given in a .pdbrc file')
3571
+
3572
+ opts, args = parser.parse_known_args()
3573
+
3574
+ if not args:
3575
+ # If no arguments were given (python -m pdb), print the whole help message.
3576
+ # Without this check, argparse would only complain about missing required arguments.
3577
+ # We need to add the arguments definitions here to get a proper help message.
3578
+ parser.add_argument('-m', metavar='module', dest='module')
3579
+ parser.add_argument('-p', '--pid', type=int, help="attach to the specified PID", default=None)
3580
+ parser.print_help()
3581
+ sys.exit(2)
3582
+ elif args[0] == '-p' or args[0] == '--pid':
3583
+ # Attach to a pid
3584
+ parser.add_argument('-p', '--pid', type=int, help="attach to the specified PID", default=None)
3585
+ opts, args = parser.parse_known_args()
3586
+ if args:
3587
+ # For --pid, any extra arguments are invalid.
3588
+ parser.error(f"unrecognized arguments: {' '.join(args)}")
3589
+ elif args[0] == '-m':
3590
+ # Debug a module, we only need the first -m module argument.
3591
+ # The rest is passed to the module itself.
3592
+ parser.add_argument('-m', metavar='module', dest='module')
3593
+ opt_module = parser.parse_args(args[:2])
3594
+ opts.module = opt_module.module
3595
+ args = args[2:]
3596
+ elif args[0].startswith('-'):
3597
+ # Invalid argument before the script name.
3598
+ invalid_args = list(itertools.takewhile(lambda a: a.startswith('-'), args))
3599
+ parser.error(f"unrecognized arguments: {' '.join(invalid_args)}")
3600
+
3601
+ # Otherwise it's debugging a script and we already parsed all -c commands.
3602
+
3603
+ return opts, args
3604
+
3605
+ def main():
3606
+ opts, args = parse_args()
3607
+
3608
+ if getattr(opts, 'pid', None) is not None:
3609
+ try:
3610
+ attach(opts.pid, opts.commands)
3611
+ except PermissionError as e:
3612
+ exit_with_permission_help_text()
3613
+ return
3614
+ elif getattr(opts, 'module', None) is not None:
3615
+ file = opts.module
3616
+ target = _ModuleTarget(file)
3617
+ else:
3618
+ file = args.pop(0)
3619
+ if file.endswith('.pyz'):
3620
+ target = _ZipTarget(file)
3621
+ else:
3622
+ target = _ScriptTarget(file)
3623
+
3624
+ sys.argv[:] = [file] + args # Hide "pdb.py" and pdb options from argument list
3625
+
3626
+ # Note on saving/restoring sys.argv: it's a good idea when sys.argv was
3627
+ # modified by the script being debugged. It's a bad idea when it was
3628
+ # changed by the user from the command line. There is a "restart" command
3629
+ # which allows explicit specification of command line arguments.
3630
+ pdb = Pdb(mode='cli', backend='monitoring', colorize=True)
3631
+ pdb.rcLines.extend(opts.commands)
3632
+ while True:
3633
+ try:
3634
+ pdb._run(target)
3635
+ except Restart:
3636
+ print("Restarting", target, "with arguments:")
3637
+ print("\t" + " ".join(sys.argv[1:]))
3638
+ except SystemExit as e:
3639
+ # In most cases SystemExit does not warrant a post-mortem session.
3640
+ print("The program exited via sys.exit(). Exit status:", end=' ')
3641
+ print(e)
3642
+ except BaseException as e:
3643
+ traceback.print_exception(e, colorize=_colorize.can_colorize())
3644
+ print("Uncaught exception. Entering post mortem debugging")
3645
+ print("Running 'cont' or 'step' will restart the program")
3646
+ try:
3647
+ pdb.interaction(None, e)
3648
+ except Restart:
3649
+ print("Restarting", target, "with arguments:")
3650
+ print("\t" + " ".join(sys.argv[1:]))
3651
+ continue
3652
+ if pdb._user_requested_quit:
3653
+ break
3654
+ print("The program finished and will be restarted")
3655
+
3656
+
3657
+ # When invoked as main program, invoke the debugger on a script
3658
+ if __name__ == '__main__':
3659
+ import pdb
3660
+ pdb.main()