@ecmaos-apps/python3 0.0.0-stage → 3.14.9-ecmaos.1

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 (1128) hide show
  1. package/README.md +8 -2
  2. package/package.json +47 -4
  3. package/python3.wasm +0 -0
  4. package/runtime/usr/lib/python3.14/LICENSE.txt +277 -0
  5. package/runtime/usr/lib/python3.14/__future__.py +147 -0
  6. package/runtime/usr/lib/python3.14/__hello__.py +16 -0
  7. package/runtime/usr/lib/python3.14/__phello__/__init__.py +7 -0
  8. package/runtime/usr/lib/python3.14/__phello__/__pycache__/__init__.cpython-314.pyc +0 -0
  9. package/runtime/usr/lib/python3.14/__phello__/__pycache__/spam.cpython-314.pyc +0 -0
  10. package/runtime/usr/lib/python3.14/__phello__/spam.py +7 -0
  11. package/runtime/usr/lib/python3.14/__pycache__/__future__.cpython-314.pyc +0 -0
  12. package/runtime/usr/lib/python3.14/__pycache__/__hello__.cpython-314.pyc +0 -0
  13. package/runtime/usr/lib/python3.14/__pycache__/_aix_support.cpython-314.pyc +0 -0
  14. package/runtime/usr/lib/python3.14/__pycache__/_android_support.cpython-314.pyc +0 -0
  15. package/runtime/usr/lib/python3.14/__pycache__/_apple_support.cpython-314.pyc +0 -0
  16. package/runtime/usr/lib/python3.14/__pycache__/_ast_unparse.cpython-314.pyc +0 -0
  17. package/runtime/usr/lib/python3.14/__pycache__/_collections_abc.cpython-314.pyc +0 -0
  18. package/runtime/usr/lib/python3.14/__pycache__/_colorize.cpython-314.pyc +0 -0
  19. package/runtime/usr/lib/python3.14/__pycache__/_compat_pickle.cpython-314.pyc +0 -0
  20. package/runtime/usr/lib/python3.14/__pycache__/_ios_support.cpython-314.pyc +0 -0
  21. package/runtime/usr/lib/python3.14/__pycache__/_markupbase.cpython-314.pyc +0 -0
  22. package/runtime/usr/lib/python3.14/__pycache__/_opcode_metadata.cpython-314.pyc +0 -0
  23. package/runtime/usr/lib/python3.14/__pycache__/_osx_support.cpython-314.pyc +0 -0
  24. package/runtime/usr/lib/python3.14/__pycache__/_py_abc.cpython-314.pyc +0 -0
  25. package/runtime/usr/lib/python3.14/__pycache__/_py_warnings.cpython-314.pyc +0 -0
  26. package/runtime/usr/lib/python3.14/__pycache__/_pydatetime.cpython-314.pyc +0 -0
  27. package/runtime/usr/lib/python3.14/__pycache__/_pydecimal.cpython-314.pyc +0 -0
  28. package/runtime/usr/lib/python3.14/__pycache__/_pyio.cpython-314.pyc +0 -0
  29. package/runtime/usr/lib/python3.14/__pycache__/_pylong.cpython-314.pyc +0 -0
  30. package/runtime/usr/lib/python3.14/__pycache__/_sitebuiltins.cpython-314.pyc +0 -0
  31. package/runtime/usr/lib/python3.14/__pycache__/_strptime.cpython-314.pyc +0 -0
  32. package/runtime/usr/lib/python3.14/__pycache__/_sysconfigdata__linux_.cpython-314.pyc +0 -0
  33. package/runtime/usr/lib/python3.14/__pycache__/_threading_local.cpython-314.pyc +0 -0
  34. package/runtime/usr/lib/python3.14/__pycache__/_weakrefset.cpython-314.pyc +0 -0
  35. package/runtime/usr/lib/python3.14/__pycache__/abc.cpython-314.pyc +0 -0
  36. package/runtime/usr/lib/python3.14/__pycache__/annotationlib.cpython-314.pyc +0 -0
  37. package/runtime/usr/lib/python3.14/__pycache__/antigravity.cpython-314.pyc +0 -0
  38. package/runtime/usr/lib/python3.14/__pycache__/argparse.cpython-314.pyc +0 -0
  39. package/runtime/usr/lib/python3.14/__pycache__/ast.cpython-314.pyc +0 -0
  40. package/runtime/usr/lib/python3.14/__pycache__/base64.cpython-314.pyc +0 -0
  41. package/runtime/usr/lib/python3.14/__pycache__/bdb.cpython-314.pyc +0 -0
  42. package/runtime/usr/lib/python3.14/__pycache__/bisect.cpython-314.pyc +0 -0
  43. package/runtime/usr/lib/python3.14/__pycache__/bz2.cpython-314.pyc +0 -0
  44. package/runtime/usr/lib/python3.14/__pycache__/cProfile.cpython-314.pyc +0 -0
  45. package/runtime/usr/lib/python3.14/__pycache__/calendar.cpython-314.pyc +0 -0
  46. package/runtime/usr/lib/python3.14/__pycache__/cmd.cpython-314.pyc +0 -0
  47. package/runtime/usr/lib/python3.14/__pycache__/code.cpython-314.pyc +0 -0
  48. package/runtime/usr/lib/python3.14/__pycache__/codecs.cpython-314.pyc +0 -0
  49. package/runtime/usr/lib/python3.14/__pycache__/codeop.cpython-314.pyc +0 -0
  50. package/runtime/usr/lib/python3.14/__pycache__/colorsys.cpython-314.pyc +0 -0
  51. package/runtime/usr/lib/python3.14/__pycache__/compileall.cpython-314.pyc +0 -0
  52. package/runtime/usr/lib/python3.14/__pycache__/configparser.cpython-314.pyc +0 -0
  53. package/runtime/usr/lib/python3.14/__pycache__/contextlib.cpython-314.pyc +0 -0
  54. package/runtime/usr/lib/python3.14/__pycache__/contextvars.cpython-314.pyc +0 -0
  55. package/runtime/usr/lib/python3.14/__pycache__/copy.cpython-314.pyc +0 -0
  56. package/runtime/usr/lib/python3.14/__pycache__/copyreg.cpython-314.pyc +0 -0
  57. package/runtime/usr/lib/python3.14/__pycache__/csv.cpython-314.pyc +0 -0
  58. package/runtime/usr/lib/python3.14/__pycache__/dataclasses.cpython-314.pyc +0 -0
  59. package/runtime/usr/lib/python3.14/__pycache__/datetime.cpython-314.pyc +0 -0
  60. package/runtime/usr/lib/python3.14/__pycache__/decimal.cpython-314.pyc +0 -0
  61. package/runtime/usr/lib/python3.14/__pycache__/difflib.cpython-314.pyc +0 -0
  62. package/runtime/usr/lib/python3.14/__pycache__/dis.cpython-314.pyc +0 -0
  63. package/runtime/usr/lib/python3.14/__pycache__/doctest.cpython-314.pyc +0 -0
  64. package/runtime/usr/lib/python3.14/__pycache__/enum.cpython-314.pyc +0 -0
  65. package/runtime/usr/lib/python3.14/__pycache__/filecmp.cpython-314.pyc +0 -0
  66. package/runtime/usr/lib/python3.14/__pycache__/fileinput.cpython-314.pyc +0 -0
  67. package/runtime/usr/lib/python3.14/__pycache__/fnmatch.cpython-314.pyc +0 -0
  68. package/runtime/usr/lib/python3.14/__pycache__/fractions.cpython-314.pyc +0 -0
  69. package/runtime/usr/lib/python3.14/__pycache__/ftplib.cpython-314.pyc +0 -0
  70. package/runtime/usr/lib/python3.14/__pycache__/functools.cpython-314.pyc +0 -0
  71. package/runtime/usr/lib/python3.14/__pycache__/genericpath.cpython-314.pyc +0 -0
  72. package/runtime/usr/lib/python3.14/__pycache__/getopt.cpython-314.pyc +0 -0
  73. package/runtime/usr/lib/python3.14/__pycache__/getpass.cpython-314.pyc +0 -0
  74. package/runtime/usr/lib/python3.14/__pycache__/gettext.cpython-314.pyc +0 -0
  75. package/runtime/usr/lib/python3.14/__pycache__/glob.cpython-314.pyc +0 -0
  76. package/runtime/usr/lib/python3.14/__pycache__/graphlib.cpython-314.pyc +0 -0
  77. package/runtime/usr/lib/python3.14/__pycache__/gzip.cpython-314.pyc +0 -0
  78. package/runtime/usr/lib/python3.14/__pycache__/hashlib.cpython-314.pyc +0 -0
  79. package/runtime/usr/lib/python3.14/__pycache__/heapq.cpython-314.pyc +0 -0
  80. package/runtime/usr/lib/python3.14/__pycache__/hmac.cpython-314.pyc +0 -0
  81. package/runtime/usr/lib/python3.14/__pycache__/imaplib.cpython-314.pyc +0 -0
  82. package/runtime/usr/lib/python3.14/__pycache__/inspect.cpython-314.pyc +0 -0
  83. package/runtime/usr/lib/python3.14/__pycache__/io.cpython-314.pyc +0 -0
  84. package/runtime/usr/lib/python3.14/__pycache__/ipaddress.cpython-314.pyc +0 -0
  85. package/runtime/usr/lib/python3.14/__pycache__/keyword.cpython-314.pyc +0 -0
  86. package/runtime/usr/lib/python3.14/__pycache__/linecache.cpython-314.pyc +0 -0
  87. package/runtime/usr/lib/python3.14/__pycache__/locale.cpython-314.pyc +0 -0
  88. package/runtime/usr/lib/python3.14/__pycache__/lzma.cpython-314.pyc +0 -0
  89. package/runtime/usr/lib/python3.14/__pycache__/mailbox.cpython-314.pyc +0 -0
  90. package/runtime/usr/lib/python3.14/__pycache__/mimetypes.cpython-314.pyc +0 -0
  91. package/runtime/usr/lib/python3.14/__pycache__/modulefinder.cpython-314.pyc +0 -0
  92. package/runtime/usr/lib/python3.14/__pycache__/netrc.cpython-314.pyc +0 -0
  93. package/runtime/usr/lib/python3.14/__pycache__/ntpath.cpython-314.pyc +0 -0
  94. package/runtime/usr/lib/python3.14/__pycache__/nturl2path.cpython-314.pyc +0 -0
  95. package/runtime/usr/lib/python3.14/__pycache__/numbers.cpython-314.pyc +0 -0
  96. package/runtime/usr/lib/python3.14/__pycache__/opcode.cpython-314.pyc +0 -0
  97. package/runtime/usr/lib/python3.14/__pycache__/operator.cpython-314.pyc +0 -0
  98. package/runtime/usr/lib/python3.14/__pycache__/optparse.cpython-314.pyc +0 -0
  99. package/runtime/usr/lib/python3.14/__pycache__/os.cpython-314.pyc +0 -0
  100. package/runtime/usr/lib/python3.14/__pycache__/pdb.cpython-314.pyc +0 -0
  101. package/runtime/usr/lib/python3.14/__pycache__/pickle.cpython-314.pyc +0 -0
  102. package/runtime/usr/lib/python3.14/__pycache__/pickletools.cpython-314.pyc +0 -0
  103. package/runtime/usr/lib/python3.14/__pycache__/pkgutil.cpython-314.pyc +0 -0
  104. package/runtime/usr/lib/python3.14/__pycache__/platform.cpython-314.pyc +0 -0
  105. package/runtime/usr/lib/python3.14/__pycache__/plistlib.cpython-314.pyc +0 -0
  106. package/runtime/usr/lib/python3.14/__pycache__/poplib.cpython-314.pyc +0 -0
  107. package/runtime/usr/lib/python3.14/__pycache__/posixpath.cpython-314.pyc +0 -0
  108. package/runtime/usr/lib/python3.14/__pycache__/pprint.cpython-314.pyc +0 -0
  109. package/runtime/usr/lib/python3.14/__pycache__/profile.cpython-314.pyc +0 -0
  110. package/runtime/usr/lib/python3.14/__pycache__/pstats.cpython-314.pyc +0 -0
  111. package/runtime/usr/lib/python3.14/__pycache__/pty.cpython-314.pyc +0 -0
  112. package/runtime/usr/lib/python3.14/__pycache__/py_compile.cpython-314.pyc +0 -0
  113. package/runtime/usr/lib/python3.14/__pycache__/pyclbr.cpython-314.pyc +0 -0
  114. package/runtime/usr/lib/python3.14/__pycache__/pydoc.cpython-314.pyc +0 -0
  115. package/runtime/usr/lib/python3.14/__pycache__/queue.cpython-314.pyc +0 -0
  116. package/runtime/usr/lib/python3.14/__pycache__/quopri.cpython-314.pyc +0 -0
  117. package/runtime/usr/lib/python3.14/__pycache__/random.cpython-314.pyc +0 -0
  118. package/runtime/usr/lib/python3.14/__pycache__/reprlib.cpython-314.pyc +0 -0
  119. package/runtime/usr/lib/python3.14/__pycache__/rlcompleter.cpython-314.pyc +0 -0
  120. package/runtime/usr/lib/python3.14/__pycache__/runpy.cpython-314.pyc +0 -0
  121. package/runtime/usr/lib/python3.14/__pycache__/sched.cpython-314.pyc +0 -0
  122. package/runtime/usr/lib/python3.14/__pycache__/secrets.cpython-314.pyc +0 -0
  123. package/runtime/usr/lib/python3.14/__pycache__/selectors.cpython-314.pyc +0 -0
  124. package/runtime/usr/lib/python3.14/__pycache__/shelve.cpython-314.pyc +0 -0
  125. package/runtime/usr/lib/python3.14/__pycache__/shlex.cpython-314.pyc +0 -0
  126. package/runtime/usr/lib/python3.14/__pycache__/shutil.cpython-314.pyc +0 -0
  127. package/runtime/usr/lib/python3.14/__pycache__/signal.cpython-314.pyc +0 -0
  128. package/runtime/usr/lib/python3.14/__pycache__/site.cpython-314.pyc +0 -0
  129. package/runtime/usr/lib/python3.14/__pycache__/smtplib.cpython-314.pyc +0 -0
  130. package/runtime/usr/lib/python3.14/__pycache__/socket.cpython-314.pyc +0 -0
  131. package/runtime/usr/lib/python3.14/__pycache__/socketserver.cpython-314.pyc +0 -0
  132. package/runtime/usr/lib/python3.14/__pycache__/sre_compile.cpython-314.pyc +0 -0
  133. package/runtime/usr/lib/python3.14/__pycache__/sre_constants.cpython-314.pyc +0 -0
  134. package/runtime/usr/lib/python3.14/__pycache__/sre_parse.cpython-314.pyc +0 -0
  135. package/runtime/usr/lib/python3.14/__pycache__/ssl.cpython-314.pyc +0 -0
  136. package/runtime/usr/lib/python3.14/__pycache__/stat.cpython-314.pyc +0 -0
  137. package/runtime/usr/lib/python3.14/__pycache__/statistics.cpython-314.pyc +0 -0
  138. package/runtime/usr/lib/python3.14/__pycache__/stringprep.cpython-314.pyc +0 -0
  139. package/runtime/usr/lib/python3.14/__pycache__/struct.cpython-314.pyc +0 -0
  140. package/runtime/usr/lib/python3.14/__pycache__/subprocess.cpython-314.pyc +0 -0
  141. package/runtime/usr/lib/python3.14/__pycache__/symtable.cpython-314.pyc +0 -0
  142. package/runtime/usr/lib/python3.14/__pycache__/tabnanny.cpython-314.pyc +0 -0
  143. package/runtime/usr/lib/python3.14/__pycache__/tarfile.cpython-314.pyc +0 -0
  144. package/runtime/usr/lib/python3.14/__pycache__/tempfile.cpython-314.pyc +0 -0
  145. package/runtime/usr/lib/python3.14/__pycache__/textwrap.cpython-314.pyc +0 -0
  146. package/runtime/usr/lib/python3.14/__pycache__/this.cpython-314.pyc +0 -0
  147. package/runtime/usr/lib/python3.14/__pycache__/threading.cpython-314.pyc +0 -0
  148. package/runtime/usr/lib/python3.14/__pycache__/timeit.cpython-314.pyc +0 -0
  149. package/runtime/usr/lib/python3.14/__pycache__/token.cpython-314.pyc +0 -0
  150. package/runtime/usr/lib/python3.14/__pycache__/tokenize.cpython-314.pyc +0 -0
  151. package/runtime/usr/lib/python3.14/__pycache__/trace.cpython-314.pyc +0 -0
  152. package/runtime/usr/lib/python3.14/__pycache__/traceback.cpython-314.pyc +0 -0
  153. package/runtime/usr/lib/python3.14/__pycache__/tracemalloc.cpython-314.pyc +0 -0
  154. package/runtime/usr/lib/python3.14/__pycache__/tty.cpython-314.pyc +0 -0
  155. package/runtime/usr/lib/python3.14/__pycache__/types.cpython-314.pyc +0 -0
  156. package/runtime/usr/lib/python3.14/__pycache__/typing.cpython-314.pyc +0 -0
  157. package/runtime/usr/lib/python3.14/__pycache__/uuid.cpython-314.pyc +0 -0
  158. package/runtime/usr/lib/python3.14/__pycache__/warnings.cpython-314.pyc +0 -0
  159. package/runtime/usr/lib/python3.14/__pycache__/wave.cpython-314.pyc +0 -0
  160. package/runtime/usr/lib/python3.14/__pycache__/weakref.cpython-314.pyc +0 -0
  161. package/runtime/usr/lib/python3.14/__pycache__/webbrowser.cpython-314.pyc +0 -0
  162. package/runtime/usr/lib/python3.14/__pycache__/zipapp.cpython-314.pyc +0 -0
  163. package/runtime/usr/lib/python3.14/__pycache__/zipimport.cpython-314.pyc +0 -0
  164. package/runtime/usr/lib/python3.14/_aix_support.py +108 -0
  165. package/runtime/usr/lib/python3.14/_android_support.py +192 -0
  166. package/runtime/usr/lib/python3.14/_apple_support.py +66 -0
  167. package/runtime/usr/lib/python3.14/_ast_unparse.py +1161 -0
  168. package/runtime/usr/lib/python3.14/_collections_abc.py +1172 -0
  169. package/runtime/usr/lib/python3.14/_colorize.py +355 -0
  170. package/runtime/usr/lib/python3.14/_compat_pickle.py +251 -0
  171. package/runtime/usr/lib/python3.14/_ios_support.py +74 -0
  172. package/runtime/usr/lib/python3.14/_markupbase.py +396 -0
  173. package/runtime/usr/lib/python3.14/_opcode_metadata.py +371 -0
  174. package/runtime/usr/lib/python3.14/_osx_support.py +579 -0
  175. package/runtime/usr/lib/python3.14/_py_abc.py +152 -0
  176. package/runtime/usr/lib/python3.14/_py_warnings.py +869 -0
  177. package/runtime/usr/lib/python3.14/_pydatetime.py +2734 -0
  178. package/runtime/usr/lib/python3.14/_pydecimal.py +6407 -0
  179. package/runtime/usr/lib/python3.14/_pyio.py +2764 -0
  180. package/runtime/usr/lib/python3.14/_pylong.py +729 -0
  181. package/runtime/usr/lib/python3.14/_pyrepl/__init__.py +19 -0
  182. package/runtime/usr/lib/python3.14/_pyrepl/__main__.py +10 -0
  183. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/__init__.cpython-314.pyc +0 -0
  184. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/__main__.cpython-314.pyc +0 -0
  185. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/_module_completer.cpython-314.pyc +0 -0
  186. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/_threading_handler.cpython-314.pyc +0 -0
  187. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/base_eventqueue.cpython-314.pyc +0 -0
  188. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/commands.cpython-314.pyc +0 -0
  189. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/completing_reader.cpython-314.pyc +0 -0
  190. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/console.cpython-314.pyc +0 -0
  191. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/fancy_termios.cpython-314.pyc +0 -0
  192. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/historical_reader.cpython-314.pyc +0 -0
  193. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/input.cpython-314.pyc +0 -0
  194. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/keymap.cpython-314.pyc +0 -0
  195. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/main.cpython-314.pyc +0 -0
  196. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/pager.cpython-314.pyc +0 -0
  197. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/reader.cpython-314.pyc +0 -0
  198. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/readline.cpython-314.pyc +0 -0
  199. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/simple_interact.cpython-314.pyc +0 -0
  200. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/terminfo.cpython-314.pyc +0 -0
  201. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/trace.cpython-314.pyc +0 -0
  202. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/types.cpython-314.pyc +0 -0
  203. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/unix_console.cpython-314.pyc +0 -0
  204. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/unix_eventqueue.cpython-314.pyc +0 -0
  205. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/utils.cpython-314.pyc +0 -0
  206. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/windows_console.cpython-314.pyc +0 -0
  207. package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/windows_eventqueue.cpython-314.pyc +0 -0
  208. package/runtime/usr/lib/python3.14/_pyrepl/_module_completer.py +426 -0
  209. package/runtime/usr/lib/python3.14/_pyrepl/_threading_handler.py +74 -0
  210. package/runtime/usr/lib/python3.14/_pyrepl/base_eventqueue.py +110 -0
  211. package/runtime/usr/lib/python3.14/_pyrepl/commands.py +505 -0
  212. package/runtime/usr/lib/python3.14/_pyrepl/completing_reader.py +299 -0
  213. package/runtime/usr/lib/python3.14/_pyrepl/console.py +229 -0
  214. package/runtime/usr/lib/python3.14/_pyrepl/fancy_termios.py +82 -0
  215. package/runtime/usr/lib/python3.14/_pyrepl/historical_reader.py +424 -0
  216. package/runtime/usr/lib/python3.14/_pyrepl/input.py +114 -0
  217. package/runtime/usr/lib/python3.14/_pyrepl/keymap.py +213 -0
  218. package/runtime/usr/lib/python3.14/_pyrepl/main.py +58 -0
  219. package/runtime/usr/lib/python3.14/_pyrepl/mypy.ini +25 -0
  220. package/runtime/usr/lib/python3.14/_pyrepl/pager.py +175 -0
  221. package/runtime/usr/lib/python3.14/_pyrepl/reader.py +773 -0
  222. package/runtime/usr/lib/python3.14/_pyrepl/readline.py +621 -0
  223. package/runtime/usr/lib/python3.14/_pyrepl/simple_interact.py +181 -0
  224. package/runtime/usr/lib/python3.14/_pyrepl/terminfo.py +488 -0
  225. package/runtime/usr/lib/python3.14/_pyrepl/trace.py +34 -0
  226. package/runtime/usr/lib/python3.14/_pyrepl/types.py +10 -0
  227. package/runtime/usr/lib/python3.14/_pyrepl/unix_console.py +860 -0
  228. package/runtime/usr/lib/python3.14/_pyrepl/unix_eventqueue.py +77 -0
  229. package/runtime/usr/lib/python3.14/_pyrepl/utils.py +391 -0
  230. package/runtime/usr/lib/python3.14/_pyrepl/windows_console.py +735 -0
  231. package/runtime/usr/lib/python3.14/_pyrepl/windows_eventqueue.py +42 -0
  232. package/runtime/usr/lib/python3.14/_sitebuiltins.py +91 -0
  233. package/runtime/usr/lib/python3.14/_strptime.py +822 -0
  234. package/runtime/usr/lib/python3.14/_sysconfig_vars__linux_.json +1137 -0
  235. package/runtime/usr/lib/python3.14/_sysconfigdata__linux_.py +1123 -0
  236. package/runtime/usr/lib/python3.14/_threading_local.py +120 -0
  237. package/runtime/usr/lib/python3.14/_weakrefset.py +147 -0
  238. package/runtime/usr/lib/python3.14/abc.py +188 -0
  239. package/runtime/usr/lib/python3.14/annotationlib.py +1205 -0
  240. package/runtime/usr/lib/python3.14/antigravity.py +17 -0
  241. package/runtime/usr/lib/python3.14/argparse.py +2789 -0
  242. package/runtime/usr/lib/python3.14/ast.py +680 -0
  243. package/runtime/usr/lib/python3.14/asyncio/__init__.py +74 -0
  244. package/runtime/usr/lib/python3.14/asyncio/__main__.py +248 -0
  245. package/runtime/usr/lib/python3.14/asyncio/__pycache__/__init__.cpython-314.pyc +0 -0
  246. package/runtime/usr/lib/python3.14/asyncio/__pycache__/__main__.cpython-314.pyc +0 -0
  247. package/runtime/usr/lib/python3.14/asyncio/__pycache__/base_events.cpython-314.pyc +0 -0
  248. package/runtime/usr/lib/python3.14/asyncio/__pycache__/base_futures.cpython-314.pyc +0 -0
  249. package/runtime/usr/lib/python3.14/asyncio/__pycache__/base_subprocess.cpython-314.pyc +0 -0
  250. package/runtime/usr/lib/python3.14/asyncio/__pycache__/base_tasks.cpython-314.pyc +0 -0
  251. package/runtime/usr/lib/python3.14/asyncio/__pycache__/constants.cpython-314.pyc +0 -0
  252. package/runtime/usr/lib/python3.14/asyncio/__pycache__/coroutines.cpython-314.pyc +0 -0
  253. package/runtime/usr/lib/python3.14/asyncio/__pycache__/events.cpython-314.pyc +0 -0
  254. package/runtime/usr/lib/python3.14/asyncio/__pycache__/exceptions.cpython-314.pyc +0 -0
  255. package/runtime/usr/lib/python3.14/asyncio/__pycache__/format_helpers.cpython-314.pyc +0 -0
  256. package/runtime/usr/lib/python3.14/asyncio/__pycache__/futures.cpython-314.pyc +0 -0
  257. package/runtime/usr/lib/python3.14/asyncio/__pycache__/graph.cpython-314.pyc +0 -0
  258. package/runtime/usr/lib/python3.14/asyncio/__pycache__/locks.cpython-314.pyc +0 -0
  259. package/runtime/usr/lib/python3.14/asyncio/__pycache__/log.cpython-314.pyc +0 -0
  260. package/runtime/usr/lib/python3.14/asyncio/__pycache__/mixins.cpython-314.pyc +0 -0
  261. package/runtime/usr/lib/python3.14/asyncio/__pycache__/proactor_events.cpython-314.pyc +0 -0
  262. package/runtime/usr/lib/python3.14/asyncio/__pycache__/protocols.cpython-314.pyc +0 -0
  263. package/runtime/usr/lib/python3.14/asyncio/__pycache__/queues.cpython-314.pyc +0 -0
  264. package/runtime/usr/lib/python3.14/asyncio/__pycache__/runners.cpython-314.pyc +0 -0
  265. package/runtime/usr/lib/python3.14/asyncio/__pycache__/selector_events.cpython-314.pyc +0 -0
  266. package/runtime/usr/lib/python3.14/asyncio/__pycache__/sslproto.cpython-314.pyc +0 -0
  267. package/runtime/usr/lib/python3.14/asyncio/__pycache__/staggered.cpython-314.pyc +0 -0
  268. package/runtime/usr/lib/python3.14/asyncio/__pycache__/streams.cpython-314.pyc +0 -0
  269. package/runtime/usr/lib/python3.14/asyncio/__pycache__/subprocess.cpython-314.pyc +0 -0
  270. package/runtime/usr/lib/python3.14/asyncio/__pycache__/taskgroups.cpython-314.pyc +0 -0
  271. package/runtime/usr/lib/python3.14/asyncio/__pycache__/tasks.cpython-314.pyc +0 -0
  272. package/runtime/usr/lib/python3.14/asyncio/__pycache__/threads.cpython-314.pyc +0 -0
  273. package/runtime/usr/lib/python3.14/asyncio/__pycache__/timeouts.cpython-314.pyc +0 -0
  274. package/runtime/usr/lib/python3.14/asyncio/__pycache__/tools.cpython-314.pyc +0 -0
  275. package/runtime/usr/lib/python3.14/asyncio/__pycache__/transports.cpython-314.pyc +0 -0
  276. package/runtime/usr/lib/python3.14/asyncio/__pycache__/trsock.cpython-314.pyc +0 -0
  277. package/runtime/usr/lib/python3.14/asyncio/__pycache__/unix_events.cpython-314.pyc +0 -0
  278. package/runtime/usr/lib/python3.14/asyncio/__pycache__/windows_events.cpython-314.pyc +0 -0
  279. package/runtime/usr/lib/python3.14/asyncio/__pycache__/windows_utils.cpython-314.pyc +0 -0
  280. package/runtime/usr/lib/python3.14/asyncio/base_events.py +2089 -0
  281. package/runtime/usr/lib/python3.14/asyncio/base_futures.py +67 -0
  282. package/runtime/usr/lib/python3.14/asyncio/base_subprocess.py +327 -0
  283. package/runtime/usr/lib/python3.14/asyncio/base_tasks.py +94 -0
  284. package/runtime/usr/lib/python3.14/asyncio/constants.py +41 -0
  285. package/runtime/usr/lib/python3.14/asyncio/coroutines.py +118 -0
  286. package/runtime/usr/lib/python3.14/asyncio/events.py +881 -0
  287. package/runtime/usr/lib/python3.14/asyncio/exceptions.py +62 -0
  288. package/runtime/usr/lib/python3.14/asyncio/format_helpers.py +84 -0
  289. package/runtime/usr/lib/python3.14/asyncio/futures.py +481 -0
  290. package/runtime/usr/lib/python3.14/asyncio/graph.py +279 -0
  291. package/runtime/usr/lib/python3.14/asyncio/locks.py +617 -0
  292. package/runtime/usr/lib/python3.14/asyncio/log.py +7 -0
  293. package/runtime/usr/lib/python3.14/asyncio/mixins.py +21 -0
  294. package/runtime/usr/lib/python3.14/asyncio/proactor_events.py +923 -0
  295. package/runtime/usr/lib/python3.14/asyncio/protocols.py +216 -0
  296. package/runtime/usr/lib/python3.14/asyncio/queues.py +309 -0
  297. package/runtime/usr/lib/python3.14/asyncio/runners.py +226 -0
  298. package/runtime/usr/lib/python3.14/asyncio/selector_events.py +1337 -0
  299. package/runtime/usr/lib/python3.14/asyncio/sslproto.py +929 -0
  300. package/runtime/usr/lib/python3.14/asyncio/staggered.py +179 -0
  301. package/runtime/usr/lib/python3.14/asyncio/streams.py +804 -0
  302. package/runtime/usr/lib/python3.14/asyncio/subprocess.py +229 -0
  303. package/runtime/usr/lib/python3.14/asyncio/taskgroups.py +280 -0
  304. package/runtime/usr/lib/python3.14/asyncio/tasks.py +1145 -0
  305. package/runtime/usr/lib/python3.14/asyncio/threads.py +26 -0
  306. package/runtime/usr/lib/python3.14/asyncio/timeouts.py +183 -0
  307. package/runtime/usr/lib/python3.14/asyncio/tools.py +278 -0
  308. package/runtime/usr/lib/python3.14/asyncio/transports.py +337 -0
  309. package/runtime/usr/lib/python3.14/asyncio/trsock.py +98 -0
  310. package/runtime/usr/lib/python3.14/asyncio/unix_events.py +1023 -0
  311. package/runtime/usr/lib/python3.14/asyncio/windows_events.py +906 -0
  312. package/runtime/usr/lib/python3.14/asyncio/windows_utils.py +181 -0
  313. package/runtime/usr/lib/python3.14/base64.py +625 -0
  314. package/runtime/usr/lib/python3.14/bdb.py +1214 -0
  315. package/runtime/usr/lib/python3.14/bisect.py +118 -0
  316. package/runtime/usr/lib/python3.14/build-details.json +53 -0
  317. package/runtime/usr/lib/python3.14/bz2.py +352 -0
  318. package/runtime/usr/lib/python3.14/cProfile.py +207 -0
  319. package/runtime/usr/lib/python3.14/calendar.py +926 -0
  320. package/runtime/usr/lib/python3.14/cmd.py +414 -0
  321. package/runtime/usr/lib/python3.14/code.py +396 -0
  322. package/runtime/usr/lib/python3.14/codecs.py +1125 -0
  323. package/runtime/usr/lib/python3.14/codeop.py +154 -0
  324. package/runtime/usr/lib/python3.14/collections/__init__.py +1612 -0
  325. package/runtime/usr/lib/python3.14/collections/__pycache__/__init__.cpython-314.pyc +0 -0
  326. package/runtime/usr/lib/python3.14/colorsys.py +166 -0
  327. package/runtime/usr/lib/python3.14/compileall.py +472 -0
  328. package/runtime/usr/lib/python3.14/compression/__init__.py +0 -0
  329. package/runtime/usr/lib/python3.14/compression/__pycache__/__init__.cpython-314.pyc +0 -0
  330. package/runtime/usr/lib/python3.14/compression/__pycache__/bz2.cpython-314.pyc +0 -0
  331. package/runtime/usr/lib/python3.14/compression/__pycache__/gzip.cpython-314.pyc +0 -0
  332. package/runtime/usr/lib/python3.14/compression/__pycache__/lzma.cpython-314.pyc +0 -0
  333. package/runtime/usr/lib/python3.14/compression/__pycache__/zlib.cpython-314.pyc +0 -0
  334. package/runtime/usr/lib/python3.14/compression/_common/__init__.py +0 -0
  335. package/runtime/usr/lib/python3.14/compression/_common/__pycache__/__init__.cpython-314.pyc +0 -0
  336. package/runtime/usr/lib/python3.14/compression/_common/__pycache__/_streams.cpython-314.pyc +0 -0
  337. package/runtime/usr/lib/python3.14/compression/_common/_streams.py +162 -0
  338. package/runtime/usr/lib/python3.14/compression/bz2.py +5 -0
  339. package/runtime/usr/lib/python3.14/compression/gzip.py +5 -0
  340. package/runtime/usr/lib/python3.14/compression/lzma.py +5 -0
  341. package/runtime/usr/lib/python3.14/compression/zlib.py +5 -0
  342. package/runtime/usr/lib/python3.14/compression/zstd/__init__.py +244 -0
  343. package/runtime/usr/lib/python3.14/compression/zstd/__pycache__/__init__.cpython-314.pyc +0 -0
  344. package/runtime/usr/lib/python3.14/compression/zstd/__pycache__/_zstdfile.cpython-314.pyc +0 -0
  345. package/runtime/usr/lib/python3.14/compression/zstd/_zstdfile.py +347 -0
  346. package/runtime/usr/lib/python3.14/concurrent/__init__.py +1 -0
  347. package/runtime/usr/lib/python3.14/concurrent/__pycache__/__init__.cpython-314.pyc +0 -0
  348. package/runtime/usr/lib/python3.14/concurrent/futures/__init__.py +65 -0
  349. package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/__init__.cpython-314.pyc +0 -0
  350. package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/_base.cpython-314.pyc +0 -0
  351. package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/interpreter.cpython-314.pyc +0 -0
  352. package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/process.cpython-314.pyc +0 -0
  353. package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/thread.cpython-314.pyc +0 -0
  354. package/runtime/usr/lib/python3.14/concurrent/futures/_base.py +680 -0
  355. package/runtime/usr/lib/python3.14/concurrent/futures/interpreter.py +123 -0
  356. package/runtime/usr/lib/python3.14/concurrent/futures/process.py +1047 -0
  357. package/runtime/usr/lib/python3.14/concurrent/futures/thread.py +274 -0
  358. package/runtime/usr/lib/python3.14/concurrent/interpreters/__init__.py +253 -0
  359. package/runtime/usr/lib/python3.14/concurrent/interpreters/__pycache__/__init__.cpython-314.pyc +0 -0
  360. package/runtime/usr/lib/python3.14/concurrent/interpreters/__pycache__/_crossinterp.cpython-314.pyc +0 -0
  361. package/runtime/usr/lib/python3.14/concurrent/interpreters/__pycache__/_queues.cpython-314.pyc +0 -0
  362. package/runtime/usr/lib/python3.14/concurrent/interpreters/_crossinterp.py +107 -0
  363. package/runtime/usr/lib/python3.14/concurrent/interpreters/_queues.py +290 -0
  364. package/runtime/usr/lib/python3.14/configparser.py +1426 -0
  365. package/runtime/usr/lib/python3.14/contextlib.py +814 -0
  366. package/runtime/usr/lib/python3.14/contextvars.py +8 -0
  367. package/runtime/usr/lib/python3.14/copy.py +286 -0
  368. package/runtime/usr/lib/python3.14/copyreg.py +222 -0
  369. package/runtime/usr/lib/python3.14/csv.py +527 -0
  370. package/runtime/usr/lib/python3.14/ctypes/__init__.py +686 -0
  371. package/runtime/usr/lib/python3.14/ctypes/__pycache__/__init__.cpython-314.pyc +0 -0
  372. package/runtime/usr/lib/python3.14/ctypes/__pycache__/_aix.cpython-314.pyc +0 -0
  373. package/runtime/usr/lib/python3.14/ctypes/__pycache__/_endian.cpython-314.pyc +0 -0
  374. package/runtime/usr/lib/python3.14/ctypes/__pycache__/_layout.cpython-314.pyc +0 -0
  375. package/runtime/usr/lib/python3.14/ctypes/__pycache__/util.cpython-314.pyc +0 -0
  376. package/runtime/usr/lib/python3.14/ctypes/__pycache__/wintypes.cpython-314.pyc +0 -0
  377. package/runtime/usr/lib/python3.14/ctypes/_aix.py +327 -0
  378. package/runtime/usr/lib/python3.14/ctypes/_endian.py +78 -0
  379. package/runtime/usr/lib/python3.14/ctypes/_layout.py +330 -0
  380. package/runtime/usr/lib/python3.14/ctypes/macholib/README.ctypes +7 -0
  381. package/runtime/usr/lib/python3.14/ctypes/macholib/__init__.py +9 -0
  382. package/runtime/usr/lib/python3.14/ctypes/macholib/__pycache__/__init__.cpython-314.pyc +0 -0
  383. package/runtime/usr/lib/python3.14/ctypes/macholib/__pycache__/dyld.cpython-314.pyc +0 -0
  384. package/runtime/usr/lib/python3.14/ctypes/macholib/__pycache__/dylib.cpython-314.pyc +0 -0
  385. package/runtime/usr/lib/python3.14/ctypes/macholib/__pycache__/framework.cpython-314.pyc +0 -0
  386. package/runtime/usr/lib/python3.14/ctypes/macholib/dyld.py +165 -0
  387. package/runtime/usr/lib/python3.14/ctypes/macholib/dylib.py +42 -0
  388. package/runtime/usr/lib/python3.14/ctypes/macholib/fetch_macholib +2 -0
  389. package/runtime/usr/lib/python3.14/ctypes/macholib/fetch_macholib.bat +1 -0
  390. package/runtime/usr/lib/python3.14/ctypes/macholib/framework.py +42 -0
  391. package/runtime/usr/lib/python3.14/ctypes/util.py +502 -0
  392. package/runtime/usr/lib/python3.14/ctypes/wintypes.py +210 -0
  393. package/runtime/usr/lib/python3.14/curses/__init__.py +101 -0
  394. package/runtime/usr/lib/python3.14/curses/__pycache__/__init__.cpython-314.pyc +0 -0
  395. package/runtime/usr/lib/python3.14/curses/__pycache__/ascii.cpython-314.pyc +0 -0
  396. package/runtime/usr/lib/python3.14/curses/__pycache__/has_key.cpython-314.pyc +0 -0
  397. package/runtime/usr/lib/python3.14/curses/__pycache__/panel.cpython-314.pyc +0 -0
  398. package/runtime/usr/lib/python3.14/curses/__pycache__/textpad.cpython-314.pyc +0 -0
  399. package/runtime/usr/lib/python3.14/curses/ascii.py +99 -0
  400. package/runtime/usr/lib/python3.14/curses/has_key.py +192 -0
  401. package/runtime/usr/lib/python3.14/curses/panel.py +6 -0
  402. package/runtime/usr/lib/python3.14/curses/textpad.py +236 -0
  403. package/runtime/usr/lib/python3.14/dataclasses.py +1813 -0
  404. package/runtime/usr/lib/python3.14/datetime.py +13 -0
  405. package/runtime/usr/lib/python3.14/dbm/__init__.py +194 -0
  406. package/runtime/usr/lib/python3.14/dbm/__pycache__/__init__.cpython-314.pyc +0 -0
  407. package/runtime/usr/lib/python3.14/dbm/__pycache__/dumb.cpython-314.pyc +0 -0
  408. package/runtime/usr/lib/python3.14/dbm/__pycache__/gnu.cpython-314.pyc +0 -0
  409. package/runtime/usr/lib/python3.14/dbm/__pycache__/ndbm.cpython-314.pyc +0 -0
  410. package/runtime/usr/lib/python3.14/dbm/__pycache__/sqlite3.cpython-314.pyc +0 -0
  411. package/runtime/usr/lib/python3.14/dbm/dumb.py +319 -0
  412. package/runtime/usr/lib/python3.14/dbm/gnu.py +3 -0
  413. package/runtime/usr/lib/python3.14/dbm/ndbm.py +3 -0
  414. package/runtime/usr/lib/python3.14/dbm/sqlite3.py +144 -0
  415. package/runtime/usr/lib/python3.14/decimal.py +109 -0
  416. package/runtime/usr/lib/python3.14/difflib.py +2066 -0
  417. package/runtime/usr/lib/python3.14/dis.py +1157 -0
  418. package/runtime/usr/lib/python3.14/doctest.py +2922 -0
  419. package/runtime/usr/lib/python3.14/email/__init__.py +61 -0
  420. package/runtime/usr/lib/python3.14/email/__pycache__/__init__.cpython-314.pyc +0 -0
  421. package/runtime/usr/lib/python3.14/email/__pycache__/_encoded_words.cpython-314.pyc +0 -0
  422. package/runtime/usr/lib/python3.14/email/__pycache__/_header_value_parser.cpython-314.pyc +0 -0
  423. package/runtime/usr/lib/python3.14/email/__pycache__/_parseaddr.cpython-314.pyc +0 -0
  424. package/runtime/usr/lib/python3.14/email/__pycache__/_policybase.cpython-314.pyc +0 -0
  425. package/runtime/usr/lib/python3.14/email/__pycache__/base64mime.cpython-314.pyc +0 -0
  426. package/runtime/usr/lib/python3.14/email/__pycache__/charset.cpython-314.pyc +0 -0
  427. package/runtime/usr/lib/python3.14/email/__pycache__/contentmanager.cpython-314.pyc +0 -0
  428. package/runtime/usr/lib/python3.14/email/__pycache__/encoders.cpython-314.pyc +0 -0
  429. package/runtime/usr/lib/python3.14/email/__pycache__/errors.cpython-314.pyc +0 -0
  430. package/runtime/usr/lib/python3.14/email/__pycache__/feedparser.cpython-314.pyc +0 -0
  431. package/runtime/usr/lib/python3.14/email/__pycache__/generator.cpython-314.pyc +0 -0
  432. package/runtime/usr/lib/python3.14/email/__pycache__/header.cpython-314.pyc +0 -0
  433. package/runtime/usr/lib/python3.14/email/__pycache__/headerregistry.cpython-314.pyc +0 -0
  434. package/runtime/usr/lib/python3.14/email/__pycache__/iterators.cpython-314.pyc +0 -0
  435. package/runtime/usr/lib/python3.14/email/__pycache__/message.cpython-314.pyc +0 -0
  436. package/runtime/usr/lib/python3.14/email/__pycache__/parser.cpython-314.pyc +0 -0
  437. package/runtime/usr/lib/python3.14/email/__pycache__/policy.cpython-314.pyc +0 -0
  438. package/runtime/usr/lib/python3.14/email/__pycache__/quoprimime.cpython-314.pyc +0 -0
  439. package/runtime/usr/lib/python3.14/email/__pycache__/utils.cpython-314.pyc +0 -0
  440. package/runtime/usr/lib/python3.14/email/_encoded_words.py +233 -0
  441. package/runtime/usr/lib/python3.14/email/_header_value_parser.py +3164 -0
  442. package/runtime/usr/lib/python3.14/email/_parseaddr.py +563 -0
  443. package/runtime/usr/lib/python3.14/email/_policybase.py +392 -0
  444. package/runtime/usr/lib/python3.14/email/architecture.rst +216 -0
  445. package/runtime/usr/lib/python3.14/email/base64mime.py +115 -0
  446. package/runtime/usr/lib/python3.14/email/charset.py +396 -0
  447. package/runtime/usr/lib/python3.14/email/contentmanager.py +254 -0
  448. package/runtime/usr/lib/python3.14/email/encoders.py +65 -0
  449. package/runtime/usr/lib/python3.14/email/errors.py +117 -0
  450. package/runtime/usr/lib/python3.14/email/feedparser.py +536 -0
  451. package/runtime/usr/lib/python3.14/email/generator.py +530 -0
  452. package/runtime/usr/lib/python3.14/email/header.py +582 -0
  453. package/runtime/usr/lib/python3.14/email/headerregistry.py +618 -0
  454. package/runtime/usr/lib/python3.14/email/iterators.py +68 -0
  455. package/runtime/usr/lib/python3.14/email/message.py +1217 -0
  456. package/runtime/usr/lib/python3.14/email/mime/__init__.py +0 -0
  457. package/runtime/usr/lib/python3.14/email/mime/__pycache__/__init__.cpython-314.pyc +0 -0
  458. package/runtime/usr/lib/python3.14/email/mime/__pycache__/application.cpython-314.pyc +0 -0
  459. package/runtime/usr/lib/python3.14/email/mime/__pycache__/audio.cpython-314.pyc +0 -0
  460. package/runtime/usr/lib/python3.14/email/mime/__pycache__/base.cpython-314.pyc +0 -0
  461. package/runtime/usr/lib/python3.14/email/mime/__pycache__/image.cpython-314.pyc +0 -0
  462. package/runtime/usr/lib/python3.14/email/mime/__pycache__/message.cpython-314.pyc +0 -0
  463. package/runtime/usr/lib/python3.14/email/mime/__pycache__/multipart.cpython-314.pyc +0 -0
  464. package/runtime/usr/lib/python3.14/email/mime/__pycache__/nonmultipart.cpython-314.pyc +0 -0
  465. package/runtime/usr/lib/python3.14/email/mime/__pycache__/text.cpython-314.pyc +0 -0
  466. package/runtime/usr/lib/python3.14/email/mime/application.py +37 -0
  467. package/runtime/usr/lib/python3.14/email/mime/audio.py +97 -0
  468. package/runtime/usr/lib/python3.14/email/mime/base.py +29 -0
  469. package/runtime/usr/lib/python3.14/email/mime/image.py +152 -0
  470. package/runtime/usr/lib/python3.14/email/mime/message.py +33 -0
  471. package/runtime/usr/lib/python3.14/email/mime/multipart.py +47 -0
  472. package/runtime/usr/lib/python3.14/email/mime/nonmultipart.py +21 -0
  473. package/runtime/usr/lib/python3.14/email/mime/text.py +40 -0
  474. package/runtime/usr/lib/python3.14/email/parser.py +127 -0
  475. package/runtime/usr/lib/python3.14/email/policy.py +239 -0
  476. package/runtime/usr/lib/python3.14/email/quoprimime.py +300 -0
  477. package/runtime/usr/lib/python3.14/email/utils.py +489 -0
  478. package/runtime/usr/lib/python3.14/encodings/__init__.py +182 -0
  479. package/runtime/usr/lib/python3.14/encodings/__pycache__/__init__.cpython-314.pyc +0 -0
  480. package/runtime/usr/lib/python3.14/encodings/__pycache__/_win_cp_codecs.cpython-314.pyc +0 -0
  481. package/runtime/usr/lib/python3.14/encodings/__pycache__/aliases.cpython-314.pyc +0 -0
  482. package/runtime/usr/lib/python3.14/encodings/__pycache__/ascii.cpython-314.pyc +0 -0
  483. package/runtime/usr/lib/python3.14/encodings/__pycache__/base64_codec.cpython-314.pyc +0 -0
  484. package/runtime/usr/lib/python3.14/encodings/__pycache__/big5.cpython-314.pyc +0 -0
  485. package/runtime/usr/lib/python3.14/encodings/__pycache__/big5hkscs.cpython-314.pyc +0 -0
  486. package/runtime/usr/lib/python3.14/encodings/__pycache__/bz2_codec.cpython-314.pyc +0 -0
  487. package/runtime/usr/lib/python3.14/encodings/__pycache__/charmap.cpython-314.pyc +0 -0
  488. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp037.cpython-314.pyc +0 -0
  489. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1006.cpython-314.pyc +0 -0
  490. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1026.cpython-314.pyc +0 -0
  491. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1125.cpython-314.pyc +0 -0
  492. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1140.cpython-314.pyc +0 -0
  493. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1250.cpython-314.pyc +0 -0
  494. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1251.cpython-314.pyc +0 -0
  495. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1252.cpython-314.pyc +0 -0
  496. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1253.cpython-314.pyc +0 -0
  497. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1254.cpython-314.pyc +0 -0
  498. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1255.cpython-314.pyc +0 -0
  499. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1256.cpython-314.pyc +0 -0
  500. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1257.cpython-314.pyc +0 -0
  501. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1258.cpython-314.pyc +0 -0
  502. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp273.cpython-314.pyc +0 -0
  503. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp424.cpython-314.pyc +0 -0
  504. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp437.cpython-314.pyc +0 -0
  505. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp500.cpython-314.pyc +0 -0
  506. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp720.cpython-314.pyc +0 -0
  507. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp737.cpython-314.pyc +0 -0
  508. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp775.cpython-314.pyc +0 -0
  509. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp850.cpython-314.pyc +0 -0
  510. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp852.cpython-314.pyc +0 -0
  511. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp855.cpython-314.pyc +0 -0
  512. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp856.cpython-314.pyc +0 -0
  513. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp857.cpython-314.pyc +0 -0
  514. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp858.cpython-314.pyc +0 -0
  515. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp860.cpython-314.pyc +0 -0
  516. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp861.cpython-314.pyc +0 -0
  517. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp862.cpython-314.pyc +0 -0
  518. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp863.cpython-314.pyc +0 -0
  519. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp864.cpython-314.pyc +0 -0
  520. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp865.cpython-314.pyc +0 -0
  521. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp866.cpython-314.pyc +0 -0
  522. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp869.cpython-314.pyc +0 -0
  523. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp874.cpython-314.pyc +0 -0
  524. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp875.cpython-314.pyc +0 -0
  525. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp932.cpython-314.pyc +0 -0
  526. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp949.cpython-314.pyc +0 -0
  527. package/runtime/usr/lib/python3.14/encodings/__pycache__/cp950.cpython-314.pyc +0 -0
  528. package/runtime/usr/lib/python3.14/encodings/__pycache__/euc_jis_2004.cpython-314.pyc +0 -0
  529. package/runtime/usr/lib/python3.14/encodings/__pycache__/euc_jisx0213.cpython-314.pyc +0 -0
  530. package/runtime/usr/lib/python3.14/encodings/__pycache__/euc_jp.cpython-314.pyc +0 -0
  531. package/runtime/usr/lib/python3.14/encodings/__pycache__/euc_kr.cpython-314.pyc +0 -0
  532. package/runtime/usr/lib/python3.14/encodings/__pycache__/gb18030.cpython-314.pyc +0 -0
  533. package/runtime/usr/lib/python3.14/encodings/__pycache__/gb2312.cpython-314.pyc +0 -0
  534. package/runtime/usr/lib/python3.14/encodings/__pycache__/gbk.cpython-314.pyc +0 -0
  535. package/runtime/usr/lib/python3.14/encodings/__pycache__/hex_codec.cpython-314.pyc +0 -0
  536. package/runtime/usr/lib/python3.14/encodings/__pycache__/hp_roman8.cpython-314.pyc +0 -0
  537. package/runtime/usr/lib/python3.14/encodings/__pycache__/hz.cpython-314.pyc +0 -0
  538. package/runtime/usr/lib/python3.14/encodings/__pycache__/idna.cpython-314.pyc +0 -0
  539. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp.cpython-314.pyc +0 -0
  540. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_1.cpython-314.pyc +0 -0
  541. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_2.cpython-314.pyc +0 -0
  542. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_2004.cpython-314.pyc +0 -0
  543. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_3.cpython-314.pyc +0 -0
  544. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_ext.cpython-314.pyc +0 -0
  545. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_kr.cpython-314.pyc +0 -0
  546. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_1.cpython-314.pyc +0 -0
  547. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_10.cpython-314.pyc +0 -0
  548. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_11.cpython-314.pyc +0 -0
  549. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_13.cpython-314.pyc +0 -0
  550. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_14.cpython-314.pyc +0 -0
  551. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_15.cpython-314.pyc +0 -0
  552. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_16.cpython-314.pyc +0 -0
  553. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_2.cpython-314.pyc +0 -0
  554. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_3.cpython-314.pyc +0 -0
  555. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_4.cpython-314.pyc +0 -0
  556. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_5.cpython-314.pyc +0 -0
  557. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_6.cpython-314.pyc +0 -0
  558. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_7.cpython-314.pyc +0 -0
  559. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_8.cpython-314.pyc +0 -0
  560. package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_9.cpython-314.pyc +0 -0
  561. package/runtime/usr/lib/python3.14/encodings/__pycache__/johab.cpython-314.pyc +0 -0
  562. package/runtime/usr/lib/python3.14/encodings/__pycache__/koi8_r.cpython-314.pyc +0 -0
  563. package/runtime/usr/lib/python3.14/encodings/__pycache__/koi8_t.cpython-314.pyc +0 -0
  564. package/runtime/usr/lib/python3.14/encodings/__pycache__/koi8_u.cpython-314.pyc +0 -0
  565. package/runtime/usr/lib/python3.14/encodings/__pycache__/kz1048.cpython-314.pyc +0 -0
  566. package/runtime/usr/lib/python3.14/encodings/__pycache__/latin_1.cpython-314.pyc +0 -0
  567. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_arabic.cpython-314.pyc +0 -0
  568. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_croatian.cpython-314.pyc +0 -0
  569. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_cyrillic.cpython-314.pyc +0 -0
  570. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_farsi.cpython-314.pyc +0 -0
  571. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_greek.cpython-314.pyc +0 -0
  572. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_iceland.cpython-314.pyc +0 -0
  573. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_latin2.cpython-314.pyc +0 -0
  574. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_roman.cpython-314.pyc +0 -0
  575. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_romanian.cpython-314.pyc +0 -0
  576. package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_turkish.cpython-314.pyc +0 -0
  577. package/runtime/usr/lib/python3.14/encodings/__pycache__/mbcs.cpython-314.pyc +0 -0
  578. package/runtime/usr/lib/python3.14/encodings/__pycache__/oem.cpython-314.pyc +0 -0
  579. package/runtime/usr/lib/python3.14/encodings/__pycache__/palmos.cpython-314.pyc +0 -0
  580. package/runtime/usr/lib/python3.14/encodings/__pycache__/ptcp154.cpython-314.pyc +0 -0
  581. package/runtime/usr/lib/python3.14/encodings/__pycache__/punycode.cpython-314.pyc +0 -0
  582. package/runtime/usr/lib/python3.14/encodings/__pycache__/quopri_codec.cpython-314.pyc +0 -0
  583. package/runtime/usr/lib/python3.14/encodings/__pycache__/raw_unicode_escape.cpython-314.pyc +0 -0
  584. package/runtime/usr/lib/python3.14/encodings/__pycache__/rot_13.cpython-314.pyc +0 -0
  585. package/runtime/usr/lib/python3.14/encodings/__pycache__/shift_jis.cpython-314.pyc +0 -0
  586. package/runtime/usr/lib/python3.14/encodings/__pycache__/shift_jis_2004.cpython-314.pyc +0 -0
  587. package/runtime/usr/lib/python3.14/encodings/__pycache__/shift_jisx0213.cpython-314.pyc +0 -0
  588. package/runtime/usr/lib/python3.14/encodings/__pycache__/tis_620.cpython-314.pyc +0 -0
  589. package/runtime/usr/lib/python3.14/encodings/__pycache__/undefined.cpython-314.pyc +0 -0
  590. package/runtime/usr/lib/python3.14/encodings/__pycache__/unicode_escape.cpython-314.pyc +0 -0
  591. package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_16.cpython-314.pyc +0 -0
  592. package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_16_be.cpython-314.pyc +0 -0
  593. package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_16_le.cpython-314.pyc +0 -0
  594. package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_32.cpython-314.pyc +0 -0
  595. package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_32_be.cpython-314.pyc +0 -0
  596. package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_32_le.cpython-314.pyc +0 -0
  597. package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_7.cpython-314.pyc +0 -0
  598. package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_8.cpython-314.pyc +0 -0
  599. package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_8_sig.cpython-314.pyc +0 -0
  600. package/runtime/usr/lib/python3.14/encodings/__pycache__/uu_codec.cpython-314.pyc +0 -0
  601. package/runtime/usr/lib/python3.14/encodings/__pycache__/zlib_codec.cpython-314.pyc +0 -0
  602. package/runtime/usr/lib/python3.14/encodings/_win_cp_codecs.py +36 -0
  603. package/runtime/usr/lib/python3.14/encodings/aliases.py +568 -0
  604. package/runtime/usr/lib/python3.14/encodings/ascii.py +50 -0
  605. package/runtime/usr/lib/python3.14/encodings/base64_codec.py +55 -0
  606. package/runtime/usr/lib/python3.14/encodings/big5.py +39 -0
  607. package/runtime/usr/lib/python3.14/encodings/big5hkscs.py +39 -0
  608. package/runtime/usr/lib/python3.14/encodings/bz2_codec.py +78 -0
  609. package/runtime/usr/lib/python3.14/encodings/charmap.py +69 -0
  610. package/runtime/usr/lib/python3.14/encodings/cp037.py +307 -0
  611. package/runtime/usr/lib/python3.14/encodings/cp1006.py +307 -0
  612. package/runtime/usr/lib/python3.14/encodings/cp1026.py +307 -0
  613. package/runtime/usr/lib/python3.14/encodings/cp1125.py +698 -0
  614. package/runtime/usr/lib/python3.14/encodings/cp1140.py +307 -0
  615. package/runtime/usr/lib/python3.14/encodings/cp1250.py +307 -0
  616. package/runtime/usr/lib/python3.14/encodings/cp1251.py +307 -0
  617. package/runtime/usr/lib/python3.14/encodings/cp1252.py +307 -0
  618. package/runtime/usr/lib/python3.14/encodings/cp1253.py +307 -0
  619. package/runtime/usr/lib/python3.14/encodings/cp1254.py +307 -0
  620. package/runtime/usr/lib/python3.14/encodings/cp1255.py +307 -0
  621. package/runtime/usr/lib/python3.14/encodings/cp1256.py +307 -0
  622. package/runtime/usr/lib/python3.14/encodings/cp1257.py +307 -0
  623. package/runtime/usr/lib/python3.14/encodings/cp1258.py +307 -0
  624. package/runtime/usr/lib/python3.14/encodings/cp273.py +307 -0
  625. package/runtime/usr/lib/python3.14/encodings/cp424.py +307 -0
  626. package/runtime/usr/lib/python3.14/encodings/cp437.py +698 -0
  627. package/runtime/usr/lib/python3.14/encodings/cp500.py +307 -0
  628. package/runtime/usr/lib/python3.14/encodings/cp720.py +309 -0
  629. package/runtime/usr/lib/python3.14/encodings/cp737.py +698 -0
  630. package/runtime/usr/lib/python3.14/encodings/cp775.py +697 -0
  631. package/runtime/usr/lib/python3.14/encodings/cp850.py +698 -0
  632. package/runtime/usr/lib/python3.14/encodings/cp852.py +698 -0
  633. package/runtime/usr/lib/python3.14/encodings/cp855.py +698 -0
  634. package/runtime/usr/lib/python3.14/encodings/cp856.py +307 -0
  635. package/runtime/usr/lib/python3.14/encodings/cp857.py +694 -0
  636. package/runtime/usr/lib/python3.14/encodings/cp858.py +698 -0
  637. package/runtime/usr/lib/python3.14/encodings/cp860.py +698 -0
  638. package/runtime/usr/lib/python3.14/encodings/cp861.py +698 -0
  639. package/runtime/usr/lib/python3.14/encodings/cp862.py +698 -0
  640. package/runtime/usr/lib/python3.14/encodings/cp863.py +698 -0
  641. package/runtime/usr/lib/python3.14/encodings/cp864.py +690 -0
  642. package/runtime/usr/lib/python3.14/encodings/cp865.py +698 -0
  643. package/runtime/usr/lib/python3.14/encodings/cp866.py +698 -0
  644. package/runtime/usr/lib/python3.14/encodings/cp869.py +689 -0
  645. package/runtime/usr/lib/python3.14/encodings/cp874.py +307 -0
  646. package/runtime/usr/lib/python3.14/encodings/cp875.py +307 -0
  647. package/runtime/usr/lib/python3.14/encodings/cp932.py +39 -0
  648. package/runtime/usr/lib/python3.14/encodings/cp949.py +39 -0
  649. package/runtime/usr/lib/python3.14/encodings/cp950.py +39 -0
  650. package/runtime/usr/lib/python3.14/encodings/euc_jis_2004.py +39 -0
  651. package/runtime/usr/lib/python3.14/encodings/euc_jisx0213.py +39 -0
  652. package/runtime/usr/lib/python3.14/encodings/euc_jp.py +39 -0
  653. package/runtime/usr/lib/python3.14/encodings/euc_kr.py +39 -0
  654. package/runtime/usr/lib/python3.14/encodings/gb18030.py +39 -0
  655. package/runtime/usr/lib/python3.14/encodings/gb2312.py +39 -0
  656. package/runtime/usr/lib/python3.14/encodings/gbk.py +39 -0
  657. package/runtime/usr/lib/python3.14/encodings/hex_codec.py +55 -0
  658. package/runtime/usr/lib/python3.14/encodings/hp_roman8.py +314 -0
  659. package/runtime/usr/lib/python3.14/encodings/hz.py +39 -0
  660. package/runtime/usr/lib/python3.14/encodings/idna.py +387 -0
  661. package/runtime/usr/lib/python3.14/encodings/iso2022_jp.py +39 -0
  662. package/runtime/usr/lib/python3.14/encodings/iso2022_jp_1.py +39 -0
  663. package/runtime/usr/lib/python3.14/encodings/iso2022_jp_2.py +39 -0
  664. package/runtime/usr/lib/python3.14/encodings/iso2022_jp_2004.py +39 -0
  665. package/runtime/usr/lib/python3.14/encodings/iso2022_jp_3.py +39 -0
  666. package/runtime/usr/lib/python3.14/encodings/iso2022_jp_ext.py +39 -0
  667. package/runtime/usr/lib/python3.14/encodings/iso2022_kr.py +39 -0
  668. package/runtime/usr/lib/python3.14/encodings/iso8859_1.py +307 -0
  669. package/runtime/usr/lib/python3.14/encodings/iso8859_10.py +307 -0
  670. package/runtime/usr/lib/python3.14/encodings/iso8859_11.py +307 -0
  671. package/runtime/usr/lib/python3.14/encodings/iso8859_13.py +307 -0
  672. package/runtime/usr/lib/python3.14/encodings/iso8859_14.py +307 -0
  673. package/runtime/usr/lib/python3.14/encodings/iso8859_15.py +307 -0
  674. package/runtime/usr/lib/python3.14/encodings/iso8859_16.py +307 -0
  675. package/runtime/usr/lib/python3.14/encodings/iso8859_2.py +307 -0
  676. package/runtime/usr/lib/python3.14/encodings/iso8859_3.py +307 -0
  677. package/runtime/usr/lib/python3.14/encodings/iso8859_4.py +307 -0
  678. package/runtime/usr/lib/python3.14/encodings/iso8859_5.py +307 -0
  679. package/runtime/usr/lib/python3.14/encodings/iso8859_6.py +307 -0
  680. package/runtime/usr/lib/python3.14/encodings/iso8859_7.py +307 -0
  681. package/runtime/usr/lib/python3.14/encodings/iso8859_8.py +307 -0
  682. package/runtime/usr/lib/python3.14/encodings/iso8859_9.py +307 -0
  683. package/runtime/usr/lib/python3.14/encodings/johab.py +39 -0
  684. package/runtime/usr/lib/python3.14/encodings/koi8_r.py +307 -0
  685. package/runtime/usr/lib/python3.14/encodings/koi8_t.py +308 -0
  686. package/runtime/usr/lib/python3.14/encodings/koi8_u.py +307 -0
  687. package/runtime/usr/lib/python3.14/encodings/kz1048.py +307 -0
  688. package/runtime/usr/lib/python3.14/encodings/latin_1.py +50 -0
  689. package/runtime/usr/lib/python3.14/encodings/mac_arabic.py +698 -0
  690. package/runtime/usr/lib/python3.14/encodings/mac_croatian.py +307 -0
  691. package/runtime/usr/lib/python3.14/encodings/mac_cyrillic.py +307 -0
  692. package/runtime/usr/lib/python3.14/encodings/mac_farsi.py +307 -0
  693. package/runtime/usr/lib/python3.14/encodings/mac_greek.py +307 -0
  694. package/runtime/usr/lib/python3.14/encodings/mac_iceland.py +307 -0
  695. package/runtime/usr/lib/python3.14/encodings/mac_latin2.py +312 -0
  696. package/runtime/usr/lib/python3.14/encodings/mac_roman.py +307 -0
  697. package/runtime/usr/lib/python3.14/encodings/mac_romanian.py +307 -0
  698. package/runtime/usr/lib/python3.14/encodings/mac_turkish.py +307 -0
  699. package/runtime/usr/lib/python3.14/encodings/mbcs.py +47 -0
  700. package/runtime/usr/lib/python3.14/encodings/oem.py +41 -0
  701. package/runtime/usr/lib/python3.14/encodings/palmos.py +308 -0
  702. package/runtime/usr/lib/python3.14/encodings/ptcp154.py +312 -0
  703. package/runtime/usr/lib/python3.14/encodings/punycode.py +253 -0
  704. package/runtime/usr/lib/python3.14/encodings/quopri_codec.py +56 -0
  705. package/runtime/usr/lib/python3.14/encodings/raw_unicode_escape.py +46 -0
  706. package/runtime/usr/lib/python3.14/encodings/rot_13.py +113 -0
  707. package/runtime/usr/lib/python3.14/encodings/shift_jis.py +39 -0
  708. package/runtime/usr/lib/python3.14/encodings/shift_jis_2004.py +39 -0
  709. package/runtime/usr/lib/python3.14/encodings/shift_jisx0213.py +39 -0
  710. package/runtime/usr/lib/python3.14/encodings/tis_620.py +307 -0
  711. package/runtime/usr/lib/python3.14/encodings/undefined.py +49 -0
  712. package/runtime/usr/lib/python3.14/encodings/unicode_escape.py +46 -0
  713. package/runtime/usr/lib/python3.14/encodings/utf_16.py +155 -0
  714. package/runtime/usr/lib/python3.14/encodings/utf_16_be.py +42 -0
  715. package/runtime/usr/lib/python3.14/encodings/utf_16_le.py +42 -0
  716. package/runtime/usr/lib/python3.14/encodings/utf_32.py +150 -0
  717. package/runtime/usr/lib/python3.14/encodings/utf_32_be.py +37 -0
  718. package/runtime/usr/lib/python3.14/encodings/utf_32_le.py +37 -0
  719. package/runtime/usr/lib/python3.14/encodings/utf_7.py +38 -0
  720. package/runtime/usr/lib/python3.14/encodings/utf_8.py +42 -0
  721. package/runtime/usr/lib/python3.14/encodings/utf_8_sig.py +130 -0
  722. package/runtime/usr/lib/python3.14/encodings/uu_codec.py +103 -0
  723. package/runtime/usr/lib/python3.14/encodings/zlib_codec.py +77 -0
  724. package/runtime/usr/lib/python3.14/enum.py +2169 -0
  725. package/runtime/usr/lib/python3.14/filecmp.py +320 -0
  726. package/runtime/usr/lib/python3.14/fileinput.py +442 -0
  727. package/runtime/usr/lib/python3.14/fnmatch.py +209 -0
  728. package/runtime/usr/lib/python3.14/fractions.py +1078 -0
  729. package/runtime/usr/lib/python3.14/ftplib.py +975 -0
  730. package/runtime/usr/lib/python3.14/functools.py +1165 -0
  731. package/runtime/usr/lib/python3.14/genericpath.py +200 -0
  732. package/runtime/usr/lib/python3.14/getopt.py +232 -0
  733. package/runtime/usr/lib/python3.14/getpass.py +256 -0
  734. package/runtime/usr/lib/python3.14/gettext.py +660 -0
  735. package/runtime/usr/lib/python3.14/glob.py +574 -0
  736. package/runtime/usr/lib/python3.14/graphlib.py +254 -0
  737. package/runtime/usr/lib/python3.14/gzip.py +724 -0
  738. package/runtime/usr/lib/python3.14/hashlib.py +255 -0
  739. package/runtime/usr/lib/python3.14/heapq.py +611 -0
  740. package/runtime/usr/lib/python3.14/hmac.py +272 -0
  741. package/runtime/usr/lib/python3.14/html/__init__.py +132 -0
  742. package/runtime/usr/lib/python3.14/html/__pycache__/__init__.cpython-314.pyc +0 -0
  743. package/runtime/usr/lib/python3.14/html/__pycache__/entities.cpython-314.pyc +0 -0
  744. package/runtime/usr/lib/python3.14/html/__pycache__/parser.cpython-314.pyc +0 -0
  745. package/runtime/usr/lib/python3.14/html/entities.py +2513 -0
  746. package/runtime/usr/lib/python3.14/html/parser.py +583 -0
  747. package/runtime/usr/lib/python3.14/http/__init__.py +213 -0
  748. package/runtime/usr/lib/python3.14/http/__pycache__/__init__.cpython-314.pyc +0 -0
  749. package/runtime/usr/lib/python3.14/http/__pycache__/client.cpython-314.pyc +0 -0
  750. package/runtime/usr/lib/python3.14/http/__pycache__/cookiejar.cpython-314.pyc +0 -0
  751. package/runtime/usr/lib/python3.14/http/__pycache__/cookies.cpython-314.pyc +0 -0
  752. package/runtime/usr/lib/python3.14/http/__pycache__/server.cpython-314.pyc +0 -0
  753. package/runtime/usr/lib/python3.14/http/client.py +1598 -0
  754. package/runtime/usr/lib/python3.14/http/cookiejar.py +2124 -0
  755. package/runtime/usr/lib/python3.14/http/cookies.py +637 -0
  756. package/runtime/usr/lib/python3.14/http/server.py +1445 -0
  757. package/runtime/usr/lib/python3.14/imaplib.py +2090 -0
  758. package/runtime/usr/lib/python3.14/importlib/__init__.py +136 -0
  759. package/runtime/usr/lib/python3.14/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
  760. package/runtime/usr/lib/python3.14/importlib/__pycache__/_abc.cpython-314.pyc +0 -0
  761. package/runtime/usr/lib/python3.14/importlib/__pycache__/_bootstrap.cpython-314.pyc +0 -0
  762. package/runtime/usr/lib/python3.14/importlib/__pycache__/_bootstrap_external.cpython-314.pyc +0 -0
  763. package/runtime/usr/lib/python3.14/importlib/__pycache__/abc.cpython-314.pyc +0 -0
  764. package/runtime/usr/lib/python3.14/importlib/__pycache__/machinery.cpython-314.pyc +0 -0
  765. package/runtime/usr/lib/python3.14/importlib/__pycache__/readers.cpython-314.pyc +0 -0
  766. package/runtime/usr/lib/python3.14/importlib/__pycache__/simple.cpython-314.pyc +0 -0
  767. package/runtime/usr/lib/python3.14/importlib/__pycache__/util.cpython-314.pyc +0 -0
  768. package/runtime/usr/lib/python3.14/importlib/_abc.py +39 -0
  769. package/runtime/usr/lib/python3.14/importlib/_bootstrap.py +1570 -0
  770. package/runtime/usr/lib/python3.14/importlib/_bootstrap_external.py +1566 -0
  771. package/runtime/usr/lib/python3.14/importlib/abc.py +234 -0
  772. package/runtime/usr/lib/python3.14/importlib/machinery.py +50 -0
  773. package/runtime/usr/lib/python3.14/importlib/metadata/__init__.py +1093 -0
  774. package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
  775. package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_adapters.cpython-314.pyc +0 -0
  776. package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_collections.cpython-314.pyc +0 -0
  777. package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_functools.cpython-314.pyc +0 -0
  778. package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_itertools.cpython-314.pyc +0 -0
  779. package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_meta.cpython-314.pyc +0 -0
  780. package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_text.cpython-314.pyc +0 -0
  781. package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/diagnose.cpython-314.pyc +0 -0
  782. package/runtime/usr/lib/python3.14/importlib/metadata/_adapters.py +89 -0
  783. package/runtime/usr/lib/python3.14/importlib/metadata/_collections.py +30 -0
  784. package/runtime/usr/lib/python3.14/importlib/metadata/_functools.py +104 -0
  785. package/runtime/usr/lib/python3.14/importlib/metadata/_itertools.py +73 -0
  786. package/runtime/usr/lib/python3.14/importlib/metadata/_meta.py +67 -0
  787. package/runtime/usr/lib/python3.14/importlib/metadata/_text.py +99 -0
  788. package/runtime/usr/lib/python3.14/importlib/metadata/diagnose.py +21 -0
  789. package/runtime/usr/lib/python3.14/importlib/readers.py +12 -0
  790. package/runtime/usr/lib/python3.14/importlib/resources/__init__.py +43 -0
  791. package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/__init__.cpython-314.pyc +0 -0
  792. package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/_adapters.cpython-314.pyc +0 -0
  793. package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/_common.cpython-314.pyc +0 -0
  794. package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/_functional.cpython-314.pyc +0 -0
  795. package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/_itertools.cpython-314.pyc +0 -0
  796. package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/abc.cpython-314.pyc +0 -0
  797. package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/readers.cpython-314.pyc +0 -0
  798. package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/simple.cpython-314.pyc +0 -0
  799. package/runtime/usr/lib/python3.14/importlib/resources/_adapters.py +168 -0
  800. package/runtime/usr/lib/python3.14/importlib/resources/_common.py +211 -0
  801. package/runtime/usr/lib/python3.14/importlib/resources/_functional.py +81 -0
  802. package/runtime/usr/lib/python3.14/importlib/resources/_itertools.py +38 -0
  803. package/runtime/usr/lib/python3.14/importlib/resources/abc.py +173 -0
  804. package/runtime/usr/lib/python3.14/importlib/resources/readers.py +203 -0
  805. package/runtime/usr/lib/python3.14/importlib/resources/simple.py +106 -0
  806. package/runtime/usr/lib/python3.14/importlib/simple.py +14 -0
  807. package/runtime/usr/lib/python3.14/importlib/util.py +279 -0
  808. package/runtime/usr/lib/python3.14/inspect.py +3425 -0
  809. package/runtime/usr/lib/python3.14/io.py +150 -0
  810. package/runtime/usr/lib/python3.14/ipaddress.py +2421 -0
  811. package/runtime/usr/lib/python3.14/json/__init__.py +365 -0
  812. package/runtime/usr/lib/python3.14/json/__main__.py +20 -0
  813. package/runtime/usr/lib/python3.14/json/__pycache__/__init__.cpython-314.pyc +0 -0
  814. package/runtime/usr/lib/python3.14/json/__pycache__/__main__.cpython-314.pyc +0 -0
  815. package/runtime/usr/lib/python3.14/json/__pycache__/decoder.cpython-314.pyc +0 -0
  816. package/runtime/usr/lib/python3.14/json/__pycache__/encoder.cpython-314.pyc +0 -0
  817. package/runtime/usr/lib/python3.14/json/__pycache__/scanner.cpython-314.pyc +0 -0
  818. package/runtime/usr/lib/python3.14/json/__pycache__/tool.cpython-314.pyc +0 -0
  819. package/runtime/usr/lib/python3.14/json/decoder.py +364 -0
  820. package/runtime/usr/lib/python3.14/json/encoder.py +461 -0
  821. package/runtime/usr/lib/python3.14/json/scanner.py +73 -0
  822. package/runtime/usr/lib/python3.14/json/tool.py +122 -0
  823. package/runtime/usr/lib/python3.14/keyword.py +64 -0
  824. package/runtime/usr/lib/python3.14/lib-dynload/.keep +0 -0
  825. package/runtime/usr/lib/python3.14/linecache.py +302 -0
  826. package/runtime/usr/lib/python3.14/locale.py +1992 -0
  827. package/runtime/usr/lib/python3.14/logging/__init__.py +2335 -0
  828. package/runtime/usr/lib/python3.14/logging/__pycache__/__init__.cpython-314.pyc +0 -0
  829. package/runtime/usr/lib/python3.14/logging/__pycache__/config.cpython-314.pyc +0 -0
  830. package/runtime/usr/lib/python3.14/logging/__pycache__/handlers.cpython-314.pyc +0 -0
  831. package/runtime/usr/lib/python3.14/logging/config.py +1093 -0
  832. package/runtime/usr/lib/python3.14/logging/handlers.py +1654 -0
  833. package/runtime/usr/lib/python3.14/lzma.py +364 -0
  834. package/runtime/usr/lib/python3.14/mailbox.py +2219 -0
  835. package/runtime/usr/lib/python3.14/mimetypes.py +755 -0
  836. package/runtime/usr/lib/python3.14/modulefinder.py +671 -0
  837. package/runtime/usr/lib/python3.14/multiprocessing/__init__.py +37 -0
  838. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/__init__.cpython-314.pyc +0 -0
  839. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/connection.cpython-314.pyc +0 -0
  840. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/context.cpython-314.pyc +0 -0
  841. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/forkserver.cpython-314.pyc +0 -0
  842. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/heap.cpython-314.pyc +0 -0
  843. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/managers.cpython-314.pyc +0 -0
  844. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/pool.cpython-314.pyc +0 -0
  845. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/popen_fork.cpython-314.pyc +0 -0
  846. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/popen_forkserver.cpython-314.pyc +0 -0
  847. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/popen_spawn_posix.cpython-314.pyc +0 -0
  848. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/popen_spawn_win32.cpython-314.pyc +0 -0
  849. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/process.cpython-314.pyc +0 -0
  850. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/queues.cpython-314.pyc +0 -0
  851. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/reduction.cpython-314.pyc +0 -0
  852. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/resource_sharer.cpython-314.pyc +0 -0
  853. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/resource_tracker.cpython-314.pyc +0 -0
  854. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/shared_memory.cpython-314.pyc +0 -0
  855. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/sharedctypes.cpython-314.pyc +0 -0
  856. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/spawn.cpython-314.pyc +0 -0
  857. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/synchronize.cpython-314.pyc +0 -0
  858. package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/util.cpython-314.pyc +0 -0
  859. package/runtime/usr/lib/python3.14/multiprocessing/connection.py +1232 -0
  860. package/runtime/usr/lib/python3.14/multiprocessing/context.py +405 -0
  861. package/runtime/usr/lib/python3.14/multiprocessing/dummy/__init__.py +126 -0
  862. package/runtime/usr/lib/python3.14/multiprocessing/dummy/__pycache__/__init__.cpython-314.pyc +0 -0
  863. package/runtime/usr/lib/python3.14/multiprocessing/dummy/__pycache__/connection.cpython-314.pyc +0 -0
  864. package/runtime/usr/lib/python3.14/multiprocessing/dummy/connection.py +75 -0
  865. package/runtime/usr/lib/python3.14/multiprocessing/forkserver.py +429 -0
  866. package/runtime/usr/lib/python3.14/multiprocessing/heap.py +337 -0
  867. package/runtime/usr/lib/python3.14/multiprocessing/managers.py +1438 -0
  868. package/runtime/usr/lib/python3.14/multiprocessing/pool.py +957 -0
  869. package/runtime/usr/lib/python3.14/multiprocessing/popen_fork.py +100 -0
  870. package/runtime/usr/lib/python3.14/multiprocessing/popen_forkserver.py +74 -0
  871. package/runtime/usr/lib/python3.14/multiprocessing/popen_spawn_posix.py +76 -0
  872. package/runtime/usr/lib/python3.14/multiprocessing/popen_spawn_win32.py +147 -0
  873. package/runtime/usr/lib/python3.14/multiprocessing/process.py +443 -0
  874. package/runtime/usr/lib/python3.14/multiprocessing/queues.py +399 -0
  875. package/runtime/usr/lib/python3.14/multiprocessing/reduction.py +281 -0
  876. package/runtime/usr/lib/python3.14/multiprocessing/resource_sharer.py +154 -0
  877. package/runtime/usr/lib/python3.14/multiprocessing/resource_tracker.py +495 -0
  878. package/runtime/usr/lib/python3.14/multiprocessing/shared_memory.py +544 -0
  879. package/runtime/usr/lib/python3.14/multiprocessing/sharedctypes.py +240 -0
  880. package/runtime/usr/lib/python3.14/multiprocessing/spawn.py +307 -0
  881. package/runtime/usr/lib/python3.14/multiprocessing/synchronize.py +411 -0
  882. package/runtime/usr/lib/python3.14/multiprocessing/util.py +592 -0
  883. package/runtime/usr/lib/python3.14/netrc.py +200 -0
  884. package/runtime/usr/lib/python3.14/ntpath.py +889 -0
  885. package/runtime/usr/lib/python3.14/nturl2path.py +82 -0
  886. package/runtime/usr/lib/python3.14/numbers.py +427 -0
  887. package/runtime/usr/lib/python3.14/opcode.py +122 -0
  888. package/runtime/usr/lib/python3.14/operator.py +475 -0
  889. package/runtime/usr/lib/python3.14/optparse.py +1664 -0
  890. package/runtime/usr/lib/python3.14/os.py +1191 -0
  891. package/runtime/usr/lib/python3.14/pathlib/__init__.py +1307 -0
  892. package/runtime/usr/lib/python3.14/pathlib/__pycache__/__init__.cpython-314.pyc +0 -0
  893. package/runtime/usr/lib/python3.14/pathlib/__pycache__/_local.cpython-314.pyc +0 -0
  894. package/runtime/usr/lib/python3.14/pathlib/__pycache__/_os.cpython-314.pyc +0 -0
  895. package/runtime/usr/lib/python3.14/pathlib/__pycache__/types.cpython-314.pyc +0 -0
  896. package/runtime/usr/lib/python3.14/pathlib/_local.py +12 -0
  897. package/runtime/usr/lib/python3.14/pathlib/_os.py +530 -0
  898. package/runtime/usr/lib/python3.14/pathlib/types.py +430 -0
  899. package/runtime/usr/lib/python3.14/pdb.py +3682 -0
  900. package/runtime/usr/lib/python3.14/pickle.py +1925 -0
  901. package/runtime/usr/lib/python3.14/pickletools.py +2887 -0
  902. package/runtime/usr/lib/python3.14/pkgutil.py +474 -0
  903. package/runtime/usr/lib/python3.14/platform.py +1515 -0
  904. package/runtime/usr/lib/python3.14/plistlib.py +956 -0
  905. package/runtime/usr/lib/python3.14/poplib.py +477 -0
  906. package/runtime/usr/lib/python3.14/posixpath.py +592 -0
  907. package/runtime/usr/lib/python3.14/pprint.py +675 -0
  908. package/runtime/usr/lib/python3.14/profile.py +615 -0
  909. package/runtime/usr/lib/python3.14/pstats.py +777 -0
  910. package/runtime/usr/lib/python3.14/pty.py +182 -0
  911. package/runtime/usr/lib/python3.14/py_compile.py +212 -0
  912. package/runtime/usr/lib/python3.14/pyclbr.py +314 -0
  913. package/runtime/usr/lib/python3.14/pydoc.py +2890 -0
  914. package/runtime/usr/lib/python3.14/queue.py +385 -0
  915. package/runtime/usr/lib/python3.14/quopri.py +235 -0
  916. package/runtime/usr/lib/python3.14/random.py +1087 -0
  917. package/runtime/usr/lib/python3.14/re/__init__.py +428 -0
  918. package/runtime/usr/lib/python3.14/re/__pycache__/__init__.cpython-314.pyc +0 -0
  919. package/runtime/usr/lib/python3.14/re/__pycache__/_casefix.cpython-314.pyc +0 -0
  920. package/runtime/usr/lib/python3.14/re/__pycache__/_compiler.cpython-314.pyc +0 -0
  921. package/runtime/usr/lib/python3.14/re/__pycache__/_constants.cpython-314.pyc +0 -0
  922. package/runtime/usr/lib/python3.14/re/__pycache__/_parser.cpython-314.pyc +0 -0
  923. package/runtime/usr/lib/python3.14/re/_casefix.py +106 -0
  924. package/runtime/usr/lib/python3.14/re/_compiler.py +782 -0
  925. package/runtime/usr/lib/python3.14/re/_constants.py +224 -0
  926. package/runtime/usr/lib/python3.14/re/_parser.py +1066 -0
  927. package/runtime/usr/lib/python3.14/reprlib.py +230 -0
  928. package/runtime/usr/lib/python3.14/rlcompleter.py +222 -0
  929. package/runtime/usr/lib/python3.14/runpy.py +326 -0
  930. package/runtime/usr/lib/python3.14/sched.py +167 -0
  931. package/runtime/usr/lib/python3.14/secrets.py +71 -0
  932. package/runtime/usr/lib/python3.14/selectors.py +603 -0
  933. package/runtime/usr/lib/python3.14/shelve.py +250 -0
  934. package/runtime/usr/lib/python3.14/shlex.py +351 -0
  935. package/runtime/usr/lib/python3.14/shutil.py +1660 -0
  936. package/runtime/usr/lib/python3.14/signal.py +94 -0
  937. package/runtime/usr/lib/python3.14/site-packages/README.txt +2 -0
  938. package/runtime/usr/lib/python3.14/site.py +779 -0
  939. package/runtime/usr/lib/python3.14/smtplib.py +1121 -0
  940. package/runtime/usr/lib/python3.14/socket.py +994 -0
  941. package/runtime/usr/lib/python3.14/socketserver.py +863 -0
  942. package/runtime/usr/lib/python3.14/sqlite3/__init__.py +57 -0
  943. package/runtime/usr/lib/python3.14/sqlite3/__main__.py +139 -0
  944. package/runtime/usr/lib/python3.14/sqlite3/__pycache__/__init__.cpython-314.pyc +0 -0
  945. package/runtime/usr/lib/python3.14/sqlite3/__pycache__/__main__.cpython-314.pyc +0 -0
  946. package/runtime/usr/lib/python3.14/sqlite3/__pycache__/dbapi2.cpython-314.pyc +0 -0
  947. package/runtime/usr/lib/python3.14/sqlite3/__pycache__/dump.cpython-314.pyc +0 -0
  948. package/runtime/usr/lib/python3.14/sqlite3/dbapi2.py +96 -0
  949. package/runtime/usr/lib/python3.14/sqlite3/dump.py +118 -0
  950. package/runtime/usr/lib/python3.14/sre_compile.py +7 -0
  951. package/runtime/usr/lib/python3.14/sre_constants.py +7 -0
  952. package/runtime/usr/lib/python3.14/sre_parse.py +7 -0
  953. package/runtime/usr/lib/python3.14/ssl.py +1540 -0
  954. package/runtime/usr/lib/python3.14/stat.py +212 -0
  955. package/runtime/usr/lib/python3.14/statistics.py +1879 -0
  956. package/runtime/usr/lib/python3.14/string/__init__.py +332 -0
  957. package/runtime/usr/lib/python3.14/string/__pycache__/__init__.cpython-314.pyc +0 -0
  958. package/runtime/usr/lib/python3.14/string/__pycache__/templatelib.cpython-314.pyc +0 -0
  959. package/runtime/usr/lib/python3.14/string/templatelib.py +33 -0
  960. package/runtime/usr/lib/python3.14/stringprep.py +456 -0
  961. package/runtime/usr/lib/python3.14/struct.py +15 -0
  962. package/runtime/usr/lib/python3.14/subprocess.py +2257 -0
  963. package/runtime/usr/lib/python3.14/symtable.py +451 -0
  964. package/runtime/usr/lib/python3.14/sysconfig/__init__.py +798 -0
  965. package/runtime/usr/lib/python3.14/sysconfig/__main__.py +276 -0
  966. package/runtime/usr/lib/python3.14/sysconfig/__pycache__/__init__.cpython-314.pyc +0 -0
  967. package/runtime/usr/lib/python3.14/sysconfig/__pycache__/__main__.cpython-314.pyc +0 -0
  968. package/runtime/usr/lib/python3.14/tabnanny.py +338 -0
  969. package/runtime/usr/lib/python3.14/tarfile.py +3225 -0
  970. package/runtime/usr/lib/python3.14/tempfile.py +1057 -0
  971. package/runtime/usr/lib/python3.14/textwrap.py +475 -0
  972. package/runtime/usr/lib/python3.14/this.py +28 -0
  973. package/runtime/usr/lib/python3.14/threading.py +1642 -0
  974. package/runtime/usr/lib/python3.14/timeit.py +378 -0
  975. package/runtime/usr/lib/python3.14/token.py +144 -0
  976. package/runtime/usr/lib/python3.14/tokenize.py +598 -0
  977. package/runtime/usr/lib/python3.14/tomllib/__init__.py +10 -0
  978. package/runtime/usr/lib/python3.14/tomllib/__pycache__/__init__.cpython-314.pyc +0 -0
  979. package/runtime/usr/lib/python3.14/tomllib/__pycache__/_parser.cpython-314.pyc +0 -0
  980. package/runtime/usr/lib/python3.14/tomllib/__pycache__/_re.cpython-314.pyc +0 -0
  981. package/runtime/usr/lib/python3.14/tomllib/__pycache__/_types.cpython-314.pyc +0 -0
  982. package/runtime/usr/lib/python3.14/tomllib/_parser.py +765 -0
  983. package/runtime/usr/lib/python3.14/tomllib/_re.py +113 -0
  984. package/runtime/usr/lib/python3.14/tomllib/_types.py +10 -0
  985. package/runtime/usr/lib/python3.14/tomllib/mypy.ini +15 -0
  986. package/runtime/usr/lib/python3.14/trace.py +751 -0
  987. package/runtime/usr/lib/python3.14/traceback.py +1751 -0
  988. package/runtime/usr/lib/python3.14/tracemalloc.py +560 -0
  989. package/runtime/usr/lib/python3.14/tty.py +73 -0
  990. package/runtime/usr/lib/python3.14/types.py +345 -0
  991. package/runtime/usr/lib/python3.14/typing.py +3866 -0
  992. package/runtime/usr/lib/python3.14/unittest/__init__.py +80 -0
  993. package/runtime/usr/lib/python3.14/unittest/__main__.py +18 -0
  994. package/runtime/usr/lib/python3.14/unittest/__pycache__/__init__.cpython-314.pyc +0 -0
  995. package/runtime/usr/lib/python3.14/unittest/__pycache__/__main__.cpython-314.pyc +0 -0
  996. package/runtime/usr/lib/python3.14/unittest/__pycache__/_log.cpython-314.pyc +0 -0
  997. package/runtime/usr/lib/python3.14/unittest/__pycache__/async_case.cpython-314.pyc +0 -0
  998. package/runtime/usr/lib/python3.14/unittest/__pycache__/case.cpython-314.pyc +0 -0
  999. package/runtime/usr/lib/python3.14/unittest/__pycache__/loader.cpython-314.pyc +0 -0
  1000. package/runtime/usr/lib/python3.14/unittest/__pycache__/main.cpython-314.pyc +0 -0
  1001. package/runtime/usr/lib/python3.14/unittest/__pycache__/mock.cpython-314.pyc +0 -0
  1002. package/runtime/usr/lib/python3.14/unittest/__pycache__/result.cpython-314.pyc +0 -0
  1003. package/runtime/usr/lib/python3.14/unittest/__pycache__/runner.cpython-314.pyc +0 -0
  1004. package/runtime/usr/lib/python3.14/unittest/__pycache__/signals.cpython-314.pyc +0 -0
  1005. package/runtime/usr/lib/python3.14/unittest/__pycache__/suite.cpython-314.pyc +0 -0
  1006. package/runtime/usr/lib/python3.14/unittest/__pycache__/util.cpython-314.pyc +0 -0
  1007. package/runtime/usr/lib/python3.14/unittest/_log.py +86 -0
  1008. package/runtime/usr/lib/python3.14/unittest/async_case.py +158 -0
  1009. package/runtime/usr/lib/python3.14/unittest/case.py +1628 -0
  1010. package/runtime/usr/lib/python3.14/unittest/loader.py +491 -0
  1011. package/runtime/usr/lib/python3.14/unittest/main.py +280 -0
  1012. package/runtime/usr/lib/python3.14/unittest/mock.py +3208 -0
  1013. package/runtime/usr/lib/python3.14/unittest/result.py +259 -0
  1014. package/runtime/usr/lib/python3.14/unittest/runner.py +313 -0
  1015. package/runtime/usr/lib/python3.14/unittest/signals.py +71 -0
  1016. package/runtime/usr/lib/python3.14/unittest/suite.py +379 -0
  1017. package/runtime/usr/lib/python3.14/unittest/util.py +170 -0
  1018. package/runtime/usr/lib/python3.14/urllib/__init__.py +0 -0
  1019. package/runtime/usr/lib/python3.14/urllib/__pycache__/__init__.cpython-314.pyc +0 -0
  1020. package/runtime/usr/lib/python3.14/urllib/__pycache__/error.cpython-314.pyc +0 -0
  1021. package/runtime/usr/lib/python3.14/urllib/__pycache__/parse.cpython-314.pyc +0 -0
  1022. package/runtime/usr/lib/python3.14/urllib/__pycache__/request.cpython-314.pyc +0 -0
  1023. package/runtime/usr/lib/python3.14/urllib/__pycache__/response.cpython-314.pyc +0 -0
  1024. package/runtime/usr/lib/python3.14/urllib/__pycache__/robotparser.cpython-314.pyc +0 -0
  1025. package/runtime/usr/lib/python3.14/urllib/error.py +74 -0
  1026. package/runtime/usr/lib/python3.14/urllib/parse.py +1289 -0
  1027. package/runtime/usr/lib/python3.14/urllib/request.py +2175 -0
  1028. package/runtime/usr/lib/python3.14/urllib/response.py +84 -0
  1029. package/runtime/usr/lib/python3.14/urllib/robotparser.py +363 -0
  1030. package/runtime/usr/lib/python3.14/uuid.py +1013 -0
  1031. package/runtime/usr/lib/python3.14/venv/__init__.py +700 -0
  1032. package/runtime/usr/lib/python3.14/venv/__main__.py +10 -0
  1033. package/runtime/usr/lib/python3.14/venv/__pycache__/__init__.cpython-314.pyc +0 -0
  1034. package/runtime/usr/lib/python3.14/venv/__pycache__/__main__.cpython-314.pyc +0 -0
  1035. package/runtime/usr/lib/python3.14/venv/scripts/common/Activate.ps1 +248 -0
  1036. package/runtime/usr/lib/python3.14/venv/scripts/common/activate +76 -0
  1037. package/runtime/usr/lib/python3.14/venv/scripts/common/activate.fish +69 -0
  1038. package/runtime/usr/lib/python3.14/venv/scripts/posix/activate.csh +29 -0
  1039. package/runtime/usr/lib/python3.14/warnings.py +99 -0
  1040. package/runtime/usr/lib/python3.14/wave.py +665 -0
  1041. package/runtime/usr/lib/python3.14/weakref.py +574 -0
  1042. package/runtime/usr/lib/python3.14/webbrowser.py +763 -0
  1043. package/runtime/usr/lib/python3.14/wsgiref/__init__.py +25 -0
  1044. package/runtime/usr/lib/python3.14/wsgiref/__pycache__/__init__.cpython-314.pyc +0 -0
  1045. package/runtime/usr/lib/python3.14/wsgiref/__pycache__/handlers.cpython-314.pyc +0 -0
  1046. package/runtime/usr/lib/python3.14/wsgiref/__pycache__/headers.cpython-314.pyc +0 -0
  1047. package/runtime/usr/lib/python3.14/wsgiref/__pycache__/simple_server.cpython-314.pyc +0 -0
  1048. package/runtime/usr/lib/python3.14/wsgiref/__pycache__/types.cpython-314.pyc +0 -0
  1049. package/runtime/usr/lib/python3.14/wsgiref/__pycache__/util.cpython-314.pyc +0 -0
  1050. package/runtime/usr/lib/python3.14/wsgiref/__pycache__/validate.cpython-314.pyc +0 -0
  1051. package/runtime/usr/lib/python3.14/wsgiref/handlers.py +575 -0
  1052. package/runtime/usr/lib/python3.14/wsgiref/headers.py +192 -0
  1053. package/runtime/usr/lib/python3.14/wsgiref/simple_server.py +161 -0
  1054. package/runtime/usr/lib/python3.14/wsgiref/types.py +54 -0
  1055. package/runtime/usr/lib/python3.14/wsgiref/util.py +159 -0
  1056. package/runtime/usr/lib/python3.14/wsgiref/validate.py +438 -0
  1057. package/runtime/usr/lib/python3.14/xml/__init__.py +20 -0
  1058. package/runtime/usr/lib/python3.14/xml/__pycache__/__init__.cpython-314.pyc +0 -0
  1059. package/runtime/usr/lib/python3.14/xml/dom/NodeFilter.py +27 -0
  1060. package/runtime/usr/lib/python3.14/xml/dom/__init__.py +140 -0
  1061. package/runtime/usr/lib/python3.14/xml/dom/__pycache__/NodeFilter.cpython-314.pyc +0 -0
  1062. package/runtime/usr/lib/python3.14/xml/dom/__pycache__/__init__.cpython-314.pyc +0 -0
  1063. package/runtime/usr/lib/python3.14/xml/dom/__pycache__/domreg.cpython-314.pyc +0 -0
  1064. package/runtime/usr/lib/python3.14/xml/dom/__pycache__/expatbuilder.cpython-314.pyc +0 -0
  1065. package/runtime/usr/lib/python3.14/xml/dom/__pycache__/minicompat.cpython-314.pyc +0 -0
  1066. package/runtime/usr/lib/python3.14/xml/dom/__pycache__/minidom.cpython-314.pyc +0 -0
  1067. package/runtime/usr/lib/python3.14/xml/dom/__pycache__/pulldom.cpython-314.pyc +0 -0
  1068. package/runtime/usr/lib/python3.14/xml/dom/__pycache__/xmlbuilder.cpython-314.pyc +0 -0
  1069. package/runtime/usr/lib/python3.14/xml/dom/domreg.py +99 -0
  1070. package/runtime/usr/lib/python3.14/xml/dom/expatbuilder.py +964 -0
  1071. package/runtime/usr/lib/python3.14/xml/dom/minicompat.py +109 -0
  1072. package/runtime/usr/lib/python3.14/xml/dom/minidom.py +2027 -0
  1073. package/runtime/usr/lib/python3.14/xml/dom/pulldom.py +350 -0
  1074. package/runtime/usr/lib/python3.14/xml/dom/xmlbuilder.py +389 -0
  1075. package/runtime/usr/lib/python3.14/xml/etree/ElementInclude.py +186 -0
  1076. package/runtime/usr/lib/python3.14/xml/etree/ElementPath.py +430 -0
  1077. package/runtime/usr/lib/python3.14/xml/etree/ElementTree.py +2093 -0
  1078. package/runtime/usr/lib/python3.14/xml/etree/__init__.py +33 -0
  1079. package/runtime/usr/lib/python3.14/xml/etree/__pycache__/ElementInclude.cpython-314.pyc +0 -0
  1080. package/runtime/usr/lib/python3.14/xml/etree/__pycache__/ElementPath.cpython-314.pyc +0 -0
  1081. package/runtime/usr/lib/python3.14/xml/etree/__pycache__/ElementTree.cpython-314.pyc +0 -0
  1082. package/runtime/usr/lib/python3.14/xml/etree/__pycache__/__init__.cpython-314.pyc +0 -0
  1083. package/runtime/usr/lib/python3.14/xml/etree/__pycache__/cElementTree.cpython-314.pyc +0 -0
  1084. package/runtime/usr/lib/python3.14/xml/etree/cElementTree.py +3 -0
  1085. package/runtime/usr/lib/python3.14/xml/parsers/__init__.py +8 -0
  1086. package/runtime/usr/lib/python3.14/xml/parsers/__pycache__/__init__.cpython-314.pyc +0 -0
  1087. package/runtime/usr/lib/python3.14/xml/parsers/__pycache__/expat.cpython-314.pyc +0 -0
  1088. package/runtime/usr/lib/python3.14/xml/parsers/expat.py +8 -0
  1089. package/runtime/usr/lib/python3.14/xml/sax/__init__.py +109 -0
  1090. package/runtime/usr/lib/python3.14/xml/sax/__pycache__/__init__.cpython-314.pyc +0 -0
  1091. package/runtime/usr/lib/python3.14/xml/sax/__pycache__/_exceptions.cpython-314.pyc +0 -0
  1092. package/runtime/usr/lib/python3.14/xml/sax/__pycache__/expatreader.cpython-314.pyc +0 -0
  1093. package/runtime/usr/lib/python3.14/xml/sax/__pycache__/handler.cpython-314.pyc +0 -0
  1094. package/runtime/usr/lib/python3.14/xml/sax/__pycache__/saxutils.cpython-314.pyc +0 -0
  1095. package/runtime/usr/lib/python3.14/xml/sax/__pycache__/xmlreader.cpython-314.pyc +0 -0
  1096. package/runtime/usr/lib/python3.14/xml/sax/_exceptions.py +127 -0
  1097. package/runtime/usr/lib/python3.14/xml/sax/expatreader.py +454 -0
  1098. package/runtime/usr/lib/python3.14/xml/sax/handler.py +387 -0
  1099. package/runtime/usr/lib/python3.14/xml/sax/saxutils.py +370 -0
  1100. package/runtime/usr/lib/python3.14/xml/sax/xmlreader.py +379 -0
  1101. package/runtime/usr/lib/python3.14/xmlrpc/__init__.py +1 -0
  1102. package/runtime/usr/lib/python3.14/xmlrpc/__pycache__/__init__.cpython-314.pyc +0 -0
  1103. package/runtime/usr/lib/python3.14/xmlrpc/__pycache__/client.cpython-314.pyc +0 -0
  1104. package/runtime/usr/lib/python3.14/xmlrpc/__pycache__/server.cpython-314.pyc +0 -0
  1105. package/runtime/usr/lib/python3.14/xmlrpc/client.py +1503 -0
  1106. package/runtime/usr/lib/python3.14/xmlrpc/server.py +1003 -0
  1107. package/runtime/usr/lib/python3.14/zipapp.py +231 -0
  1108. package/runtime/usr/lib/python3.14/zipfile/__init__.py +2479 -0
  1109. package/runtime/usr/lib/python3.14/zipfile/__main__.py +4 -0
  1110. package/runtime/usr/lib/python3.14/zipfile/__pycache__/__init__.cpython-314.pyc +0 -0
  1111. package/runtime/usr/lib/python3.14/zipfile/__pycache__/__main__.cpython-314.pyc +0 -0
  1112. package/runtime/usr/lib/python3.14/zipfile/_path/__init__.py +452 -0
  1113. package/runtime/usr/lib/python3.14/zipfile/_path/__pycache__/__init__.cpython-314.pyc +0 -0
  1114. package/runtime/usr/lib/python3.14/zipfile/_path/__pycache__/glob.cpython-314.pyc +0 -0
  1115. package/runtime/usr/lib/python3.14/zipfile/_path/glob.py +113 -0
  1116. package/runtime/usr/lib/python3.14/zipimport.py +822 -0
  1117. package/runtime/usr/lib/python3.14/zoneinfo/__init__.py +34 -0
  1118. package/runtime/usr/lib/python3.14/zoneinfo/__pycache__/__init__.cpython-314.pyc +0 -0
  1119. package/runtime/usr/lib/python3.14/zoneinfo/__pycache__/_common.cpython-314.pyc +0 -0
  1120. package/runtime/usr/lib/python3.14/zoneinfo/__pycache__/_tzpath.cpython-314.pyc +0 -0
  1121. package/runtime/usr/lib/python3.14/zoneinfo/__pycache__/_zoneinfo.cpython-314.pyc +0 -0
  1122. package/runtime/usr/lib/python3.14/zoneinfo/_common.py +172 -0
  1123. package/runtime/usr/lib/python3.14/zoneinfo/_tzpath.py +189 -0
  1124. package/runtime/usr/lib/python3.14/zoneinfo/_zoneinfo.py +779 -0
  1125. package/share/applications/python3.desktop +7 -0
  1126. package/share/licenses/python3/LICENSE +277 -0
  1127. package/share/licenses/python3/openssl-LICENSE +177 -0
  1128. package/share/licenses/python3/zlib-LICENSE +22 -0
