@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,1438 @@
1
+ #
2
+ # Module providing manager classes for dealing
3
+ # with shared objects
4
+ #
5
+ # multiprocessing/managers.py
6
+ #
7
+ # Copyright (c) 2006-2008, R Oudkerk
8
+ # Licensed to PSF under a Contributor Agreement.
9
+ #
10
+
11
+ __all__ = [ 'BaseManager', 'SyncManager', 'BaseProxy', 'Token' ]
12
+
13
+ #
14
+ # Imports
15
+ #
16
+
17
+ import sys
18
+ import threading
19
+ import signal
20
+ import array
21
+ import collections.abc
22
+ import queue
23
+ import time
24
+ import types
25
+ import os
26
+ from os import getpid
27
+
28
+ from traceback import format_exc
29
+
30
+ from . import connection
31
+ from .context import reduction, get_spawning_popen, ProcessError
32
+ from . import pool
33
+ from . import process
34
+ from . import util
35
+ from . import get_context
36
+ try:
37
+ from . import shared_memory
38
+ except ImportError:
39
+ HAS_SHMEM = False
40
+ else:
41
+ HAS_SHMEM = True
42
+ __all__.append('SharedMemoryManager')
43
+
44
+ #
45
+ # Register some things for pickling
46
+ #
47
+
48
+ def reduce_array(a):
49
+ return array.array, (a.typecode, a.tobytes())
50
+ reduction.register(array.array, reduce_array)
51
+
52
+ view_types = [type(getattr({}, name)()) for name in ('items','keys','values')]
53
+ def rebuild_as_list(obj):
54
+ return list, (list(obj),)
55
+ for view_type in view_types:
56
+ reduction.register(view_type, rebuild_as_list)
57
+ del view_type, view_types
58
+
59
+ #
60
+ # Type for identifying shared objects
61
+ #
62
+
63
+ class Token(object):
64
+ '''
65
+ Type to uniquely identify a shared object
66
+ '''
67
+ __slots__ = ('typeid', 'address', 'id')
68
+
69
+ def __init__(self, typeid, address, id):
70
+ (self.typeid, self.address, self.id) = (typeid, address, id)
71
+
72
+ def __getstate__(self):
73
+ return (self.typeid, self.address, self.id)
74
+
75
+ def __setstate__(self, state):
76
+ (self.typeid, self.address, self.id) = state
77
+
78
+ def __repr__(self):
79
+ return '%s(typeid=%r, address=%r, id=%r)' % \
80
+ (self.__class__.__name__, self.typeid, self.address, self.id)
81
+
82
+ #
83
+ # Function for communication with a manager's server process
84
+ #
85
+
86
+ def dispatch(c, id, methodname, args=(), kwds={}):
87
+ '''
88
+ Send a message to manager using connection `c` and return response
89
+ '''
90
+ c.send((id, methodname, args, kwds))
91
+ kind, result = c.recv()
92
+ if kind == '#RETURN':
93
+ return result
94
+ try:
95
+ raise convert_to_error(kind, result)
96
+ finally:
97
+ del result # break reference cycle
98
+
99
+ def convert_to_error(kind, result):
100
+ if kind == '#ERROR':
101
+ return result
102
+ elif kind in ('#TRACEBACK', '#UNSERIALIZABLE'):
103
+ if not isinstance(result, str):
104
+ raise TypeError(
105
+ "Result {0!r} (kind '{1}') type is {2}, not str".format(
106
+ result, kind, type(result)))
107
+ if kind == '#UNSERIALIZABLE':
108
+ return RemoteError('Unserializable message: %s\n' % result)
109
+ else:
110
+ return RemoteError(result)
111
+ else:
112
+ return ValueError('Unrecognized message type {!r}'.format(kind))
113
+
114
+ class RemoteError(Exception):
115
+ def __str__(self):
116
+ return ('\n' + '-'*75 + '\n' + str(self.args[0]) + '-'*75)
117
+
118
+ #
119
+ # Functions for finding the method names of an object
120
+ #
121
+
122
+ def all_methods(obj):
123
+ '''
124
+ Return a list of names of methods of `obj`
125
+ '''
126
+ temp = []
127
+ for name in dir(obj):
128
+ func = getattr(obj, name)
129
+ if callable(func):
130
+ temp.append(name)
131
+ return temp
132
+
133
+ def public_methods(obj):
134
+ '''
135
+ Return a list of names of methods of `obj` which do not start with '_'
136
+ '''
137
+ return [name for name in all_methods(obj) if name[0] != '_']
138
+
139
+ #
140
+ # Server which is run in a process controlled by a manager
141
+ #
142
+
143
+ class Server(object):
144
+ '''
145
+ Server class which runs in a process controlled by a manager object
146
+ '''
147
+ public = ['shutdown', 'create', 'accept_connection', 'get_methods',
148
+ 'debug_info', 'number_of_objects', 'dummy', 'incref', 'decref']
149
+
150
+ def __init__(self, registry, address, authkey, serializer):
151
+ if not isinstance(authkey, bytes):
152
+ raise TypeError(
153
+ "Authkey {0!r} is type {1!s}, not bytes".format(
154
+ authkey, type(authkey)))
155
+ self.registry = registry
156
+ self.authkey = process.AuthenticationString(authkey)
157
+ Listener, Client = listener_client[serializer]
158
+
159
+ # do authentication later
160
+ self.listener = Listener(address=address, backlog=128)
161
+ self.address = self.listener.address
162
+
163
+ self.id_to_obj = {'0': (None, ())}
164
+ self.id_to_refcount = {}
165
+ self.id_to_local_proxy_obj = {}
166
+ self.mutex = threading.Lock()
167
+
168
+ def serve_forever(self):
169
+ '''
170
+ Run the server forever
171
+ '''
172
+ self.stop_event = threading.Event()
173
+ process.current_process()._manager_server = self
174
+ try:
175
+ accepter = threading.Thread(target=self.accepter)
176
+ accepter.daemon = True
177
+ accepter.start()
178
+ try:
179
+ while not self.stop_event.is_set():
180
+ self.stop_event.wait(1)
181
+ except (KeyboardInterrupt, SystemExit):
182
+ pass
183
+ finally:
184
+ if sys.stdout != sys.__stdout__: # what about stderr?
185
+ util.debug('resetting stdout, stderr')
186
+ sys.stdout = sys.__stdout__
187
+ sys.stderr = sys.__stderr__
188
+ sys.exit(0)
189
+
190
+ def accepter(self):
191
+ while True:
192
+ try:
193
+ c = self.listener.accept()
194
+ except OSError:
195
+ continue
196
+ t = threading.Thread(target=self.handle_request, args=(c,))
197
+ t.daemon = True
198
+ t.start()
199
+
200
+ def _handle_request(self, c):
201
+ request = None
202
+ try:
203
+ connection.deliver_challenge(c, self.authkey)
204
+ connection.answer_challenge(c, self.authkey)
205
+ request = c.recv()
206
+ ignore, funcname, args, kwds = request
207
+ assert funcname in self.public, '%r unrecognized' % funcname
208
+ func = getattr(self, funcname)
209
+ except Exception:
210
+ msg = ('#TRACEBACK', format_exc())
211
+ else:
212
+ try:
213
+ result = func(c, *args, **kwds)
214
+ except Exception:
215
+ msg = ('#TRACEBACK', format_exc())
216
+ else:
217
+ msg = ('#RETURN', result)
218
+
219
+ try:
220
+ c.send(msg)
221
+ except Exception as e:
222
+ try:
223
+ c.send(('#TRACEBACK', format_exc()))
224
+ except Exception:
225
+ pass
226
+ util.info('Failure to send message: %r', msg)
227
+ util.info(' ... request was %r', request)
228
+ util.info(' ... exception was %r', e)
229
+
230
+ def handle_request(self, conn):
231
+ '''
232
+ Handle a new connection
233
+ '''
234
+ try:
235
+ self._handle_request(conn)
236
+ except SystemExit:
237
+ # Server.serve_client() calls sys.exit(0) on EOF
238
+ pass
239
+ finally:
240
+ conn.close()
241
+
242
+ def serve_client(self, conn):
243
+ '''
244
+ Handle requests from the proxies in a particular process/thread
245
+ '''
246
+ util.debug('starting server thread to service %r',
247
+ threading.current_thread().name)
248
+
249
+ recv = conn.recv
250
+ send = conn.send
251
+ id_to_obj = self.id_to_obj
252
+
253
+ while not self.stop_event.is_set():
254
+
255
+ try:
256
+ methodname = obj = None
257
+ request = recv()
258
+ ident, methodname, args, kwds = request
259
+ try:
260
+ obj, exposed, gettypeid = id_to_obj[ident]
261
+ except KeyError as ke:
262
+ try:
263
+ obj, exposed, gettypeid = \
264
+ self.id_to_local_proxy_obj[ident]
265
+ except KeyError:
266
+ raise ke
267
+
268
+ if methodname not in exposed:
269
+ raise AttributeError(
270
+ 'method %r of %r object is not in exposed=%r' %
271
+ (methodname, type(obj), exposed)
272
+ )
273
+
274
+ function = getattr(obj, methodname)
275
+
276
+ try:
277
+ res = function(*args, **kwds)
278
+ except Exception as e:
279
+ msg = ('#ERROR', e)
280
+ else:
281
+ typeid = gettypeid and gettypeid.get(methodname, None)
282
+ if typeid:
283
+ rident, rexposed = self.create(conn, typeid, res)
284
+ token = Token(typeid, self.address, rident)
285
+ msg = ('#PROXY', (rexposed, token))
286
+ else:
287
+ msg = ('#RETURN', res)
288
+
289
+ except AttributeError:
290
+ if methodname is None:
291
+ msg = ('#TRACEBACK', format_exc())
292
+ else:
293
+ try:
294
+ fallback_func = self.fallback_mapping[methodname]
295
+ result = fallback_func(
296
+ self, conn, ident, obj, *args, **kwds
297
+ )
298
+ msg = ('#RETURN', result)
299
+ except Exception:
300
+ msg = ('#TRACEBACK', format_exc())
301
+
302
+ except EOFError:
303
+ util.debug('got EOF -- exiting thread serving %r',
304
+ threading.current_thread().name)
305
+ sys.exit(0)
306
+
307
+ except Exception:
308
+ msg = ('#TRACEBACK', format_exc())
309
+
310
+ try:
311
+ try:
312
+ send(msg)
313
+ except Exception:
314
+ send(('#UNSERIALIZABLE', format_exc()))
315
+ except Exception as e:
316
+ util.info('exception in thread serving %r',
317
+ threading.current_thread().name)
318
+ util.info(' ... message was %r', msg)
319
+ util.info(' ... exception was %r', e)
320
+ conn.close()
321
+ sys.exit(1)
322
+
323
+ def fallback_getvalue(self, conn, ident, obj):
324
+ return obj
325
+
326
+ def fallback_str(self, conn, ident, obj):
327
+ return str(obj)
328
+
329
+ def fallback_repr(self, conn, ident, obj):
330
+ return repr(obj)
331
+
332
+ fallback_mapping = {
333
+ '__str__':fallback_str,
334
+ '__repr__':fallback_repr,
335
+ '#GETVALUE':fallback_getvalue
336
+ }
337
+
338
+ def dummy(self, c):
339
+ pass
340
+
341
+ def debug_info(self, c):
342
+ '''
343
+ Return some info --- useful to spot problems with refcounting
344
+ '''
345
+ # Perhaps include debug info about 'c'?
346
+ with self.mutex:
347
+ result = []
348
+ keys = list(self.id_to_refcount.keys())
349
+ keys.sort()
350
+ for ident in keys:
351
+ if ident != '0':
352
+ result.append(' %s: refcount=%s\n %s' %
353
+ (ident, self.id_to_refcount[ident],
354
+ str(self.id_to_obj[ident][0])[:75]))
355
+ return '\n'.join(result)
356
+
357
+ def number_of_objects(self, c):
358
+ '''
359
+ Number of shared objects
360
+ '''
361
+ # Doesn't use (len(self.id_to_obj) - 1) as we shouldn't count ident='0'
362
+ return len(self.id_to_refcount)
363
+
364
+ def shutdown(self, c):
365
+ '''
366
+ Shutdown this process
367
+ '''
368
+ try:
369
+ util.debug('manager received shutdown message')
370
+ c.send(('#RETURN', None))
371
+ except:
372
+ import traceback
373
+ traceback.print_exc()
374
+ finally:
375
+ self.stop_event.set()
376
+
377
+ def create(self, c, typeid, /, *args, **kwds):
378
+ '''
379
+ Create a new shared object and return its id
380
+ '''
381
+ with self.mutex:
382
+ callable, exposed, method_to_typeid, proxytype = \
383
+ self.registry[typeid]
384
+
385
+ if callable is None:
386
+ if kwds or (len(args) != 1):
387
+ raise ValueError(
388
+ "Without callable, must have one non-keyword argument")
389
+ obj = args[0]
390
+ else:
391
+ obj = callable(*args, **kwds)
392
+
393
+ if exposed is None:
394
+ exposed = public_methods(obj)
395
+ if method_to_typeid is not None:
396
+ if not isinstance(method_to_typeid, dict):
397
+ raise TypeError(
398
+ "Method_to_typeid {0!r}: type {1!s}, not dict".format(
399
+ method_to_typeid, type(method_to_typeid)))
400
+ exposed = list(exposed) + list(method_to_typeid)
401
+
402
+ ident = '%x' % id(obj) # convert to string because xmlrpclib
403
+ # only has 32 bit signed integers
404
+ util.debug('%r callable returned object with id %r', typeid, ident)
405
+
406
+ self.id_to_obj[ident] = (obj, set(exposed), method_to_typeid)
407
+ if ident not in self.id_to_refcount:
408
+ self.id_to_refcount[ident] = 0
409
+
410
+ self.incref(c, ident)
411
+ return ident, tuple(exposed)
412
+
413
+ def get_methods(self, c, token):
414
+ '''
415
+ Return the methods of the shared object indicated by token
416
+ '''
417
+ return tuple(self.id_to_obj[token.id][1])
418
+
419
+ def accept_connection(self, c, name):
420
+ '''
421
+ Spawn a new thread to serve this connection
422
+ '''
423
+ threading.current_thread().name = name
424
+ c.send(('#RETURN', None))
425
+ self.serve_client(c)
426
+
427
+ def incref(self, c, ident):
428
+ with self.mutex:
429
+ try:
430
+ self.id_to_refcount[ident] += 1
431
+ except KeyError as ke:
432
+ # If no external references exist but an internal (to the
433
+ # manager) still does and a new external reference is created
434
+ # from it, restore the manager's tracking of it from the
435
+ # previously stashed internal ref.
436
+ if ident in self.id_to_local_proxy_obj:
437
+ self.id_to_refcount[ident] = 1
438
+ self.id_to_obj[ident] = \
439
+ self.id_to_local_proxy_obj[ident]
440
+ util.debug('Server re-enabled tracking & INCREF %r', ident)
441
+ else:
442
+ raise ke
443
+
444
+ def decref(self, c, ident):
445
+ if ident not in self.id_to_refcount and \
446
+ ident in self.id_to_local_proxy_obj:
447
+ util.debug('Server DECREF skipping %r', ident)
448
+ return
449
+
450
+ with self.mutex:
451
+ if self.id_to_refcount[ident] <= 0:
452
+ raise AssertionError(
453
+ "Id {0!s} ({1!r}) has refcount {2:n}, not 1+".format(
454
+ ident, self.id_to_obj[ident],
455
+ self.id_to_refcount[ident]))
456
+ self.id_to_refcount[ident] -= 1
457
+ if self.id_to_refcount[ident] == 0:
458
+ del self.id_to_refcount[ident]
459
+
460
+ if ident not in self.id_to_refcount:
461
+ # Two-step process in case the object turns out to contain other
462
+ # proxy objects (e.g. a managed list of managed lists).
463
+ # Otherwise, deleting self.id_to_obj[ident] would trigger the
464
+ # deleting of the stored value (another managed object) which would
465
+ # in turn attempt to acquire the mutex that is already held here.
466
+ self.id_to_obj[ident] = (None, (), None) # thread-safe
467
+ util.debug('disposing of obj with id %r', ident)
468
+ with self.mutex:
469
+ del self.id_to_obj[ident]
470
+
471
+
472
+ #
473
+ # Class to represent state of a manager
474
+ #
475
+
476
+ class State(object):
477
+ __slots__ = ['value']
478
+ INITIAL = 0
479
+ STARTED = 1
480
+ SHUTDOWN = 2
481
+
482
+ #
483
+ # Mapping from serializer name to Listener and Client types
484
+ #
485
+
486
+ listener_client = {
487
+ 'pickle' : (connection.Listener, connection.Client),
488
+ 'xmlrpclib' : (connection.XmlListener, connection.XmlClient)
489
+ }
490
+
491
+ #
492
+ # Definition of BaseManager
493
+ #
494
+
495
+ class BaseManager(object):
496
+ '''
497
+ Base class for managers
498
+ '''
499
+ _registry = {}
500
+ _Server = Server
501
+
502
+ def __init__(self, address=None, authkey=None, serializer='pickle',
503
+ ctx=None, *, shutdown_timeout=1.0):
504
+ if authkey is None:
505
+ authkey = process.current_process().authkey
506
+ self._address = address # XXX not final address if eg ('', 0)
507
+ self._authkey = process.AuthenticationString(authkey)
508
+ self._state = State()
509
+ self._state.value = State.INITIAL
510
+ self._serializer = serializer
511
+ self._Listener, self._Client = listener_client[serializer]
512
+ self._ctx = ctx or get_context()
513
+ self._shutdown_timeout = shutdown_timeout
514
+
515
+ def get_server(self):
516
+ '''
517
+ Return server object with serve_forever() method and address attribute
518
+ '''
519
+ if self._state.value != State.INITIAL:
520
+ if self._state.value == State.STARTED:
521
+ raise ProcessError("Already started server")
522
+ elif self._state.value == State.SHUTDOWN:
523
+ raise ProcessError("Manager has shut down")
524
+ else:
525
+ raise ProcessError(
526
+ "Unknown state {!r}".format(self._state.value))
527
+ return Server(self._registry, self._address,
528
+ self._authkey, self._serializer)
529
+
530
+ def connect(self):
531
+ '''
532
+ Connect manager object to the server process
533
+ '''
534
+ Listener, Client = listener_client[self._serializer]
535
+ conn = Client(self._address, authkey=self._authkey)
536
+ dispatch(conn, None, 'dummy')
537
+ self._state.value = State.STARTED
538
+
539
+ def start(self, initializer=None, initargs=()):
540
+ '''
541
+ Spawn a server process for this manager object
542
+ '''
543
+ if self._state.value != State.INITIAL:
544
+ if self._state.value == State.STARTED:
545
+ raise ProcessError("Already started server")
546
+ elif self._state.value == State.SHUTDOWN:
547
+ raise ProcessError("Manager has shut down")
548
+ else:
549
+ raise ProcessError(
550
+ "Unknown state {!r}".format(self._state.value))
551
+
552
+ if initializer is not None and not callable(initializer):
553
+ raise TypeError('initializer must be a callable')
554
+
555
+ # pipe over which we will retrieve address of server
556
+ reader, writer = connection.Pipe(duplex=False)
557
+
558
+ # spawn process which runs a server
559
+ self._process = self._ctx.Process(
560
+ target=type(self)._run_server,
561
+ args=(self._registry, self._address, self._authkey,
562
+ self._serializer, writer, initializer, initargs),
563
+ )
564
+ ident = ':'.join(str(i) for i in self._process._identity)
565
+ self._process.name = type(self).__name__ + '-' + ident
566
+ self._process.start()
567
+
568
+ # get address of server
569
+ writer.close()
570
+ self._address = reader.recv()
571
+ reader.close()
572
+
573
+ # register a finalizer
574
+ self._state.value = State.STARTED
575
+ self.shutdown = util.Finalize(
576
+ self, type(self)._finalize_manager,
577
+ args=(self._process, self._address, self._authkey, self._state,
578
+ self._Client, self._shutdown_timeout),
579
+ exitpriority=0
580
+ )
581
+
582
+ @classmethod
583
+ def _run_server(cls, registry, address, authkey, serializer, writer,
584
+ initializer=None, initargs=()):
585
+ '''
586
+ Create a server, report its address and run it
587
+ '''
588
+ # bpo-36368: protect server process from KeyboardInterrupt signals
589
+ signal.signal(signal.SIGINT, signal.SIG_IGN)
590
+
591
+ if initializer is not None:
592
+ initializer(*initargs)
593
+
594
+ # create server
595
+ server = cls._Server(registry, address, authkey, serializer)
596
+
597
+ # inform parent process of the server's address
598
+ writer.send(server.address)
599
+ writer.close()
600
+
601
+ # run the manager
602
+ util.info('manager serving at %r', server.address)
603
+ server.serve_forever()
604
+
605
+ def _create(self, typeid, /, *args, **kwds):
606
+ '''
607
+ Create a new shared object; return the token and exposed tuple
608
+ '''
609
+ assert self._state.value == State.STARTED, 'server not yet started'
610
+ conn = self._Client(self._address, authkey=self._authkey)
611
+ try:
612
+ id, exposed = dispatch(conn, None, 'create', (typeid,)+args, kwds)
613
+ finally:
614
+ conn.close()
615
+ return Token(typeid, self._address, id), exposed
616
+
617
+ def join(self, timeout=None):
618
+ '''
619
+ Join the manager process (if it has been spawned)
620
+ '''
621
+ if self._process is not None:
622
+ self._process.join(timeout)
623
+ if not self._process.is_alive():
624
+ self._process = None
625
+
626
+ def _debug_info(self):
627
+ '''
628
+ Return some info about the servers shared objects and connections
629
+ '''
630
+ conn = self._Client(self._address, authkey=self._authkey)
631
+ try:
632
+ return dispatch(conn, None, 'debug_info')
633
+ finally:
634
+ conn.close()
635
+
636
+ def _number_of_objects(self):
637
+ '''
638
+ Return the number of shared objects
639
+ '''
640
+ conn = self._Client(self._address, authkey=self._authkey)
641
+ try:
642
+ return dispatch(conn, None, 'number_of_objects')
643
+ finally:
644
+ conn.close()
645
+
646
+ def __enter__(self):
647
+ if self._state.value == State.INITIAL:
648
+ self.start()
649
+ if self._state.value != State.STARTED:
650
+ if self._state.value == State.INITIAL:
651
+ raise ProcessError("Unable to start server")
652
+ elif self._state.value == State.SHUTDOWN:
653
+ raise ProcessError("Manager has shut down")
654
+ else:
655
+ raise ProcessError(
656
+ "Unknown state {!r}".format(self._state.value))
657
+ return self
658
+
659
+ def __exit__(self, exc_type, exc_val, exc_tb):
660
+ self.shutdown()
661
+
662
+ @staticmethod
663
+ def _finalize_manager(process, address, authkey, state, _Client,
664
+ shutdown_timeout):
665
+ '''
666
+ Shutdown the manager process; will be registered as a finalizer
667
+ '''
668
+ if process.is_alive():
669
+ util.info('sending shutdown message to manager')
670
+ try:
671
+ conn = _Client(address, authkey=authkey)
672
+ try:
673
+ dispatch(conn, None, 'shutdown')
674
+ finally:
675
+ conn.close()
676
+ except Exception:
677
+ pass
678
+
679
+ process.join(timeout=shutdown_timeout)
680
+ if process.is_alive():
681
+ util.info('manager still alive')
682
+ if hasattr(process, 'terminate'):
683
+ util.info('trying to `terminate()` manager process')
684
+ process.terminate()
685
+ process.join(timeout=shutdown_timeout)
686
+ if process.is_alive():
687
+ util.info('manager still alive after terminate')
688
+ process.kill()
689
+ process.join()
690
+
691
+ state.value = State.SHUTDOWN
692
+ try:
693
+ del BaseProxy._address_to_local[address]
694
+ except KeyError:
695
+ pass
696
+
697
+ @property
698
+ def address(self):
699
+ return self._address
700
+
701
+ @classmethod
702
+ def register(cls, typeid, callable=None, proxytype=None, exposed=None,
703
+ method_to_typeid=None, create_method=True):
704
+ '''
705
+ Register a typeid with the manager type
706
+ '''
707
+ if '_registry' not in cls.__dict__:
708
+ cls._registry = cls._registry.copy()
709
+
710
+ if proxytype is None:
711
+ proxytype = AutoProxy
712
+
713
+ exposed = exposed or getattr(proxytype, '_exposed_', None)
714
+
715
+ method_to_typeid = method_to_typeid or \
716
+ getattr(proxytype, '_method_to_typeid_', None)
717
+
718
+ if method_to_typeid:
719
+ for key, value in list(method_to_typeid.items()): # isinstance?
720
+ assert type(key) is str, '%r is not a string' % key
721
+ assert type(value) is str, '%r is not a string' % value
722
+
723
+ cls._registry[typeid] = (
724
+ callable, exposed, method_to_typeid, proxytype
725
+ )
726
+
727
+ if create_method:
728
+ def temp(self, /, *args, **kwds):
729
+ util.debug('requesting creation of a shared %r object', typeid)
730
+ token, exp = self._create(typeid, *args, **kwds)
731
+ proxy = proxytype(
732
+ token, self._serializer, manager=self,
733
+ authkey=self._authkey, exposed=exp
734
+ )
735
+ conn = self._Client(token.address, authkey=self._authkey)
736
+ dispatch(conn, None, 'decref', (token.id,))
737
+ return proxy
738
+ temp.__name__ = typeid
739
+ setattr(cls, typeid, temp)
740
+
741
+ #
742
+ # Subclass of set which get cleared after a fork
743
+ #
744
+
745
+ class ProcessLocalSet(set):
746
+ def __init__(self):
747
+ util.register_after_fork(self, lambda obj: obj.clear())
748
+ def __reduce__(self):
749
+ return type(self), ()
750
+
751
+ #
752
+ # Definition of BaseProxy
753
+ #
754
+
755
+ class BaseProxy(object):
756
+ '''
757
+ A base for proxies of shared objects
758
+ '''
759
+ _address_to_local = {}
760
+ _mutex = util.ForkAwareThreadLock()
761
+
762
+ # Each instance gets a `_serial` number. Unlike `id(...)`, this number
763
+ # is never reused.
764
+ _next_serial = 1
765
+
766
+ def __init__(self, token, serializer, manager=None,
767
+ authkey=None, exposed=None, incref=True, manager_owned=False):
768
+ with BaseProxy._mutex:
769
+ tls_serials = BaseProxy._address_to_local.get(token.address, None)
770
+ if tls_serials is None:
771
+ tls_serials = util.ForkAwareLocal(), ProcessLocalSet()
772
+ BaseProxy._address_to_local[token.address] = tls_serials
773
+
774
+ self._serial = BaseProxy._next_serial
775
+ BaseProxy._next_serial += 1
776
+
777
+ # self._tls is used to record the connection used by this
778
+ # thread to communicate with the manager at token.address
779
+ self._tls = tls_serials[0]
780
+
781
+ # self._all_serials is a set used to record the identities of all
782
+ # shared objects for which the current process owns references and
783
+ # which are in the manager at token.address
784
+ self._all_serials = tls_serials[1]
785
+
786
+ self._token = token
787
+ self._id = self._token.id
788
+ self._manager = manager
789
+ self._serializer = serializer
790
+ self._Client = listener_client[serializer][1]
791
+
792
+ # Should be set to True only when a proxy object is being created
793
+ # on the manager server; primary use case: nested proxy objects.
794
+ # RebuildProxy detects when a proxy is being created on the manager
795
+ # and sets this value appropriately.
796
+ self._owned_by_manager = manager_owned
797
+
798
+ if authkey is not None:
799
+ self._authkey = process.AuthenticationString(authkey)
800
+ elif self._manager is not None:
801
+ self._authkey = self._manager._authkey
802
+ else:
803
+ self._authkey = process.current_process().authkey
804
+
805
+ if incref:
806
+ self._incref()
807
+
808
+ util.register_after_fork(self, BaseProxy._after_fork)
809
+
810
+ def _connect(self):
811
+ util.debug('making connection to manager')
812
+ name = process.current_process().name
813
+ if threading.current_thread().name != 'MainThread':
814
+ name += '|' + threading.current_thread().name
815
+ conn = self._Client(self._token.address, authkey=self._authkey)
816
+ dispatch(conn, None, 'accept_connection', (name,))
817
+ self._tls.connection = conn
818
+
819
+ def _callmethod(self, methodname, args=(), kwds={}):
820
+ '''
821
+ Try to call a method of the referent and return a copy of the result
822
+ '''
823
+ try:
824
+ conn = self._tls.connection
825
+ except AttributeError:
826
+ util.debug('thread %r does not own a connection',
827
+ threading.current_thread().name)
828
+ self._connect()
829
+ conn = self._tls.connection
830
+
831
+ conn.send((self._id, methodname, args, kwds))
832
+ kind, result = conn.recv()
833
+
834
+ if kind == '#RETURN':
835
+ return result
836
+ elif kind == '#PROXY':
837
+ exposed, token = result
838
+ proxytype = self._manager._registry[token.typeid][-1]
839
+ token.address = self._token.address
840
+ proxy = proxytype(
841
+ token, self._serializer, manager=self._manager,
842
+ authkey=self._authkey, exposed=exposed
843
+ )
844
+ conn = self._Client(token.address, authkey=self._authkey)
845
+ dispatch(conn, None, 'decref', (token.id,))
846
+ return proxy
847
+ try:
848
+ raise convert_to_error(kind, result)
849
+ finally:
850
+ del result # break reference cycle
851
+
852
+ def _getvalue(self):
853
+ '''
854
+ Get a copy of the value of the referent
855
+ '''
856
+ return self._callmethod('#GETVALUE')
857
+
858
+ def _incref(self):
859
+ if self._owned_by_manager:
860
+ util.debug('owned_by_manager skipped INCREF of %r', self._token.id)
861
+ return
862
+
863
+ conn = self._Client(self._token.address, authkey=self._authkey)
864
+ dispatch(conn, None, 'incref', (self._id,))
865
+ util.debug('INCREF %r', self._token.id)
866
+
867
+ self._all_serials.add(self._serial)
868
+
869
+ state = self._manager and self._manager._state
870
+
871
+ self._close = util.Finalize(
872
+ self, BaseProxy._decref,
873
+ args=(self._token, self._serial, self._authkey, state,
874
+ self._tls, self._all_serials, self._Client),
875
+ exitpriority=10
876
+ )
877
+
878
+ @staticmethod
879
+ def _decref(token, serial, authkey, state, tls, idset, _Client):
880
+ idset.discard(serial)
881
+
882
+ # check whether manager is still alive
883
+ if state is None or state.value == State.STARTED:
884
+ # tell manager this process no longer cares about referent
885
+ try:
886
+ util.debug('DECREF %r', token.id)
887
+ conn = _Client(token.address, authkey=authkey)
888
+ dispatch(conn, None, 'decref', (token.id,))
889
+ except Exception as e:
890
+ util.debug('... decref failed %s', e)
891
+
892
+ else:
893
+ util.debug('DECREF %r -- manager already shutdown', token.id)
894
+
895
+ # check whether we can close this thread's connection because
896
+ # the process owns no more references to objects for this manager
897
+ if not idset and hasattr(tls, 'connection'):
898
+ util.debug('thread %r has no more proxies so closing conn',
899
+ threading.current_thread().name)
900
+ tls.connection.close()
901
+ del tls.connection
902
+
903
+ def _after_fork(self):
904
+ self._manager = None
905
+ try:
906
+ self._incref()
907
+ except Exception as e:
908
+ # the proxy may just be for a manager which has shutdown
909
+ util.info('incref failed: %s' % e)
910
+
911
+ def __reduce__(self):
912
+ kwds = {}
913
+ if get_spawning_popen() is not None:
914
+ kwds['authkey'] = self._authkey
915
+
916
+ if getattr(self, '_isauto', False):
917
+ kwds['exposed'] = self._exposed_
918
+ return (RebuildProxy,
919
+ (AutoProxy, self._token, self._serializer, kwds))
920
+ else:
921
+ return (RebuildProxy,
922
+ (type(self), self._token, self._serializer, kwds))
923
+
924
+ def __deepcopy__(self, memo):
925
+ return self._getvalue()
926
+
927
+ def __repr__(self):
928
+ return '<%s object, typeid %r at %#x>' % \
929
+ (type(self).__name__, self._token.typeid, id(self))
930
+
931
+ def __str__(self):
932
+ '''
933
+ Return representation of the referent (or a fall-back if that fails)
934
+ '''
935
+ try:
936
+ return self._callmethod('__repr__')
937
+ except Exception:
938
+ return repr(self)[:-1] + "; '__str__()' failed>"
939
+
940
+ #
941
+ # Function used for unpickling
942
+ #
943
+
944
+ def RebuildProxy(func, token, serializer, kwds):
945
+ '''
946
+ Function used for unpickling proxy objects.
947
+ '''
948
+ server = getattr(process.current_process(), '_manager_server', None)
949
+ if server and server.address == token.address:
950
+ util.debug('Rebuild a proxy owned by manager, token=%r', token)
951
+ kwds['manager_owned'] = True
952
+ if token.id not in server.id_to_local_proxy_obj:
953
+ server.id_to_local_proxy_obj[token.id] = \
954
+ server.id_to_obj[token.id]
955
+ incref = (
956
+ kwds.pop('incref', True) and
957
+ not getattr(process.current_process(), '_inheriting', False)
958
+ )
959
+ return func(token, serializer, incref=incref, **kwds)
960
+
961
+ #
962
+ # Functions to create proxies and proxy types
963
+ #
964
+
965
+ def MakeProxyType(name, exposed, _cache={}):
966
+ '''
967
+ Return a proxy type whose methods are given by `exposed`
968
+ '''
969
+ exposed = tuple(exposed)
970
+ try:
971
+ return _cache[(name, exposed)]
972
+ except KeyError:
973
+ pass
974
+
975
+ dic = {}
976
+
977
+ for meth in exposed:
978
+ exec('''def %s(self, /, *args, **kwds):
979
+ return self._callmethod(%r, args, kwds)''' % (meth, meth), dic)
980
+
981
+ ProxyType = type(name, (BaseProxy,), dic)
982
+ ProxyType._exposed_ = exposed
983
+ _cache[(name, exposed)] = ProxyType
984
+ return ProxyType
985
+
986
+
987
+ def AutoProxy(token, serializer, manager=None, authkey=None,
988
+ exposed=None, incref=True, manager_owned=False):
989
+ '''
990
+ Return an auto-proxy for `token`
991
+ '''
992
+ _Client = listener_client[serializer][1]
993
+
994
+ if exposed is None:
995
+ conn = _Client(token.address, authkey=authkey)
996
+ try:
997
+ exposed = dispatch(conn, None, 'get_methods', (token,))
998
+ finally:
999
+ conn.close()
1000
+
1001
+ if authkey is None and manager is not None:
1002
+ authkey = manager._authkey
1003
+ if authkey is None:
1004
+ authkey = process.current_process().authkey
1005
+
1006
+ ProxyType = MakeProxyType('AutoProxy[%s]' % token.typeid, exposed)
1007
+ proxy = ProxyType(token, serializer, manager=manager, authkey=authkey,
1008
+ incref=incref, manager_owned=manager_owned)
1009
+ proxy._isauto = True
1010
+ return proxy
1011
+
1012
+ #
1013
+ # Types/callables which we will register with SyncManager
1014
+ #
1015
+
1016
+ class Namespace(object):
1017
+ def __init__(self, /, **kwds):
1018
+ self.__dict__.update(kwds)
1019
+ def __repr__(self):
1020
+ items = list(self.__dict__.items())
1021
+ temp = []
1022
+ for name, value in items:
1023
+ if not name.startswith('_'):
1024
+ temp.append('%s=%r' % (name, value))
1025
+ temp.sort()
1026
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(temp))
1027
+
1028
+ class Value(object):
1029
+ def __init__(self, typecode, value, lock=True):
1030
+ self._typecode = typecode
1031
+ self._value = value
1032
+ def get(self):
1033
+ return self._value
1034
+ def set(self, value):
1035
+ self._value = value
1036
+ def __repr__(self):
1037
+ return '%s(%r, %r)'%(type(self).__name__, self._typecode, self._value)
1038
+ value = property(get, set)
1039
+
1040
+ def Array(typecode, sequence, lock=True):
1041
+ return array.array(typecode, sequence)
1042
+
1043
+ #
1044
+ # Proxy types used by SyncManager
1045
+ #
1046
+
1047
+ class IteratorProxy(BaseProxy):
1048
+ _exposed_ = ('__next__', 'send', 'throw', 'close')
1049
+ def __iter__(self):
1050
+ return self
1051
+ def __next__(self, *args):
1052
+ return self._callmethod('__next__', args)
1053
+ def send(self, *args):
1054
+ return self._callmethod('send', args)
1055
+ def throw(self, *args):
1056
+ return self._callmethod('throw', args)
1057
+ def close(self, *args):
1058
+ return self._callmethod('close', args)
1059
+
1060
+
1061
+ class AcquirerProxy(BaseProxy):
1062
+ _exposed_ = ('acquire', 'release', 'locked')
1063
+ def acquire(self, blocking=True, timeout=None):
1064
+ args = (blocking,) if timeout is None else (blocking, timeout)
1065
+ return self._callmethod('acquire', args)
1066
+ def release(self):
1067
+ return self._callmethod('release')
1068
+ def locked(self):
1069
+ return self._callmethod('locked')
1070
+ def __enter__(self):
1071
+ return self._callmethod('acquire')
1072
+ def __exit__(self, exc_type, exc_val, exc_tb):
1073
+ return self._callmethod('release')
1074
+
1075
+
1076
+ class ConditionProxy(AcquirerProxy):
1077
+ _exposed_ = ('acquire', 'release', 'locked', 'wait', 'notify', 'notify_all')
1078
+ def wait(self, timeout=None):
1079
+ return self._callmethod('wait', (timeout,))
1080
+ def notify(self, n=1):
1081
+ return self._callmethod('notify', (n,))
1082
+ def notify_all(self):
1083
+ return self._callmethod('notify_all')
1084
+ def wait_for(self, predicate, timeout=None):
1085
+ result = predicate()
1086
+ if result:
1087
+ return result
1088
+ if timeout is not None:
1089
+ endtime = time.monotonic() + timeout
1090
+ else:
1091
+ endtime = None
1092
+ waittime = None
1093
+ while not result:
1094
+ if endtime is not None:
1095
+ waittime = endtime - time.monotonic()
1096
+ if waittime <= 0:
1097
+ break
1098
+ self.wait(waittime)
1099
+ result = predicate()
1100
+ return result
1101
+
1102
+
1103
+ class EventProxy(BaseProxy):
1104
+ _exposed_ = ('is_set', 'set', 'clear', 'wait')
1105
+ def is_set(self):
1106
+ return self._callmethod('is_set')
1107
+ def set(self):
1108
+ return self._callmethod('set')
1109
+ def clear(self):
1110
+ return self._callmethod('clear')
1111
+ def wait(self, timeout=None):
1112
+ return self._callmethod('wait', (timeout,))
1113
+
1114
+
1115
+ class BarrierProxy(BaseProxy):
1116
+ _exposed_ = ('__getattribute__', 'wait', 'abort', 'reset')
1117
+ def wait(self, timeout=None):
1118
+ return self._callmethod('wait', (timeout,))
1119
+ def abort(self):
1120
+ return self._callmethod('abort')
1121
+ def reset(self):
1122
+ return self._callmethod('reset')
1123
+ @property
1124
+ def parties(self):
1125
+ return self._callmethod('__getattribute__', ('parties',))
1126
+ @property
1127
+ def n_waiting(self):
1128
+ return self._callmethod('__getattribute__', ('n_waiting',))
1129
+ @property
1130
+ def broken(self):
1131
+ return self._callmethod('__getattribute__', ('broken',))
1132
+
1133
+
1134
+ class NamespaceProxy(BaseProxy):
1135
+ _exposed_ = ('__getattribute__', '__setattr__', '__delattr__')
1136
+ def __getattr__(self, key):
1137
+ if key[0] == '_':
1138
+ return object.__getattribute__(self, key)
1139
+ callmethod = object.__getattribute__(self, '_callmethod')
1140
+ return callmethod('__getattribute__', (key,))
1141
+ def __setattr__(self, key, value):
1142
+ if key[0] == '_':
1143
+ return object.__setattr__(self, key, value)
1144
+ callmethod = object.__getattribute__(self, '_callmethod')
1145
+ return callmethod('__setattr__', (key, value))
1146
+ def __delattr__(self, key):
1147
+ if key[0] == '_':
1148
+ return object.__delattr__(self, key)
1149
+ callmethod = object.__getattribute__(self, '_callmethod')
1150
+ return callmethod('__delattr__', (key,))
1151
+
1152
+
1153
+ class ValueProxy(BaseProxy):
1154
+ _exposed_ = ('get', 'set')
1155
+ def get(self):
1156
+ return self._callmethod('get')
1157
+ def set(self, value):
1158
+ return self._callmethod('set', (value,))
1159
+ value = property(get, set)
1160
+
1161
+ __class_getitem__ = classmethod(types.GenericAlias)
1162
+
1163
+
1164
+ BaseListProxy = MakeProxyType('BaseListProxy', (
1165
+ '__add__', '__contains__', '__delitem__', '__getitem__', '__imul__',
1166
+ '__len__', '__mul__', '__reversed__', '__rmul__', '__setitem__',
1167
+ 'append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop',
1168
+ 'remove', 'reverse', 'sort',
1169
+ ))
1170
+ class ListProxy(BaseListProxy):
1171
+ def __iadd__(self, value):
1172
+ self._callmethod('extend', (value,))
1173
+ return self
1174
+ def __imul__(self, value):
1175
+ self._callmethod('__imul__', (value,))
1176
+ return self
1177
+
1178
+ __class_getitem__ = classmethod(types.GenericAlias)
1179
+
1180
+ collections.abc.MutableSequence.register(BaseListProxy)
1181
+
1182
+ _BaseDictProxy = MakeProxyType('_BaseDictProxy', (
1183
+ '__contains__', '__delitem__', '__getitem__', '__ior__', '__iter__',
1184
+ '__len__', '__or__', '__reversed__', '__ror__',
1185
+ '__setitem__', 'clear', 'copy', 'fromkeys', 'get', 'items',
1186
+ 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values'
1187
+ ))
1188
+ _BaseDictProxy._method_to_typeid_ = {
1189
+ '__iter__': 'Iterator',
1190
+ }
1191
+ class DictProxy(_BaseDictProxy):
1192
+ def __ior__(self, value):
1193
+ self._callmethod('__ior__', (value,))
1194
+ return self
1195
+
1196
+ __class_getitem__ = classmethod(types.GenericAlias)
1197
+
1198
+ collections.abc.MutableMapping.register(_BaseDictProxy)
1199
+
1200
+ _BaseSetProxy = MakeProxyType("_BaseSetProxy", (
1201
+ '__and__', '__class_getitem__', '__contains__', '__iand__', '__ior__',
1202
+ '__isub__', '__iter__', '__ixor__', '__len__', '__or__', '__rand__',
1203
+ '__ror__', '__rsub__', '__rxor__', '__sub__', '__xor__',
1204
+ '__ge__', '__gt__', '__le__', '__lt__',
1205
+ 'add', 'clear', 'copy', 'difference', 'difference_update', 'discard',
1206
+ 'intersection', 'intersection_update', 'isdisjoint', 'issubset',
1207
+ 'issuperset', 'pop', 'remove', 'symmetric_difference',
1208
+ 'symmetric_difference_update', 'union', 'update',
1209
+ ))
1210
+
1211
+ class SetProxy(_BaseSetProxy):
1212
+ def __ior__(self, value):
1213
+ self._callmethod('__ior__', (value,))
1214
+ return self
1215
+ def __iand__(self, value):
1216
+ self._callmethod('__iand__', (value,))
1217
+ return self
1218
+ def __ixor__(self, value):
1219
+ self._callmethod('__ixor__', (value,))
1220
+ return self
1221
+ def __isub__(self, value):
1222
+ self._callmethod('__isub__', (value,))
1223
+ return self
1224
+
1225
+ __class_getitem__ = classmethod(types.GenericAlias)
1226
+
1227
+ collections.abc.MutableMapping.register(_BaseSetProxy)
1228
+
1229
+
1230
+ ArrayProxy = MakeProxyType('ArrayProxy', (
1231
+ '__len__', '__getitem__', '__setitem__'
1232
+ ))
1233
+
1234
+
1235
+ BasePoolProxy = MakeProxyType('PoolProxy', (
1236
+ 'apply', 'apply_async', 'close', 'imap', 'imap_unordered', 'join',
1237
+ 'map', 'map_async', 'starmap', 'starmap_async', 'terminate',
1238
+ ))
1239
+ BasePoolProxy._method_to_typeid_ = {
1240
+ 'apply_async': 'AsyncResult',
1241
+ 'map_async': 'AsyncResult',
1242
+ 'starmap_async': 'AsyncResult',
1243
+ 'imap': 'Iterator',
1244
+ 'imap_unordered': 'Iterator'
1245
+ }
1246
+ class PoolProxy(BasePoolProxy):
1247
+ def __enter__(self):
1248
+ return self
1249
+ def __exit__(self, exc_type, exc_val, exc_tb):
1250
+ self.terminate()
1251
+
1252
+ #
1253
+ # Definition of SyncManager
1254
+ #
1255
+
1256
+ class SyncManager(BaseManager):
1257
+ '''
1258
+ Subclass of `BaseManager` which supports a number of shared object types.
1259
+
1260
+ The types registered are those intended for the synchronization
1261
+ of threads, plus `dict`, `list` and `Namespace`.
1262
+
1263
+ The `multiprocessing.Manager()` function creates started instances of
1264
+ this class.
1265
+ '''
1266
+
1267
+ SyncManager.register('Queue', queue.Queue)
1268
+ SyncManager.register('JoinableQueue', queue.Queue)
1269
+ SyncManager.register('Event', threading.Event, EventProxy)
1270
+ SyncManager.register('Lock', threading.Lock, AcquirerProxy)
1271
+ SyncManager.register('RLock', threading.RLock, AcquirerProxy)
1272
+ SyncManager.register('Semaphore', threading.Semaphore, AcquirerProxy)
1273
+ SyncManager.register('BoundedSemaphore', threading.BoundedSemaphore,
1274
+ AcquirerProxy)
1275
+ SyncManager.register('Condition', threading.Condition, ConditionProxy)
1276
+ SyncManager.register('Barrier', threading.Barrier, BarrierProxy)
1277
+ SyncManager.register('Pool', pool.Pool, PoolProxy)
1278
+ SyncManager.register('list', list, ListProxy)
1279
+ SyncManager.register('dict', dict, DictProxy)
1280
+ SyncManager.register('set', set, SetProxy)
1281
+ SyncManager.register('Value', Value, ValueProxy)
1282
+ SyncManager.register('Array', Array, ArrayProxy)
1283
+ SyncManager.register('Namespace', Namespace, NamespaceProxy)
1284
+
1285
+ # types returned by methods of PoolProxy
1286
+ SyncManager.register('Iterator', proxytype=IteratorProxy, create_method=False)
1287
+ SyncManager.register('AsyncResult', create_method=False)
1288
+
1289
+ #
1290
+ # Definition of SharedMemoryManager and SharedMemoryServer
1291
+ #
1292
+
1293
+ if HAS_SHMEM:
1294
+ class _SharedMemoryTracker:
1295
+ "Manages one or more shared memory segments."
1296
+
1297
+ def __init__(self, name, segment_names=None):
1298
+ self.shared_memory_context_name = name
1299
+ self.segment_names = [] if segment_names is None else segment_names
1300
+
1301
+ def register_segment(self, segment_name):
1302
+ "Adds the supplied shared memory block name to tracker."
1303
+ util.debug(f"Register segment {segment_name!r} in pid {getpid()}")
1304
+ self.segment_names.append(segment_name)
1305
+
1306
+ def destroy_segment(self, segment_name):
1307
+ """Calls unlink() on the shared memory block with the supplied name
1308
+ and removes it from the list of blocks being tracked."""
1309
+ util.debug(f"Destroy segment {segment_name!r} in pid {getpid()}")
1310
+ self.segment_names.remove(segment_name)
1311
+ segment = shared_memory.SharedMemory(segment_name)
1312
+ segment.close()
1313
+ segment.unlink()
1314
+
1315
+ def unlink(self):
1316
+ "Calls destroy_segment() on all tracked shared memory blocks."
1317
+ for segment_name in self.segment_names[:]:
1318
+ self.destroy_segment(segment_name)
1319
+
1320
+ def __del__(self):
1321
+ util.debug(f"Call {self.__class__.__name__}.__del__ in {getpid()}")
1322
+ self.unlink()
1323
+
1324
+ def __getstate__(self):
1325
+ return (self.shared_memory_context_name, self.segment_names)
1326
+
1327
+ def __setstate__(self, state):
1328
+ self.__init__(*state)
1329
+
1330
+
1331
+ class SharedMemoryServer(Server):
1332
+
1333
+ public = Server.public + \
1334
+ ['track_segment', 'release_segment', 'list_segments']
1335
+
1336
+ def __init__(self, *args, **kwargs):
1337
+ Server.__init__(self, *args, **kwargs)
1338
+ address = self.address
1339
+ # The address of Linux abstract namespaces can be bytes
1340
+ if isinstance(address, bytes):
1341
+ address = os.fsdecode(address)
1342
+ self.shared_memory_context = \
1343
+ _SharedMemoryTracker(f"shm_{address}_{getpid()}")
1344
+ util.debug(f"SharedMemoryServer started by pid {getpid()}")
1345
+
1346
+ def create(self, c, typeid, /, *args, **kwargs):
1347
+ """Create a new distributed-shared object (not backed by a shared
1348
+ memory block) and return its id to be used in a Proxy Object."""
1349
+ # Unless set up as a shared proxy, don't make shared_memory_context
1350
+ # a standard part of kwargs. This makes things easier for supplying
1351
+ # simple functions.
1352
+ if hasattr(self.registry[typeid][-1], "_shared_memory_proxy"):
1353
+ kwargs['shared_memory_context'] = self.shared_memory_context
1354
+ return Server.create(self, c, typeid, *args, **kwargs)
1355
+
1356
+ def shutdown(self, c):
1357
+ "Call unlink() on all tracked shared memory, terminate the Server."
1358
+ self.shared_memory_context.unlink()
1359
+ return Server.shutdown(self, c)
1360
+
1361
+ def track_segment(self, c, segment_name):
1362
+ "Adds the supplied shared memory block name to Server's tracker."
1363
+ self.shared_memory_context.register_segment(segment_name)
1364
+
1365
+ def release_segment(self, c, segment_name):
1366
+ """Calls unlink() on the shared memory block with the supplied name
1367
+ and removes it from the tracker instance inside the Server."""
1368
+ self.shared_memory_context.destroy_segment(segment_name)
1369
+
1370
+ def list_segments(self, c):
1371
+ """Returns a list of names of shared memory blocks that the Server
1372
+ is currently tracking."""
1373
+ return self.shared_memory_context.segment_names
1374
+
1375
+
1376
+ class SharedMemoryManager(BaseManager):
1377
+ """Like SyncManager but uses SharedMemoryServer instead of Server.
1378
+
1379
+ It provides methods for creating and returning SharedMemory instances
1380
+ and for creating a list-like object (ShareableList) backed by shared
1381
+ memory. It also provides methods that create and return Proxy Objects
1382
+ that support synchronization across processes (i.e. multi-process-safe
1383
+ locks and semaphores).
1384
+ """
1385
+
1386
+ _Server = SharedMemoryServer
1387
+
1388
+ def __init__(self, *args, **kwargs):
1389
+ if os.name == "posix":
1390
+ # bpo-36867: Ensure the resource_tracker is running before
1391
+ # launching the manager process, so that concurrent
1392
+ # shared_memory manipulation both in the manager and in the
1393
+ # current process does not create two resource_tracker
1394
+ # processes.
1395
+ from . import resource_tracker
1396
+ resource_tracker.ensure_running()
1397
+ BaseManager.__init__(self, *args, **kwargs)
1398
+ util.debug(f"{self.__class__.__name__} created by pid {getpid()}")
1399
+
1400
+ def __del__(self):
1401
+ util.debug(f"{self.__class__.__name__}.__del__ by pid {getpid()}")
1402
+
1403
+ def get_server(self):
1404
+ 'Better than monkeypatching for now; merge into Server ultimately'
1405
+ if self._state.value != State.INITIAL:
1406
+ if self._state.value == State.STARTED:
1407
+ raise ProcessError("Already started SharedMemoryServer")
1408
+ elif self._state.value == State.SHUTDOWN:
1409
+ raise ProcessError("SharedMemoryManager has shut down")
1410
+ else:
1411
+ raise ProcessError(
1412
+ "Unknown state {!r}".format(self._state.value))
1413
+ return self._Server(self._registry, self._address,
1414
+ self._authkey, self._serializer)
1415
+
1416
+ def SharedMemory(self, size):
1417
+ """Returns a new SharedMemory instance with the specified size in
1418
+ bytes, to be tracked by the manager."""
1419
+ with self._Client(self._address, authkey=self._authkey) as conn:
1420
+ sms = shared_memory.SharedMemory(None, create=True, size=size)
1421
+ try:
1422
+ dispatch(conn, None, 'track_segment', (sms.name,))
1423
+ except BaseException as e:
1424
+ sms.unlink()
1425
+ raise e
1426
+ return sms
1427
+
1428
+ def ShareableList(self, sequence):
1429
+ """Returns a new ShareableList instance populated with the values
1430
+ from the input sequence, to be tracked by the manager."""
1431
+ with self._Client(self._address, authkey=self._authkey) as conn:
1432
+ sl = shared_memory.ShareableList(sequence)
1433
+ try:
1434
+ dispatch(conn, None, 'track_segment', (sl.shm.name,))
1435
+ except BaseException as e:
1436
+ sl.shm.unlink()
1437
+ raise e
1438
+ return sl