@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,1023 @@
1
+ """Selector event loop for Unix with signal handling."""
2
+
3
+ import errno
4
+ import io
5
+ import itertools
6
+ import os
7
+ import selectors
8
+ import signal
9
+ import socket
10
+ import stat
11
+ import subprocess
12
+ import sys
13
+ import threading
14
+ import warnings
15
+
16
+ from . import base_events
17
+ from . import base_subprocess
18
+ from . import constants
19
+ from . import coroutines
20
+ from . import events
21
+ from . import exceptions
22
+ from . import futures
23
+ from . import selector_events
24
+ from . import tasks
25
+ from . import transports
26
+ from .log import logger
27
+
28
+
29
+ __all__ = (
30
+ 'SelectorEventLoop',
31
+ 'EventLoop',
32
+ )
33
+
34
+
35
+ if sys.platform == 'win32': # pragma: no cover
36
+ raise ImportError('Signals are not really supported on Windows')
37
+
38
+
39
+ def _sighandler_noop(signum, frame):
40
+ """Dummy signal handler."""
41
+ pass
42
+
43
+
44
+ def waitstatus_to_exitcode(status):
45
+ try:
46
+ return os.waitstatus_to_exitcode(status)
47
+ except ValueError:
48
+ # The child exited, but we don't understand its status.
49
+ # This shouldn't happen, but if it does, let's just
50
+ # return that status; perhaps that helps debug it.
51
+ return status
52
+
53
+
54
+ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
55
+ """Unix event loop.
56
+
57
+ Adds signal handling and UNIX Domain Socket support to
58
+ SelectorEventLoop.
59
+ """
60
+
61
+ def __init__(self, selector=None):
62
+ super().__init__(selector)
63
+ self._signal_handlers = {}
64
+ self._unix_server_sockets = {}
65
+ if can_use_pidfd():
66
+ self._watcher = _PidfdChildWatcher()
67
+ else:
68
+ self._watcher = _ThreadedChildWatcher()
69
+
70
+ def close(self):
71
+ super().close()
72
+ if not sys.is_finalizing():
73
+ for sig in list(self._signal_handlers):
74
+ self.remove_signal_handler(sig)
75
+ else:
76
+ if self._signal_handlers:
77
+ warnings.warn(f"Closing the loop {self!r} "
78
+ f"on interpreter shutdown "
79
+ f"stage, skipping signal handlers removal",
80
+ ResourceWarning,
81
+ source=self)
82
+ self._signal_handlers.clear()
83
+
84
+ def _process_self_data(self, data):
85
+ for signum in data:
86
+ if not signum:
87
+ # ignore null bytes written by _write_to_self()
88
+ continue
89
+ self._handle_signal(signum)
90
+
91
+ def add_signal_handler(self, sig, callback, *args):
92
+ """Add a handler for a signal. UNIX only.
93
+
94
+ Raise ValueError if the signal number is invalid or uncatchable.
95
+ Raise RuntimeError if there is a problem setting up the handler.
96
+ """
97
+ if (coroutines.iscoroutine(callback) or
98
+ coroutines._iscoroutinefunction(callback)):
99
+ raise TypeError("coroutines cannot be used "
100
+ "with add_signal_handler()")
101
+ self._check_signal(sig)
102
+ self._check_closed()
103
+ try:
104
+ # set_wakeup_fd() raises ValueError if this is not the
105
+ # main thread. By calling it early we ensure that an
106
+ # event loop running in another thread cannot add a signal
107
+ # handler.
108
+ signal.set_wakeup_fd(self._csock.fileno())
109
+ except (ValueError, OSError) as exc:
110
+ raise RuntimeError(str(exc))
111
+
112
+ handle = events.Handle(callback, args, self, None)
113
+ self._signal_handlers[sig] = handle
114
+
115
+ try:
116
+ # Register a dummy signal handler to ask Python to write the signal
117
+ # number in the wakeup file descriptor. _process_self_data() will
118
+ # read signal numbers from this file descriptor to handle signals.
119
+ signal.signal(sig, _sighandler_noop)
120
+
121
+ # Set SA_RESTART to limit EINTR occurrences.
122
+ signal.siginterrupt(sig, False)
123
+ except OSError as exc:
124
+ del self._signal_handlers[sig]
125
+ if not self._signal_handlers:
126
+ try:
127
+ signal.set_wakeup_fd(-1)
128
+ except (ValueError, OSError) as nexc:
129
+ logger.info('set_wakeup_fd(-1) failed: %s', nexc)
130
+
131
+ if exc.errno == errno.EINVAL:
132
+ raise RuntimeError(f'sig {sig} cannot be caught')
133
+ else:
134
+ raise
135
+
136
+ def _handle_signal(self, sig):
137
+ """Internal helper that is the actual signal handler."""
138
+ handle = self._signal_handlers.get(sig)
139
+ if handle is None:
140
+ return # Assume it's some race condition.
141
+ if handle._cancelled:
142
+ self.remove_signal_handler(sig) # Remove it properly.
143
+ else:
144
+ self._add_callback_signalsafe(handle)
145
+
146
+ def remove_signal_handler(self, sig):
147
+ """Remove a handler for a signal. UNIX only.
148
+
149
+ Return True if a signal handler was removed, False if not.
150
+ """
151
+ self._check_signal(sig)
152
+ try:
153
+ del self._signal_handlers[sig]
154
+ except KeyError:
155
+ return False
156
+
157
+ if sig == signal.SIGINT:
158
+ handler = signal.default_int_handler
159
+ else:
160
+ handler = signal.SIG_DFL
161
+
162
+ try:
163
+ signal.signal(sig, handler)
164
+ except OSError as exc:
165
+ if exc.errno == errno.EINVAL:
166
+ raise RuntimeError(f'sig {sig} cannot be caught')
167
+ else:
168
+ raise
169
+
170
+ if not self._signal_handlers:
171
+ try:
172
+ signal.set_wakeup_fd(-1)
173
+ except (ValueError, OSError) as exc:
174
+ logger.info('set_wakeup_fd(-1) failed: %s', exc)
175
+
176
+ return True
177
+
178
+ def _check_signal(self, sig):
179
+ """Internal helper to validate a signal.
180
+
181
+ Raise ValueError if the signal number is invalid or uncatchable.
182
+ Raise RuntimeError if there is a problem setting up the handler.
183
+ """
184
+ if not isinstance(sig, int):
185
+ raise TypeError(f'sig must be an int, not {sig!r}')
186
+
187
+ if sig not in signal.valid_signals():
188
+ raise ValueError(f'invalid signal number {sig}')
189
+
190
+ def _make_read_pipe_transport(self, pipe, protocol, waiter=None,
191
+ extra=None):
192
+ return _UnixReadPipeTransport(self, pipe, protocol, waiter, extra)
193
+
194
+ def _make_write_pipe_transport(self, pipe, protocol, waiter=None,
195
+ extra=None):
196
+ return _UnixWritePipeTransport(self, pipe, protocol, waiter, extra)
197
+
198
+ async def _make_subprocess_transport(self, protocol, args, shell,
199
+ stdin, stdout, stderr, bufsize,
200
+ extra=None, **kwargs):
201
+ watcher = self._watcher
202
+ waiter = self.create_future()
203
+ transp = _UnixSubprocessTransport(self, protocol, args, shell,
204
+ stdin, stdout, stderr, bufsize,
205
+ waiter=waiter, extra=extra,
206
+ **kwargs)
207
+ watcher.add_child_handler(transp.get_pid(),
208
+ self._child_watcher_callback, transp)
209
+ try:
210
+ await waiter
211
+ except (SystemExit, KeyboardInterrupt):
212
+ raise
213
+ except BaseException:
214
+ transp.close()
215
+ await tasks.shield(transp._wait())
216
+ raise
217
+
218
+ return transp
219
+
220
+ def _child_watcher_callback(self, pid, returncode, transp):
221
+ transp._process_exited(returncode)
222
+
223
+ async def create_unix_connection(
224
+ self, protocol_factory, path=None, *,
225
+ ssl=None, sock=None,
226
+ server_hostname=None,
227
+ ssl_handshake_timeout=None,
228
+ ssl_shutdown_timeout=None):
229
+ assert server_hostname is None or isinstance(server_hostname, str)
230
+ if ssl:
231
+ if server_hostname is None:
232
+ raise ValueError(
233
+ 'you have to pass server_hostname when using ssl')
234
+ else:
235
+ if server_hostname is not None:
236
+ raise ValueError('server_hostname is only meaningful with ssl')
237
+ if ssl_handshake_timeout is not None:
238
+ raise ValueError(
239
+ 'ssl_handshake_timeout is only meaningful with ssl')
240
+ if ssl_shutdown_timeout is not None:
241
+ raise ValueError(
242
+ 'ssl_shutdown_timeout is only meaningful with ssl')
243
+
244
+ if path is not None:
245
+ if sock is not None:
246
+ raise ValueError(
247
+ 'path and sock can not be specified at the same time')
248
+
249
+ path = os.fspath(path)
250
+ sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM, 0)
251
+ try:
252
+ sock.setblocking(False)
253
+ await self.sock_connect(sock, path)
254
+ except:
255
+ sock.close()
256
+ raise
257
+
258
+ else:
259
+ if sock is None:
260
+ raise ValueError('no path and sock were specified')
261
+ if (sock.family != socket.AF_UNIX or
262
+ sock.type != socket.SOCK_STREAM):
263
+ raise ValueError(
264
+ f'A UNIX Domain Stream Socket was expected, got {sock!r}')
265
+ sock.setblocking(False)
266
+
267
+ transport, protocol = await self._create_connection_transport(
268
+ sock, protocol_factory, ssl, server_hostname,
269
+ ssl_handshake_timeout=ssl_handshake_timeout,
270
+ ssl_shutdown_timeout=ssl_shutdown_timeout)
271
+ return transport, protocol
272
+
273
+ async def create_unix_server(
274
+ self, protocol_factory, path=None, *,
275
+ sock=None, backlog=100, ssl=None,
276
+ ssl_handshake_timeout=None,
277
+ ssl_shutdown_timeout=None,
278
+ start_serving=True, cleanup_socket=True):
279
+ if isinstance(ssl, bool):
280
+ raise TypeError('ssl argument must be an SSLContext or None')
281
+
282
+ if ssl_handshake_timeout is not None and not ssl:
283
+ raise ValueError(
284
+ 'ssl_handshake_timeout is only meaningful with ssl')
285
+
286
+ if ssl_shutdown_timeout is not None and not ssl:
287
+ raise ValueError(
288
+ 'ssl_shutdown_timeout is only meaningful with ssl')
289
+
290
+ if path is not None:
291
+ if sock is not None:
292
+ raise ValueError(
293
+ 'path and sock can not be specified at the same time')
294
+
295
+ path = os.fspath(path)
296
+ sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
297
+
298
+ # Check for abstract socket. `str` and `bytes` paths are supported.
299
+ if path[0] not in (0, '\x00'):
300
+ try:
301
+ if stat.S_ISSOCK(os.stat(path).st_mode):
302
+ os.remove(path)
303
+ except FileNotFoundError:
304
+ pass
305
+ except OSError as err:
306
+ # Directory may have permissions only to create socket.
307
+ logger.error('Unable to check or remove stale UNIX socket '
308
+ '%r: %r', path, err)
309
+
310
+ try:
311
+ sock.bind(path)
312
+ except OSError as exc:
313
+ sock.close()
314
+ if exc.errno == errno.EADDRINUSE:
315
+ # Let's improve the error message by adding
316
+ # with what exact address it occurs.
317
+ msg = f'Address {path!r} is already in use'
318
+ raise OSError(errno.EADDRINUSE, msg) from None
319
+ else:
320
+ raise
321
+ except:
322
+ sock.close()
323
+ raise
324
+ else:
325
+ if sock is None:
326
+ raise ValueError(
327
+ 'path was not specified, and no sock specified')
328
+
329
+ if (sock.family != socket.AF_UNIX or
330
+ sock.type != socket.SOCK_STREAM):
331
+ raise ValueError(
332
+ f'A UNIX Domain Stream Socket was expected, got {sock!r}')
333
+
334
+ if cleanup_socket:
335
+ path = sock.getsockname()
336
+ # Check for abstract socket. `str` and `bytes` paths are supported.
337
+ if path[0] not in (0, '\x00'):
338
+ try:
339
+ self._unix_server_sockets[sock] = os.stat(path).st_ino
340
+ except FileNotFoundError:
341
+ pass
342
+
343
+ sock.setblocking(False)
344
+ server = base_events.Server(self, [sock], protocol_factory,
345
+ ssl, backlog, ssl_handshake_timeout,
346
+ ssl_shutdown_timeout)
347
+ if start_serving:
348
+ server._start_serving()
349
+ # Skip one loop iteration so that all 'loop.add_reader'
350
+ # go through.
351
+ await tasks.sleep(0)
352
+
353
+ return server
354
+
355
+ async def _sock_sendfile_native(self, sock, file, offset, count):
356
+ try:
357
+ os.sendfile
358
+ except AttributeError:
359
+ raise exceptions.SendfileNotAvailableError(
360
+ "os.sendfile() is not available")
361
+ try:
362
+ fileno = file.fileno()
363
+ except (AttributeError, io.UnsupportedOperation) as err:
364
+ raise exceptions.SendfileNotAvailableError("not a regular file")
365
+ try:
366
+ fsize = os.fstat(fileno).st_size
367
+ except OSError:
368
+ raise exceptions.SendfileNotAvailableError("not a regular file")
369
+ blocksize = count if count else fsize
370
+ if not blocksize:
371
+ return 0 # empty file
372
+
373
+ fut = self.create_future()
374
+ self._sock_sendfile_native_impl(fut, None, sock, fileno,
375
+ offset, count, blocksize, 0)
376
+ return await fut
377
+
378
+ def _sock_sendfile_native_impl(self, fut, registered_fd, sock, fileno,
379
+ offset, count, blocksize, total_sent):
380
+ fd = sock.fileno()
381
+ if registered_fd is not None:
382
+ # Remove the callback early. It should be rare that the
383
+ # selector says the fd is ready but the call still returns
384
+ # EAGAIN, and I am willing to take a hit in that case in
385
+ # order to simplify the common case.
386
+ self.remove_writer(registered_fd)
387
+ if fut.cancelled():
388
+ self._sock_sendfile_update_filepos(fileno, offset)
389
+ return
390
+ if count:
391
+ blocksize = count - total_sent
392
+ if blocksize <= 0:
393
+ self._sock_sendfile_update_filepos(fileno, offset)
394
+ fut.set_result(total_sent)
395
+ return
396
+
397
+ # On 32-bit architectures truncate to 1GiB to avoid OverflowError
398
+ blocksize = min(blocksize, sys.maxsize//2 + 1)
399
+
400
+ try:
401
+ sent = os.sendfile(fd, fileno, offset, blocksize)
402
+ except (BlockingIOError, InterruptedError):
403
+ if registered_fd is None:
404
+ self._sock_add_cancellation_callback(fut, sock)
405
+ self.add_writer(fd, self._sock_sendfile_native_impl, fut,
406
+ fd, sock, fileno,
407
+ offset, count, blocksize, total_sent)
408
+ except OSError as exc:
409
+ if (registered_fd is not None and
410
+ exc.errno == errno.ENOTCONN and
411
+ type(exc) is not ConnectionError):
412
+ # If we have an ENOTCONN and this isn't a first call to
413
+ # sendfile(), i.e. the connection was closed in the middle
414
+ # of the operation, normalize the error to ConnectionError
415
+ # to make it consistent across all Posix systems.
416
+ new_exc = ConnectionError(
417
+ "socket is not connected", errno.ENOTCONN)
418
+ new_exc.__cause__ = exc
419
+ exc = new_exc
420
+ if total_sent == 0:
421
+ # We can get here for different reasons, the main
422
+ # one being 'file' is not a regular mmap(2)-like
423
+ # file, in which case we'll fall back on using
424
+ # plain send().
425
+ err = exceptions.SendfileNotAvailableError(
426
+ "os.sendfile call failed")
427
+ self._sock_sendfile_update_filepos(fileno, offset)
428
+ fut.set_exception(err)
429
+ else:
430
+ self._sock_sendfile_update_filepos(fileno, offset)
431
+ fut.set_exception(exc)
432
+ except (SystemExit, KeyboardInterrupt):
433
+ raise
434
+ except BaseException as exc:
435
+ self._sock_sendfile_update_filepos(fileno, offset)
436
+ fut.set_exception(exc)
437
+ else:
438
+ if sent == 0:
439
+ # EOF
440
+ self._sock_sendfile_update_filepos(fileno, offset)
441
+ fut.set_result(total_sent)
442
+ else:
443
+ offset += sent
444
+ total_sent += sent
445
+ if registered_fd is None:
446
+ self._sock_add_cancellation_callback(fut, sock)
447
+ self.add_writer(fd, self._sock_sendfile_native_impl, fut,
448
+ fd, sock, fileno,
449
+ offset, count, blocksize, total_sent)
450
+
451
+ def _sock_sendfile_update_filepos(self, fileno, offset):
452
+ # After this helper runs, the source fd's lseek pointer is at offset."
453
+ os.lseek(fileno, offset, os.SEEK_SET)
454
+
455
+ def _sock_add_cancellation_callback(self, fut, sock):
456
+ def cb(fut):
457
+ if fut.cancelled():
458
+ fd = sock.fileno()
459
+ if fd != -1:
460
+ self.remove_writer(fd)
461
+ fut.add_done_callback(cb)
462
+
463
+ def _stop_serving(self, sock):
464
+ # Is this a unix socket that needs cleanup?
465
+ if sock in self._unix_server_sockets:
466
+ path = sock.getsockname()
467
+ else:
468
+ path = None
469
+
470
+ super()._stop_serving(sock)
471
+
472
+ if path is not None:
473
+ prev_ino = self._unix_server_sockets[sock]
474
+ del self._unix_server_sockets[sock]
475
+ try:
476
+ if os.stat(path).st_ino == prev_ino:
477
+ os.unlink(path)
478
+ except FileNotFoundError:
479
+ pass
480
+ except OSError as err:
481
+ logger.error('Unable to clean up listening UNIX socket '
482
+ '%r: %r', path, err)
483
+
484
+
485
+ class _UnixReadPipeTransport(transports.ReadTransport):
486
+
487
+ max_size = 256 * 1024 # max bytes we read in one event loop iteration
488
+
489
+ def __init__(self, loop, pipe, protocol, waiter=None, extra=None):
490
+ super().__init__(extra)
491
+ self._extra['pipe'] = pipe
492
+ self._loop = loop
493
+ self._pipe = pipe
494
+ self._fileno = pipe.fileno()
495
+ self._protocol = protocol
496
+ self._closing = False
497
+ self._paused = False
498
+
499
+ mode = os.fstat(self._fileno).st_mode
500
+ if not (stat.S_ISFIFO(mode) or
501
+ stat.S_ISSOCK(mode) or
502
+ stat.S_ISCHR(mode)):
503
+ self._pipe = None
504
+ self._fileno = None
505
+ self._protocol = None
506
+ raise ValueError("Pipe transport is for pipes/sockets only.")
507
+
508
+ os.set_blocking(self._fileno, False)
509
+
510
+ self._loop.call_soon(self._protocol.connection_made, self)
511
+ # only start reading when connection_made() has been called
512
+ self._loop.call_soon(self._add_reader,
513
+ self._fileno, self._read_ready)
514
+ if waiter is not None:
515
+ # only wake up the waiter when connection_made() has been called
516
+ self._loop.call_soon(futures._set_result_unless_cancelled,
517
+ waiter, None)
518
+
519
+ def _add_reader(self, fd, callback):
520
+ if not self.is_reading():
521
+ return
522
+ self._loop._add_reader(fd, callback)
523
+
524
+ def is_reading(self):
525
+ return not self._paused and not self._closing
526
+
527
+ def __repr__(self):
528
+ info = [self.__class__.__name__]
529
+ if self._pipe is None:
530
+ info.append('closed')
531
+ elif self._closing:
532
+ info.append('closing')
533
+ info.append(f'fd={self._fileno}')
534
+ selector = getattr(self._loop, '_selector', None)
535
+ if self._pipe is not None and selector is not None:
536
+ polling = selector_events._test_selector_event(
537
+ selector, self._fileno, selectors.EVENT_READ)
538
+ if polling:
539
+ info.append('polling')
540
+ else:
541
+ info.append('idle')
542
+ elif self._pipe is not None:
543
+ info.append('open')
544
+ else:
545
+ info.append('closed')
546
+ return '<{}>'.format(' '.join(info))
547
+
548
+ def _read_ready(self):
549
+ try:
550
+ data = os.read(self._fileno, self.max_size)
551
+ except (BlockingIOError, InterruptedError):
552
+ pass
553
+ except OSError as exc:
554
+ self._fatal_error(exc, 'Fatal read error on pipe transport')
555
+ else:
556
+ if data:
557
+ self._protocol.data_received(data)
558
+ else:
559
+ if self._loop.get_debug():
560
+ logger.info("%r was closed by peer", self)
561
+ self._closing = True
562
+ self._loop._remove_reader(self._fileno)
563
+ self._loop.call_soon(self._protocol.eof_received)
564
+ self._loop.call_soon(self._call_connection_lost, None)
565
+
566
+ def pause_reading(self):
567
+ if not self.is_reading():
568
+ return
569
+ self._paused = True
570
+ self._loop._remove_reader(self._fileno)
571
+ if self._loop.get_debug():
572
+ logger.debug("%r pauses reading", self)
573
+
574
+ def resume_reading(self):
575
+ if self._closing or not self._paused:
576
+ return
577
+ self._paused = False
578
+ self._loop._add_reader(self._fileno, self._read_ready)
579
+ if self._loop.get_debug():
580
+ logger.debug("%r resumes reading", self)
581
+
582
+ def set_protocol(self, protocol):
583
+ self._protocol = protocol
584
+
585
+ def get_protocol(self):
586
+ return self._protocol
587
+
588
+ def is_closing(self):
589
+ return self._closing
590
+
591
+ def close(self):
592
+ if not self._closing:
593
+ self._close(None)
594
+
595
+ def __del__(self, _warn=warnings.warn):
596
+ if self._pipe is not None:
597
+ _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
598
+ self._pipe.close()
599
+
600
+ def _fatal_error(self, exc, message='Fatal error on pipe transport'):
601
+ # should be called by exception handler only
602
+ if (isinstance(exc, OSError) and exc.errno == errno.EIO):
603
+ if self._loop.get_debug():
604
+ logger.debug("%r: %s", self, message, exc_info=True)
605
+ else:
606
+ self._loop.call_exception_handler({
607
+ 'message': message,
608
+ 'exception': exc,
609
+ 'transport': self,
610
+ 'protocol': self._protocol,
611
+ })
612
+ self._close(exc)
613
+
614
+ def _close(self, exc):
615
+ self._closing = True
616
+ self._loop._remove_reader(self._fileno)
617
+ self._loop.call_soon(self._call_connection_lost, exc)
618
+
619
+ def _call_connection_lost(self, exc):
620
+ try:
621
+ self._protocol.connection_lost(exc)
622
+ finally:
623
+ self._pipe.close()
624
+ self._pipe = None
625
+ self._protocol = None
626
+ self._loop = None
627
+
628
+
629
+ class _UnixWritePipeTransport(transports._FlowControlMixin,
630
+ transports.WriteTransport):
631
+
632
+ def __init__(self, loop, pipe, protocol, waiter=None, extra=None):
633
+ super().__init__(extra, loop)
634
+ self._extra['pipe'] = pipe
635
+ self._pipe = pipe
636
+ self._fileno = pipe.fileno()
637
+ self._protocol = protocol
638
+ self._buffer = bytearray()
639
+ self._conn_lost = 0
640
+ self._closing = False # Set when close() or write_eof() called.
641
+
642
+ pipe_stat = os.fstat(self._fileno)
643
+ mode = pipe_stat.st_mode
644
+ is_char = stat.S_ISCHR(mode)
645
+ is_fifo = stat.S_ISFIFO(mode)
646
+ is_socket = stat.S_ISSOCK(mode)
647
+ if not (is_char or is_fifo or is_socket):
648
+ self._pipe = None
649
+ self._fileno = None
650
+ self._protocol = None
651
+ raise ValueError("Pipe transport is only for "
652
+ "pipes, sockets and character devices")
653
+
654
+ os.set_blocking(self._fileno, False)
655
+ self._loop.call_soon(self._protocol.connection_made, self)
656
+
657
+ # On AIX, the reader trick (to be notified when the read end of the
658
+ # socket is closed) only works for sockets. On other platforms it
659
+ # works for pipes and sockets. (Exception: OS X 10.4? Issue #19294.)
660
+ # On macOS and Solaris, the trick misfires for named FIFOs (but not for
661
+ # pipes created with os.pipe(), which have st_nlink == 0): the write
662
+ # end polls as readable whenever unread data sits in the FIFO, and no
663
+ # event is delivered when the read end is closed, so it can only
664
+ # ever report a false disconnection (gh-145030). The same XNU
665
+ # behaviour applies on iOS/tvOS/watchOS (sys.platform is not
666
+ # "darwin" there).
667
+ is_named_fifo_without_close_event = (
668
+ sys.platform in {"darwin", "ios", "tvos", "watchos", "sunos5"}
669
+ and is_fifo and pipe_stat.st_nlink > 0)
670
+ if is_socket or (is_fifo
671
+ and not sys.platform.startswith("aix")
672
+ and not is_named_fifo_without_close_event):
673
+ # only start reading when connection_made() has been called
674
+ self._loop.call_soon(self._loop._add_reader,
675
+ self._fileno, self._read_ready)
676
+
677
+ if waiter is not None:
678
+ # only wake up the waiter when connection_made() has been called
679
+ self._loop.call_soon(futures._set_result_unless_cancelled,
680
+ waiter, None)
681
+
682
+ def __repr__(self):
683
+ info = [self.__class__.__name__]
684
+ if self._pipe is None:
685
+ info.append('closed')
686
+ elif self._closing:
687
+ info.append('closing')
688
+ info.append(f'fd={self._fileno}')
689
+ selector = getattr(self._loop, '_selector', None)
690
+ if self._pipe is not None and selector is not None:
691
+ polling = selector_events._test_selector_event(
692
+ selector, self._fileno, selectors.EVENT_WRITE)
693
+ if polling:
694
+ info.append('polling')
695
+ else:
696
+ info.append('idle')
697
+
698
+ bufsize = self.get_write_buffer_size()
699
+ info.append(f'bufsize={bufsize}')
700
+ elif self._pipe is not None:
701
+ info.append('open')
702
+ else:
703
+ info.append('closed')
704
+ return '<{}>'.format(' '.join(info))
705
+
706
+ def get_write_buffer_size(self):
707
+ return len(self._buffer)
708
+
709
+ def _read_ready(self):
710
+ # Pipe was closed by peer.
711
+ if self._loop.get_debug():
712
+ logger.info("%r was closed by peer", self)
713
+ if self._buffer:
714
+ self._close(BrokenPipeError())
715
+ else:
716
+ self._close()
717
+
718
+ def write(self, data):
719
+ assert isinstance(data, (bytes, bytearray, memoryview)), repr(data)
720
+ if isinstance(data, bytearray):
721
+ data = memoryview(data)
722
+ if not data:
723
+ return
724
+
725
+ if self._conn_lost or self._closing:
726
+ if self._conn_lost >= constants.LOG_THRESHOLD_FOR_CONNLOST_WRITES:
727
+ logger.warning('pipe closed by peer or '
728
+ 'os.write(pipe, data) raised exception.')
729
+ self._conn_lost += 1
730
+ return
731
+
732
+ if not self._buffer:
733
+ # Attempt to send it right away first.
734
+ try:
735
+ n = os.write(self._fileno, data)
736
+ except (BlockingIOError, InterruptedError):
737
+ n = 0
738
+ except (SystemExit, KeyboardInterrupt):
739
+ raise
740
+ except BaseException as exc:
741
+ self._conn_lost += 1
742
+ self._fatal_error(exc, 'Fatal write error on pipe transport')
743
+ return
744
+ if n == len(data):
745
+ return
746
+ elif n > 0:
747
+ data = memoryview(data)[n:]
748
+ self._loop._add_writer(self._fileno, self._write_ready)
749
+
750
+ self._buffer += data
751
+ self._maybe_pause_protocol()
752
+
753
+ def _write_ready(self):
754
+ assert self._buffer, 'Data should not be empty'
755
+
756
+ try:
757
+ n = os.write(self._fileno, self._buffer)
758
+ except (BlockingIOError, InterruptedError):
759
+ pass
760
+ except (SystemExit, KeyboardInterrupt):
761
+ raise
762
+ except BaseException as exc:
763
+ self._buffer.clear()
764
+ self._conn_lost += 1
765
+ # Remove writer here, _fatal_error() doesn't it
766
+ # because _buffer is empty.
767
+ self._loop._remove_writer(self._fileno)
768
+ self._fatal_error(exc, 'Fatal write error on pipe transport')
769
+ else:
770
+ if n == len(self._buffer):
771
+ self._buffer.clear()
772
+ self._loop._remove_writer(self._fileno)
773
+ self._maybe_resume_protocol() # May append to buffer.
774
+ if self._closing:
775
+ self._loop._remove_reader(self._fileno)
776
+ self._call_connection_lost(None)
777
+ return
778
+ elif n > 0:
779
+ del self._buffer[:n]
780
+
781
+ def can_write_eof(self):
782
+ return True
783
+
784
+ def write_eof(self):
785
+ if self._closing:
786
+ return
787
+ assert self._pipe
788
+ self._closing = True
789
+ if not self._buffer:
790
+ self._loop._remove_reader(self._fileno)
791
+ self._loop.call_soon(self._call_connection_lost, None)
792
+
793
+ def set_protocol(self, protocol):
794
+ self._protocol = protocol
795
+
796
+ def get_protocol(self):
797
+ return self._protocol
798
+
799
+ def is_closing(self):
800
+ return self._closing
801
+
802
+ def close(self):
803
+ if self._pipe is not None and not self._closing:
804
+ # write_eof is all what we needed to close the write pipe
805
+ self.write_eof()
806
+
807
+ def __del__(self, _warn=warnings.warn):
808
+ if self._pipe is not None:
809
+ _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
810
+ self._pipe.close()
811
+
812
+ def abort(self):
813
+ self._close(None)
814
+
815
+ def _fatal_error(self, exc, message='Fatal error on pipe transport'):
816
+ # should be called by exception handler only
817
+ if isinstance(exc, OSError):
818
+ if self._loop.get_debug():
819
+ logger.debug("%r: %s", self, message, exc_info=True)
820
+ else:
821
+ self._loop.call_exception_handler({
822
+ 'message': message,
823
+ 'exception': exc,
824
+ 'transport': self,
825
+ 'protocol': self._protocol,
826
+ })
827
+ self._close(exc)
828
+
829
+ def _close(self, exc=None):
830
+ self._closing = True
831
+ if self._buffer:
832
+ self._loop._remove_writer(self._fileno)
833
+ self._buffer.clear()
834
+ self._loop._remove_reader(self._fileno)
835
+ self._loop.call_soon(self._call_connection_lost, exc)
836
+
837
+ def _call_connection_lost(self, exc):
838
+ try:
839
+ self._protocol.connection_lost(exc)
840
+ finally:
841
+ self._pipe.close()
842
+ self._pipe = None
843
+ self._protocol = None
844
+ self._loop = None
845
+
846
+
847
+ class _UnixSubprocessTransport(base_subprocess.BaseSubprocessTransport):
848
+
849
+ def _start(self, args, shell, stdin, stdout, stderr, bufsize, **kwargs):
850
+ stdin_w = None
851
+ if stdin == subprocess.PIPE and sys.platform.startswith('aix'):
852
+ # Use a socket pair for stdin on AIX, since it does not
853
+ # support selecting read events on the write end of a
854
+ # socket (which we use in order to detect closing of the
855
+ # other end).
856
+ stdin, stdin_w = socket.socketpair()
857
+ try:
858
+ self._proc = subprocess.Popen(
859
+ args, shell=shell, stdin=stdin, stdout=stdout, stderr=stderr,
860
+ universal_newlines=False, bufsize=bufsize, **kwargs)
861
+ if stdin_w is not None:
862
+ stdin.close()
863
+ self._proc.stdin = open(stdin_w.detach(), 'wb', buffering=bufsize)
864
+ stdin_w = None
865
+ finally:
866
+ if stdin_w is not None:
867
+ stdin.close()
868
+ stdin_w.close()
869
+
870
+
871
+ class _PidfdChildWatcher:
872
+ """Child watcher implementation using Linux's pid file descriptors.
873
+
874
+ This child watcher polls process file descriptors (pidfds) to await child
875
+ process termination. In some respects, PidfdChildWatcher is a "Goldilocks"
876
+ child watcher implementation. It doesn't require signals or threads, doesn't
877
+ interfere with any processes launched outside the event loop, and scales
878
+ linearly with the number of subprocesses launched by the event loop. The
879
+ main disadvantage is that pidfds are specific to Linux, and only work on
880
+ recent (5.3+) kernels.
881
+ """
882
+
883
+ def add_child_handler(self, pid, callback, *args):
884
+ loop = events.get_running_loop()
885
+ pidfd = os.pidfd_open(pid)
886
+ loop._add_reader(pidfd, self._do_wait, pid, pidfd, callback, args)
887
+
888
+ def _do_wait(self, pid, pidfd, callback, args):
889
+ loop = events.get_running_loop()
890
+ loop._remove_reader(pidfd)
891
+ try:
892
+ _, status = os.waitpid(pid, 0)
893
+ except ChildProcessError:
894
+ # The child process is already reaped
895
+ # (may happen if waitpid() is called elsewhere).
896
+ returncode = 255
897
+ logger.warning(
898
+ "child process pid %d exit status already read: "
899
+ " will report returncode 255",
900
+ pid)
901
+ else:
902
+ returncode = waitstatus_to_exitcode(status)
903
+ finally:
904
+ os.close(pidfd)
905
+ callback(pid, returncode, *args)
906
+
907
+ class _ThreadedChildWatcher:
908
+ """Threaded child watcher implementation.
909
+
910
+ The watcher uses a thread per process
911
+ for waiting for the process finish.
912
+
913
+ It doesn't require subscription on POSIX signal
914
+ but a thread creation is not free.
915
+
916
+ The watcher has O(1) complexity, its performance doesn't depend
917
+ on amount of spawn processes.
918
+ """
919
+
920
+ def __init__(self):
921
+ self._pid_counter = itertools.count(0)
922
+ self._threads = {}
923
+
924
+ def __del__(self, _warn=warnings.warn):
925
+ threads = [thread for thread in list(self._threads.values())
926
+ if thread.is_alive()]
927
+ if threads:
928
+ _warn(f"{self.__class__} has registered but not finished child processes",
929
+ ResourceWarning,
930
+ source=self)
931
+
932
+ def add_child_handler(self, pid, callback, *args):
933
+ loop = events.get_running_loop()
934
+ thread = threading.Thread(target=self._do_waitpid,
935
+ name=f"asyncio-waitpid-{next(self._pid_counter)}",
936
+ args=(loop, pid, callback, args),
937
+ daemon=True)
938
+ self._threads[pid] = thread
939
+ thread.start()
940
+
941
+ def _do_waitpid(self, loop, expected_pid, callback, args):
942
+ assert expected_pid > 0
943
+
944
+ if hasattr(os, 'waitid'):
945
+ # Wait for the child process using waitid() on platforms which support it.
946
+ # WNOWAIT is used to avoid reaping the child process, allowing the event loop to
947
+ # reap the child process with waitpid() later in event loop thread.
948
+ # This makes the reaping of the child and notification of the return code
949
+ # atomic with respect to the event loop thread.
950
+ try:
951
+ os.waitid(os.P_PID, expected_pid, os.WEXITED | os.WNOWAIT)
952
+ except ChildProcessError:
953
+ # The child process is already reaped
954
+ pass
955
+ if loop.is_closed():
956
+ # loop is already closed, reap the zombie here so that it is not leaked.
957
+ pid, _ = self._reap(loop, expected_pid)
958
+ logger.warning("Loop %r that handles pid %r is closed",
959
+ loop, pid)
960
+ else:
961
+ try:
962
+ loop.call_soon_threadsafe(
963
+ self._reap_and_notify, loop, expected_pid,
964
+ callback, args)
965
+ except RuntimeError:
966
+ # The event loop was closed concurrently.
967
+ pid, _ = self._reap(loop, expected_pid)
968
+ logger.warning("Loop %r that handles pid %r is closed",
969
+ loop, pid)
970
+ else:
971
+ # Fallback for platforms that don't support waitid(): we have to
972
+ # reap the child here, which is racy with respect to send_signal()
973
+ pid, returncode = self._reap(loop, expected_pid)
974
+ if loop.is_closed():
975
+ logger.warning("Loop %r that handles pid %r is closed",
976
+ loop, pid)
977
+ else:
978
+ loop.call_soon_threadsafe(callback, pid, returncode, *args)
979
+
980
+ self._threads.pop(expected_pid)
981
+
982
+ def _reap_and_notify(self, loop, expected_pid, callback, args):
983
+ pid, returncode = self._reap(loop, expected_pid)
984
+ callback(pid, returncode, *args)
985
+
986
+ def _reap(self, loop, expected_pid):
987
+ try:
988
+ pid, status = os.waitpid(expected_pid, 0)
989
+ except ChildProcessError:
990
+ # The child process is already reaped
991
+ # (may happen if waitpid() is called elsewhere).
992
+ pid = expected_pid
993
+ returncode = 255
994
+ logger.warning(
995
+ "Unknown child process pid %d, will report returncode 255",
996
+ pid)
997
+ else:
998
+ returncode = waitstatus_to_exitcode(status)
999
+ if loop.get_debug():
1000
+ logger.debug('process %s exited with returncode %s',
1001
+ expected_pid, returncode)
1002
+ return pid, returncode
1003
+
1004
+ def can_use_pidfd():
1005
+ if not hasattr(os, 'pidfd_open'):
1006
+ return False
1007
+ try:
1008
+ pid = os.getpid()
1009
+ os.close(os.pidfd_open(pid, 0))
1010
+ except OSError:
1011
+ # blocked by security policy like SECCOMP
1012
+ return False
1013
+ return True
1014
+
1015
+
1016
+ class _UnixDefaultEventLoopPolicy(events._BaseDefaultEventLoopPolicy):
1017
+ """UNIX event loop policy"""
1018
+ _loop_factory = _UnixSelectorEventLoop
1019
+
1020
+
1021
+ SelectorEventLoop = _UnixSelectorEventLoop
1022
+ _DefaultEventLoopPolicy = _UnixDefaultEventLoopPolicy
1023
+ EventLoop = SelectorEventLoop