@@ -0,0 +1,1157 @@
1
+ """Disassembler of Python byte code into mnemonics."""
2
+
3
+ import sys
4
+ import types
5
+ import collections
6
+ import io
7
+
8
+ from opcode import *
9
+ from opcode import (
10
+ __all__ as _opcodes_all,
11
+ _cache_format,
12
+ _inline_cache_entries,
13
+ _nb_ops,
14
+ _common_constants,
15
+ _intrinsic_1_descs,
16
+ _intrinsic_2_descs,
17
+ _special_method_names,
18
+ _specializations,
19
+ _specialized_opmap,
20
+ )
21
+
22
+ from _opcode import get_executor
23
+
24
+ __all__ = ["code_info", "dis", "disassemble", "distb", "disco",
25
+ "findlinestarts", "findlabels", "show_code",
26
+ "get_instructions", "Instruction", "Bytecode"] + _opcodes_all
27
+ del _opcodes_all
28
+
29
+ _have_code = (types.MethodType, types.FunctionType, types.CodeType,
30
+ classmethod, staticmethod, type)
31
+
32
+ CONVERT_VALUE = opmap['CONVERT_VALUE']
33
+
34
+ SET_FUNCTION_ATTRIBUTE = opmap['SET_FUNCTION_ATTRIBUTE']
35
+ FUNCTION_ATTR_FLAGS = ('defaults', 'kwdefaults', 'annotations', 'closure', 'annotate')
36
+
37
+ ENTER_EXECUTOR = opmap['ENTER_EXECUTOR']
38
+ LOAD_GLOBAL = opmap['LOAD_GLOBAL']
39
+ LOAD_SMALL_INT = opmap['LOAD_SMALL_INT']
40
+ BINARY_OP = opmap['BINARY_OP']
41
+ JUMP_BACKWARD = opmap['JUMP_BACKWARD']
42
+ FOR_ITER = opmap['FOR_ITER']
43
+ SEND = opmap['SEND']
44
+ LOAD_ATTR = opmap['LOAD_ATTR']
45
+ LOAD_SUPER_ATTR = opmap['LOAD_SUPER_ATTR']
46
+ CALL_INTRINSIC_1 = opmap['CALL_INTRINSIC_1']
47
+ CALL_INTRINSIC_2 = opmap['CALL_INTRINSIC_2']
48
+ LOAD_COMMON_CONSTANT = opmap['LOAD_COMMON_CONSTANT']
49
+ LOAD_SPECIAL = opmap['LOAD_SPECIAL']
50
+ LOAD_FAST_LOAD_FAST = opmap['LOAD_FAST_LOAD_FAST']
51
+ LOAD_FAST_BORROW_LOAD_FAST_BORROW = opmap['LOAD_FAST_BORROW_LOAD_FAST_BORROW']
52
+ STORE_FAST_LOAD_FAST = opmap['STORE_FAST_LOAD_FAST']
53
+ STORE_FAST_STORE_FAST = opmap['STORE_FAST_STORE_FAST']
54
+ IS_OP = opmap['IS_OP']
55
+ CONTAINS_OP = opmap['CONTAINS_OP']
56
+ END_ASYNC_FOR = opmap['END_ASYNC_FOR']
57
+
58
+ CACHE = opmap["CACHE"]
59
+
60
+ _all_opname = list(opname)
61
+ _all_opmap = dict(opmap)
62
+ for name, op in _specialized_opmap.items():
63
+ # fill opname and opmap
64
+ assert op < len(_all_opname)
65
+ _all_opname[op] = name
66
+ _all_opmap[name] = op
67
+
68
+ deoptmap = {
69
+ specialized: base for base, family in _specializations.items() for specialized in family
70
+ }
71
+
72
+ def _try_compile(source, name):
73
+ """Attempts to compile the given source, first as an expression and
74
+ then as a statement if the first approach fails.
75
+
76
+ Utility function to accept strings in functions that otherwise
77
+ expect code objects
78
+ """
79
+ try:
80
+ return compile(source, name, 'eval')
81
+ except SyntaxError:
82
+ pass
83
+ return compile(source, name, 'exec')
84
+
85
+ def dis(x=None, *, file=None, depth=None, show_caches=False, adaptive=False,
86
+ show_offsets=False, show_positions=False):
87
+ """Disassemble classes, methods, functions, and other compiled objects.
88
+
89
+ With no argument, disassemble the last traceback.
90
+
91
+ Compiled objects currently include generator objects, async generator
92
+ objects, and coroutine objects, all of which store their code object
93
+ in a special attribute.
94
+ """
95
+ if x is None:
96
+ distb(file=file, show_caches=show_caches, adaptive=adaptive,
97
+ show_offsets=show_offsets, show_positions=show_positions)
98
+ return
99
+ # Extract functions from methods.
100
+ if hasattr(x, '__func__'):
101
+ x = x.__func__
102
+ # Extract compiled code objects from...
103
+ if hasattr(x, '__code__'): # ...a function, or
104
+ x = x.__code__
105
+ elif hasattr(x, 'gi_code'): #...a generator object, or
106
+ x = x.gi_code
107
+ elif hasattr(x, 'ag_code'): #...an asynchronous generator object, or
108
+ x = x.ag_code
109
+ elif hasattr(x, 'cr_code'): #...a coroutine.
110
+ x = x.cr_code
111
+ # Perform the disassembly.
112
+ if hasattr(x, '__dict__'): # Class or module
113
+ items = sorted(x.__dict__.items())
114
+ for name, x1 in items:
115
+ if isinstance(x1, _have_code):
116
+ print("Disassembly of %s:" % name, file=file)
117
+ try:
118
+ dis(x1, file=file, depth=depth, show_caches=show_caches, adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions)
119
+ except TypeError as msg:
120
+ print("Sorry:", msg, file=file)
121
+ print(file=file)
122
+ elif hasattr(x, 'co_code'): # Code object
123
+ _disassemble_recursive(x, file=file, depth=depth, show_caches=show_caches, adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions)
124
+ elif isinstance(x, (bytes, bytearray)): # Raw bytecode
125
+ labels_map = _make_labels_map(x)
126
+ label_width = 4 + len(str(len(labels_map)))
127
+ formatter = Formatter(file=file,
128
+ offset_width=len(str(max(len(x) - 2, 9999))) if show_offsets else 0,
129
+ label_width=label_width,
130
+ show_caches=show_caches)
131
+ arg_resolver = ArgResolver(labels_map=labels_map)
132
+ _disassemble_bytes(x, arg_resolver=arg_resolver, formatter=formatter)
133
+ elif isinstance(x, str): # Source code
134
+ _disassemble_str(x, file=file, depth=depth, show_caches=show_caches, adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions)
135
+ else:
136
+ raise TypeError("don't know how to disassemble %s objects" %
137
+ type(x).__name__)
138
+
139
+ def distb(tb=None, *, file=None, show_caches=False, adaptive=False, show_offsets=False, show_positions=False):
140
+ """Disassemble a traceback (default: last traceback)."""
141
+ if tb is None:
142
+ try:
143
+ if hasattr(sys, 'last_exc'):
144
+ tb = sys.last_exc.__traceback__
145
+ else:
146
+ tb = sys.last_traceback
147
+ except AttributeError:
148
+ raise RuntimeError("no last traceback to disassemble") from None
149
+ while tb.tb_next: tb = tb.tb_next
150
+ disassemble(tb.tb_frame.f_code, tb.tb_lasti, file=file, show_caches=show_caches, adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions)
151
+
152
+ # The inspect module interrogates this dictionary to build its
153
+ # list of CO_* constants. It is also used by pretty_flags to
154
+ # turn the co_flags field into a human readable list.
155
+ COMPILER_FLAG_NAMES = {
156
+ 1: "OPTIMIZED",
157
+ 2: "NEWLOCALS",
158
+ 4: "VARARGS",
159
+ 8: "VARKEYWORDS",
160
+ 16: "NESTED",
161
+ 32: "GENERATOR",
162
+ 64: "NOFREE",
163
+ 128: "COROUTINE",
164
+ 256: "ITERABLE_COROUTINE",
165
+ 512: "ASYNC_GENERATOR",
166
+ 0x4000000: "HAS_DOCSTRING",
167
+ 0x8000000: "METHOD",
168
+ }
169
+
170
+ def pretty_flags(flags):
171
+ """Return pretty representation of code flags."""
172
+ names = []
173
+ for i in range(32):
174
+ flag = 1<<i
175
+ if flags & flag:
176
+ names.append(COMPILER_FLAG_NAMES.get(flag, hex(flag)))
177
+ flags ^= flag
178
+ if not flags:
179
+ break
180
+ else:
181
+ names.append(hex(flags))
182
+ return ", ".join(names)
183
+
184
+ class _Unknown:
185
+ def __repr__(self):
186
+ return "<unknown>"
187
+
188
+ # Sentinel to represent values that cannot be calculated
189
+ UNKNOWN = _Unknown()
190
+
191
+ def _get_code_object(x):
192
+ """Helper to handle methods, compiled or raw code objects, and strings."""
193
+ # Extract functions from methods.
194
+ if hasattr(x, '__func__'):
195
+ x = x.__func__
196
+ # Extract compiled code objects from...
197
+ if hasattr(x, '__code__'): # ...a function, or
198
+ x = x.__code__
199
+ elif hasattr(x, 'gi_code'): #...a generator object, or
200
+ x = x.gi_code
201
+ elif hasattr(x, 'ag_code'): #...an asynchronous generator object, or
202
+ x = x.ag_code
203
+ elif hasattr(x, 'cr_code'): #...a coroutine.
204
+ x = x.cr_code
205
+ # Handle source code.
206
+ if isinstance(x, str):
207
+ x = _try_compile(x, "<disassembly>")
208
+ # By now, if we don't have a code object, we can't disassemble x.
209
+ if hasattr(x, 'co_code'):
210
+ return x
211
+ raise TypeError("don't know how to disassemble %s objects" %
212
+ type(x).__name__)
213
+
214
+ def _deoptop(op):
215
+ name = _all_opname[op]
216
+ return _all_opmap[deoptmap[name]] if name in deoptmap else op
217
+
218
+ def _get_code_array(co, adaptive):
219
+ if adaptive:
220
+ code = co._co_code_adaptive
221
+ res = []
222
+ found = False
223
+ for i in range(0, len(code), 2):
224
+ op, arg = code[i], code[i+1]
225
+ if op == ENTER_EXECUTOR:
226
+ try:
227
+ ex = get_executor(co, i)
228
+ except (ValueError, RuntimeError):
229
+ ex = None
230
+
231
+ if ex:
232
+ op, arg = ex.get_opcode(), ex.get_oparg()
233
+ found = True
234
+
235
+ res.append(op.to_bytes())
236
+ res.append(arg.to_bytes())
237
+ return code if not found else b''.join(res)
238
+ else:
239
+ return co.co_code
240
+
241
+ def code_info(x):
242
+ """Formatted details of methods, functions, or code."""
243
+ return _format_code_info(_get_code_object(x))
244
+
245
+ def _format_code_info(co):
246
+ lines = []
247
+ lines.append("Name: %s" % co.co_name)
248
+ lines.append("Filename: %s" % co.co_filename)
249
+ lines.append("Argument count: %s" % co.co_argcount)
250
+ lines.append("Positional-only arguments: %s" % co.co_posonlyargcount)
251
+ lines.append("Kw-only arguments: %s" % co.co_kwonlyargcount)
252
+ lines.append("Number of locals: %s" % co.co_nlocals)
253
+ lines.append("Stack size: %s" % co.co_stacksize)
254
+ lines.append("Flags: %s" % pretty_flags(co.co_flags))
255
+ if co.co_consts:
256
+ lines.append("Constants:")
257
+ for i_c in enumerate(co.co_consts):
258
+ lines.append("%4d: %r" % i_c)
259
+ if co.co_names:
260
+ lines.append("Names:")
261
+ for i_n in enumerate(co.co_names):
262
+ lines.append("%4d: %s" % i_n)
263
+ if co.co_varnames:
264
+ lines.append("Variable names:")
265
+ for i_n in enumerate(co.co_varnames):
266
+ lines.append("%4d: %s" % i_n)
267
+ if co.co_freevars:
268
+ lines.append("Free variables:")
269
+ for i_n in enumerate(co.co_freevars):
270
+ lines.append("%4d: %s" % i_n)
271
+ if co.co_cellvars:
272
+ lines.append("Cell variables:")
273
+ for i_n in enumerate(co.co_cellvars):
274
+ lines.append("%4d: %s" % i_n)
275
+ return "\n".join(lines)
276
+
277
+ def show_code(co, *, file=None):
278
+ """Print details of methods, functions, or code to *file*.
279
+
280
+ If *file* is not provided, the output is printed on stdout.
281
+ """
282
+ print(code_info(co), file=file)
283
+
284
+ Positions = collections.namedtuple(
285
+ 'Positions',
286
+ [
287
+ 'lineno',
288
+ 'end_lineno',
289
+ 'col_offset',
290
+ 'end_col_offset',
291
+ ],
292
+ defaults=[None] * 4
293
+ )
294
+
295
+ _Instruction = collections.namedtuple(
296
+ "_Instruction",
297
+ [
298
+ 'opname',
299
+ 'opcode',
300
+ 'arg',
301
+ 'argval',
302
+ 'argrepr',
303
+ 'offset',
304
+ 'start_offset',
305
+ 'starts_line',
306
+ 'line_number',
307
+ 'label',
308
+ 'positions',
309
+ 'cache_info',
310
+ ],
311
+ defaults=[None, None, None]
312
+ )
313
+
314
+ _Instruction.opname.__doc__ = "Human readable name for operation"
315
+ _Instruction.opcode.__doc__ = "Numeric code for operation"
316
+ _Instruction.arg.__doc__ = "Numeric argument to operation (if any), otherwise None"
317
+ _Instruction.argval.__doc__ = "Resolved arg value (if known), otherwise same as arg"
318
+ _Instruction.argrepr.__doc__ = "Human readable description of operation argument"
319
+ _Instruction.offset.__doc__ = "Start index of operation within bytecode sequence"
320
+ _Instruction.start_offset.__doc__ = (
321
+ "Start index of operation within bytecode sequence, including extended args if present; "
322
+ "otherwise equal to Instruction.offset"
323
+ )
324
+ _Instruction.starts_line.__doc__ = "True if this opcode starts a source line, otherwise False"
325
+ _Instruction.line_number.__doc__ = "source line number associated with this opcode (if any), otherwise None"
326
+ _Instruction.label.__doc__ = "A label (int > 0) if this instruction is a jump target, otherwise None"
327
+ _Instruction.positions.__doc__ = "dis.Positions object holding the span of source code covered by this instruction"
328
+ _Instruction.cache_info.__doc__ = "list of (name, size, data), one for each cache entry of the instruction"
329
+
330
+ _ExceptionTableEntryBase = collections.namedtuple("_ExceptionTableEntryBase",
331
+ "start end target depth lasti")
332
+
333
+ class _ExceptionTableEntry(_ExceptionTableEntryBase):
334
+ pass
335
+
336
+ _OPNAME_WIDTH = 20
337
+ _OPARG_WIDTH = 5
338
+
339
+ def _get_cache_size(opname):
340
+ return _inline_cache_entries.get(opname, 0)
341
+
342
+ def _get_jump_target(op, arg, offset):
343
+ """Gets the bytecode offset of the jump target if this is a jump instruction.
344
+
345
+ Otherwise return None.
346
+ """
347
+ deop = _deoptop(op)
348
+ caches = _get_cache_size(_all_opname[deop])
349
+ if deop in hasjrel:
350
+ if _is_backward_jump(deop):
351
+ arg = -arg
352
+ target = offset + 2 + arg*2
353
+ target += 2 * caches
354
+ elif deop in hasjabs:
355
+ target = arg*2
356
+ else:
357
+ target = None
358
+ return target
359
+
360
+ class Instruction(_Instruction):
361
+ """Details for a bytecode operation.
362
+
363
+ Defined fields:
364
+ opname - human readable name for operation
365
+ opcode - numeric code for operation
366
+ arg - numeric argument to operation (if any), otherwise None
367
+ argval - resolved arg value (if known), otherwise same as arg
368
+ argrepr - human readable description of operation argument
369
+ offset - start index of operation within bytecode sequence
370
+ start_offset - start index of operation within bytecode sequence including extended args if present;
371
+ otherwise equal to Instruction.offset
372
+ starts_line - True if this opcode starts a source line, otherwise False
373
+ line_number - source line number associated with this opcode (if any), otherwise None
374
+ label - A label if this instruction is a jump target, otherwise None
375
+ positions - Optional dis.Positions object holding the span of source code
376
+ covered by this instruction
377
+ cache_info - information about the format and content of the instruction's cache
378
+ entries (if any)
379
+ """
380
+
381
+ @staticmethod
382
+ def make(
383
+ opname, arg, argval, argrepr, offset, start_offset, starts_line,
384
+ line_number, label=None, positions=None, cache_info=None
385
+ ):
386
+ return Instruction(opname, _all_opmap[opname], arg, argval, argrepr, offset,
387
+ start_offset, starts_line, line_number, label, positions, cache_info)
388
+
389
+ @property
390
+ def oparg(self):
391
+ """Alias for Instruction.arg."""
392
+ return self.arg
393
+
394
+ @property
395
+ def baseopcode(self):
396
+ """Numeric code for the base operation if operation is specialized.
397
+
398
+ Otherwise equal to Instruction.opcode.
399
+ """
400
+ return _deoptop(self.opcode)
401
+
402
+ @property
403
+ def baseopname(self):
404
+ """Human readable name for the base operation if operation is specialized.
405
+
406
+ Otherwise equal to Instruction.opname.
407
+ """
408
+ return opname[self.baseopcode]
409
+
410
+ @property
411
+ def cache_offset(self):
412
+ """Start index of the cache entries following the operation."""
413
+ return self.offset + 2
414
+
415
+ @property
416
+ def end_offset(self):
417
+ """End index of the cache entries following the operation."""
418
+ return self.cache_offset + _get_cache_size(_all_opname[self.opcode])*2
419
+
420
+ @property
421
+ def jump_target(self):
422
+ """Bytecode index of the jump target if this is a jump operation.
423
+
424
+ Otherwise return None.
425
+ """
426
+ return _get_jump_target(self.opcode, self.arg, self.offset)
427
+
428
+ @property
429
+ def is_jump_target(self):
430
+ """True if other code jumps to here, otherwise False"""
431
+ return self.label is not None
432
+
433
+ def __str__(self):
434
+ output = io.StringIO()
435
+ formatter = Formatter(file=output)
436
+ formatter.print_instruction(self, False)
437
+ return output.getvalue()
438
+
439
+
440
+ class Formatter:
441
+
442
+ def __init__(self, file=None, lineno_width=0, offset_width=0, label_width=0,
443
+ line_offset=0, show_caches=False, *, show_positions=False):
444
+ """Create a Formatter
445
+
446
+ *file* where to write the output
447
+ *lineno_width* sets the width of the source location field (0 omits it).
448
+ Should be large enough for a line number or full positions (depending
449
+ on the value of *show_positions*).
450
+ *offset_width* sets the width of the instruction offset field
451
+ *label_width* sets the width of the label field
452
+ *show_caches* is a boolean indicating whether to display cache lines
453
+ *show_positions* is a boolean indicating whether full positions should
454
+ be reported instead of only the line numbers.
455
+ """
456
+ self.file = file
457
+ self.lineno_width = lineno_width
458
+ self.offset_width = offset_width
459
+ self.label_width = label_width
460
+ self.show_caches = show_caches
461
+ self.show_positions = show_positions
462
+
463
+ def print_instruction(self, instr, mark_as_current=False):
464
+ self.print_instruction_line(instr, mark_as_current)
465
+ if self.show_caches and instr.cache_info:
466
+ offset = instr.offset
467
+ for name, size, data in instr.cache_info:
468
+ for i in range(size):
469
+ offset += 2
470
+ # Only show the fancy argrepr for a CACHE instruction when it's
471
+ # the first entry for a particular cache value:
472
+ if i == 0:
473
+ argrepr = f"{name}: {int.from_bytes(data, sys.byteorder)}"
474
+ else:
475
+ argrepr = ""
476
+ self.print_instruction_line(
477
+ Instruction("CACHE", CACHE, 0, None, argrepr, offset, offset,
478
+ False, None, None, instr.positions),
479
+ False)
480
+
481
+ def print_instruction_line(self, instr, mark_as_current):
482
+ """Format instruction details for inclusion in disassembly output."""
483
+ lineno_width = self.lineno_width
484
+ offset_width = self.offset_width
485
+ label_width = self.label_width
486
+
487
+ new_source_line = (lineno_width > 0 and
488
+ instr.starts_line and
489
+ instr.offset > 0)
490
+ if new_source_line:
491
+ print(file=self.file)
492
+
493
+ fields = []
494
+ # Column: Source code locations information
495
+ if lineno_width:
496
+ if self.show_positions:
497
+ # reporting positions instead of just line numbers
498
+ if instr_positions := instr.positions:
499
+ if all(p is None for p in instr_positions):
500
+ positions_str = _NO_LINENO
501
+ else:
502
+ ps = tuple('?' if p is None else p for p in instr_positions)
503
+ positions_str = f"{ps[0]}:{ps[2]}-{ps[1]}:{ps[3]}"
504
+ fields.append(f'{positions_str:{lineno_width}}')
505
+ else:
506
+ fields.append(' ' * lineno_width)
507
+ else:
508
+ if instr.starts_line:
509
+ lineno_fmt = "%%%dd" if instr.line_number is not None else "%%%ds"
510
+ lineno_fmt = lineno_fmt % lineno_width
511
+ lineno = _NO_LINENO if instr.line_number is None else instr.line_number
512
+ fields.append(lineno_fmt % lineno)
513
+ else:
514
+ fields.append(' ' * lineno_width)
515
+ # Column: Label
516
+ if instr.label is not None:
517
+ lbl = f"L{instr.label}:"
518
+ fields.append(f"{lbl:>{label_width}}")
519
+ else:
520
+ fields.append(' ' * label_width)
521
+ # Column: Instruction offset from start of code sequence
522
+ if offset_width > 0:
523
+ fields.append(f"{repr(instr.offset):>{offset_width}} ")
524
+ # Column: Current instruction indicator
525
+ if mark_as_current:
526
+ fields.append('-->')
527
+ else:
528
+ fields.append(' ')
529
+ # Column: Opcode name
530
+ fields.append(instr.opname.ljust(_OPNAME_WIDTH))
531
+ # Column: Opcode argument
532
+ if instr.arg is not None:
533
+ arg = repr(instr.arg)
534
+ # If opname is longer than _OPNAME_WIDTH, we allow it to overflow into
535
+ # the space reserved for oparg. This results in fewer misaligned opargs
536
+ # in the disassembly output.
537
+ opname_excess = max(0, len(instr.opname) - _OPNAME_WIDTH)
538
+ fields.append(repr(instr.arg).rjust(_OPARG_WIDTH - opname_excess))
539
+ # Column: Opcode argument details
540
+ if instr.argrepr:
541
+ fields.append('(' + instr.argrepr + ')')
542
+ print(' '.join(fields).rstrip(), file=self.file)
543
+
544
+ def print_exception_table(self, exception_entries):
545
+ file = self.file
546
+ if exception_entries:
547
+ print("ExceptionTable:", file=file)
548
+ for entry in exception_entries:
549
+ lasti = " lasti" if entry.lasti else ""
550
+ start = entry.start_label
551
+ end = entry.end_label
552
+ target = entry.target_label
553
+ print(f" L{start} to L{end} -> L{target} [{entry.depth}]{lasti}", file=file)
554
+
555
+
556
+ class ArgResolver:
557
+ def __init__(self, co_consts=None, names=None, varname_from_oparg=None, labels_map=None):
558
+ self.co_consts = co_consts
559
+ self.names = names
560
+ self.varname_from_oparg = varname_from_oparg
561
+ self.labels_map = labels_map or {}
562
+
563
+ def offset_from_jump_arg(self, op, arg, offset):
564
+ deop = _deoptop(op)
565
+ if deop in hasjabs:
566
+ return arg * 2
567
+ elif deop in hasjrel:
568
+ signed_arg = -arg if _is_backward_jump(deop) else arg
569
+ argval = offset + 2 + signed_arg*2
570
+ caches = _get_cache_size(_all_opname[deop])
571
+ argval += 2 * caches
572
+ return argval
573
+ return None
574
+
575
+ def get_label_for_offset(self, offset):
576
+ return self.labels_map.get(offset, None)
577
+
578
+ def get_argval_argrepr(self, op, arg, offset):
579
+ get_name = None if self.names is None else self.names.__getitem__
580
+ argval = None
581
+ argrepr = ''
582
+ deop = _deoptop(op)
583
+ if arg is not None:
584
+ # Set argval to the dereferenced value of the argument when
585
+ # available, and argrepr to the string representation of argval.
586
+ # _disassemble_bytes needs the string repr of the
587
+ # raw name index for LOAD_GLOBAL, LOAD_CONST, etc.
588
+ argval = arg
589
+ if deop in hasconst:
590
+ argval, argrepr = _get_const_info(deop, arg, self.co_consts)
591
+ elif deop in hasname:
592
+ if deop == LOAD_GLOBAL:
593
+ argval, argrepr = _get_name_info(arg//2, get_name)
594
+ if (arg & 1) and argrepr:
595
+ argrepr = f"{argrepr} + NULL"
596
+ elif deop == LOAD_ATTR:
597
+ argval, argrepr = _get_name_info(arg//2, get_name)
598
+ if (arg & 1) and argrepr:
599
+ argrepr = f"{argrepr} + NULL|self"
600
+ elif deop == LOAD_SUPER_ATTR:
601
+ argval, argrepr = _get_name_info(arg//4, get_name)
602
+ if (arg & 1) and argrepr:
603
+ argrepr = f"{argrepr} + NULL|self"
604
+ else:
605
+ argval, argrepr = _get_name_info(arg, get_name)
606
+ elif deop in hasjump or deop in hasexc:
607
+ argval = self.offset_from_jump_arg(op, arg, offset)
608
+ lbl = self.get_label_for_offset(argval)
609
+ assert lbl is not None
610
+ preposition = "from" if deop == END_ASYNC_FOR else "to"
611
+ argrepr = f"{preposition} L{lbl}"
612
+ elif deop in (LOAD_FAST_LOAD_FAST, LOAD_FAST_BORROW_LOAD_FAST_BORROW, STORE_FAST_LOAD_FAST, STORE_FAST_STORE_FAST):
613
+ arg1 = arg >> 4
614
+ arg2 = arg & 15
615
+ val1, argrepr1 = _get_name_info(arg1, self.varname_from_oparg)
616
+ val2, argrepr2 = _get_name_info(arg2, self.varname_from_oparg)
617
+ argrepr = argrepr1 + ", " + argrepr2
618
+ argval = val1, val2
619
+ elif deop in haslocal or deop in hasfree:
620
+ argval, argrepr = _get_name_info(arg, self.varname_from_oparg)
621
+ elif deop in hascompare:
622
+ argval = cmp_op[arg >> 5]
623
+ argrepr = argval
624
+ if arg & 16:
625
+ argrepr = f"bool({argrepr})"
626
+ elif deop == CONVERT_VALUE:
627
+ argval = (None, str, repr, ascii)[arg]
628
+ argrepr = ('', 'str', 'repr', 'ascii')[arg]
629
+ elif deop == SET_FUNCTION_ATTRIBUTE:
630
+ argrepr = ', '.join(s for i, s in enumerate(FUNCTION_ATTR_FLAGS)
631
+ if arg & (1<<i))
632
+ elif deop == BINARY_OP:
633
+ _, argrepr = _nb_ops[arg]
634
+ elif deop == CALL_INTRINSIC_1:
635
+ argrepr = _intrinsic_1_descs[arg]
636
+ elif deop == CALL_INTRINSIC_2:
637
+ argrepr = _intrinsic_2_descs[arg]
638
+ elif deop == LOAD_COMMON_CONSTANT:
639
+ obj = _common_constants[arg]
640
+ if isinstance(obj, type):
641
+ argrepr = obj.__name__
642
+ else:
643
+ argrepr = repr(obj)
644
+ elif deop == LOAD_SPECIAL:
645
+ argrepr = _special_method_names[arg]
646
+ elif deop == IS_OP:
647
+ argrepr = 'is not' if argval else 'is'
648
+ elif deop == CONTAINS_OP:
649
+ argrepr = 'not in' if argval else 'in'
650
+ return argval, argrepr
651
+
652
+ def get_instructions(x, *, first_line=None, show_caches=None, adaptive=False):
653
+ """Iterator for the opcodes in methods, functions or code
654
+
655
+ Generates a series of Instruction named tuples giving the details of
656
+ each operations in the supplied code.
657
+
658
+ If *first_line* is not None, it indicates the line number that should
659
+ be reported for the first source line in the disassembled code.
660
+ Otherwise, the source line information (if any) is taken directly from
661
+ the disassembled code object.
662
+ """
663
+ co = _get_code_object(x)
664
+ linestarts = dict(findlinestarts(co))
665
+ if first_line is not None:
666
+ line_offset = first_line - co.co_firstlineno
667
+ else:
668
+ line_offset = 0
669
+
670
+ original_code = co.co_code
671
+ arg_resolver = ArgResolver(co_consts=co.co_consts,
672
+ names=co.co_names,
673
+ varname_from_oparg=co._varname_from_oparg,
674
+ labels_map=_make_labels_map(original_code))
675
+ return _get_instructions_bytes(_get_code_array(co, adaptive),
676
+ linestarts=linestarts,
677
+ line_offset=line_offset,
678
+ co_positions=co.co_positions(),
679
+ original_code=original_code,
680
+ arg_resolver=arg_resolver)
681
+
682
+ def _get_const_value(op, arg, co_consts):
683
+ """Helper to get the value of the const in a hasconst op.
684
+
685
+ Returns the dereferenced constant if this is possible.
686
+ Otherwise (if it is a LOAD_CONST and co_consts is not
687
+ provided) returns the dis.UNKNOWN sentinel.
688
+ """
689
+ assert op in hasconst or op == LOAD_SMALL_INT
690
+
691
+ if op == LOAD_SMALL_INT:
692
+ return arg
693
+ argval = UNKNOWN
694
+ if co_consts is not None:
695
+ argval = co_consts[arg]
696
+ return argval
697
+
698
+ def _get_const_info(op, arg, co_consts):
699
+ """Helper to get optional details about const references
700
+
701
+ Returns the dereferenced constant and its repr if the value
702
+ can be calculated.
703
+ Otherwise returns the sentinel value dis.UNKNOWN for the value
704
+ and an empty string for its repr.
705
+ """
706
+ argval = _get_const_value(op, arg, co_consts)
707
+ argrepr = repr(argval) if argval is not UNKNOWN else ''
708
+ return argval, argrepr
709
+
710
+ def _get_name_info(name_index, get_name, **extrainfo):
711
+ """Helper to get optional details about named references
712
+
713
+ Returns the dereferenced name as both value and repr if the name
714
+ list is defined.
715
+ Otherwise returns the sentinel value dis.UNKNOWN for the value
716
+ and an empty string for its repr.
717
+ """
718
+ if get_name is not None:
719
+ argval = get_name(name_index, **extrainfo)
720
+ return argval, argval
721
+ else:
722
+ return UNKNOWN, ''
723
+
724
+ def _parse_varint(iterator):
725
+ b = next(iterator)
726
+ val = b & 63
727
+ while b&64:
728
+ val <<= 6
729
+ b = next(iterator)
730
+ val |= b&63
731
+ return val
732
+
733
+ def _parse_exception_table(code):
734
+ iterator = iter(code.co_exceptiontable)
735
+ entries = []
736
+ try:
737
+ while True:
738
+ start = _parse_varint(iterator)*2
739
+ length = _parse_varint(iterator)*2
740
+ end = start + length
741
+ target = _parse_varint(iterator)*2
742
+ dl = _parse_varint(iterator)
743
+ depth = dl >> 1
744
+ lasti = bool(dl&1)
745
+ entries.append(_ExceptionTableEntry(start, end, target, depth, lasti))
746
+ except StopIteration:
747
+ return entries
748
+
749
+ def _is_backward_jump(op):
750
+ return opname[op] in ('JUMP_BACKWARD',
751
+ 'JUMP_BACKWARD_NO_INTERRUPT',
752
+ 'END_ASYNC_FOR') # Not really a jump, but it has a "target"
753
+
754
+ def _get_instructions_bytes(code, linestarts=None, line_offset=0, co_positions=None,
755
+ original_code=None, arg_resolver=None):
756
+ """Iterate over the instructions in a bytecode string.
757
+
758
+ Generates a sequence of Instruction namedtuples giving the details of each
759
+ opcode.
760
+
761
+ """
762
+ # Use the basic, unadaptive code for finding labels and actually walking the
763
+ # bytecode, since replacements like ENTER_EXECUTOR and INSTRUMENTED_* can
764
+ # mess that logic up pretty badly:
765
+ original_code = original_code or code
766
+ co_positions = co_positions or iter(())
767
+
768
+ starts_line = False
769
+ local_line_number = None
770
+ line_number = None
771
+ for offset, start_offset, op, arg in _unpack_opargs(original_code):
772
+ if linestarts is not None:
773
+ starts_line = offset in linestarts
774
+ if starts_line:
775
+ local_line_number = linestarts[offset]
776
+ if local_line_number is not None:
777
+ line_number = local_line_number + line_offset
778
+ else:
779
+ line_number = None
780
+ positions = Positions(*next(co_positions, ()))
781
+ deop = _deoptop(op)
782
+ op = code[offset]
783
+
784
+ if arg_resolver:
785
+ argval, argrepr = arg_resolver.get_argval_argrepr(op, arg, offset)
786
+ else:
787
+ argval, argrepr = arg, repr(arg)
788
+
789
+ caches = _get_cache_size(_all_opname[deop])
790
+ # Advance the co_positions iterator:
791
+ for _ in range(caches):
792
+ next(co_positions, ())
793
+
794
+ if caches:
795
+ cache_info = []
796
+ cache_offset = offset
797
+ for name, size in _cache_format[opname[deop]].items():
798
+ data = code[cache_offset + 2: cache_offset + 2 + 2 * size]
799
+ cache_offset += size * 2
800
+ cache_info.append((name, size, data))
801
+ else:
802
+ cache_info = None
803
+
804
+ label = arg_resolver.get_label_for_offset(offset) if arg_resolver else None
805
+ yield Instruction(_all_opname[op], op, arg, argval, argrepr,
806
+ offset, start_offset, starts_line, line_number,
807
+ label, positions, cache_info)
808
+
809
+
810
+ def disassemble(co, lasti=-1, *, file=None, show_caches=False, adaptive=False,
811
+ show_offsets=False, show_positions=False):
812
+ """Disassemble a code object."""
813
+ linestarts = dict(findlinestarts(co))
814
+ exception_entries = _parse_exception_table(co)
815
+ if show_positions:
816
+ lineno_width = _get_positions_width(co)
817
+ else:
818
+ lineno_width = _get_lineno_width(linestarts)
819
+ labels_map = _make_labels_map(co.co_code, exception_entries=exception_entries)
820
+ label_width = 4 + len(str(len(labels_map)))
821
+ formatter = Formatter(file=file,
822
+ lineno_width=lineno_width,
823
+ offset_width=len(str(max(len(co.co_code) - 2, 9999))) if show_offsets else 0,
824
+ label_width=label_width,
825
+ show_caches=show_caches,
826
+ show_positions=show_positions)
827
+ arg_resolver = ArgResolver(co_consts=co.co_consts,
828
+ names=co.co_names,
829
+ varname_from_oparg=co._varname_from_oparg,
830
+ labels_map=labels_map)
831
+ _disassemble_bytes(_get_code_array(co, adaptive), lasti, linestarts,
832
+ exception_entries=exception_entries, co_positions=co.co_positions(),
833
+ original_code=co.co_code, arg_resolver=arg_resolver, formatter=formatter)
834
+
835
+ def _disassemble_recursive(co, *, file=None, depth=None, show_caches=False, adaptive=False, show_offsets=False, show_positions=False):
836
+ disassemble(co, file=file, show_caches=show_caches, adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions)
837
+ if depth is None or depth > 0:
838
+ if depth is not None:
839
+ depth = depth - 1
840
+ for x in co.co_consts:
841
+ if hasattr(x, 'co_code'):
842
+ print(file=file)
843
+ print("Disassembly of %r:" % (x,), file=file)
844
+ _disassemble_recursive(
845
+ x, file=file, depth=depth, show_caches=show_caches,
846
+ adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions
847
+ )
848
+
849
+
850
+ def _make_labels_map(original_code, exception_entries=()):
851
+ jump_targets = set(findlabels(original_code))
852
+ labels = set(jump_targets)
853
+ for start, end, target, _, _ in exception_entries:
854
+ labels.add(start)
855
+ labels.add(end)
856
+ labels.add(target)
857
+ labels = sorted(labels)
858
+ labels_map = {offset: i+1 for (i, offset) in enumerate(sorted(labels))}
859
+ for e in exception_entries:
860
+ e.start_label = labels_map[e.start]
861
+ e.end_label = labels_map[e.end]
862
+ e.target_label = labels_map[e.target]
863
+ return labels_map
864
+
865
+ _NO_LINENO = ' --'
866
+
867
+ def _get_lineno_width(linestarts):
868
+ if linestarts is None:
869
+ return 0
870
+ maxlineno = max(filter(None, linestarts.values()), default=-1)
871
+ if maxlineno == -1:
872
+ # Omit the line number column entirely if we have no line number info
873
+ return 0
874
+ lineno_width = max(3, len(str(maxlineno)))
875
+ if lineno_width < len(_NO_LINENO) and None in linestarts.values():
876
+ lineno_width = len(_NO_LINENO)
877
+ return lineno_width
878
+
879
+ def _get_positions_width(code):
880
+ # Positions are formatted as 'LINE:COL-ENDLINE:ENDCOL ' (note trailing space).
881
+ # A missing component appears as '?', and when all components are None, we
882
+ # render '_NO_LINENO'. thus the minimum width is 1 + len(_NO_LINENO).
883
+ #
884
+ # If all values are missing, positions are not printed (i.e. positions_width = 0).
885
+ has_value = False
886
+ values_width = 0
887
+ for positions in code.co_positions():
888
+ has_value |= any(isinstance(p, int) for p in positions)
889
+ width = sum(1 if p is None else len(str(p)) for p in positions)
890
+ values_width = max(width, values_width)
891
+ if has_value:
892
+ # 3 = number of separators in a normal format
893
+ return 1 + max(len(_NO_LINENO), 3 + values_width)
894
+ return 0
895
+
896
+ def _disassemble_bytes(code, lasti=-1, linestarts=None,
897
+ *, line_offset=0, exception_entries=(),
898
+ co_positions=None, original_code=None,
899
+ arg_resolver=None, formatter=None):
900
+
901
+ assert formatter is not None
902
+ assert arg_resolver is not None
903
+
904
+ instrs = _get_instructions_bytes(code, linestarts=linestarts,
905
+ line_offset=line_offset,
906
+ co_positions=co_positions,
907
+ original_code=original_code,
908
+ arg_resolver=arg_resolver)
909
+
910
+ print_instructions(instrs, exception_entries, formatter, lasti=lasti)
911
+
912
+
913
+ def print_instructions(instrs, exception_entries, formatter, lasti=-1):
914
+ for instr in instrs:
915
+ # Each CACHE takes 2 bytes
916
+ is_current_instr = instr.offset <= lasti \
917
+ <= instr.offset + 2 * _get_cache_size(_all_opname[_deoptop(instr.opcode)])
918
+ formatter.print_instruction(instr, is_current_instr)
919
+
920
+ formatter.print_exception_table(exception_entries)
921
+
922
+ def _disassemble_str(source, **kwargs):
923
+ """Compile the source string, then disassemble the code object."""
924
+ _disassemble_recursive(_try_compile(source, '<dis>'), **kwargs)
925
+
926
+ disco = disassemble # XXX For backwards compatibility
927
+
928
+
929
+ # Rely on C `int` being 32 bits for oparg
930
+ _INT_BITS = 32
931
+ # Value for c int when it overflows
932
+ _INT_OVERFLOW = 2 ** (_INT_BITS - 1)
933
+
934
+ def _unpack_opargs(code):
935
+ extended_arg = 0
936
+ extended_args_offset = 0 # Number of EXTENDED_ARG instructions preceding the current instruction
937
+ caches = 0
938
+ for i in range(0, len(code), 2):
939
+ # Skip inline CACHE entries:
940
+ if caches:
941
+ caches -= 1
942
+ continue
943
+ op = code[i]
944
+ deop = _deoptop(op)
945
+ caches = _get_cache_size(_all_opname[deop])
946
+ if deop in hasarg:
947
+ arg = code[i+1] | extended_arg
948
+ extended_arg = (arg << 8) if deop == EXTENDED_ARG else 0
949
+ # The oparg is stored as a signed integer
950
+ # If the value exceeds its upper limit, it will overflow and wrap
951
+ # to a negative integer
952
+ if extended_arg >= _INT_OVERFLOW:
953
+ extended_arg -= 2 * _INT_OVERFLOW
954
+ else:
955
+ arg = None
956
+ extended_arg = 0
957
+ if deop == EXTENDED_ARG:
958
+ extended_args_offset += 1
959
+ yield (i, i, op, arg)
960
+ else:
961
+ start_offset = i - extended_args_offset*2
962
+ yield (i, start_offset, op, arg)
963
+ extended_args_offset = 0
964
+
965
+ def findlabels(code):
966
+ """Detect all offsets in a byte code which are jump targets.
967
+
968
+ Return the list of offsets.
969
+
970
+ """
971
+ labels = []
972
+ for offset, _, op, arg in _unpack_opargs(code):
973
+ if arg is not None:
974
+ label = _get_jump_target(op, arg, offset)
975
+ if label is None:
976
+ continue
977
+ if label not in labels:
978
+ labels.append(label)
979
+ return labels
980
+
981
+ def findlinestarts(code):
982
+ """Find the offsets in a byte code which are start of lines in the source.
983
+
984
+ Generate pairs (offset, lineno)
985
+ lineno will be an integer or None the offset does not have a source line.
986
+ """
987
+
988
+ lastline = False # None is a valid line number
989
+ for start, end, line in code.co_lines():
990
+ if line is not lastline:
991
+ lastline = line
992
+ yield start, line
993
+ return
994
+
995
+ def _find_imports(co):
996
+ """Find import statements in the code
997
+
998
+ Generate triplets (name, level, fromlist) where
999
+ name is the imported module and level, fromlist are
1000
+ the corresponding args to __import__.
1001
+ """
1002
+ IMPORT_NAME = opmap['IMPORT_NAME']
1003
+
1004
+ consts = co.co_consts
1005
+ names = co.co_names
1006
+ opargs = [(op, arg) for _, _, op, arg in _unpack_opargs(co.co_code)
1007
+ if op != EXTENDED_ARG]
1008
+ for i, (op, oparg) in enumerate(opargs):
1009
+ if op == IMPORT_NAME and i >= 2:
1010
+ from_op = opargs[i-1]
1011
+ level_op = opargs[i-2]
1012
+ if (from_op[0] in hasconst and
1013
+ (level_op[0] in hasconst or level_op[0] == LOAD_SMALL_INT)):
1014
+ level = _get_const_value(level_op[0], level_op[1], consts)
1015
+ fromlist = _get_const_value(from_op[0], from_op[1], consts)
1016
+ yield (names[oparg], level, fromlist)
1017
+
1018
+ def _find_store_names(co):
1019
+ """Find names of variables which are written in the code
1020
+
1021
+ Generate sequence of strings
1022
+ """
1023
+ STORE_OPS = {
1024
+ opmap['STORE_NAME'],
1025
+ opmap['STORE_GLOBAL']
1026
+ }
1027
+
1028
+ names = co.co_names
1029
+ for _, _, op, arg in _unpack_opargs(co.co_code):
1030
+ if op in STORE_OPS:
1031
+ yield names[arg]
1032
+
1033
+
1034
+ class Bytecode:
1035
+ """The bytecode operations of a piece of code
1036
+
1037
+ Instantiate this with a function, method, other compiled object, string of
1038
+ code, or a code object (as returned by compile()).
1039
+
1040
+ Iterating over this yields the bytecode operations as Instruction instances.
1041
+ """
1042
+ def __init__(self, x, *, first_line=None, current_offset=None, show_caches=False, adaptive=False, show_offsets=False, show_positions=False):
1043
+ self.codeobj = co = _get_code_object(x)
1044
+ if first_line is None:
1045
+ self.first_line = co.co_firstlineno
1046
+ self._line_offset = 0
1047
+ else:
1048
+ self.first_line = first_line
1049
+ self._line_offset = first_line - co.co_firstlineno
1050
+ self._linestarts = dict(findlinestarts(co))
1051
+ self._original_object = x
1052
+ self.current_offset = current_offset
1053
+ self.exception_entries = _parse_exception_table(co)
1054
+ self.show_caches = show_caches
1055
+ self.adaptive = adaptive
1056
+ self.show_offsets = show_offsets
1057
+ self.show_positions = show_positions
1058
+
1059
+ def __iter__(self):
1060
+ co = self.codeobj
1061
+ original_code = co.co_code
1062
+ labels_map = _make_labels_map(original_code, self.exception_entries)
1063
+ arg_resolver = ArgResolver(co_consts=co.co_consts,
1064
+ names=co.co_names,
1065
+ varname_from_oparg=co._varname_from_oparg,
1066
+ labels_map=labels_map)
1067
+ return _get_instructions_bytes(_get_code_array(co, self.adaptive),
1068
+ linestarts=self._linestarts,
1069
+ line_offset=self._line_offset,
1070
+ co_positions=co.co_positions(),
1071
+ original_code=original_code,
1072
+ arg_resolver=arg_resolver)
1073
+
1074
+ def __repr__(self):
1075
+ return "{}({!r})".format(self.__class__.__name__,
1076
+ self._original_object)
1077
+
1078
+ @classmethod
1079
+ def from_traceback(cls, tb, *, show_caches=False, adaptive=False):
1080
+ """ Construct a Bytecode from the given traceback """
1081
+ while tb.tb_next:
1082
+ tb = tb.tb_next
1083
+ return cls(
1084
+ tb.tb_frame.f_code, current_offset=tb.tb_lasti, show_caches=show_caches, adaptive=adaptive
1085
+ )
1086
+
1087
+ def info(self):
1088
+ """Return formatted information about the code object."""
1089
+ return _format_code_info(self.codeobj)
1090
+
1091
+ def dis(self):
1092
+ """Return a formatted view of the bytecode operations."""
1093
+ co = self.codeobj
1094
+ if self.current_offset is not None:
1095
+ offset = self.current_offset
1096
+ else:
1097
+ offset = -1
1098
+ with io.StringIO() as output:
1099
+ code = _get_code_array(co, self.adaptive)
1100
+ offset_width = len(str(max(len(code) - 2, 9999))) if self.show_offsets else 0
1101
+ if self.show_positions:
1102
+ lineno_width = _get_positions_width(co)
1103
+ else:
1104
+ lineno_width = _get_lineno_width(self._linestarts)
1105
+ labels_map = _make_labels_map(co.co_code, self.exception_entries)
1106
+ label_width = 4 + len(str(len(labels_map)))
1107
+ formatter = Formatter(file=output,
1108
+ lineno_width=lineno_width,
1109
+ offset_width=offset_width,
1110
+ label_width=label_width,
1111
+ line_offset=self._line_offset,
1112
+ show_caches=self.show_caches,
1113
+ show_positions=self.show_positions)
1114
+
1115
+ arg_resolver = ArgResolver(co_consts=co.co_consts,
1116
+ names=co.co_names,
1117
+ varname_from_oparg=co._varname_from_oparg,
1118
+ labels_map=labels_map)
1119
+ _disassemble_bytes(code,
1120
+ linestarts=self._linestarts,
1121
+ line_offset=self._line_offset,
1122
+ lasti=offset,
1123
+ exception_entries=self.exception_entries,
1124
+ co_positions=co.co_positions(),
1125
+ original_code=co.co_code,
1126
+ arg_resolver=arg_resolver,
1127
+ formatter=formatter)
1128
+ return output.getvalue()
1129
+
1130
+
1131
+ def main(args=None):
1132
+ import argparse
1133
+
1134
+ parser = argparse.ArgumentParser(color=True)
1135
+ parser.add_argument('-C', '--show-caches', action='store_true',
1136
+ help='show inline caches')
1137
+ parser.add_argument('-O', '--show-offsets', action='store_true',
1138
+ help='show instruction offsets')
1139
+ parser.add_argument('-P', '--show-positions', action='store_true',
1140
+ help='show instruction positions')
1141
+ parser.add_argument('-S', '--specialized', action='store_true',
1142
+ help='show specialized bytecode')
1143
+ parser.add_argument('infile', nargs='?', default='-')
1144
+ args = parser.parse_args(args=args)
1145
+ if args.infile == '-':
1146
+ name = '<stdin>'
1147
+ source = sys.stdin.buffer.read()
1148
+ else:
1149
+ name = args.infile
1150
+ with open(args.infile, 'rb') as infile:
1151
+ source = infile.read()
1152
+ code = compile(source, name, "exec")
1153
+ dis(code, show_caches=args.show_caches, adaptive=args.specialized,
1154
+ show_offsets=args.show_offsets, show_positions=args.show_positions)
1155
+
1156
+ if __name__ == "__main__":
1157
+ main()