@djlint/linux-s390x-gnu 0.0.0 → 1.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1693) hide show
  1. package/LICENSE +675 -0
  2. package/README.md +3 -1
  3. package/package.json +1 -8
  4. package/python/bin/python3 +0 -0
  5. package/python/lib/python3.15/LICENSE.txt +277 -0
  6. package/python/lib/python3.15/__future__.py +147 -0
  7. package/python/lib/python3.15/__hello__.py +16 -0
  8. package/python/lib/python3.15/__phello__/__init__.py +7 -0
  9. package/python/lib/python3.15/__phello__/__pycache__/__init__.cpython-315.pyc +0 -0
  10. package/python/lib/python3.15/__phello__/__pycache__/spam.cpython-315.pyc +0 -0
  11. package/python/lib/python3.15/__phello__/spam.py +7 -0
  12. package/python/lib/python3.15/__pycache__/__future__.cpython-315.pyc +0 -0
  13. package/python/lib/python3.15/__pycache__/__hello__.cpython-315.pyc +0 -0
  14. package/python/lib/python3.15/__pycache__/_aix_support.cpython-315.pyc +0 -0
  15. package/python/lib/python3.15/__pycache__/_android_support.cpython-315.pyc +0 -0
  16. package/python/lib/python3.15/__pycache__/_apple_support.cpython-315.pyc +0 -0
  17. package/python/lib/python3.15/__pycache__/_ast_unparse.cpython-315.pyc +0 -0
  18. package/python/lib/python3.15/__pycache__/_collections_abc.cpython-315.pyc +0 -0
  19. package/python/lib/python3.15/__pycache__/_colorize.cpython-315.pyc +0 -0
  20. package/python/lib/python3.15/__pycache__/_compat_pickle.cpython-315.pyc +0 -0
  21. package/python/lib/python3.15/__pycache__/_ios_support.cpython-315.pyc +0 -0
  22. package/python/lib/python3.15/__pycache__/_markupbase.cpython-315.pyc +0 -0
  23. package/python/lib/python3.15/__pycache__/_missing_stdlib_info.cpython-315.pyc +0 -0
  24. package/python/lib/python3.15/__pycache__/_opcode_metadata.cpython-315.pyc +0 -0
  25. package/python/lib/python3.15/__pycache__/_osx_support.cpython-315.pyc +0 -0
  26. package/python/lib/python3.15/__pycache__/_py_abc.cpython-315.pyc +0 -0
  27. package/python/lib/python3.15/__pycache__/_py_warnings.cpython-315.pyc +0 -0
  28. package/python/lib/python3.15/__pycache__/_pydatetime.cpython-315.pyc +0 -0
  29. package/python/lib/python3.15/__pycache__/_pydecimal.cpython-315.pyc +0 -0
  30. package/python/lib/python3.15/__pycache__/_pyio.cpython-315.pyc +0 -0
  31. package/python/lib/python3.15/__pycache__/_pylong.cpython-315.pyc +0 -0
  32. package/python/lib/python3.15/__pycache__/_sitebuiltins.cpython-315.pyc +0 -0
  33. package/python/lib/python3.15/__pycache__/_strptime.cpython-315.pyc +0 -0
  34. package/python/lib/python3.15/__pycache__/_sysconfigdata__linux_s390x-linux-gnu.cpython-315.pyc +0 -0
  35. package/python/lib/python3.15/__pycache__/_threading_local.cpython-315.pyc +0 -0
  36. package/python/lib/python3.15/__pycache__/_weakrefset.cpython-315.pyc +0 -0
  37. package/python/lib/python3.15/__pycache__/abc.cpython-315.pyc +0 -0
  38. package/python/lib/python3.15/__pycache__/annotationlib.cpython-315.pyc +0 -0
  39. package/python/lib/python3.15/__pycache__/antigravity.cpython-315.pyc +0 -0
  40. package/python/lib/python3.15/__pycache__/argparse.cpython-315.pyc +0 -0
  41. package/python/lib/python3.15/__pycache__/ast.cpython-315.pyc +0 -0
  42. package/python/lib/python3.15/__pycache__/base64.cpython-315.pyc +0 -0
  43. package/python/lib/python3.15/__pycache__/bdb.cpython-315.pyc +0 -0
  44. package/python/lib/python3.15/__pycache__/bisect.cpython-315.pyc +0 -0
  45. package/python/lib/python3.15/__pycache__/bz2.cpython-315.pyc +0 -0
  46. package/python/lib/python3.15/__pycache__/cProfile.cpython-315.pyc +0 -0
  47. package/python/lib/python3.15/__pycache__/calendar.cpython-315.pyc +0 -0
  48. package/python/lib/python3.15/__pycache__/cmd.cpython-315.pyc +0 -0
  49. package/python/lib/python3.15/__pycache__/code.cpython-315.pyc +0 -0
  50. package/python/lib/python3.15/__pycache__/codecs.cpython-315.pyc +0 -0
  51. package/python/lib/python3.15/__pycache__/codeop.cpython-315.pyc +0 -0
  52. package/python/lib/python3.15/__pycache__/colorsys.cpython-315.pyc +0 -0
  53. package/python/lib/python3.15/__pycache__/compileall.cpython-315.pyc +0 -0
  54. package/python/lib/python3.15/__pycache__/configparser.cpython-315.pyc +0 -0
  55. package/python/lib/python3.15/__pycache__/contextlib.cpython-315.pyc +0 -0
  56. package/python/lib/python3.15/__pycache__/contextvars.cpython-315.pyc +0 -0
  57. package/python/lib/python3.15/__pycache__/copy.cpython-315.pyc +0 -0
  58. package/python/lib/python3.15/__pycache__/copyreg.cpython-315.pyc +0 -0
  59. package/python/lib/python3.15/__pycache__/csv.cpython-315.pyc +0 -0
  60. package/python/lib/python3.15/__pycache__/dataclasses.cpython-315.pyc +0 -0
  61. package/python/lib/python3.15/__pycache__/datetime.cpython-315.pyc +0 -0
  62. package/python/lib/python3.15/__pycache__/decimal.cpython-315.pyc +0 -0
  63. package/python/lib/python3.15/__pycache__/difflib.cpython-315.pyc +0 -0
  64. package/python/lib/python3.15/__pycache__/dis.cpython-315.pyc +0 -0
  65. package/python/lib/python3.15/__pycache__/doctest.cpython-315.pyc +0 -0
  66. package/python/lib/python3.15/__pycache__/enum.cpython-315.pyc +0 -0
  67. package/python/lib/python3.15/__pycache__/filecmp.cpython-315.pyc +0 -0
  68. package/python/lib/python3.15/__pycache__/fileinput.cpython-315.pyc +0 -0
  69. package/python/lib/python3.15/__pycache__/fnmatch.cpython-315.pyc +0 -0
  70. package/python/lib/python3.15/__pycache__/fractions.cpython-315.pyc +0 -0
  71. package/python/lib/python3.15/__pycache__/ftplib.cpython-315.pyc +0 -0
  72. package/python/lib/python3.15/__pycache__/functools.cpython-315.pyc +0 -0
  73. package/python/lib/python3.15/__pycache__/genericpath.cpython-315.pyc +0 -0
  74. package/python/lib/python3.15/__pycache__/getopt.cpython-315.pyc +0 -0
  75. package/python/lib/python3.15/__pycache__/getpass.cpython-315.pyc +0 -0
  76. package/python/lib/python3.15/__pycache__/gettext.cpython-315.pyc +0 -0
  77. package/python/lib/python3.15/__pycache__/glob.cpython-315.pyc +0 -0
  78. package/python/lib/python3.15/__pycache__/graphlib.cpython-315.pyc +0 -0
  79. package/python/lib/python3.15/__pycache__/gzip.cpython-315.pyc +0 -0
  80. package/python/lib/python3.15/__pycache__/hashlib.cpython-315.pyc +0 -0
  81. package/python/lib/python3.15/__pycache__/heapq.cpython-315.pyc +0 -0
  82. package/python/lib/python3.15/__pycache__/hmac.cpython-315.pyc +0 -0
  83. package/python/lib/python3.15/__pycache__/imaplib.cpython-315.pyc +0 -0
  84. package/python/lib/python3.15/__pycache__/inspect.cpython-315.pyc +0 -0
  85. package/python/lib/python3.15/__pycache__/io.cpython-315.pyc +0 -0
  86. package/python/lib/python3.15/__pycache__/ipaddress.cpython-315.pyc +0 -0
  87. package/python/lib/python3.15/__pycache__/keyword.cpython-315.pyc +0 -0
  88. package/python/lib/python3.15/__pycache__/linecache.cpython-315.pyc +0 -0
  89. package/python/lib/python3.15/__pycache__/locale.cpython-315.pyc +0 -0
  90. package/python/lib/python3.15/__pycache__/lzma.cpython-315.pyc +0 -0
  91. package/python/lib/python3.15/__pycache__/mailbox.cpython-315.pyc +0 -0
  92. package/python/lib/python3.15/__pycache__/mimetypes.cpython-315.pyc +0 -0
  93. package/python/lib/python3.15/__pycache__/modulefinder.cpython-315.pyc +0 -0
  94. package/python/lib/python3.15/__pycache__/netrc.cpython-315.pyc +0 -0
  95. package/python/lib/python3.15/__pycache__/ntpath.cpython-315.pyc +0 -0
  96. package/python/lib/python3.15/__pycache__/nturl2path.cpython-315.pyc +0 -0
  97. package/python/lib/python3.15/__pycache__/numbers.cpython-315.pyc +0 -0
  98. package/python/lib/python3.15/__pycache__/opcode.cpython-315.pyc +0 -0
  99. package/python/lib/python3.15/__pycache__/operator.cpython-315.pyc +0 -0
  100. package/python/lib/python3.15/__pycache__/optparse.cpython-315.pyc +0 -0
  101. package/python/lib/python3.15/__pycache__/os.cpython-315.pyc +0 -0
  102. package/python/lib/python3.15/__pycache__/pdb.cpython-315.pyc +0 -0
  103. package/python/lib/python3.15/__pycache__/pickle.cpython-315.pyc +0 -0
  104. package/python/lib/python3.15/__pycache__/pickletools.cpython-315.pyc +0 -0
  105. package/python/lib/python3.15/__pycache__/pkgutil.cpython-315.pyc +0 -0
  106. package/python/lib/python3.15/__pycache__/platform.cpython-315.pyc +0 -0
  107. package/python/lib/python3.15/__pycache__/plistlib.cpython-315.pyc +0 -0
  108. package/python/lib/python3.15/__pycache__/poplib.cpython-315.pyc +0 -0
  109. package/python/lib/python3.15/__pycache__/posixpath.cpython-315.pyc +0 -0
  110. package/python/lib/python3.15/__pycache__/pprint.cpython-315.pyc +0 -0
  111. package/python/lib/python3.15/__pycache__/profile.cpython-315.pyc +0 -0
  112. package/python/lib/python3.15/__pycache__/pstats.cpython-315.pyc +0 -0
  113. package/python/lib/python3.15/__pycache__/pty.cpython-315.pyc +0 -0
  114. package/python/lib/python3.15/__pycache__/py_compile.cpython-315.pyc +0 -0
  115. package/python/lib/python3.15/__pycache__/pyclbr.cpython-315.pyc +0 -0
  116. package/python/lib/python3.15/__pycache__/pydoc.cpython-315.pyc +0 -0
  117. package/python/lib/python3.15/__pycache__/queue.cpython-315.pyc +0 -0
  118. package/python/lib/python3.15/__pycache__/quopri.cpython-315.pyc +0 -0
  119. package/python/lib/python3.15/__pycache__/random.cpython-315.pyc +0 -0
  120. package/python/lib/python3.15/__pycache__/reprlib.cpython-315.pyc +0 -0
  121. package/python/lib/python3.15/__pycache__/rlcompleter.cpython-315.pyc +0 -0
  122. package/python/lib/python3.15/__pycache__/runpy.cpython-315.pyc +0 -0
  123. package/python/lib/python3.15/__pycache__/sched.cpython-315.pyc +0 -0
  124. package/python/lib/python3.15/__pycache__/secrets.cpython-315.pyc +0 -0
  125. package/python/lib/python3.15/__pycache__/selectors.cpython-315.pyc +0 -0
  126. package/python/lib/python3.15/__pycache__/shelve.cpython-315.pyc +0 -0
  127. package/python/lib/python3.15/__pycache__/shlex.cpython-315.pyc +0 -0
  128. package/python/lib/python3.15/__pycache__/shutil.cpython-315.pyc +0 -0
  129. package/python/lib/python3.15/__pycache__/signal.cpython-315.pyc +0 -0
  130. package/python/lib/python3.15/__pycache__/site.cpython-315.pyc +0 -0
  131. package/python/lib/python3.15/__pycache__/smtplib.cpython-315.pyc +0 -0
  132. package/python/lib/python3.15/__pycache__/socket.cpython-315.pyc +0 -0
  133. package/python/lib/python3.15/__pycache__/socketserver.cpython-315.pyc +0 -0
  134. package/python/lib/python3.15/__pycache__/ssl.cpython-315.pyc +0 -0
  135. package/python/lib/python3.15/__pycache__/stat.cpython-315.pyc +0 -0
  136. package/python/lib/python3.15/__pycache__/statistics.cpython-315.pyc +0 -0
  137. package/python/lib/python3.15/__pycache__/stringprep.cpython-315.pyc +0 -0
  138. package/python/lib/python3.15/__pycache__/struct.cpython-315.pyc +0 -0
  139. package/python/lib/python3.15/__pycache__/subprocess.cpython-315.pyc +0 -0
  140. package/python/lib/python3.15/__pycache__/symtable.cpython-315.pyc +0 -0
  141. package/python/lib/python3.15/__pycache__/tabnanny.cpython-315.pyc +0 -0
  142. package/python/lib/python3.15/__pycache__/tarfile.cpython-315.pyc +0 -0
  143. package/python/lib/python3.15/__pycache__/tempfile.cpython-315.pyc +0 -0
  144. package/python/lib/python3.15/__pycache__/textwrap.cpython-315.pyc +0 -0
  145. package/python/lib/python3.15/__pycache__/this.cpython-315.pyc +0 -0
  146. package/python/lib/python3.15/__pycache__/threading.cpython-315.pyc +0 -0
  147. package/python/lib/python3.15/__pycache__/timeit.cpython-315.pyc +0 -0
  148. package/python/lib/python3.15/__pycache__/token.cpython-315.pyc +0 -0
  149. package/python/lib/python3.15/__pycache__/tokenize.cpython-315.pyc +0 -0
  150. package/python/lib/python3.15/__pycache__/trace.cpython-315.pyc +0 -0
  151. package/python/lib/python3.15/__pycache__/traceback.cpython-315.pyc +0 -0
  152. package/python/lib/python3.15/__pycache__/tracemalloc.cpython-315.pyc +0 -0
  153. package/python/lib/python3.15/__pycache__/tty.cpython-315.pyc +0 -0
  154. package/python/lib/python3.15/__pycache__/types.cpython-315.pyc +0 -0
  155. package/python/lib/python3.15/__pycache__/typing.cpython-315.pyc +0 -0
  156. package/python/lib/python3.15/__pycache__/uuid.cpython-315.pyc +0 -0
  157. package/python/lib/python3.15/__pycache__/warnings.cpython-315.pyc +0 -0
  158. package/python/lib/python3.15/__pycache__/wave.cpython-315.pyc +0 -0
  159. package/python/lib/python3.15/__pycache__/weakref.cpython-315.pyc +0 -0
  160. package/python/lib/python3.15/__pycache__/webbrowser.cpython-315.pyc +0 -0
  161. package/python/lib/python3.15/__pycache__/zipapp.cpython-315.pyc +0 -0
  162. package/python/lib/python3.15/__pycache__/zipimport.cpython-315.pyc +0 -0
  163. package/python/lib/python3.15/_aix_support.py +108 -0
  164. package/python/lib/python3.15/_android_support.py +192 -0
  165. package/python/lib/python3.15/_apple_support.py +66 -0
  166. package/python/lib/python3.15/_ast_unparse.py +1165 -0
  167. package/python/lib/python3.15/_collections_abc.py +1183 -0
  168. package/python/lib/python3.15/_colorize.py +647 -0
  169. package/python/lib/python3.15/_compat_pickle.py +249 -0
  170. package/python/lib/python3.15/_ios_support.py +74 -0
  171. package/python/lib/python3.15/_markupbase.py +396 -0
  172. package/python/lib/python3.15/_missing_stdlib_info.py +32 -0
  173. package/python/lib/python3.15/_opcode_metadata.py +387 -0
  174. package/python/lib/python3.15/_osx_support.py +580 -0
  175. package/python/lib/python3.15/_py_abc.py +152 -0
  176. package/python/lib/python3.15/_py_warnings.py +928 -0
  177. package/python/lib/python3.15/_pydatetime.py +2779 -0
  178. package/python/lib/python3.15/_pydecimal.py +6514 -0
  179. package/python/lib/python3.15/_pyio.py +2788 -0
  180. package/python/lib/python3.15/_pylong.py +729 -0
  181. package/python/lib/python3.15/_pyrepl/__init__.py +19 -0
  182. package/python/lib/python3.15/_pyrepl/__main__.py +10 -0
  183. package/python/lib/python3.15/_pyrepl/__pycache__/__init__.cpython-315.pyc +0 -0
  184. package/python/lib/python3.15/_pyrepl/__pycache__/__main__.cpython-315.pyc +0 -0
  185. package/python/lib/python3.15/_pyrepl/__pycache__/_module_completer.cpython-315.pyc +0 -0
  186. package/python/lib/python3.15/_pyrepl/__pycache__/_threading_handler.cpython-315.pyc +0 -0
  187. package/python/lib/python3.15/_pyrepl/__pycache__/base_eventqueue.cpython-315.pyc +0 -0
  188. package/python/lib/python3.15/_pyrepl/__pycache__/commands.cpython-315.pyc +0 -0
  189. package/python/lib/python3.15/_pyrepl/__pycache__/completing_reader.cpython-315.pyc +0 -0
  190. package/python/lib/python3.15/_pyrepl/__pycache__/console.cpython-315.pyc +0 -0
  191. package/python/lib/python3.15/_pyrepl/__pycache__/content.cpython-315.pyc +0 -0
  192. package/python/lib/python3.15/_pyrepl/__pycache__/fancy_termios.cpython-315.pyc +0 -0
  193. package/python/lib/python3.15/_pyrepl/__pycache__/fancycompleter.cpython-315.pyc +0 -0
  194. package/python/lib/python3.15/_pyrepl/__pycache__/historical_reader.cpython-315.pyc +0 -0
  195. package/python/lib/python3.15/_pyrepl/__pycache__/input.cpython-315.pyc +0 -0
  196. package/python/lib/python3.15/_pyrepl/__pycache__/keymap.cpython-315.pyc +0 -0
  197. package/python/lib/python3.15/_pyrepl/__pycache__/layout.cpython-315.pyc +0 -0
  198. package/python/lib/python3.15/_pyrepl/__pycache__/main.cpython-315.pyc +0 -0
  199. package/python/lib/python3.15/_pyrepl/__pycache__/pager.cpython-315.pyc +0 -0
  200. package/python/lib/python3.15/_pyrepl/__pycache__/reader.cpython-315.pyc +0 -0
  201. package/python/lib/python3.15/_pyrepl/__pycache__/readline.cpython-315.pyc +0 -0
  202. package/python/lib/python3.15/_pyrepl/__pycache__/render.cpython-315.pyc +0 -0
  203. package/python/lib/python3.15/_pyrepl/__pycache__/simple_interact.cpython-315.pyc +0 -0
  204. package/python/lib/python3.15/_pyrepl/__pycache__/terminfo.cpython-315.pyc +0 -0
  205. package/python/lib/python3.15/_pyrepl/__pycache__/trace.cpython-315.pyc +0 -0
  206. package/python/lib/python3.15/_pyrepl/__pycache__/types.cpython-315.pyc +0 -0
  207. package/python/lib/python3.15/_pyrepl/__pycache__/unix_console.cpython-315.pyc +0 -0
  208. package/python/lib/python3.15/_pyrepl/__pycache__/unix_eventqueue.cpython-315.pyc +0 -0
  209. package/python/lib/python3.15/_pyrepl/__pycache__/utils.cpython-315.pyc +0 -0
  210. package/python/lib/python3.15/_pyrepl/__pycache__/windows_console.cpython-315.pyc +0 -0
  211. package/python/lib/python3.15/_pyrepl/__pycache__/windows_eventqueue.cpython-315.pyc +0 -0
  212. package/python/lib/python3.15/_pyrepl/_module_completer.py +580 -0
  213. package/python/lib/python3.15/_pyrepl/_threading_handler.py +74 -0
  214. package/python/lib/python3.15/_pyrepl/base_eventqueue.py +110 -0
  215. package/python/lib/python3.15/_pyrepl/commands.py +521 -0
  216. package/python/lib/python3.15/_pyrepl/completing_reader.py +332 -0
  217. package/python/lib/python3.15/_pyrepl/console.py +295 -0
  218. package/python/lib/python3.15/_pyrepl/content.py +136 -0
  219. package/python/lib/python3.15/_pyrepl/fancy_termios.py +82 -0
  220. package/python/lib/python3.15/_pyrepl/fancycompleter.py +213 -0
  221. package/python/lib/python3.15/_pyrepl/historical_reader.py +423 -0
  222. package/python/lib/python3.15/_pyrepl/input.py +115 -0
  223. package/python/lib/python3.15/_pyrepl/keymap.py +213 -0
  224. package/python/lib/python3.15/_pyrepl/layout.py +268 -0
  225. package/python/lib/python3.15/_pyrepl/main.py +58 -0
  226. package/python/lib/python3.15/_pyrepl/mypy.ini +25 -0
  227. package/python/lib/python3.15/_pyrepl/pager.py +175 -0
  228. package/python/lib/python3.15/_pyrepl/reader.py +1035 -0
  229. package/python/lib/python3.15/_pyrepl/readline.py +650 -0
  230. package/python/lib/python3.15/_pyrepl/render.py +399 -0
  231. package/python/lib/python3.15/_pyrepl/simple_interact.py +185 -0
  232. package/python/lib/python3.15/_pyrepl/terminfo.py +488 -0
  233. package/python/lib/python3.15/_pyrepl/trace.py +40 -0
  234. package/python/lib/python3.15/_pyrepl/types.py +16 -0
  235. package/python/lib/python3.15/_pyrepl/unix_console.py +1085 -0
  236. package/python/lib/python3.15/_pyrepl/unix_eventqueue.py +77 -0
  237. package/python/lib/python3.15/_pyrepl/utils.py +456 -0
  238. package/python/lib/python3.15/_pyrepl/windows_console.py +864 -0
  239. package/python/lib/python3.15/_pyrepl/windows_eventqueue.py +42 -0
  240. package/python/lib/python3.15/_sitebuiltins.py +101 -0
  241. package/python/lib/python3.15/_strptime.py +851 -0
  242. package/python/lib/python3.15/_sysconfig_vars__linux_s390x-linux-gnu.json +1196 -0
  243. package/python/lib/python3.15/_sysconfigdata__linux_s390x-linux-gnu.py +1182 -0
  244. package/python/lib/python3.15/_threading_local.py +120 -0
  245. package/python/lib/python3.15/_weakrefset.py +147 -0
  246. package/python/lib/python3.15/abc.py +188 -0
  247. package/python/lib/python3.15/annotationlib.py +1220 -0
  248. package/python/lib/python3.15/antigravity.py +17 -0
  249. package/python/lib/python3.15/argparse.py +2974 -0
  250. package/python/lib/python3.15/ast.py +718 -0
  251. package/python/lib/python3.15/asyncio/__init__.py +74 -0
  252. package/python/lib/python3.15/asyncio/__main__.py +269 -0
  253. package/python/lib/python3.15/asyncio/__pycache__/__init__.cpython-315.pyc +0 -0
  254. package/python/lib/python3.15/asyncio/__pycache__/__main__.cpython-315.pyc +0 -0
  255. package/python/lib/python3.15/asyncio/__pycache__/base_events.cpython-315.pyc +0 -0
  256. package/python/lib/python3.15/asyncio/__pycache__/base_futures.cpython-315.pyc +0 -0
  257. package/python/lib/python3.15/asyncio/__pycache__/base_subprocess.cpython-315.pyc +0 -0
  258. package/python/lib/python3.15/asyncio/__pycache__/base_tasks.cpython-315.pyc +0 -0
  259. package/python/lib/python3.15/asyncio/__pycache__/constants.cpython-315.pyc +0 -0
  260. package/python/lib/python3.15/asyncio/__pycache__/coroutines.cpython-315.pyc +0 -0
  261. package/python/lib/python3.15/asyncio/__pycache__/events.cpython-315.pyc +0 -0
  262. package/python/lib/python3.15/asyncio/__pycache__/exceptions.cpython-315.pyc +0 -0
  263. package/python/lib/python3.15/asyncio/__pycache__/format_helpers.cpython-315.pyc +0 -0
  264. package/python/lib/python3.15/asyncio/__pycache__/futures.cpython-315.pyc +0 -0
  265. package/python/lib/python3.15/asyncio/__pycache__/graph.cpython-315.pyc +0 -0
  266. package/python/lib/python3.15/asyncio/__pycache__/locks.cpython-315.pyc +0 -0
  267. package/python/lib/python3.15/asyncio/__pycache__/log.cpython-315.pyc +0 -0
  268. package/python/lib/python3.15/asyncio/__pycache__/mixins.cpython-315.pyc +0 -0
  269. package/python/lib/python3.15/asyncio/__pycache__/proactor_events.cpython-315.pyc +0 -0
  270. package/python/lib/python3.15/asyncio/__pycache__/protocols.cpython-315.pyc +0 -0
  271. package/python/lib/python3.15/asyncio/__pycache__/queues.cpython-315.pyc +0 -0
  272. package/python/lib/python3.15/asyncio/__pycache__/runners.cpython-315.pyc +0 -0
  273. package/python/lib/python3.15/asyncio/__pycache__/selector_events.cpython-315.pyc +0 -0
  274. package/python/lib/python3.15/asyncio/__pycache__/sslproto.cpython-315.pyc +0 -0
  275. package/python/lib/python3.15/asyncio/__pycache__/staggered.cpython-315.pyc +0 -0
  276. package/python/lib/python3.15/asyncio/__pycache__/streams.cpython-315.pyc +0 -0
  277. package/python/lib/python3.15/asyncio/__pycache__/subprocess.cpython-315.pyc +0 -0
  278. package/python/lib/python3.15/asyncio/__pycache__/taskgroups.cpython-315.pyc +0 -0
  279. package/python/lib/python3.15/asyncio/__pycache__/tasks.cpython-315.pyc +0 -0
  280. package/python/lib/python3.15/asyncio/__pycache__/threads.cpython-315.pyc +0 -0
  281. package/python/lib/python3.15/asyncio/__pycache__/timeouts.cpython-315.pyc +0 -0
  282. package/python/lib/python3.15/asyncio/__pycache__/tools.cpython-315.pyc +0 -0
  283. package/python/lib/python3.15/asyncio/__pycache__/transports.cpython-315.pyc +0 -0
  284. package/python/lib/python3.15/asyncio/__pycache__/trsock.cpython-315.pyc +0 -0
  285. package/python/lib/python3.15/asyncio/__pycache__/unix_events.cpython-315.pyc +0 -0
  286. package/python/lib/python3.15/asyncio/__pycache__/windows_events.cpython-315.pyc +0 -0
  287. package/python/lib/python3.15/asyncio/__pycache__/windows_utils.cpython-315.pyc +0 -0
  288. package/python/lib/python3.15/asyncio/base_events.py +2098 -0
  289. package/python/lib/python3.15/asyncio/base_futures.py +67 -0
  290. package/python/lib/python3.15/asyncio/base_subprocess.py +327 -0
  291. package/python/lib/python3.15/asyncio/base_tasks.py +94 -0
  292. package/python/lib/python3.15/asyncio/constants.py +41 -0
  293. package/python/lib/python3.15/asyncio/coroutines.py +118 -0
  294. package/python/lib/python3.15/asyncio/events.py +881 -0
  295. package/python/lib/python3.15/asyncio/exceptions.py +62 -0
  296. package/python/lib/python3.15/asyncio/format_helpers.py +84 -0
  297. package/python/lib/python3.15/asyncio/futures.py +482 -0
  298. package/python/lib/python3.15/asyncio/graph.py +279 -0
  299. package/python/lib/python3.15/asyncio/locks.py +617 -0
  300. package/python/lib/python3.15/asyncio/log.py +7 -0
  301. package/python/lib/python3.15/asyncio/mixins.py +21 -0
  302. package/python/lib/python3.15/asyncio/proactor_events.py +923 -0
  303. package/python/lib/python3.15/asyncio/protocols.py +216 -0
  304. package/python/lib/python3.15/asyncio/queues.py +309 -0
  305. package/python/lib/python3.15/asyncio/runners.py +226 -0
  306. package/python/lib/python3.15/asyncio/selector_events.py +1351 -0
  307. package/python/lib/python3.15/asyncio/sslproto.py +937 -0
  308. package/python/lib/python3.15/asyncio/staggered.py +178 -0
  309. package/python/lib/python3.15/asyncio/streams.py +790 -0
  310. package/python/lib/python3.15/asyncio/subprocess.py +229 -0
  311. package/python/lib/python3.15/asyncio/taskgroups.py +334 -0
  312. package/python/lib/python3.15/asyncio/tasks.py +1154 -0
  313. package/python/lib/python3.15/asyncio/threads.py +26 -0
  314. package/python/lib/python3.15/asyncio/timeouts.py +183 -0
  315. package/python/lib/python3.15/asyncio/tools.py +289 -0
  316. package/python/lib/python3.15/asyncio/transports.py +337 -0
  317. package/python/lib/python3.15/asyncio/trsock.py +98 -0
  318. package/python/lib/python3.15/asyncio/unix_events.py +1031 -0
  319. package/python/lib/python3.15/asyncio/windows_events.py +899 -0
  320. package/python/lib/python3.15/asyncio/windows_utils.py +181 -0
  321. package/python/lib/python3.15/base64.py +498 -0
  322. package/python/lib/python3.15/bdb.py +1205 -0
  323. package/python/lib/python3.15/bisect.py +118 -0
  324. package/python/lib/python3.15/build-details.json +61 -0
  325. package/python/lib/python3.15/bz2.py +352 -0
  326. package/python/lib/python3.15/cProfile.py +13 -0
  327. package/python/lib/python3.15/calendar.py +997 -0
  328. package/python/lib/python3.15/cmd.py +414 -0
  329. package/python/lib/python3.15/code.py +396 -0
  330. package/python/lib/python3.15/codecs.py +1125 -0
  331. package/python/lib/python3.15/codeop.py +154 -0
  332. package/python/lib/python3.15/collections/__init__.py +1667 -0
  333. package/python/lib/python3.15/collections/__pycache__/__init__.cpython-315.pyc +0 -0
  334. package/python/lib/python3.15/colorsys.py +166 -0
  335. package/python/lib/python3.15/compileall.py +479 -0
  336. package/python/lib/python3.15/compression/__init__.py +0 -0
  337. package/python/lib/python3.15/compression/__pycache__/__init__.cpython-315.pyc +0 -0
  338. package/python/lib/python3.15/compression/__pycache__/bz2.cpython-315.pyc +0 -0
  339. package/python/lib/python3.15/compression/__pycache__/gzip.cpython-315.pyc +0 -0
  340. package/python/lib/python3.15/compression/__pycache__/lzma.cpython-315.pyc +0 -0
  341. package/python/lib/python3.15/compression/__pycache__/zlib.cpython-315.pyc +0 -0
  342. package/python/lib/python3.15/compression/_common/__init__.py +0 -0
  343. package/python/lib/python3.15/compression/_common/__pycache__/__init__.cpython-315.pyc +0 -0
  344. package/python/lib/python3.15/compression/_common/__pycache__/_streams.cpython-315.pyc +0 -0
  345. package/python/lib/python3.15/compression/_common/_streams.py +162 -0
  346. package/python/lib/python3.15/compression/bz2.py +5 -0
  347. package/python/lib/python3.15/compression/gzip.py +5 -0
  348. package/python/lib/python3.15/compression/lzma.py +5 -0
  349. package/python/lib/python3.15/compression/zlib.py +5 -0
  350. package/python/lib/python3.15/compression/zstd/__init__.py +244 -0
  351. package/python/lib/python3.15/compression/zstd/__pycache__/__init__.cpython-315.pyc +0 -0
  352. package/python/lib/python3.15/compression/zstd/__pycache__/_zstdfile.cpython-315.pyc +0 -0
  353. package/python/lib/python3.15/compression/zstd/_zstdfile.py +347 -0
  354. package/python/lib/python3.15/concurrent/__init__.py +1 -0
  355. package/python/lib/python3.15/concurrent/__pycache__/__init__.cpython-315.pyc +0 -0
  356. package/python/lib/python3.15/concurrent/futures/__init__.py +51 -0
  357. package/python/lib/python3.15/concurrent/futures/__pycache__/__init__.cpython-315.pyc +0 -0
  358. package/python/lib/python3.15/concurrent/futures/__pycache__/_base.cpython-315.pyc +0 -0
  359. package/python/lib/python3.15/concurrent/futures/__pycache__/interpreter.cpython-315.pyc +0 -0
  360. package/python/lib/python3.15/concurrent/futures/__pycache__/process.cpython-315.pyc +0 -0
  361. package/python/lib/python3.15/concurrent/futures/__pycache__/thread.cpython-315.pyc +0 -0
  362. package/python/lib/python3.15/concurrent/futures/_base.py +707 -0
  363. package/python/lib/python3.15/concurrent/futures/interpreter.py +123 -0
  364. package/python/lib/python3.15/concurrent/futures/process.py +1060 -0
  365. package/python/lib/python3.15/concurrent/futures/thread.py +274 -0
  366. package/python/lib/python3.15/concurrent/interpreters/__init__.py +253 -0
  367. package/python/lib/python3.15/concurrent/interpreters/__pycache__/__init__.cpython-315.pyc +0 -0
  368. package/python/lib/python3.15/concurrent/interpreters/__pycache__/_crossinterp.cpython-315.pyc +0 -0
  369. package/python/lib/python3.15/concurrent/interpreters/__pycache__/_queues.cpython-315.pyc +0 -0
  370. package/python/lib/python3.15/concurrent/interpreters/_crossinterp.py +107 -0
  371. package/python/lib/python3.15/concurrent/interpreters/_queues.py +289 -0
  372. package/python/lib/python3.15/configparser.py +1426 -0
  373. package/python/lib/python3.15/contextlib.py +859 -0
  374. package/python/lib/python3.15/contextvars.py +8 -0
  375. package/python/lib/python3.15/copy.py +300 -0
  376. package/python/lib/python3.15/copyreg.py +222 -0
  377. package/python/lib/python3.15/csv.py +536 -0
  378. package/python/lib/python3.15/ctypes/__init__.py +684 -0
  379. package/python/lib/python3.15/ctypes/__pycache__/__init__.cpython-315.pyc +0 -0
  380. package/python/lib/python3.15/ctypes/__pycache__/_aix.cpython-315.pyc +0 -0
  381. package/python/lib/python3.15/ctypes/__pycache__/_endian.cpython-315.pyc +0 -0
  382. package/python/lib/python3.15/ctypes/__pycache__/_layout.cpython-315.pyc +0 -0
  383. package/python/lib/python3.15/ctypes/__pycache__/util.cpython-315.pyc +0 -0
  384. package/python/lib/python3.15/ctypes/__pycache__/wintypes.cpython-315.pyc +0 -0
  385. package/python/lib/python3.15/ctypes/_aix.py +327 -0
  386. package/python/lib/python3.15/ctypes/_endian.py +78 -0
  387. package/python/lib/python3.15/ctypes/_layout.py +331 -0
  388. package/python/lib/python3.15/ctypes/macholib/README.ctypes +7 -0
  389. package/python/lib/python3.15/ctypes/macholib/__init__.py +15 -0
  390. package/python/lib/python3.15/ctypes/macholib/__pycache__/__init__.cpython-315.pyc +0 -0
  391. package/python/lib/python3.15/ctypes/macholib/__pycache__/dyld.cpython-315.pyc +0 -0
  392. package/python/lib/python3.15/ctypes/macholib/__pycache__/dylib.cpython-315.pyc +0 -0
  393. package/python/lib/python3.15/ctypes/macholib/__pycache__/framework.cpython-315.pyc +0 -0
  394. package/python/lib/python3.15/ctypes/macholib/dyld.py +165 -0
  395. package/python/lib/python3.15/ctypes/macholib/dylib.py +42 -0
  396. package/python/lib/python3.15/ctypes/macholib/fetch_macholib +2 -0
  397. package/python/lib/python3.15/ctypes/macholib/fetch_macholib.bat +1 -0
  398. package/python/lib/python3.15/ctypes/macholib/framework.py +42 -0
  399. package/python/lib/python3.15/ctypes/util.py +503 -0
  400. package/python/lib/python3.15/ctypes/wintypes.py +210 -0
  401. package/python/lib/python3.15/curses/__init__.py +101 -0
  402. package/python/lib/python3.15/curses/__pycache__/__init__.cpython-315.pyc +0 -0
  403. package/python/lib/python3.15/curses/__pycache__/ascii.cpython-315.pyc +0 -0
  404. package/python/lib/python3.15/curses/__pycache__/has_key.cpython-315.pyc +0 -0
  405. package/python/lib/python3.15/curses/__pycache__/panel.cpython-315.pyc +0 -0
  406. package/python/lib/python3.15/curses/__pycache__/textpad.cpython-315.pyc +0 -0
  407. package/python/lib/python3.15/curses/ascii.py +99 -0
  408. package/python/lib/python3.15/curses/has_key.py +192 -0
  409. package/python/lib/python3.15/curses/panel.py +6 -0
  410. package/python/lib/python3.15/curses/textpad.py +236 -0
  411. package/python/lib/python3.15/dataclasses.py +1826 -0
  412. package/python/lib/python3.15/datetime.py +13 -0
  413. package/python/lib/python3.15/dbm/__init__.py +194 -0
  414. package/python/lib/python3.15/dbm/__pycache__/__init__.cpython-315.pyc +0 -0
  415. package/python/lib/python3.15/dbm/__pycache__/dumb.cpython-315.pyc +0 -0
  416. package/python/lib/python3.15/dbm/__pycache__/gnu.cpython-315.pyc +0 -0
  417. package/python/lib/python3.15/dbm/__pycache__/ndbm.cpython-315.pyc +0 -0
  418. package/python/lib/python3.15/dbm/__pycache__/sqlite3.cpython-315.pyc +0 -0
  419. package/python/lib/python3.15/dbm/dumb.py +346 -0
  420. package/python/lib/python3.15/dbm/gnu.py +3 -0
  421. package/python/lib/python3.15/dbm/ndbm.py +3 -0
  422. package/python/lib/python3.15/dbm/sqlite3.py +148 -0
  423. package/python/lib/python3.15/decimal.py +109 -0
  424. package/python/lib/python3.15/difflib.py +2105 -0
  425. package/python/lib/python3.15/dis.py +1172 -0
  426. package/python/lib/python3.15/doctest.py +2998 -0
  427. package/python/lib/python3.15/email/__init__.py +61 -0
  428. package/python/lib/python3.15/email/__pycache__/__init__.cpython-315.pyc +0 -0
  429. package/python/lib/python3.15/email/__pycache__/_encoded_words.cpython-315.pyc +0 -0
  430. package/python/lib/python3.15/email/__pycache__/_header_value_parser.cpython-315.pyc +0 -0
  431. package/python/lib/python3.15/email/__pycache__/_parseaddr.cpython-315.pyc +0 -0
  432. package/python/lib/python3.15/email/__pycache__/_policybase.cpython-315.pyc +0 -0
  433. package/python/lib/python3.15/email/__pycache__/base64mime.cpython-315.pyc +0 -0
  434. package/python/lib/python3.15/email/__pycache__/charset.cpython-315.pyc +0 -0
  435. package/python/lib/python3.15/email/__pycache__/contentmanager.cpython-315.pyc +0 -0
  436. package/python/lib/python3.15/email/__pycache__/encoders.cpython-315.pyc +0 -0
  437. package/python/lib/python3.15/email/__pycache__/errors.cpython-315.pyc +0 -0
  438. package/python/lib/python3.15/email/__pycache__/feedparser.cpython-315.pyc +0 -0
  439. package/python/lib/python3.15/email/__pycache__/generator.cpython-315.pyc +0 -0
  440. package/python/lib/python3.15/email/__pycache__/header.cpython-315.pyc +0 -0
  441. package/python/lib/python3.15/email/__pycache__/headerregistry.cpython-315.pyc +0 -0
  442. package/python/lib/python3.15/email/__pycache__/iterators.cpython-315.pyc +0 -0
  443. package/python/lib/python3.15/email/__pycache__/message.cpython-315.pyc +0 -0
  444. package/python/lib/python3.15/email/__pycache__/parser.cpython-315.pyc +0 -0
  445. package/python/lib/python3.15/email/__pycache__/policy.cpython-315.pyc +0 -0
  446. package/python/lib/python3.15/email/__pycache__/quoprimime.cpython-315.pyc +0 -0
  447. package/python/lib/python3.15/email/__pycache__/utils.cpython-315.pyc +0 -0
  448. package/python/lib/python3.15/email/_encoded_words.py +233 -0
  449. package/python/lib/python3.15/email/_header_value_parser.py +3216 -0
  450. package/python/lib/python3.15/email/_parseaddr.py +563 -0
  451. package/python/lib/python3.15/email/_policybase.py +392 -0
  452. package/python/lib/python3.15/email/architecture.rst +216 -0
  453. package/python/lib/python3.15/email/base64mime.py +114 -0
  454. package/python/lib/python3.15/email/charset.py +442 -0
  455. package/python/lib/python3.15/email/contentmanager.py +242 -0
  456. package/python/lib/python3.15/email/encoders.py +65 -0
  457. package/python/lib/python3.15/email/errors.py +117 -0
  458. package/python/lib/python3.15/email/feedparser.py +536 -0
  459. package/python/lib/python3.15/email/generator.py +530 -0
  460. package/python/lib/python3.15/email/header.py +582 -0
  461. package/python/lib/python3.15/email/headerregistry.py +616 -0
  462. package/python/lib/python3.15/email/iterators.py +68 -0
  463. package/python/lib/python3.15/email/message.py +1217 -0
  464. package/python/lib/python3.15/email/mime/__init__.py +0 -0
  465. package/python/lib/python3.15/email/mime/__pycache__/__init__.cpython-315.pyc +0 -0
  466. package/python/lib/python3.15/email/mime/__pycache__/application.cpython-315.pyc +0 -0
  467. package/python/lib/python3.15/email/mime/__pycache__/audio.cpython-315.pyc +0 -0
  468. package/python/lib/python3.15/email/mime/__pycache__/base.cpython-315.pyc +0 -0
  469. package/python/lib/python3.15/email/mime/__pycache__/image.cpython-315.pyc +0 -0
  470. package/python/lib/python3.15/email/mime/__pycache__/message.cpython-315.pyc +0 -0
  471. package/python/lib/python3.15/email/mime/__pycache__/multipart.cpython-315.pyc +0 -0
  472. package/python/lib/python3.15/email/mime/__pycache__/nonmultipart.cpython-315.pyc +0 -0
  473. package/python/lib/python3.15/email/mime/__pycache__/text.cpython-315.pyc +0 -0
  474. package/python/lib/python3.15/email/mime/application.py +37 -0
  475. package/python/lib/python3.15/email/mime/audio.py +97 -0
  476. package/python/lib/python3.15/email/mime/base.py +29 -0
  477. package/python/lib/python3.15/email/mime/image.py +152 -0
  478. package/python/lib/python3.15/email/mime/message.py +33 -0
  479. package/python/lib/python3.15/email/mime/multipart.py +47 -0
  480. package/python/lib/python3.15/email/mime/nonmultipart.py +21 -0
  481. package/python/lib/python3.15/email/mime/text.py +40 -0
  482. package/python/lib/python3.15/email/parser.py +127 -0
  483. package/python/lib/python3.15/email/policy.py +239 -0
  484. package/python/lib/python3.15/email/quoprimime.py +300 -0
  485. package/python/lib/python3.15/email/utils.py +493 -0
  486. package/python/lib/python3.15/encodings/__init__.py +178 -0
  487. package/python/lib/python3.15/encodings/__pycache__/__init__.cpython-315.pyc +0 -0
  488. package/python/lib/python3.15/encodings/__pycache__/_win_cp_codecs.cpython-315.pyc +0 -0
  489. package/python/lib/python3.15/encodings/__pycache__/aliases.cpython-315.pyc +0 -0
  490. package/python/lib/python3.15/encodings/__pycache__/ascii.cpython-315.pyc +0 -0
  491. package/python/lib/python3.15/encodings/__pycache__/base64_codec.cpython-315.pyc +0 -0
  492. package/python/lib/python3.15/encodings/__pycache__/big5.cpython-315.pyc +0 -0
  493. package/python/lib/python3.15/encodings/__pycache__/big5hkscs.cpython-315.pyc +0 -0
  494. package/python/lib/python3.15/encodings/__pycache__/bz2_codec.cpython-315.pyc +0 -0
  495. package/python/lib/python3.15/encodings/__pycache__/charmap.cpython-315.pyc +0 -0
  496. package/python/lib/python3.15/encodings/__pycache__/cp037.cpython-315.pyc +0 -0
  497. package/python/lib/python3.15/encodings/__pycache__/cp1006.cpython-315.pyc +0 -0
  498. package/python/lib/python3.15/encodings/__pycache__/cp1026.cpython-315.pyc +0 -0
  499. package/python/lib/python3.15/encodings/__pycache__/cp1125.cpython-315.pyc +0 -0
  500. package/python/lib/python3.15/encodings/__pycache__/cp1140.cpython-315.pyc +0 -0
  501. package/python/lib/python3.15/encodings/__pycache__/cp1250.cpython-315.pyc +0 -0
  502. package/python/lib/python3.15/encodings/__pycache__/cp1251.cpython-315.pyc +0 -0
  503. package/python/lib/python3.15/encodings/__pycache__/cp1252.cpython-315.pyc +0 -0
  504. package/python/lib/python3.15/encodings/__pycache__/cp1253.cpython-315.pyc +0 -0
  505. package/python/lib/python3.15/encodings/__pycache__/cp1254.cpython-315.pyc +0 -0
  506. package/python/lib/python3.15/encodings/__pycache__/cp1255.cpython-315.pyc +0 -0
  507. package/python/lib/python3.15/encodings/__pycache__/cp1256.cpython-315.pyc +0 -0
  508. package/python/lib/python3.15/encodings/__pycache__/cp1257.cpython-315.pyc +0 -0
  509. package/python/lib/python3.15/encodings/__pycache__/cp1258.cpython-315.pyc +0 -0
  510. package/python/lib/python3.15/encodings/__pycache__/cp273.cpython-315.pyc +0 -0
  511. package/python/lib/python3.15/encodings/__pycache__/cp424.cpython-315.pyc +0 -0
  512. package/python/lib/python3.15/encodings/__pycache__/cp437.cpython-315.pyc +0 -0
  513. package/python/lib/python3.15/encodings/__pycache__/cp500.cpython-315.pyc +0 -0
  514. package/python/lib/python3.15/encodings/__pycache__/cp720.cpython-315.pyc +0 -0
  515. package/python/lib/python3.15/encodings/__pycache__/cp737.cpython-315.pyc +0 -0
  516. package/python/lib/python3.15/encodings/__pycache__/cp775.cpython-315.pyc +0 -0
  517. package/python/lib/python3.15/encodings/__pycache__/cp850.cpython-315.pyc +0 -0
  518. package/python/lib/python3.15/encodings/__pycache__/cp852.cpython-315.pyc +0 -0
  519. package/python/lib/python3.15/encodings/__pycache__/cp855.cpython-315.pyc +0 -0
  520. package/python/lib/python3.15/encodings/__pycache__/cp856.cpython-315.pyc +0 -0
  521. package/python/lib/python3.15/encodings/__pycache__/cp857.cpython-315.pyc +0 -0
  522. package/python/lib/python3.15/encodings/__pycache__/cp858.cpython-315.pyc +0 -0
  523. package/python/lib/python3.15/encodings/__pycache__/cp860.cpython-315.pyc +0 -0
  524. package/python/lib/python3.15/encodings/__pycache__/cp861.cpython-315.pyc +0 -0
  525. package/python/lib/python3.15/encodings/__pycache__/cp862.cpython-315.pyc +0 -0
  526. package/python/lib/python3.15/encodings/__pycache__/cp863.cpython-315.pyc +0 -0
  527. package/python/lib/python3.15/encodings/__pycache__/cp864.cpython-315.pyc +0 -0
  528. package/python/lib/python3.15/encodings/__pycache__/cp865.cpython-315.pyc +0 -0
  529. package/python/lib/python3.15/encodings/__pycache__/cp866.cpython-315.pyc +0 -0
  530. package/python/lib/python3.15/encodings/__pycache__/cp869.cpython-315.pyc +0 -0
  531. package/python/lib/python3.15/encodings/__pycache__/cp874.cpython-315.pyc +0 -0
  532. package/python/lib/python3.15/encodings/__pycache__/cp875.cpython-315.pyc +0 -0
  533. package/python/lib/python3.15/encodings/__pycache__/cp932.cpython-315.pyc +0 -0
  534. package/python/lib/python3.15/encodings/__pycache__/cp949.cpython-315.pyc +0 -0
  535. package/python/lib/python3.15/encodings/__pycache__/cp950.cpython-315.pyc +0 -0
  536. package/python/lib/python3.15/encodings/__pycache__/euc_jis_2004.cpython-315.pyc +0 -0
  537. package/python/lib/python3.15/encodings/__pycache__/euc_jisx0213.cpython-315.pyc +0 -0
  538. package/python/lib/python3.15/encodings/__pycache__/euc_jp.cpython-315.pyc +0 -0
  539. package/python/lib/python3.15/encodings/__pycache__/euc_kr.cpython-315.pyc +0 -0
  540. package/python/lib/python3.15/encodings/__pycache__/gb18030.cpython-315.pyc +0 -0
  541. package/python/lib/python3.15/encodings/__pycache__/gb2312.cpython-315.pyc +0 -0
  542. package/python/lib/python3.15/encodings/__pycache__/gbk.cpython-315.pyc +0 -0
  543. package/python/lib/python3.15/encodings/__pycache__/hex_codec.cpython-315.pyc +0 -0
  544. package/python/lib/python3.15/encodings/__pycache__/hp_roman8.cpython-315.pyc +0 -0
  545. package/python/lib/python3.15/encodings/__pycache__/hz.cpython-315.pyc +0 -0
  546. package/python/lib/python3.15/encodings/__pycache__/idna.cpython-315.pyc +0 -0
  547. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp.cpython-315.pyc +0 -0
  548. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_1.cpython-315.pyc +0 -0
  549. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_2.cpython-315.pyc +0 -0
  550. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_2004.cpython-315.pyc +0 -0
  551. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_3.cpython-315.pyc +0 -0
  552. package/python/lib/python3.15/encodings/__pycache__/iso2022_jp_ext.cpython-315.pyc +0 -0
  553. package/python/lib/python3.15/encodings/__pycache__/iso2022_kr.cpython-315.pyc +0 -0
  554. package/python/lib/python3.15/encodings/__pycache__/iso8859_1.cpython-315.pyc +0 -0
  555. package/python/lib/python3.15/encodings/__pycache__/iso8859_10.cpython-315.pyc +0 -0
  556. package/python/lib/python3.15/encodings/__pycache__/iso8859_11.cpython-315.pyc +0 -0
  557. package/python/lib/python3.15/encodings/__pycache__/iso8859_13.cpython-315.pyc +0 -0
  558. package/python/lib/python3.15/encodings/__pycache__/iso8859_14.cpython-315.pyc +0 -0
  559. package/python/lib/python3.15/encodings/__pycache__/iso8859_15.cpython-315.pyc +0 -0
  560. package/python/lib/python3.15/encodings/__pycache__/iso8859_16.cpython-315.pyc +0 -0
  561. package/python/lib/python3.15/encodings/__pycache__/iso8859_2.cpython-315.pyc +0 -0
  562. package/python/lib/python3.15/encodings/__pycache__/iso8859_3.cpython-315.pyc +0 -0
  563. package/python/lib/python3.15/encodings/__pycache__/iso8859_4.cpython-315.pyc +0 -0
  564. package/python/lib/python3.15/encodings/__pycache__/iso8859_5.cpython-315.pyc +0 -0
  565. package/python/lib/python3.15/encodings/__pycache__/iso8859_6.cpython-315.pyc +0 -0
  566. package/python/lib/python3.15/encodings/__pycache__/iso8859_7.cpython-315.pyc +0 -0
  567. package/python/lib/python3.15/encodings/__pycache__/iso8859_8.cpython-315.pyc +0 -0
  568. package/python/lib/python3.15/encodings/__pycache__/iso8859_9.cpython-315.pyc +0 -0
  569. package/python/lib/python3.15/encodings/__pycache__/johab.cpython-315.pyc +0 -0
  570. package/python/lib/python3.15/encodings/__pycache__/koi8_r.cpython-315.pyc +0 -0
  571. package/python/lib/python3.15/encodings/__pycache__/koi8_t.cpython-315.pyc +0 -0
  572. package/python/lib/python3.15/encodings/__pycache__/koi8_u.cpython-315.pyc +0 -0
  573. package/python/lib/python3.15/encodings/__pycache__/kz1048.cpython-315.pyc +0 -0
  574. package/python/lib/python3.15/encodings/__pycache__/latin_1.cpython-315.pyc +0 -0
  575. package/python/lib/python3.15/encodings/__pycache__/mac_arabic.cpython-315.pyc +0 -0
  576. package/python/lib/python3.15/encodings/__pycache__/mac_croatian.cpython-315.pyc +0 -0
  577. package/python/lib/python3.15/encodings/__pycache__/mac_cyrillic.cpython-315.pyc +0 -0
  578. package/python/lib/python3.15/encodings/__pycache__/mac_farsi.cpython-315.pyc +0 -0
  579. package/python/lib/python3.15/encodings/__pycache__/mac_greek.cpython-315.pyc +0 -0
  580. package/python/lib/python3.15/encodings/__pycache__/mac_iceland.cpython-315.pyc +0 -0
  581. package/python/lib/python3.15/encodings/__pycache__/mac_latin2.cpython-315.pyc +0 -0
  582. package/python/lib/python3.15/encodings/__pycache__/mac_roman.cpython-315.pyc +0 -0
  583. package/python/lib/python3.15/encodings/__pycache__/mac_romanian.cpython-315.pyc +0 -0
  584. package/python/lib/python3.15/encodings/__pycache__/mac_turkish.cpython-315.pyc +0 -0
  585. package/python/lib/python3.15/encodings/__pycache__/mbcs.cpython-315.pyc +0 -0
  586. package/python/lib/python3.15/encodings/__pycache__/oem.cpython-315.pyc +0 -0
  587. package/python/lib/python3.15/encodings/__pycache__/palmos.cpython-315.pyc +0 -0
  588. package/python/lib/python3.15/encodings/__pycache__/ptcp154.cpython-315.pyc +0 -0
  589. package/python/lib/python3.15/encodings/__pycache__/punycode.cpython-315.pyc +0 -0
  590. package/python/lib/python3.15/encodings/__pycache__/quopri_codec.cpython-315.pyc +0 -0
  591. package/python/lib/python3.15/encodings/__pycache__/raw_unicode_escape.cpython-315.pyc +0 -0
  592. package/python/lib/python3.15/encodings/__pycache__/rot_13.cpython-315.pyc +0 -0
  593. package/python/lib/python3.15/encodings/__pycache__/shift_jis.cpython-315.pyc +0 -0
  594. package/python/lib/python3.15/encodings/__pycache__/shift_jis_2004.cpython-315.pyc +0 -0
  595. package/python/lib/python3.15/encodings/__pycache__/shift_jisx0213.cpython-315.pyc +0 -0
  596. package/python/lib/python3.15/encodings/__pycache__/tis_620.cpython-315.pyc +0 -0
  597. package/python/lib/python3.15/encodings/__pycache__/undefined.cpython-315.pyc +0 -0
  598. package/python/lib/python3.15/encodings/__pycache__/unicode_escape.cpython-315.pyc +0 -0
  599. package/python/lib/python3.15/encodings/__pycache__/utf_16.cpython-315.pyc +0 -0
  600. package/python/lib/python3.15/encodings/__pycache__/utf_16_be.cpython-315.pyc +0 -0
  601. package/python/lib/python3.15/encodings/__pycache__/utf_16_le.cpython-315.pyc +0 -0
  602. package/python/lib/python3.15/encodings/__pycache__/utf_32.cpython-315.pyc +0 -0
  603. package/python/lib/python3.15/encodings/__pycache__/utf_32_be.cpython-315.pyc +0 -0
  604. package/python/lib/python3.15/encodings/__pycache__/utf_32_le.cpython-315.pyc +0 -0
  605. package/python/lib/python3.15/encodings/__pycache__/utf_7.cpython-315.pyc +0 -0
  606. package/python/lib/python3.15/encodings/__pycache__/utf_8.cpython-315.pyc +0 -0
  607. package/python/lib/python3.15/encodings/__pycache__/utf_8_sig.cpython-315.pyc +0 -0
  608. package/python/lib/python3.15/encodings/__pycache__/uu_codec.cpython-315.pyc +0 -0
  609. package/python/lib/python3.15/encodings/__pycache__/zlib_codec.cpython-315.pyc +0 -0
  610. package/python/lib/python3.15/encodings/_win_cp_codecs.py +36 -0
  611. package/python/lib/python3.15/encodings/aliases.py +627 -0
  612. package/python/lib/python3.15/encodings/ascii.py +50 -0
  613. package/python/lib/python3.15/encodings/base64_codec.py +55 -0
  614. package/python/lib/python3.15/encodings/big5.py +39 -0
  615. package/python/lib/python3.15/encodings/big5hkscs.py +39 -0
  616. package/python/lib/python3.15/encodings/bz2_codec.py +78 -0
  617. package/python/lib/python3.15/encodings/charmap.py +69 -0
  618. package/python/lib/python3.15/encodings/cp037.py +307 -0
  619. package/python/lib/python3.15/encodings/cp1006.py +307 -0
  620. package/python/lib/python3.15/encodings/cp1026.py +307 -0
  621. package/python/lib/python3.15/encodings/cp1125.py +698 -0
  622. package/python/lib/python3.15/encodings/cp1140.py +307 -0
  623. package/python/lib/python3.15/encodings/cp1250.py +307 -0
  624. package/python/lib/python3.15/encodings/cp1251.py +307 -0
  625. package/python/lib/python3.15/encodings/cp1252.py +307 -0
  626. package/python/lib/python3.15/encodings/cp1253.py +307 -0
  627. package/python/lib/python3.15/encodings/cp1254.py +307 -0
  628. package/python/lib/python3.15/encodings/cp1255.py +307 -0
  629. package/python/lib/python3.15/encodings/cp1256.py +307 -0
  630. package/python/lib/python3.15/encodings/cp1257.py +307 -0
  631. package/python/lib/python3.15/encodings/cp1258.py +307 -0
  632. package/python/lib/python3.15/encodings/cp273.py +307 -0
  633. package/python/lib/python3.15/encodings/cp424.py +307 -0
  634. package/python/lib/python3.15/encodings/cp437.py +698 -0
  635. package/python/lib/python3.15/encodings/cp500.py +307 -0
  636. package/python/lib/python3.15/encodings/cp720.py +309 -0
  637. package/python/lib/python3.15/encodings/cp737.py +698 -0
  638. package/python/lib/python3.15/encodings/cp775.py +697 -0
  639. package/python/lib/python3.15/encodings/cp850.py +698 -0
  640. package/python/lib/python3.15/encodings/cp852.py +698 -0
  641. package/python/lib/python3.15/encodings/cp855.py +698 -0
  642. package/python/lib/python3.15/encodings/cp856.py +307 -0
  643. package/python/lib/python3.15/encodings/cp857.py +694 -0
  644. package/python/lib/python3.15/encodings/cp858.py +698 -0
  645. package/python/lib/python3.15/encodings/cp860.py +698 -0
  646. package/python/lib/python3.15/encodings/cp861.py +698 -0
  647. package/python/lib/python3.15/encodings/cp862.py +698 -0
  648. package/python/lib/python3.15/encodings/cp863.py +698 -0
  649. package/python/lib/python3.15/encodings/cp864.py +690 -0
  650. package/python/lib/python3.15/encodings/cp865.py +698 -0
  651. package/python/lib/python3.15/encodings/cp866.py +698 -0
  652. package/python/lib/python3.15/encodings/cp869.py +689 -0
  653. package/python/lib/python3.15/encodings/cp874.py +307 -0
  654. package/python/lib/python3.15/encodings/cp875.py +307 -0
  655. package/python/lib/python3.15/encodings/cp932.py +39 -0
  656. package/python/lib/python3.15/encodings/cp949.py +39 -0
  657. package/python/lib/python3.15/encodings/cp950.py +39 -0
  658. package/python/lib/python3.15/encodings/euc_jis_2004.py +39 -0
  659. package/python/lib/python3.15/encodings/euc_jisx0213.py +39 -0
  660. package/python/lib/python3.15/encodings/euc_jp.py +39 -0
  661. package/python/lib/python3.15/encodings/euc_kr.py +39 -0
  662. package/python/lib/python3.15/encodings/gb18030.py +39 -0
  663. package/python/lib/python3.15/encodings/gb2312.py +39 -0
  664. package/python/lib/python3.15/encodings/gbk.py +39 -0
  665. package/python/lib/python3.15/encodings/hex_codec.py +55 -0
  666. package/python/lib/python3.15/encodings/hp_roman8.py +314 -0
  667. package/python/lib/python3.15/encodings/hz.py +39 -0
  668. package/python/lib/python3.15/encodings/idna.py +388 -0
  669. package/python/lib/python3.15/encodings/iso2022_jp.py +39 -0
  670. package/python/lib/python3.15/encodings/iso2022_jp_1.py +39 -0
  671. package/python/lib/python3.15/encodings/iso2022_jp_2.py +39 -0
  672. package/python/lib/python3.15/encodings/iso2022_jp_2004.py +39 -0
  673. package/python/lib/python3.15/encodings/iso2022_jp_3.py +39 -0
  674. package/python/lib/python3.15/encodings/iso2022_jp_ext.py +39 -0
  675. package/python/lib/python3.15/encodings/iso2022_kr.py +39 -0
  676. package/python/lib/python3.15/encodings/iso8859_1.py +307 -0
  677. package/python/lib/python3.15/encodings/iso8859_10.py +307 -0
  678. package/python/lib/python3.15/encodings/iso8859_11.py +307 -0
  679. package/python/lib/python3.15/encodings/iso8859_13.py +307 -0
  680. package/python/lib/python3.15/encodings/iso8859_14.py +307 -0
  681. package/python/lib/python3.15/encodings/iso8859_15.py +307 -0
  682. package/python/lib/python3.15/encodings/iso8859_16.py +307 -0
  683. package/python/lib/python3.15/encodings/iso8859_2.py +307 -0
  684. package/python/lib/python3.15/encodings/iso8859_3.py +307 -0
  685. package/python/lib/python3.15/encodings/iso8859_4.py +307 -0
  686. package/python/lib/python3.15/encodings/iso8859_5.py +307 -0
  687. package/python/lib/python3.15/encodings/iso8859_6.py +307 -0
  688. package/python/lib/python3.15/encodings/iso8859_7.py +307 -0
  689. package/python/lib/python3.15/encodings/iso8859_8.py +307 -0
  690. package/python/lib/python3.15/encodings/iso8859_9.py +307 -0
  691. package/python/lib/python3.15/encodings/johab.py +39 -0
  692. package/python/lib/python3.15/encodings/koi8_r.py +307 -0
  693. package/python/lib/python3.15/encodings/koi8_t.py +308 -0
  694. package/python/lib/python3.15/encodings/koi8_u.py +307 -0
  695. package/python/lib/python3.15/encodings/kz1048.py +307 -0
  696. package/python/lib/python3.15/encodings/latin_1.py +50 -0
  697. package/python/lib/python3.15/encodings/mac_arabic.py +698 -0
  698. package/python/lib/python3.15/encodings/mac_croatian.py +307 -0
  699. package/python/lib/python3.15/encodings/mac_cyrillic.py +307 -0
  700. package/python/lib/python3.15/encodings/mac_farsi.py +307 -0
  701. package/python/lib/python3.15/encodings/mac_greek.py +307 -0
  702. package/python/lib/python3.15/encodings/mac_iceland.py +307 -0
  703. package/python/lib/python3.15/encodings/mac_latin2.py +312 -0
  704. package/python/lib/python3.15/encodings/mac_roman.py +307 -0
  705. package/python/lib/python3.15/encodings/mac_romanian.py +307 -0
  706. package/python/lib/python3.15/encodings/mac_turkish.py +307 -0
  707. package/python/lib/python3.15/encodings/mbcs.py +47 -0
  708. package/python/lib/python3.15/encodings/oem.py +41 -0
  709. package/python/lib/python3.15/encodings/palmos.py +308 -0
  710. package/python/lib/python3.15/encodings/ptcp154.py +312 -0
  711. package/python/lib/python3.15/encodings/punycode.py +253 -0
  712. package/python/lib/python3.15/encodings/quopri_codec.py +56 -0
  713. package/python/lib/python3.15/encodings/raw_unicode_escape.py +46 -0
  714. package/python/lib/python3.15/encodings/rot_13.py +113 -0
  715. package/python/lib/python3.15/encodings/shift_jis.py +39 -0
  716. package/python/lib/python3.15/encodings/shift_jis_2004.py +39 -0
  717. package/python/lib/python3.15/encodings/shift_jisx0213.py +39 -0
  718. package/python/lib/python3.15/encodings/tis_620.py +307 -0
  719. package/python/lib/python3.15/encodings/undefined.py +49 -0
  720. package/python/lib/python3.15/encodings/unicode_escape.py +46 -0
  721. package/python/lib/python3.15/encodings/utf_16.py +155 -0
  722. package/python/lib/python3.15/encodings/utf_16_be.py +42 -0
  723. package/python/lib/python3.15/encodings/utf_16_le.py +42 -0
  724. package/python/lib/python3.15/encodings/utf_32.py +150 -0
  725. package/python/lib/python3.15/encodings/utf_32_be.py +37 -0
  726. package/python/lib/python3.15/encodings/utf_32_le.py +37 -0
  727. package/python/lib/python3.15/encodings/utf_7.py +38 -0
  728. package/python/lib/python3.15/encodings/utf_8.py +42 -0
  729. package/python/lib/python3.15/encodings/utf_8_sig.py +130 -0
  730. package/python/lib/python3.15/encodings/uu_codec.py +103 -0
  731. package/python/lib/python3.15/encodings/zlib_codec.py +77 -0
  732. package/python/lib/python3.15/enum.py +2198 -0
  733. package/python/lib/python3.15/filecmp.py +320 -0
  734. package/python/lib/python3.15/fileinput.py +442 -0
  735. package/python/lib/python3.15/fnmatch.py +209 -0
  736. package/python/lib/python3.15/fractions.py +1078 -0
  737. package/python/lib/python3.15/ftplib.py +975 -0
  738. package/python/lib/python3.15/functools.py +1208 -0
  739. package/python/lib/python3.15/genericpath.py +220 -0
  740. package/python/lib/python3.15/getopt.py +232 -0
  741. package/python/lib/python3.15/getpass.py +450 -0
  742. package/python/lib/python3.15/gettext.py +661 -0
  743. package/python/lib/python3.15/glob.py +553 -0
  744. package/python/lib/python3.15/graphlib.py +309 -0
  745. package/python/lib/python3.15/gzip.py +754 -0
  746. package/python/lib/python3.15/hashlib.py +297 -0
  747. package/python/lib/python3.15/heapq.py +611 -0
  748. package/python/lib/python3.15/hmac.py +293 -0
  749. package/python/lib/python3.15/html/__init__.py +132 -0
  750. package/python/lib/python3.15/html/__pycache__/__init__.cpython-315.pyc +0 -0
  751. package/python/lib/python3.15/html/__pycache__/entities.cpython-315.pyc +0 -0
  752. package/python/lib/python3.15/html/__pycache__/parser.cpython-315.pyc +0 -0
  753. package/python/lib/python3.15/html/entities.py +2513 -0
  754. package/python/lib/python3.15/html/parser.py +583 -0
  755. package/python/lib/python3.15/http/__init__.py +213 -0
  756. package/python/lib/python3.15/http/__pycache__/__init__.cpython-315.pyc +0 -0
  757. package/python/lib/python3.15/http/__pycache__/client.cpython-315.pyc +0 -0
  758. package/python/lib/python3.15/http/__pycache__/cookiejar.cpython-315.pyc +0 -0
  759. package/python/lib/python3.15/http/__pycache__/cookies.cpython-315.pyc +0 -0
  760. package/python/lib/python3.15/http/__pycache__/server.cpython-315.pyc +0 -0
  761. package/python/lib/python3.15/http/client.py +1614 -0
  762. package/python/lib/python3.15/http/cookiejar.py +2138 -0
  763. package/python/lib/python3.15/http/cookies.py +652 -0
  764. package/python/lib/python3.15/http/server.py +1177 -0
  765. package/python/lib/python3.15/imaplib.py +2106 -0
  766. package/python/lib/python3.15/importlib/__init__.py +136 -0
  767. package/python/lib/python3.15/importlib/__pycache__/__init__.cpython-315.pyc +0 -0
  768. package/python/lib/python3.15/importlib/__pycache__/_abc.cpython-315.pyc +0 -0
  769. package/python/lib/python3.15/importlib/__pycache__/_bootstrap.cpython-315.pyc +0 -0
  770. package/python/lib/python3.15/importlib/__pycache__/_bootstrap_external.cpython-315.pyc +0 -0
  771. package/python/lib/python3.15/importlib/__pycache__/abc.cpython-315.pyc +0 -0
  772. package/python/lib/python3.15/importlib/__pycache__/machinery.cpython-315.pyc +0 -0
  773. package/python/lib/python3.15/importlib/__pycache__/readers.cpython-315.pyc +0 -0
  774. package/python/lib/python3.15/importlib/__pycache__/simple.cpython-315.pyc +0 -0
  775. package/python/lib/python3.15/importlib/__pycache__/util.cpython-315.pyc +0 -0
  776. package/python/lib/python3.15/importlib/_abc.py +21 -0
  777. package/python/lib/python3.15/importlib/_bootstrap.py +1553 -0
  778. package/python/lib/python3.15/importlib/_bootstrap_external.py +1591 -0
  779. package/python/lib/python3.15/importlib/abc.py +251 -0
  780. package/python/lib/python3.15/importlib/machinery.py +51 -0
  781. package/python/lib/python3.15/importlib/metadata/__init__.py +1206 -0
  782. package/python/lib/python3.15/importlib/metadata/__pycache__/__init__.cpython-315.pyc +0 -0
  783. package/python/lib/python3.15/importlib/metadata/__pycache__/_adapters.cpython-315.pyc +0 -0
  784. package/python/lib/python3.15/importlib/metadata/__pycache__/_collections.cpython-315.pyc +0 -0
  785. package/python/lib/python3.15/importlib/metadata/__pycache__/_context.cpython-315.pyc +0 -0
  786. package/python/lib/python3.15/importlib/metadata/__pycache__/_functools.cpython-315.pyc +0 -0
  787. package/python/lib/python3.15/importlib/metadata/__pycache__/_itertools.cpython-315.pyc +0 -0
  788. package/python/lib/python3.15/importlib/metadata/__pycache__/_meta.cpython-315.pyc +0 -0
  789. package/python/lib/python3.15/importlib/metadata/__pycache__/_text.cpython-315.pyc +0 -0
  790. package/python/lib/python3.15/importlib/metadata/__pycache__/_typing.cpython-315.pyc +0 -0
  791. package/python/lib/python3.15/importlib/metadata/__pycache__/diagnose.cpython-315.pyc +0 -0
  792. package/python/lib/python3.15/importlib/metadata/_adapters.py +136 -0
  793. package/python/lib/python3.15/importlib/metadata/_collections.py +34 -0
  794. package/python/lib/python3.15/importlib/metadata/_context.py +118 -0
  795. package/python/lib/python3.15/importlib/metadata/_functools.py +136 -0
  796. package/python/lib/python3.15/importlib/metadata/_itertools.py +171 -0
  797. package/python/lib/python3.15/importlib/metadata/_meta.py +71 -0
  798. package/python/lib/python3.15/importlib/metadata/_text.py +99 -0
  799. package/python/lib/python3.15/importlib/metadata/_typing.py +15 -0
  800. package/python/lib/python3.15/importlib/metadata/diagnose.py +21 -0
  801. package/python/lib/python3.15/importlib/readers.py +12 -0
  802. package/python/lib/python3.15/importlib/resources/__init__.py +40 -0
  803. package/python/lib/python3.15/importlib/resources/__pycache__/__init__.cpython-315.pyc +0 -0
  804. package/python/lib/python3.15/importlib/resources/__pycache__/_adapters.cpython-315.pyc +0 -0
  805. package/python/lib/python3.15/importlib/resources/__pycache__/_common.cpython-315.pyc +0 -0
  806. package/python/lib/python3.15/importlib/resources/__pycache__/_functional.cpython-315.pyc +0 -0
  807. package/python/lib/python3.15/importlib/resources/__pycache__/_itertools.cpython-315.pyc +0 -0
  808. package/python/lib/python3.15/importlib/resources/__pycache__/abc.cpython-315.pyc +0 -0
  809. package/python/lib/python3.15/importlib/resources/__pycache__/readers.cpython-315.pyc +0 -0
  810. package/python/lib/python3.15/importlib/resources/__pycache__/simple.cpython-315.pyc +0 -0
  811. package/python/lib/python3.15/importlib/resources/_adapters.py +168 -0
  812. package/python/lib/python3.15/importlib/resources/_common.py +191 -0
  813. package/python/lib/python3.15/importlib/resources/_functional.py +84 -0
  814. package/python/lib/python3.15/importlib/resources/_itertools.py +38 -0
  815. package/python/lib/python3.15/importlib/resources/abc.py +189 -0
  816. package/python/lib/python3.15/importlib/resources/readers.py +202 -0
  817. package/python/lib/python3.15/importlib/resources/simple.py +106 -0
  818. package/python/lib/python3.15/importlib/simple.py +14 -0
  819. package/python/lib/python3.15/importlib/util.py +279 -0
  820. package/python/lib/python3.15/inspect.py +3511 -0
  821. package/python/lib/python3.15/io.py +150 -0
  822. package/python/lib/python3.15/ipaddress.py +2431 -0
  823. package/python/lib/python3.15/json/__init__.py +395 -0
  824. package/python/lib/python3.15/json/__main__.py +20 -0
  825. package/python/lib/python3.15/json/__pycache__/__init__.cpython-315.pyc +0 -0
  826. package/python/lib/python3.15/json/__pycache__/__main__.cpython-315.pyc +0 -0
  827. package/python/lib/python3.15/json/__pycache__/decoder.cpython-315.pyc +0 -0
  828. package/python/lib/python3.15/json/__pycache__/encoder.cpython-315.pyc +0 -0
  829. package/python/lib/python3.15/json/__pycache__/scanner.cpython-315.pyc +0 -0
  830. package/python/lib/python3.15/json/__pycache__/tool.cpython-315.pyc +0 -0
  831. package/python/lib/python3.15/json/decoder.py +377 -0
  832. package/python/lib/python3.15/json/encoder.py +459 -0
  833. package/python/lib/python3.15/json/scanner.py +74 -0
  834. package/python/lib/python3.15/json/tool.py +123 -0
  835. package/python/lib/python3.15/keyword.py +65 -0
  836. package/python/lib/python3.15/lib-dynload/.empty +0 -0
  837. package/python/lib/python3.15/lib-dynload/_dbm.cpython-315-s390x-linux-gnu.so +0 -0
  838. package/python/lib/python3.15/linecache.py +339 -0
  839. package/python/lib/python3.15/locale.py +2007 -0
  840. package/python/lib/python3.15/logging/__init__.py +2369 -0
  841. package/python/lib/python3.15/logging/__pycache__/__init__.cpython-315.pyc +0 -0
  842. package/python/lib/python3.15/logging/__pycache__/config.cpython-315.pyc +0 -0
  843. package/python/lib/python3.15/logging/__pycache__/handlers.cpython-315.pyc +0 -0
  844. package/python/lib/python3.15/logging/config.py +1093 -0
  845. package/python/lib/python3.15/logging/handlers.py +1667 -0
  846. package/python/lib/python3.15/lzma.py +364 -0
  847. package/python/lib/python3.15/mailbox.py +2225 -0
  848. package/python/lib/python3.15/mimetypes.py +768 -0
  849. package/python/lib/python3.15/modulefinder.py +680 -0
  850. package/python/lib/python3.15/multiprocessing/__init__.py +37 -0
  851. package/python/lib/python3.15/multiprocessing/__pycache__/__init__.cpython-315.pyc +0 -0
  852. package/python/lib/python3.15/multiprocessing/__pycache__/connection.cpython-315.pyc +0 -0
  853. package/python/lib/python3.15/multiprocessing/__pycache__/context.cpython-315.pyc +0 -0
  854. package/python/lib/python3.15/multiprocessing/__pycache__/forkserver.cpython-315.pyc +0 -0
  855. package/python/lib/python3.15/multiprocessing/__pycache__/heap.cpython-315.pyc +0 -0
  856. package/python/lib/python3.15/multiprocessing/__pycache__/managers.cpython-315.pyc +0 -0
  857. package/python/lib/python3.15/multiprocessing/__pycache__/pool.cpython-315.pyc +0 -0
  858. package/python/lib/python3.15/multiprocessing/__pycache__/popen_fork.cpython-315.pyc +0 -0
  859. package/python/lib/python3.15/multiprocessing/__pycache__/popen_forkserver.cpython-315.pyc +0 -0
  860. package/python/lib/python3.15/multiprocessing/__pycache__/popen_spawn_posix.cpython-315.pyc +0 -0
  861. package/python/lib/python3.15/multiprocessing/__pycache__/popen_spawn_win32.cpython-315.pyc +0 -0
  862. package/python/lib/python3.15/multiprocessing/__pycache__/process.cpython-315.pyc +0 -0
  863. package/python/lib/python3.15/multiprocessing/__pycache__/queues.cpython-315.pyc +0 -0
  864. package/python/lib/python3.15/multiprocessing/__pycache__/reduction.cpython-315.pyc +0 -0
  865. package/python/lib/python3.15/multiprocessing/__pycache__/resource_sharer.cpython-315.pyc +0 -0
  866. package/python/lib/python3.15/multiprocessing/__pycache__/resource_tracker.cpython-315.pyc +0 -0
  867. package/python/lib/python3.15/multiprocessing/__pycache__/shared_memory.cpython-315.pyc +0 -0
  868. package/python/lib/python3.15/multiprocessing/__pycache__/sharedctypes.cpython-315.pyc +0 -0
  869. package/python/lib/python3.15/multiprocessing/__pycache__/spawn.cpython-315.pyc +0 -0
  870. package/python/lib/python3.15/multiprocessing/__pycache__/synchronize.cpython-315.pyc +0 -0
  871. package/python/lib/python3.15/multiprocessing/__pycache__/util.cpython-315.pyc +0 -0
  872. package/python/lib/python3.15/multiprocessing/connection.py +1240 -0
  873. package/python/lib/python3.15/multiprocessing/context.py +408 -0
  874. package/python/lib/python3.15/multiprocessing/dummy/__init__.py +126 -0
  875. package/python/lib/python3.15/multiprocessing/dummy/__pycache__/__init__.cpython-315.pyc +0 -0
  876. package/python/lib/python3.15/multiprocessing/dummy/__pycache__/connection.cpython-315.pyc +0 -0
  877. package/python/lib/python3.15/multiprocessing/dummy/connection.py +75 -0
  878. package/python/lib/python3.15/multiprocessing/forkserver.py +493 -0
  879. package/python/lib/python3.15/multiprocessing/heap.py +333 -0
  880. package/python/lib/python3.15/multiprocessing/managers.py +1438 -0
  881. package/python/lib/python3.15/multiprocessing/pool.py +957 -0
  882. package/python/lib/python3.15/multiprocessing/popen_fork.py +100 -0
  883. package/python/lib/python3.15/multiprocessing/popen_forkserver.py +74 -0
  884. package/python/lib/python3.15/multiprocessing/popen_spawn_posix.py +76 -0
  885. package/python/lib/python3.15/multiprocessing/popen_spawn_win32.py +147 -0
  886. package/python/lib/python3.15/multiprocessing/process.py +443 -0
  887. package/python/lib/python3.15/multiprocessing/queues.py +399 -0
  888. package/python/lib/python3.15/multiprocessing/reduction.py +281 -0
  889. package/python/lib/python3.15/multiprocessing/resource_sharer.py +154 -0
  890. package/python/lib/python3.15/multiprocessing/resource_tracker.py +495 -0
  891. package/python/lib/python3.15/multiprocessing/shared_memory.py +544 -0
  892. package/python/lib/python3.15/multiprocessing/sharedctypes.py +245 -0
  893. package/python/lib/python3.15/multiprocessing/spawn.py +307 -0
  894. package/python/lib/python3.15/multiprocessing/synchronize.py +411 -0
  895. package/python/lib/python3.15/multiprocessing/util.py +619 -0
  896. package/python/lib/python3.15/netrc.py +205 -0
  897. package/python/lib/python3.15/ntpath.py +896 -0
  898. package/python/lib/python3.15/nturl2path.py +82 -0
  899. package/python/lib/python3.15/numbers.py +427 -0
  900. package/python/lib/python3.15/opcode.py +135 -0
  901. package/python/lib/python3.15/operator.py +475 -0
  902. package/python/lib/python3.15/optparse.py +1673 -0
  903. package/python/lib/python3.15/os.py +1217 -0
  904. package/python/lib/python3.15/pathlib/__init__.py +1508 -0
  905. package/python/lib/python3.15/pathlib/__pycache__/__init__.cpython-315.pyc +0 -0
  906. package/python/lib/python3.15/pathlib/__pycache__/_local.cpython-315.pyc +0 -0
  907. package/python/lib/python3.15/pathlib/__pycache__/_os.cpython-315.pyc +0 -0
  908. package/python/lib/python3.15/pathlib/__pycache__/types.cpython-315.pyc +0 -0
  909. package/python/lib/python3.15/pathlib/_local.py +12 -0
  910. package/python/lib/python3.15/pathlib/_os.py +303 -0
  911. package/python/lib/python3.15/pathlib/types.py +476 -0
  912. package/python/lib/python3.15/pdb.py +3899 -0
  913. package/python/lib/python3.15/pickle.py +1955 -0
  914. package/python/lib/python3.15/pickletools.py +2934 -0
  915. package/python/lib/python3.15/pkgutil.py +492 -0
  916. package/python/lib/python3.15/platform.py +1446 -0
  917. package/python/lib/python3.15/plistlib.py +949 -0
  918. package/python/lib/python3.15/poplib.py +479 -0
  919. package/python/lib/python3.15/posixpath.py +597 -0
  920. package/python/lib/python3.15/pprint.py +972 -0
  921. package/python/lib/python3.15/profile.py +623 -0
  922. package/python/lib/python3.15/profiling/__init__.py +13 -0
  923. package/python/lib/python3.15/profiling/__pycache__/__init__.cpython-315.pyc +0 -0
  924. package/python/lib/python3.15/profiling/sampling/__init__.py +23 -0
  925. package/python/lib/python3.15/profiling/sampling/__main__.py +73 -0
  926. package/python/lib/python3.15/profiling/sampling/__pycache__/__init__.cpython-315.pyc +0 -0
  927. package/python/lib/python3.15/profiling/sampling/__pycache__/__main__.cpython-315.pyc +0 -0
  928. package/python/lib/python3.15/profiling/sampling/__pycache__/_child_monitor.cpython-315.pyc +0 -0
  929. package/python/lib/python3.15/profiling/sampling/__pycache__/_css_utils.cpython-315.pyc +0 -0
  930. package/python/lib/python3.15/profiling/sampling/__pycache__/_format_utils.cpython-315.pyc +0 -0
  931. package/python/lib/python3.15/profiling/sampling/__pycache__/_sync_coordinator.cpython-315.pyc +0 -0
  932. package/python/lib/python3.15/profiling/sampling/__pycache__/binary_collector.cpython-315.pyc +0 -0
  933. package/python/lib/python3.15/profiling/sampling/__pycache__/binary_reader.cpython-315.pyc +0 -0
  934. package/python/lib/python3.15/profiling/sampling/__pycache__/cli.cpython-315.pyc +0 -0
  935. package/python/lib/python3.15/profiling/sampling/__pycache__/collector.cpython-315.pyc +0 -0
  936. package/python/lib/python3.15/profiling/sampling/__pycache__/constants.cpython-315.pyc +0 -0
  937. package/python/lib/python3.15/profiling/sampling/__pycache__/dump.cpython-315.pyc +0 -0
  938. package/python/lib/python3.15/profiling/sampling/__pycache__/errors.cpython-315.pyc +0 -0
  939. package/python/lib/python3.15/profiling/sampling/__pycache__/gecko_collector.cpython-315.pyc +0 -0
  940. package/python/lib/python3.15/profiling/sampling/__pycache__/heatmap_collector.cpython-315.pyc +0 -0
  941. package/python/lib/python3.15/profiling/sampling/__pycache__/jsonl_collector.cpython-315.pyc +0 -0
  942. package/python/lib/python3.15/profiling/sampling/__pycache__/module_utils.cpython-315.pyc +0 -0
  943. package/python/lib/python3.15/profiling/sampling/__pycache__/opcode_utils.cpython-315.pyc +0 -0
  944. package/python/lib/python3.15/profiling/sampling/__pycache__/pstats_collector.cpython-315.pyc +0 -0
  945. package/python/lib/python3.15/profiling/sampling/__pycache__/sample.cpython-315.pyc +0 -0
  946. package/python/lib/python3.15/profiling/sampling/__pycache__/stack_collector.cpython-315.pyc +0 -0
  947. package/python/lib/python3.15/profiling/sampling/__pycache__/string_table.cpython-315.pyc +0 -0
  948. package/python/lib/python3.15/profiling/sampling/_assets/python-logo-only.png +0 -0
  949. package/python/lib/python3.15/profiling/sampling/_assets/tachyon-logo.png +0 -0
  950. package/python/lib/python3.15/profiling/sampling/_child_monitor.py +279 -0
  951. package/python/lib/python3.15/profiling/sampling/_css_utils.py +22 -0
  952. package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph.css +1085 -0
  953. package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph.js +1528 -0
  954. package/python/lib/python3.15/profiling/sampling/_flamegraph_assets/flamegraph_template.html +464 -0
  955. package/python/lib/python3.15/profiling/sampling/_format_utils.py +5 -0
  956. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap.css +1555 -0
  957. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap.js +738 -0
  958. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_index.js +104 -0
  959. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_index_template.html +136 -0
  960. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_pyfile_template.html +131 -0
  961. package/python/lib/python3.15/profiling/sampling/_heatmap_assets/heatmap_shared.js +64 -0
  962. package/python/lib/python3.15/profiling/sampling/_shared_assets/base.css +514 -0
  963. package/python/lib/python3.15/profiling/sampling/_shared_assets/base.js +58 -0
  964. package/python/lib/python3.15/profiling/sampling/_sync_coordinator.py +261 -0
  965. package/python/lib/python3.15/profiling/sampling/_vendor/d3/7.8.5/d3.min.js +2 -0
  966. package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph-tooltip.min.js +1 -0
  967. package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.css +46 -0
  968. package/python/lib/python3.15/profiling/sampling/_vendor/d3-flame-graph/4.1.3/d3-flamegraph.min.js +1 -0
  969. package/python/lib/python3.15/profiling/sampling/binary_collector.py +159 -0
  970. package/python/lib/python3.15/profiling/sampling/binary_reader.py +148 -0
  971. package/python/lib/python3.15/profiling/sampling/cli.py +1462 -0
  972. package/python/lib/python3.15/profiling/sampling/collector.py +292 -0
  973. package/python/lib/python3.15/profiling/sampling/constants.py +57 -0
  974. package/python/lib/python3.15/profiling/sampling/dump.py +295 -0
  975. package/python/lib/python3.15/profiling/sampling/errors.py +19 -0
  976. package/python/lib/python3.15/profiling/sampling/gecko_collector.py +1006 -0
  977. package/python/lib/python3.15/profiling/sampling/heatmap_collector.py +1145 -0
  978. package/python/lib/python3.15/profiling/sampling/jsonl_collector.py +268 -0
  979. package/python/lib/python3.15/profiling/sampling/live_collector/__init__.py +200 -0
  980. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/__init__.cpython-315.pyc +0 -0
  981. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/collector.cpython-315.pyc +0 -0
  982. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/constants.cpython-315.pyc +0 -0
  983. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/display.cpython-315.pyc +0 -0
  984. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/trend_tracker.cpython-315.pyc +0 -0
  985. package/python/lib/python3.15/profiling/sampling/live_collector/__pycache__/widgets.cpython-315.pyc +0 -0
  986. package/python/lib/python3.15/profiling/sampling/live_collector/collector.py +1112 -0
  987. package/python/lib/python3.15/profiling/sampling/live_collector/constants.py +65 -0
  988. package/python/lib/python3.15/profiling/sampling/live_collector/display.py +240 -0
  989. package/python/lib/python3.15/profiling/sampling/live_collector/trend_tracker.py +157 -0
  990. package/python/lib/python3.15/profiling/sampling/live_collector/widgets.py +1090 -0
  991. package/python/lib/python3.15/profiling/sampling/module_utils.py +102 -0
  992. package/python/lib/python3.15/profiling/sampling/opcode_utils.py +94 -0
  993. package/python/lib/python3.15/profiling/sampling/pstats_collector.py +429 -0
  994. package/python/lib/python3.15/profiling/sampling/sample.py +665 -0
  995. package/python/lib/python3.15/profiling/sampling/stack_collector.py +928 -0
  996. package/python/lib/python3.15/profiling/sampling/string_table.py +53 -0
  997. package/python/lib/python3.15/profiling/tracing/__init__.py +220 -0
  998. package/python/lib/python3.15/profiling/tracing/__main__.py +6 -0
  999. package/python/lib/python3.15/profiling/tracing/__pycache__/__init__.cpython-315.pyc +0 -0
  1000. package/python/lib/python3.15/profiling/tracing/__pycache__/__main__.cpython-315.pyc +0 -0
  1001. package/python/lib/python3.15/profiling/tracing/__pycache__/_utils.cpython-315.pyc +0 -0
  1002. package/python/lib/python3.15/profiling/tracing/_utils.py +32 -0
  1003. package/python/lib/python3.15/pstats.py +840 -0
  1004. package/python/lib/python3.15/pty.py +182 -0
  1005. package/python/lib/python3.15/py_compile.py +214 -0
  1006. package/python/lib/python3.15/pyclbr.py +313 -0
  1007. package/python/lib/python3.15/pydoc.py +2843 -0
  1008. package/python/lib/python3.15/queue.py +385 -0
  1009. package/python/lib/python3.15/quopri.py +235 -0
  1010. package/python/lib/python3.15/random.py +1087 -0
  1011. package/python/lib/python3.15/re/__init__.py +442 -0
  1012. package/python/lib/python3.15/re/__pycache__/__init__.cpython-315.pyc +0 -0
  1013. package/python/lib/python3.15/re/__pycache__/_casefix.cpython-315.pyc +0 -0
  1014. package/python/lib/python3.15/re/__pycache__/_compiler.cpython-315.pyc +0 -0
  1015. package/python/lib/python3.15/re/__pycache__/_constants.cpython-315.pyc +0 -0
  1016. package/python/lib/python3.15/re/__pycache__/_parser.cpython-315.pyc +0 -0
  1017. package/python/lib/python3.15/re/_casefix.py +106 -0
  1018. package/python/lib/python3.15/re/_compiler.py +782 -0
  1019. package/python/lib/python3.15/re/_constants.py +224 -0
  1020. package/python/lib/python3.15/re/_parser.py +1065 -0
  1021. package/python/lib/python3.15/reprlib.py +230 -0
  1022. package/python/lib/python3.15/rlcompleter.py +232 -0
  1023. package/python/lib/python3.15/runpy.py +324 -0
  1024. package/python/lib/python3.15/sched.py +167 -0
  1025. package/python/lib/python3.15/secrets.py +71 -0
  1026. package/python/lib/python3.15/selectors.py +603 -0
  1027. package/python/lib/python3.15/shelve.py +266 -0
  1028. package/python/lib/python3.15/shlex.py +351 -0
  1029. package/python/lib/python3.15/shutil.py +1663 -0
  1030. package/python/lib/python3.15/signal.py +94 -0
  1031. package/python/lib/python3.15/site-packages/_yaml/__init__.py +33 -0
  1032. package/python/lib/python3.15/site-packages/_yaml/__pycache__/__init__.cpython-315.pyc +0 -0
  1033. package/python/lib/python3.15/site-packages/click/__init__.py +144 -0
  1034. package/python/lib/python3.15/site-packages/click/__pycache__/__init__.cpython-315.pyc +0 -0
  1035. package/python/lib/python3.15/site-packages/click/__pycache__/_compat.cpython-315.pyc +0 -0
  1036. package/python/lib/python3.15/site-packages/click/__pycache__/_termui_impl.cpython-315.pyc +0 -0
  1037. package/python/lib/python3.15/site-packages/click/__pycache__/_textwrap.cpython-315.pyc +0 -0
  1038. package/python/lib/python3.15/site-packages/click/__pycache__/_utils.cpython-315.pyc +0 -0
  1039. package/python/lib/python3.15/site-packages/click/__pycache__/_winconsole.cpython-315.pyc +0 -0
  1040. package/python/lib/python3.15/site-packages/click/__pycache__/core.cpython-315.pyc +0 -0
  1041. package/python/lib/python3.15/site-packages/click/__pycache__/decorators.cpython-315.pyc +0 -0
  1042. package/python/lib/python3.15/site-packages/click/__pycache__/exceptions.cpython-315.pyc +0 -0
  1043. package/python/lib/python3.15/site-packages/click/__pycache__/formatting.cpython-315.pyc +0 -0
  1044. package/python/lib/python3.15/site-packages/click/__pycache__/globals.cpython-315.pyc +0 -0
  1045. package/python/lib/python3.15/site-packages/click/__pycache__/parser.cpython-315.pyc +0 -0
  1046. package/python/lib/python3.15/site-packages/click/__pycache__/shell_completion.cpython-315.pyc +0 -0
  1047. package/python/lib/python3.15/site-packages/click/__pycache__/termui.cpython-315.pyc +0 -0
  1048. package/python/lib/python3.15/site-packages/click/__pycache__/testing.cpython-315.pyc +0 -0
  1049. package/python/lib/python3.15/site-packages/click/__pycache__/types.cpython-315.pyc +0 -0
  1050. package/python/lib/python3.15/site-packages/click/__pycache__/utils.cpython-315.pyc +0 -0
  1051. package/python/lib/python3.15/site-packages/click/_compat.py +590 -0
  1052. package/python/lib/python3.15/site-packages/click/_termui_impl.py +970 -0
  1053. package/python/lib/python3.15/site-packages/click/_textwrap.py +188 -0
  1054. package/python/lib/python3.15/site-packages/click/_utils.py +45 -0
  1055. package/python/lib/python3.15/site-packages/click/_winconsole.py +292 -0
  1056. package/python/lib/python3.15/site-packages/click/core.py +3825 -0
  1057. package/python/lib/python3.15/site-packages/click/decorators.py +625 -0
  1058. package/python/lib/python3.15/site-packages/click/exceptions.py +378 -0
  1059. package/python/lib/python3.15/site-packages/click/formatting.py +320 -0
  1060. package/python/lib/python3.15/site-packages/click/globals.py +67 -0
  1061. package/python/lib/python3.15/site-packages/click/parser.py +533 -0
  1062. package/python/lib/python3.15/site-packages/click/py.typed +0 -0
  1063. package/python/lib/python3.15/site-packages/click/shell_completion.py +796 -0
  1064. package/python/lib/python3.15/site-packages/click/termui.py +1024 -0
  1065. package/python/lib/python3.15/site-packages/click/testing.py +796 -0
  1066. package/python/lib/python3.15/site-packages/click/types.py +1437 -0
  1067. package/python/lib/python3.15/site-packages/click/utils.py +676 -0
  1068. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/INSTALLER +1 -0
  1069. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/METADATA +83 -0
  1070. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/RECORD +24 -0
  1071. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/REQUESTED +0 -0
  1072. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/WHEEL +4 -0
  1073. package/python/lib/python3.15/site-packages/click-8.5.1.dist-info/licenses/LICENSE.txt +28 -0
  1074. package/python/lib/python3.15/site-packages/cssbeautifier/__init__.py +51 -0
  1075. package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/__init__.cpython-315.pyc +0 -0
  1076. package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/__version__.cpython-315.pyc +0 -0
  1077. package/python/lib/python3.15/site-packages/cssbeautifier/__pycache__/_main.cpython-315.pyc +0 -0
  1078. package/python/lib/python3.15/site-packages/cssbeautifier/__version__.py +1 -0
  1079. package/python/lib/python3.15/site-packages/cssbeautifier/_main.py +208 -0
  1080. package/python/lib/python3.15/site-packages/cssbeautifier/css/__init__.py +1 -0
  1081. package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/__init__.cpython-315.pyc +0 -0
  1082. package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/beautifier.cpython-315.pyc +0 -0
  1083. package/python/lib/python3.15/site-packages/cssbeautifier/css/__pycache__/options.cpython-315.pyc +0 -0
  1084. package/python/lib/python3.15/site-packages/cssbeautifier/css/beautifier.py +559 -0
  1085. package/python/lib/python3.15/site-packages/cssbeautifier/css/options.py +60 -0
  1086. package/python/lib/python3.15/site-packages/cssbeautifier/tests/__init__.py +1 -0
  1087. package/python/lib/python3.15/site-packages/cssbeautifier/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1088. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__init__.py +1 -0
  1089. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__pycache__/__init__.cpython-315.pyc +0 -0
  1090. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/__pycache__/tests.cpython-315.pyc +0 -0
  1091. package/python/lib/python3.15/site-packages/cssbeautifier/tests/generated/tests.py +11333 -0
  1092. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1093. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/METADATA +19 -0
  1094. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/RECORD +51 -0
  1095. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1096. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1097. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1098. package/python/lib/python3.15/site-packages/cssbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1099. package/python/lib/python3.15/site-packages/djlint/__init__.py +27 -0
  1100. package/python/lib/python3.15/site-packages/djlint/__main__.py +8 -0
  1101. package/python/lib/python3.15/site-packages/djlint/__pycache__/__init__.cpython-315.pyc +0 -0
  1102. package/python/lib/python3.15/site-packages/djlint/__pycache__/__main__.cpython-315.pyc +0 -0
  1103. package/python/lib/python3.15/site-packages/djlint/__pycache__/_cli.cpython-315.pyc +0 -0
  1104. package/python/lib/python3.15/site-packages/djlint/__pycache__/api.cpython-315.pyc +0 -0
  1105. package/python/lib/python3.15/site-packages/djlint/__pycache__/const.cpython-315.pyc +0 -0
  1106. package/python/lib/python3.15/site-packages/djlint/__pycache__/github_output.cpython-315.pyc +0 -0
  1107. package/python/lib/python3.15/site-packages/djlint/__pycache__/helpers.cpython-315.pyc +0 -0
  1108. package/python/lib/python3.15/site-packages/djlint/__pycache__/lint.cpython-315.pyc +0 -0
  1109. package/python/lib/python3.15/site-packages/djlint/__pycache__/output.cpython-315.pyc +0 -0
  1110. package/python/lib/python3.15/site-packages/djlint/__pycache__/reformat.cpython-315.pyc +0 -0
  1111. package/python/lib/python3.15/site-packages/djlint/__pycache__/sarif_output.cpython-315.pyc +0 -0
  1112. package/python/lib/python3.15/site-packages/djlint/__pycache__/server.cpython-315.pyc +0 -0
  1113. package/python/lib/python3.15/site-packages/djlint/__pycache__/settings.cpython-315.pyc +0 -0
  1114. package/python/lib/python3.15/site-packages/djlint/__pycache__/src.cpython-315.pyc +0 -0
  1115. package/python/lib/python3.15/site-packages/djlint/_cli.py +1006 -0
  1116. package/python/lib/python3.15/site-packages/djlint/api.py +106 -0
  1117. package/python/lib/python3.15/site-packages/djlint/const.py +506 -0
  1118. package/python/lib/python3.15/site-packages/djlint/formatter/__init__.py +0 -0
  1119. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/__init__.cpython-315.pyc +0 -0
  1120. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attribute_values.cpython-315.pyc +0 -0
  1121. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attributes.cpython-315.pyc +0 -0
  1122. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/beautifier.cpython-315.pyc +0 -0
  1123. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/class_attributes.cpython-315.pyc +0 -0
  1124. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/compress.cpython-315.pyc +0 -0
  1125. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/condense.cpython-315.pyc +0 -0
  1126. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/css.cpython-315.pyc +0 -0
  1127. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/endblocks.cpython-315.pyc +0 -0
  1128. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/entities.cpython-315.pyc +0 -0
  1129. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/expand.cpython-315.pyc +0 -0
  1130. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/indent.cpython-315.pyc +0 -0
  1131. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/js.cpython-315.pyc +0 -0
  1132. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/load_tags.cpython-315.pyc +0 -0
  1133. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/mako.cpython-315.pyc +0 -0
  1134. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1135. package/python/lib/python3.15/site-packages/djlint/formatter/attribute_values.py +152 -0
  1136. package/python/lib/python3.15/site-packages/djlint/formatter/attributes.py +580 -0
  1137. package/python/lib/python3.15/site-packages/djlint/formatter/beautifier.py +144 -0
  1138. package/python/lib/python3.15/site-packages/djlint/formatter/class_attributes.py +318 -0
  1139. package/python/lib/python3.15/site-packages/djlint/formatter/compress.py +158 -0
  1140. package/python/lib/python3.15/site-packages/djlint/formatter/condense.py +503 -0
  1141. package/python/lib/python3.15/site-packages/djlint/formatter/css.py +28 -0
  1142. package/python/lib/python3.15/site-packages/djlint/formatter/endblocks.py +68 -0
  1143. package/python/lib/python3.15/site-packages/djlint/formatter/entities.py +39 -0
  1144. package/python/lib/python3.15/site-packages/djlint/formatter/expand.py +576 -0
  1145. package/python/lib/python3.15/site-packages/djlint/formatter/indent.py +1239 -0
  1146. package/python/lib/python3.15/site-packages/djlint/formatter/js.py +82 -0
  1147. package/python/lib/python3.15/site-packages/djlint/formatter/load_tags.py +60 -0
  1148. package/python/lib/python3.15/site-packages/djlint/formatter/mako.py +501 -0
  1149. package/python/lib/python3.15/site-packages/djlint/formatter/tokenizer.py +359 -0
  1150. package/python/lib/python3.15/site-packages/djlint/github_output.py +117 -0
  1151. package/python/lib/python3.15/site-packages/djlint/helpers.py +979 -0
  1152. package/python/lib/python3.15/site-packages/djlint/lint.py +246 -0
  1153. package/python/lib/python3.15/site-packages/djlint/output.py +250 -0
  1154. package/python/lib/python3.15/site-packages/djlint/py.typed +0 -0
  1155. package/python/lib/python3.15/site-packages/djlint/reformat.py +130 -0
  1156. package/python/lib/python3.15/site-packages/djlint/rules/D058.py +78 -0
  1157. package/python/lib/python3.15/site-packages/djlint/rules/D059.py +139 -0
  1158. package/python/lib/python3.15/site-packages/djlint/rules/H009.py +54 -0
  1159. package/python/lib/python3.15/site-packages/djlint/rules/H012.py +240 -0
  1160. package/python/lib/python3.15/site-packages/djlint/rules/H014.py +68 -0
  1161. package/python/lib/python3.15/site-packages/djlint/rules/H016.py +83 -0
  1162. package/python/lib/python3.15/site-packages/djlint/rules/H022.py +161 -0
  1163. package/python/lib/python3.15/site-packages/djlint/rules/H025.py +141 -0
  1164. package/python/lib/python3.15/site-packages/djlint/rules/H036.py +183 -0
  1165. package/python/lib/python3.15/site-packages/djlint/rules/H037.py +138 -0
  1166. package/python/lib/python3.15/site-packages/djlint/rules/H041.py +113 -0
  1167. package/python/lib/python3.15/site-packages/djlint/rules/H042.py +199 -0
  1168. package/python/lib/python3.15/site-packages/djlint/rules/H044.py +119 -0
  1169. package/python/lib/python3.15/site-packages/djlint/rules/H047.py +118 -0
  1170. package/python/lib/python3.15/site-packages/djlint/rules/H048.py +82 -0
  1171. package/python/lib/python3.15/site-packages/djlint/rules/H051.py +98 -0
  1172. package/python/lib/python3.15/site-packages/djlint/rules/H053.py +361 -0
  1173. package/python/lib/python3.15/site-packages/djlint/rules/H054.py +264 -0
  1174. package/python/lib/python3.15/site-packages/djlint/rules/H057.py +235 -0
  1175. package/python/lib/python3.15/site-packages/djlint/rules/T001.py +103 -0
  1176. package/python/lib/python3.15/site-packages/djlint/rules/T002.py +75 -0
  1177. package/python/lib/python3.15/site-packages/djlint/rules/T003.py +93 -0
  1178. package/python/lib/python3.15/site-packages/djlint/rules/T027.py +183 -0
  1179. package/python/lib/python3.15/site-packages/djlint/rules/T038.py +152 -0
  1180. package/python/lib/python3.15/site-packages/djlint/rules/T039.py +167 -0
  1181. package/python/lib/python3.15/site-packages/djlint/rules/T041.py +307 -0
  1182. package/python/lib/python3.15/site-packages/djlint/rules/T042.py +219 -0
  1183. package/python/lib/python3.15/site-packages/djlint/rules/T043.py +154 -0
  1184. package/python/lib/python3.15/site-packages/djlint/rules/T044.py +189 -0
  1185. package/python/lib/python3.15/site-packages/djlint/rules/T045.py +281 -0
  1186. package/python/lib/python3.15/site-packages/djlint/rules/__init__.py +0 -0
  1187. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D058.cpython-315.pyc +0 -0
  1188. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D059.cpython-315.pyc +0 -0
  1189. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H009.cpython-315.pyc +0 -0
  1190. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H012.cpython-315.pyc +0 -0
  1191. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H014.cpython-315.pyc +0 -0
  1192. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H016.cpython-315.pyc +0 -0
  1193. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H022.cpython-315.pyc +0 -0
  1194. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H025.cpython-315.pyc +0 -0
  1195. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H036.cpython-315.pyc +0 -0
  1196. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H037.cpython-315.pyc +0 -0
  1197. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H041.cpython-315.pyc +0 -0
  1198. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H042.cpython-315.pyc +0 -0
  1199. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H044.cpython-315.pyc +0 -0
  1200. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H047.cpython-315.pyc +0 -0
  1201. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H048.cpython-315.pyc +0 -0
  1202. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H051.cpython-315.pyc +0 -0
  1203. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H053.cpython-315.pyc +0 -0
  1204. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H054.cpython-315.pyc +0 -0
  1205. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H057.cpython-315.pyc +0 -0
  1206. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T001.cpython-315.pyc +0 -0
  1207. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T002.cpython-315.pyc +0 -0
  1208. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T003.cpython-315.pyc +0 -0
  1209. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T027.cpython-315.pyc +0 -0
  1210. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T038.cpython-315.pyc +0 -0
  1211. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T039.cpython-315.pyc +0 -0
  1212. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T041.cpython-315.pyc +0 -0
  1213. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T042.cpython-315.pyc +0 -0
  1214. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T043.cpython-315.pyc +0 -0
  1215. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T044.cpython-315.pyc +0 -0
  1216. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T045.cpython-315.pyc +0 -0
  1217. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/__init__.cpython-315.pyc +0 -0
  1218. package/python/lib/python3.15/site-packages/djlint/rules.yaml +482 -0
  1219. package/python/lib/python3.15/site-packages/djlint/sarif_output.py +171 -0
  1220. package/python/lib/python3.15/site-packages/djlint/server.py +983 -0
  1221. package/python/lib/python3.15/site-packages/djlint/settings.py +2381 -0
  1222. package/python/lib/python3.15/site-packages/djlint/src.py +192 -0
  1223. package/python/lib/python3.15/site-packages/djlint/types.pyi +20 -0
  1224. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/INSTALLER +1 -0
  1225. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/METADATA +236 -0
  1226. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/RECORD +73 -0
  1227. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/REQUESTED +0 -0
  1228. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/WHEEL +4 -0
  1229. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/entry_points.txt +2 -0
  1230. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE +675 -0
  1231. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE-THIRD-PARTY +271 -0
  1232. package/python/lib/python3.15/site-packages/editorconfig/__init__.py +20 -0
  1233. package/python/lib/python3.15/site-packages/editorconfig/__main__.py +83 -0
  1234. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__init__.cpython-315.pyc +0 -0
  1235. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__main__.cpython-315.pyc +0 -0
  1236. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/exceptions.cpython-315.pyc +0 -0
  1237. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/fnmatch.cpython-315.pyc +0 -0
  1238. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/handler.cpython-315.pyc +0 -0
  1239. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/ini.cpython-315.pyc +0 -0
  1240. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/version.cpython-315.pyc +0 -0
  1241. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/versiontools.cpython-315.pyc +0 -0
  1242. package/python/lib/python3.15/site-packages/editorconfig/exceptions.py +24 -0
  1243. package/python/lib/python3.15/site-packages/editorconfig/fnmatch.py +224 -0
  1244. package/python/lib/python3.15/site-packages/editorconfig/handler.py +128 -0
  1245. package/python/lib/python3.15/site-packages/editorconfig/ini.py +173 -0
  1246. package/python/lib/python3.15/site-packages/editorconfig/py.typed +0 -0
  1247. package/python/lib/python3.15/site-packages/editorconfig/version.py +1 -0
  1248. package/python/lib/python3.15/site-packages/editorconfig/versiontools.py +36 -0
  1249. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/INSTALLER +1 -0
  1250. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/METADATA +116 -0
  1251. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/RECORD +20 -0
  1252. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/REQUESTED +0 -0
  1253. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/WHEEL +5 -0
  1254. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/entry_points.txt +2 -0
  1255. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/COPYING +11 -0
  1256. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.BSD +22 -0
  1257. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.PSF +192 -0
  1258. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/top_level.txt +1 -0
  1259. package/python/lib/python3.15/site-packages/jsbeautifier/__init__.py +309 -0
  1260. package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__init__.cpython-315.pyc +0 -0
  1261. package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__version__.cpython-315.pyc +0 -0
  1262. package/python/lib/python3.15/site-packages/jsbeautifier/__version__.py +1 -0
  1263. package/python/lib/python3.15/site-packages/jsbeautifier/cli/__init__.py +210 -0
  1264. package/python/lib/python3.15/site-packages/jsbeautifier/cli/__pycache__/__init__.cpython-315.pyc +0 -0
  1265. package/python/lib/python3.15/site-packages/jsbeautifier/core/__init__.py +1 -0
  1266. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/__init__.cpython-315.pyc +0 -0
  1267. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/directives.cpython-315.pyc +0 -0
  1268. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/inputscanner.cpython-315.pyc +0 -0
  1269. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/options.cpython-315.pyc +0 -0
  1270. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/output.cpython-315.pyc +0 -0
  1271. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/pattern.cpython-315.pyc +0 -0
  1272. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/templatablepattern.cpython-315.pyc +0 -0
  1273. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/token.cpython-315.pyc +0 -0
  1274. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1275. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenstream.cpython-315.pyc +0 -0
  1276. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/whitespacepattern.cpython-315.pyc +0 -0
  1277. package/python/lib/python3.15/site-packages/jsbeautifier/core/directives.py +55 -0
  1278. package/python/lib/python3.15/site-packages/jsbeautifier/core/inputscanner.py +139 -0
  1279. package/python/lib/python3.15/site-packages/jsbeautifier/core/options.py +230 -0
  1280. package/python/lib/python3.15/site-packages/jsbeautifier/core/output.py +352 -0
  1281. package/python/lib/python3.15/site-packages/jsbeautifier/core/pattern.py +83 -0
  1282. package/python/lib/python3.15/site-packages/jsbeautifier/core/templatablepattern.py +192 -0
  1283. package/python/lib/python3.15/site-packages/jsbeautifier/core/token.py +38 -0
  1284. package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenizer.py +138 -0
  1285. package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenstream.py +74 -0
  1286. package/python/lib/python3.15/site-packages/jsbeautifier/core/whitespacepattern.py +73 -0
  1287. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__init__.py +1 -0
  1288. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/__init__.cpython-315.pyc +0 -0
  1289. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/acorn.cpython-315.pyc +0 -0
  1290. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/beautifier.cpython-315.pyc +0 -0
  1291. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/options.cpython-315.pyc +0 -0
  1292. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1293. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/acorn.py +81 -0
  1294. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/beautifier.py +1647 -0
  1295. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/options.py +102 -0
  1296. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/tokenizer.py +628 -0
  1297. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__init__.py +1 -0
  1298. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1299. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/testindentation.cpython-315.pyc +0 -0
  1300. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__init__.py +1 -0
  1301. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/__init__.cpython-315.pyc +0 -0
  1302. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/tests.cpython-315.pyc +0 -0
  1303. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/tests.py +10470 -0
  1304. package/python/lib/python3.15/site-packages/jsbeautifier/tests/testindentation.py +49 -0
  1305. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__init__.py +73 -0
  1306. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/__init__.cpython-315.pyc +0 -0
  1307. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/evalbased.cpython-315.pyc +0 -0
  1308. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/javascriptobfuscator.cpython-315.pyc +0 -0
  1309. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/myobfuscate.cpython-315.pyc +0 -0
  1310. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/packer.cpython-315.pyc +0 -0
  1311. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/urlencode.cpython-315.pyc +0 -0
  1312. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/evalbased.py +44 -0
  1313. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/javascriptobfuscator.py +61 -0
  1314. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/myobfuscate.py +83 -0
  1315. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/packer.py +158 -0
  1316. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__init__.py +2 -0
  1317. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1318. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testjavascriptobfuscator.cpython-315.pyc +0 -0
  1319. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testmyobfuscate.cpython-315.pyc +0 -0
  1320. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testpacker.cpython-315.pyc +0 -0
  1321. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testurlencode.cpython-315.pyc +0 -0
  1322. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +59 -0
  1323. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testmyobfuscate.py +48 -0
  1324. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testpacker.py +72 -0
  1325. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testurlencode.py +46 -0
  1326. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/urlencode.py +32 -0
  1327. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1328. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/METADATA +18 -0
  1329. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/RECORD +42 -0
  1330. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1331. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1332. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1333. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1334. package/python/lib/python3.15/site-packages/json5/__init__.py +30 -0
  1335. package/python/lib/python3.15/site-packages/json5/__main__.py +22 -0
  1336. package/python/lib/python3.15/site-packages/json5/__pycache__/__init__.cpython-315.pyc +0 -0
  1337. package/python/lib/python3.15/site-packages/json5/__pycache__/__main__.cpython-315.pyc +0 -0
  1338. package/python/lib/python3.15/site-packages/json5/__pycache__/host.cpython-315.pyc +0 -0
  1339. package/python/lib/python3.15/site-packages/json5/__pycache__/lib.cpython-315.pyc +0 -0
  1340. package/python/lib/python3.15/site-packages/json5/__pycache__/parser.cpython-315.pyc +0 -0
  1341. package/python/lib/python3.15/site-packages/json5/__pycache__/tool.cpython-315.pyc +0 -0
  1342. package/python/lib/python3.15/site-packages/json5/__pycache__/version.cpython-315.pyc +0 -0
  1343. package/python/lib/python3.15/site-packages/json5/host.py +53 -0
  1344. package/python/lib/python3.15/site-packages/json5/lib.py +1007 -0
  1345. package/python/lib/python3.15/site-packages/json5/parser.py +1376 -0
  1346. package/python/lib/python3.15/site-packages/json5/py.typed +0 -0
  1347. package/python/lib/python3.15/site-packages/json5/tool.py +198 -0
  1348. package/python/lib/python3.15/site-packages/json5/version.py +18 -0
  1349. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/INSTALLER +1 -0
  1350. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/METADATA +585 -0
  1351. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/RECORD +17 -0
  1352. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/REQUESTED +0 -0
  1353. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/WHEEL +5 -0
  1354. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/entry_points.txt +2 -0
  1355. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/licenses/LICENSE +281 -0
  1356. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/top_level.txt +1 -0
  1357. package/python/lib/python3.15/site-packages/pathspec/__init__.py +68 -0
  1358. package/python/lib/python3.15/site-packages/pathspec/__pycache__/__init__.cpython-315.pyc +0 -0
  1359. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_meta.cpython-315.pyc +0 -0
  1360. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_typing.cpython-315.pyc +0 -0
  1361. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_version.cpython-315.pyc +0 -0
  1362. package/python/lib/python3.15/site-packages/pathspec/__pycache__/backend.cpython-315.pyc +0 -0
  1363. package/python/lib/python3.15/site-packages/pathspec/__pycache__/gitignore.cpython-315.pyc +0 -0
  1364. package/python/lib/python3.15/site-packages/pathspec/__pycache__/pathspec.cpython-315.pyc +0 -0
  1365. package/python/lib/python3.15/site-packages/pathspec/__pycache__/pattern.cpython-315.pyc +0 -0
  1366. package/python/lib/python3.15/site-packages/pathspec/__pycache__/util.cpython-315.pyc +0 -0
  1367. package/python/lib/python3.15/site-packages/pathspec/_backends/__init__.py +4 -0
  1368. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/__init__.cpython-315.pyc +0 -0
  1369. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/_utils.cpython-315.pyc +0 -0
  1370. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/agg.cpython-315.pyc +0 -0
  1371. package/python/lib/python3.15/site-packages/pathspec/_backends/_utils.py +45 -0
  1372. package/python/lib/python3.15/site-packages/pathspec/_backends/agg.py +104 -0
  1373. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__init__.py +0 -0
  1374. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/__init__.cpython-315.pyc +0 -0
  1375. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/_base.cpython-315.pyc +0 -0
  1376. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/base.cpython-315.pyc +0 -0
  1377. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/gitignore.cpython-315.pyc +0 -0
  1378. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/pathspec.cpython-315.pyc +0 -0
  1379. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/_base.py +78 -0
  1380. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/base.py +24 -0
  1381. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/gitignore.py +250 -0
  1382. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/pathspec.py +257 -0
  1383. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__init__.py +0 -0
  1384. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/__init__.cpython-315.pyc +0 -0
  1385. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/_base.cpython-315.pyc +0 -0
  1386. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/base.cpython-315.pyc +0 -0
  1387. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/gitignore.cpython-315.pyc +0 -0
  1388. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/pathspec.cpython-315.pyc +0 -0
  1389. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/_base.py +95 -0
  1390. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/base.py +18 -0
  1391. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/gitignore.py +180 -0
  1392. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/pathspec.py +189 -0
  1393. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__init__.py +0 -0
  1394. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/__init__.cpython-315.pyc +0 -0
  1395. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/gitignore.cpython-315.pyc +0 -0
  1396. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/pathspec.cpython-315.pyc +0 -0
  1397. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/gitignore.py +104 -0
  1398. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/pathspec.py +76 -0
  1399. package/python/lib/python3.15/site-packages/pathspec/_meta.py +70 -0
  1400. package/python/lib/python3.15/site-packages/pathspec/_typing.py +64 -0
  1401. package/python/lib/python3.15/site-packages/pathspec/_version.py +5 -0
  1402. package/python/lib/python3.15/site-packages/pathspec/backend.py +51 -0
  1403. package/python/lib/python3.15/site-packages/pathspec/gitignore.py +172 -0
  1404. package/python/lib/python3.15/site-packages/pathspec/pathspec.py +527 -0
  1405. package/python/lib/python3.15/site-packages/pathspec/pattern.py +259 -0
  1406. package/python/lib/python3.15/site-packages/pathspec/patterns/__init__.py +12 -0
  1407. package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/__init__.cpython-315.pyc +0 -0
  1408. package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/gitwildmatch.cpython-315.pyc +0 -0
  1409. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__init__.py +17 -0
  1410. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/__init__.cpython-315.pyc +0 -0
  1411. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/base.cpython-315.pyc +0 -0
  1412. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/basic.cpython-315.pyc +0 -0
  1413. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/spec.cpython-315.pyc +0 -0
  1414. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/base.py +210 -0
  1415. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/basic.py +320 -0
  1416. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/spec.py +344 -0
  1417. package/python/lib/python3.15/site-packages/pathspec/patterns/gitwildmatch.py +52 -0
  1418. package/python/lib/python3.15/site-packages/pathspec/py.typed +1 -0
  1419. package/python/lib/python3.15/site-packages/pathspec/util.py +864 -0
  1420. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/INSTALLER +1 -0
  1421. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/METADATA +392 -0
  1422. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/RECORD +38 -0
  1423. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/REQUESTED +0 -0
  1424. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/WHEEL +4 -0
  1425. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/licenses/LICENSE +373 -0
  1426. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/INSTALLER +1 -0
  1427. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/METADATA +58 -0
  1428. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/RECORD +26 -0
  1429. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/REQUESTED +0 -0
  1430. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/WHEEL +7 -0
  1431. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/licenses/LICENSE +20 -0
  1432. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/top_level.txt +2 -0
  1433. package/python/lib/python3.15/site-packages/regex/__init__.py +3 -0
  1434. package/python/lib/python3.15/site-packages/regex/__pycache__/__init__.cpython-315.pyc +0 -0
  1435. package/python/lib/python3.15/site-packages/regex/__pycache__/_main.cpython-315.pyc +0 -0
  1436. package/python/lib/python3.15/site-packages/regex/__pycache__/_regex_core.cpython-315.pyc +0 -0
  1437. package/python/lib/python3.15/site-packages/regex/_main.py +759 -0
  1438. package/python/lib/python3.15/site-packages/regex/_regex.cpython-315-s390x-linux-gnu.so +0 -0
  1439. package/python/lib/python3.15/site-packages/regex/_regex_core.py +4689 -0
  1440. package/python/lib/python3.15/site-packages/regex/tests/__pycache__/test_regex.cpython-315.pyc +0 -0
  1441. package/python/lib/python3.15/site-packages/regex/tests/test_regex.py +4612 -0
  1442. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/INSTALLER +1 -0
  1443. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/METADATA +1060 -0
  1444. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/RECORD +12 -0
  1445. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/REQUESTED +0 -0
  1446. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/WHEEL +7 -0
  1447. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/licenses/LICENSE.txt +208 -0
  1448. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/top_level.txt +1 -0
  1449. package/python/lib/python3.15/site-packages/yaml/__init__.py +390 -0
  1450. package/python/lib/python3.15/site-packages/yaml/__pycache__/__init__.cpython-315.pyc +0 -0
  1451. package/python/lib/python3.15/site-packages/yaml/__pycache__/composer.cpython-315.pyc +0 -0
  1452. package/python/lib/python3.15/site-packages/yaml/__pycache__/constructor.cpython-315.pyc +0 -0
  1453. package/python/lib/python3.15/site-packages/yaml/__pycache__/cyaml.cpython-315.pyc +0 -0
  1454. package/python/lib/python3.15/site-packages/yaml/__pycache__/dumper.cpython-315.pyc +0 -0
  1455. package/python/lib/python3.15/site-packages/yaml/__pycache__/emitter.cpython-315.pyc +0 -0
  1456. package/python/lib/python3.15/site-packages/yaml/__pycache__/error.cpython-315.pyc +0 -0
  1457. package/python/lib/python3.15/site-packages/yaml/__pycache__/events.cpython-315.pyc +0 -0
  1458. package/python/lib/python3.15/site-packages/yaml/__pycache__/loader.cpython-315.pyc +0 -0
  1459. package/python/lib/python3.15/site-packages/yaml/__pycache__/nodes.cpython-315.pyc +0 -0
  1460. package/python/lib/python3.15/site-packages/yaml/__pycache__/parser.cpython-315.pyc +0 -0
  1461. package/python/lib/python3.15/site-packages/yaml/__pycache__/reader.cpython-315.pyc +0 -0
  1462. package/python/lib/python3.15/site-packages/yaml/__pycache__/representer.cpython-315.pyc +0 -0
  1463. package/python/lib/python3.15/site-packages/yaml/__pycache__/resolver.cpython-315.pyc +0 -0
  1464. package/python/lib/python3.15/site-packages/yaml/__pycache__/scanner.cpython-315.pyc +0 -0
  1465. package/python/lib/python3.15/site-packages/yaml/__pycache__/serializer.cpython-315.pyc +0 -0
  1466. package/python/lib/python3.15/site-packages/yaml/__pycache__/tokens.cpython-315.pyc +0 -0
  1467. package/python/lib/python3.15/site-packages/yaml/_yaml.cpython-315-s390x-linux-gnu.so +0 -0
  1468. package/python/lib/python3.15/site-packages/yaml/composer.py +139 -0
  1469. package/python/lib/python3.15/site-packages/yaml/constructor.py +751 -0
  1470. package/python/lib/python3.15/site-packages/yaml/cyaml.py +101 -0
  1471. package/python/lib/python3.15/site-packages/yaml/dumper.py +62 -0
  1472. package/python/lib/python3.15/site-packages/yaml/emitter.py +1137 -0
  1473. package/python/lib/python3.15/site-packages/yaml/error.py +75 -0
  1474. package/python/lib/python3.15/site-packages/yaml/events.py +86 -0
  1475. package/python/lib/python3.15/site-packages/yaml/loader.py +63 -0
  1476. package/python/lib/python3.15/site-packages/yaml/nodes.py +49 -0
  1477. package/python/lib/python3.15/site-packages/yaml/parser.py +589 -0
  1478. package/python/lib/python3.15/site-packages/yaml/reader.py +185 -0
  1479. package/python/lib/python3.15/site-packages/yaml/representer.py +389 -0
  1480. package/python/lib/python3.15/site-packages/yaml/resolver.py +227 -0
  1481. package/python/lib/python3.15/site-packages/yaml/scanner.py +1435 -0
  1482. package/python/lib/python3.15/site-packages/yaml/serializer.py +111 -0
  1483. package/python/lib/python3.15/site-packages/yaml/tokens.py +104 -0
  1484. package/python/lib/python3.15/site.py +1159 -0
  1485. package/python/lib/python3.15/smtplib.py +1121 -0
  1486. package/python/lib/python3.15/socket.py +1003 -0
  1487. package/python/lib/python3.15/socketserver.py +869 -0
  1488. package/python/lib/python3.15/sqlite3/__init__.py +57 -0
  1489. package/python/lib/python3.15/sqlite3/__main__.py +156 -0
  1490. package/python/lib/python3.15/sqlite3/__pycache__/__init__.cpython-315.pyc +0 -0
  1491. package/python/lib/python3.15/sqlite3/__pycache__/__main__.cpython-315.pyc +0 -0
  1492. package/python/lib/python3.15/sqlite3/__pycache__/_completer.cpython-315.pyc +0 -0
  1493. package/python/lib/python3.15/sqlite3/__pycache__/dbapi2.cpython-315.pyc +0 -0
  1494. package/python/lib/python3.15/sqlite3/__pycache__/dump.cpython-315.pyc +0 -0
  1495. package/python/lib/python3.15/sqlite3/_completer.py +111 -0
  1496. package/python/lib/python3.15/sqlite3/dbapi2.py +96 -0
  1497. package/python/lib/python3.15/sqlite3/dump.py +118 -0
  1498. package/python/lib/python3.15/ssl.py +1600 -0
  1499. package/python/lib/python3.15/stat.py +227 -0
  1500. package/python/lib/python3.15/statistics.py +1880 -0
  1501. package/python/lib/python3.15/string/__init__.py +323 -0
  1502. package/python/lib/python3.15/string/__pycache__/__init__.cpython-315.pyc +0 -0
  1503. package/python/lib/python3.15/string/__pycache__/templatelib.cpython-315.pyc +0 -0
  1504. package/python/lib/python3.15/string/templatelib.py +33 -0
  1505. package/python/lib/python3.15/stringprep.py +463 -0
  1506. package/python/lib/python3.15/struct.py +15 -0
  1507. package/python/lib/python3.15/subprocess.py +2509 -0
  1508. package/python/lib/python3.15/symtable.py +452 -0
  1509. package/python/lib/python3.15/sysconfig/__init__.py +797 -0
  1510. package/python/lib/python3.15/sysconfig/__main__.py +250 -0
  1511. package/python/lib/python3.15/sysconfig/__pycache__/__init__.cpython-315.pyc +0 -0
  1512. package/python/lib/python3.15/sysconfig/__pycache__/__main__.cpython-315.pyc +0 -0
  1513. package/python/lib/python3.15/tabnanny.py +345 -0
  1514. package/python/lib/python3.15/tarfile.py +3259 -0
  1515. package/python/lib/python3.15/tempfile.py +1057 -0
  1516. package/python/lib/python3.15/textwrap.py +475 -0
  1517. package/python/lib/python3.15/this.py +28 -0
  1518. package/python/lib/python3.15/threading.py +1780 -0
  1519. package/python/lib/python3.15/timeit.py +431 -0
  1520. package/python/lib/python3.15/token.py +144 -0
  1521. package/python/lib/python3.15/tokenize.py +644 -0
  1522. package/python/lib/python3.15/tomllib/__init__.py +10 -0
  1523. package/python/lib/python3.15/tomllib/__pycache__/__init__.cpython-315.pyc +0 -0
  1524. package/python/lib/python3.15/tomllib/__pycache__/_parser.cpython-315.pyc +0 -0
  1525. package/python/lib/python3.15/tomllib/__pycache__/_re.cpython-315.pyc +0 -0
  1526. package/python/lib/python3.15/tomllib/__pycache__/_types.cpython-315.pyc +0 -0
  1527. package/python/lib/python3.15/tomllib/_parser.py +776 -0
  1528. package/python/lib/python3.15/tomllib/_re.py +119 -0
  1529. package/python/lib/python3.15/tomllib/_types.py +10 -0
  1530. package/python/lib/python3.15/tomllib/mypy.ini +15 -0
  1531. package/python/lib/python3.15/trace.py +749 -0
  1532. package/python/lib/python3.15/traceback.py +2090 -0
  1533. package/python/lib/python3.15/tracemalloc.py +560 -0
  1534. package/python/lib/python3.15/tty.py +73 -0
  1535. package/python/lib/python3.15/types.py +355 -0
  1536. package/python/lib/python3.15/typing.py +3949 -0
  1537. package/python/lib/python3.15/unittest/__init__.py +80 -0
  1538. package/python/lib/python3.15/unittest/__main__.py +18 -0
  1539. package/python/lib/python3.15/unittest/__pycache__/__init__.cpython-315.pyc +0 -0
  1540. package/python/lib/python3.15/unittest/__pycache__/__main__.cpython-315.pyc +0 -0
  1541. package/python/lib/python3.15/unittest/__pycache__/_log.cpython-315.pyc +0 -0
  1542. package/python/lib/python3.15/unittest/__pycache__/async_case.cpython-315.pyc +0 -0
  1543. package/python/lib/python3.15/unittest/__pycache__/case.cpython-315.pyc +0 -0
  1544. package/python/lib/python3.15/unittest/__pycache__/loader.cpython-315.pyc +0 -0
  1545. package/python/lib/python3.15/unittest/__pycache__/main.cpython-315.pyc +0 -0
  1546. package/python/lib/python3.15/unittest/__pycache__/mock.cpython-315.pyc +0 -0
  1547. package/python/lib/python3.15/unittest/__pycache__/result.cpython-315.pyc +0 -0
  1548. package/python/lib/python3.15/unittest/__pycache__/runner.cpython-315.pyc +0 -0
  1549. package/python/lib/python3.15/unittest/__pycache__/signals.cpython-315.pyc +0 -0
  1550. package/python/lib/python3.15/unittest/__pycache__/suite.cpython-315.pyc +0 -0
  1551. package/python/lib/python3.15/unittest/__pycache__/util.cpython-315.pyc +0 -0
  1552. package/python/lib/python3.15/unittest/_log.py +87 -0
  1553. package/python/lib/python3.15/unittest/async_case.py +158 -0
  1554. package/python/lib/python3.15/unittest/case.py +1652 -0
  1555. package/python/lib/python3.15/unittest/loader.py +491 -0
  1556. package/python/lib/python3.15/unittest/main.py +280 -0
  1557. package/python/lib/python3.15/unittest/mock.py +3212 -0
  1558. package/python/lib/python3.15/unittest/result.py +259 -0
  1559. package/python/lib/python3.15/unittest/runner.py +312 -0
  1560. package/python/lib/python3.15/unittest/signals.py +71 -0
  1561. package/python/lib/python3.15/unittest/suite.py +391 -0
  1562. package/python/lib/python3.15/unittest/util.py +187 -0
  1563. package/python/lib/python3.15/urllib/__init__.py +0 -0
  1564. package/python/lib/python3.15/urllib/__pycache__/__init__.cpython-315.pyc +0 -0
  1565. package/python/lib/python3.15/urllib/__pycache__/error.cpython-315.pyc +0 -0
  1566. package/python/lib/python3.15/urllib/__pycache__/parse.cpython-315.pyc +0 -0
  1567. package/python/lib/python3.15/urllib/__pycache__/request.cpython-315.pyc +0 -0
  1568. package/python/lib/python3.15/urllib/__pycache__/response.cpython-315.pyc +0 -0
  1569. package/python/lib/python3.15/urllib/__pycache__/robotparser.cpython-315.pyc +0 -0
  1570. package/python/lib/python3.15/urllib/error.py +74 -0
  1571. package/python/lib/python3.15/urllib/parse.py +1407 -0
  1572. package/python/lib/python3.15/urllib/request.py +2177 -0
  1573. package/python/lib/python3.15/urllib/response.py +84 -0
  1574. package/python/lib/python3.15/urllib/robotparser.py +363 -0
  1575. package/python/lib/python3.15/uuid.py +1013 -0
  1576. package/python/lib/python3.15/venv/__init__.py +695 -0
  1577. package/python/lib/python3.15/venv/__main__.py +10 -0
  1578. package/python/lib/python3.15/venv/__pycache__/__init__.cpython-315.pyc +0 -0
  1579. package/python/lib/python3.15/venv/__pycache__/__main__.cpython-315.pyc +0 -0
  1580. package/python/lib/python3.15/venv/scripts/common/Activate.ps1 +248 -0
  1581. package/python/lib/python3.15/venv/scripts/common/activate +76 -0
  1582. package/python/lib/python3.15/venv/scripts/common/activate.fish +69 -0
  1583. package/python/lib/python3.15/venv/scripts/posix/activate.csh +29 -0
  1584. package/python/lib/python3.15/warnings.py +99 -0
  1585. package/python/lib/python3.15/wave.py +704 -0
  1586. package/python/lib/python3.15/weakref.py +576 -0
  1587. package/python/lib/python3.15/webbrowser.py +841 -0
  1588. package/python/lib/python3.15/wsgiref/__init__.py +25 -0
  1589. package/python/lib/python3.15/wsgiref/__pycache__/__init__.cpython-315.pyc +0 -0
  1590. package/python/lib/python3.15/wsgiref/__pycache__/handlers.cpython-315.pyc +0 -0
  1591. package/python/lib/python3.15/wsgiref/__pycache__/headers.cpython-315.pyc +0 -0
  1592. package/python/lib/python3.15/wsgiref/__pycache__/simple_server.cpython-315.pyc +0 -0
  1593. package/python/lib/python3.15/wsgiref/__pycache__/types.cpython-315.pyc +0 -0
  1594. package/python/lib/python3.15/wsgiref/__pycache__/util.cpython-315.pyc +0 -0
  1595. package/python/lib/python3.15/wsgiref/__pycache__/validate.cpython-315.pyc +0 -0
  1596. package/python/lib/python3.15/wsgiref/handlers.py +576 -0
  1597. package/python/lib/python3.15/wsgiref/headers.py +192 -0
  1598. package/python/lib/python3.15/wsgiref/simple_server.py +169 -0
  1599. package/python/lib/python3.15/wsgiref/types.py +54 -0
  1600. package/python/lib/python3.15/wsgiref/util.py +159 -0
  1601. package/python/lib/python3.15/wsgiref/validate.py +438 -0
  1602. package/python/lib/python3.15/xml/__init__.py +21 -0
  1603. package/python/lib/python3.15/xml/__pycache__/__init__.cpython-315.pyc +0 -0
  1604. package/python/lib/python3.15/xml/__pycache__/utils.cpython-315.pyc +0 -0
  1605. package/python/lib/python3.15/xml/dom/NodeFilter.py +27 -0
  1606. package/python/lib/python3.15/xml/dom/__init__.py +140 -0
  1607. package/python/lib/python3.15/xml/dom/__pycache__/NodeFilter.cpython-315.pyc +0 -0
  1608. package/python/lib/python3.15/xml/dom/__pycache__/__init__.cpython-315.pyc +0 -0
  1609. package/python/lib/python3.15/xml/dom/__pycache__/domreg.cpython-315.pyc +0 -0
  1610. package/python/lib/python3.15/xml/dom/__pycache__/expatbuilder.cpython-315.pyc +0 -0
  1611. package/python/lib/python3.15/xml/dom/__pycache__/minicompat.cpython-315.pyc +0 -0
  1612. package/python/lib/python3.15/xml/dom/__pycache__/minidom.cpython-315.pyc +0 -0
  1613. package/python/lib/python3.15/xml/dom/__pycache__/pulldom.cpython-315.pyc +0 -0
  1614. package/python/lib/python3.15/xml/dom/__pycache__/xmlbuilder.cpython-315.pyc +0 -0
  1615. package/python/lib/python3.15/xml/dom/domreg.py +99 -0
  1616. package/python/lib/python3.15/xml/dom/expatbuilder.py +964 -0
  1617. package/python/lib/python3.15/xml/dom/minicompat.py +109 -0
  1618. package/python/lib/python3.15/xml/dom/minidom.py +2027 -0
  1619. package/python/lib/python3.15/xml/dom/pulldom.py +350 -0
  1620. package/python/lib/python3.15/xml/dom/xmlbuilder.py +389 -0
  1621. package/python/lib/python3.15/xml/etree/ElementInclude.py +186 -0
  1622. package/python/lib/python3.15/xml/etree/ElementPath.py +430 -0
  1623. package/python/lib/python3.15/xml/etree/ElementTree.py +2111 -0
  1624. package/python/lib/python3.15/xml/etree/__init__.py +33 -0
  1625. package/python/lib/python3.15/xml/etree/__pycache__/ElementInclude.cpython-315.pyc +0 -0
  1626. package/python/lib/python3.15/xml/etree/__pycache__/ElementPath.cpython-315.pyc +0 -0
  1627. package/python/lib/python3.15/xml/etree/__pycache__/ElementTree.cpython-315.pyc +0 -0
  1628. package/python/lib/python3.15/xml/etree/__pycache__/__init__.cpython-315.pyc +0 -0
  1629. package/python/lib/python3.15/xml/etree/__pycache__/cElementTree.cpython-315.pyc +0 -0
  1630. package/python/lib/python3.15/xml/etree/cElementTree.py +3 -0
  1631. package/python/lib/python3.15/xml/parsers/__init__.py +8 -0
  1632. package/python/lib/python3.15/xml/parsers/__pycache__/__init__.cpython-315.pyc +0 -0
  1633. package/python/lib/python3.15/xml/parsers/__pycache__/expat.cpython-315.pyc +0 -0
  1634. package/python/lib/python3.15/xml/parsers/expat.py +8 -0
  1635. package/python/lib/python3.15/xml/sax/__init__.py +109 -0
  1636. package/python/lib/python3.15/xml/sax/__pycache__/__init__.cpython-315.pyc +0 -0
  1637. package/python/lib/python3.15/xml/sax/__pycache__/_exceptions.cpython-315.pyc +0 -0
  1638. package/python/lib/python3.15/xml/sax/__pycache__/expatreader.cpython-315.pyc +0 -0
  1639. package/python/lib/python3.15/xml/sax/__pycache__/handler.cpython-315.pyc +0 -0
  1640. package/python/lib/python3.15/xml/sax/__pycache__/saxutils.cpython-315.pyc +0 -0
  1641. package/python/lib/python3.15/xml/sax/__pycache__/xmlreader.cpython-315.pyc +0 -0
  1642. package/python/lib/python3.15/xml/sax/_exceptions.py +127 -0
  1643. package/python/lib/python3.15/xml/sax/expatreader.py +462 -0
  1644. package/python/lib/python3.15/xml/sax/handler.py +394 -0
  1645. package/python/lib/python3.15/xml/sax/saxutils.py +370 -0
  1646. package/python/lib/python3.15/xml/sax/xmlreader.py +379 -0
  1647. package/python/lib/python3.15/xml/utils.py +37 -0
  1648. package/python/lib/python3.15/xmlrpc/__init__.py +1 -0
  1649. package/python/lib/python3.15/xmlrpc/__pycache__/__init__.cpython-315.pyc +0 -0
  1650. package/python/lib/python3.15/xmlrpc/__pycache__/client.cpython-315.pyc +0 -0
  1651. package/python/lib/python3.15/xmlrpc/__pycache__/server.cpython-315.pyc +0 -0
  1652. package/python/lib/python3.15/xmlrpc/client.py +1503 -0
  1653. package/python/lib/python3.15/xmlrpc/server.py +1003 -0
  1654. package/python/lib/python3.15/zipapp.py +231 -0
  1655. package/python/lib/python3.15/zipfile/__init__.py +2444 -0
  1656. package/python/lib/python3.15/zipfile/__main__.py +4 -0
  1657. package/python/lib/python3.15/zipfile/__pycache__/__init__.cpython-315.pyc +0 -0
  1658. package/python/lib/python3.15/zipfile/__pycache__/__main__.cpython-315.pyc +0 -0
  1659. package/python/lib/python3.15/zipfile/_path/__init__.py +456 -0
  1660. package/python/lib/python3.15/zipfile/_path/__pycache__/__init__.cpython-315.pyc +0 -0
  1661. package/python/lib/python3.15/zipfile/_path/__pycache__/_functools.cpython-315.pyc +0 -0
  1662. package/python/lib/python3.15/zipfile/_path/__pycache__/glob.cpython-315.pyc +0 -0
  1663. package/python/lib/python3.15/zipfile/_path/_functools.py +31 -0
  1664. package/python/lib/python3.15/zipfile/_path/glob.py +113 -0
  1665. package/python/lib/python3.15/zipimport.py +849 -0
  1666. package/python/lib/python3.15/zoneinfo/__init__.py +34 -0
  1667. package/python/lib/python3.15/zoneinfo/__pycache__/__init__.cpython-315.pyc +0 -0
  1668. package/python/lib/python3.15/zoneinfo/__pycache__/_common.cpython-315.pyc +0 -0
  1669. package/python/lib/python3.15/zoneinfo/__pycache__/_tzpath.cpython-315.pyc +0 -0
  1670. package/python/lib/python3.15/zoneinfo/__pycache__/_zoneinfo.cpython-315.pyc +0 -0
  1671. package/python/lib/python3.15/zoneinfo/_common.py +172 -0
  1672. package/python/lib/python3.15/zoneinfo/_tzpath.py +193 -0
  1673. package/python/lib/python3.15/zoneinfo/_zoneinfo.py +779 -0
  1674. package/python/licenses/LICENSE.bdb.txt +126 -0
  1675. package/python/licenses/LICENSE.bzip2.txt +37 -0
  1676. package/python/licenses/LICENSE.cpython.txt +771 -0
  1677. package/python/licenses/LICENSE.expat.txt +21 -0
  1678. package/python/licenses/LICENSE.libX11.txt +942 -0
  1679. package/python/licenses/LICENSE.libXau.txt +21 -0
  1680. package/python/licenses/LICENSE.libedit.txt +29 -0
  1681. package/python/licenses/LICENSE.libffi.txt +21 -0
  1682. package/python/licenses/LICENSE.liblzma.txt +13 -0
  1683. package/python/licenses/LICENSE.libuuid.txt +27 -0
  1684. package/python/licenses/LICENSE.libxcb.txt +30 -0
  1685. package/python/licenses/LICENSE.mpdecimal.txt +24 -0
  1686. package/python/licenses/LICENSE.ncurses.txt +29 -0
  1687. package/python/licenses/LICENSE.openssl-3.txt +177 -0
  1688. package/python/licenses/LICENSE.sqlite.txt +23 -0
  1689. package/python/licenses/LICENSE.tcl.txt +40 -0
  1690. package/python/licenses/LICENSE.tix.txt +54 -0
  1691. package/python/licenses/LICENSE.zlib-ng.txt +19 -0
  1692. package/python/licenses/LICENSE.zlib.txt +22 -0
  1693. package/python/licenses/LICENSE.zstd.txt +30 -0
@@ -0,0 +1,2105 @@
1
+ """
2
+ Module difflib -- helpers for computing deltas between objects.
3
+
4
+ Function get_close_matches(word, possibilities, n=3, cutoff=0.6):
5
+ Use SequenceMatcher to return list of the best "good enough" matches.
6
+
7
+ Function context_diff(a, b):
8
+ For two lists of strings, return a delta in context diff format.
9
+
10
+ Function ndiff(a, b):
11
+ Return a delta: the difference between `a` and `b` (lists of strings).
12
+
13
+ Function restore(delta, which):
14
+ Return one of the two sequences that generated an ndiff delta.
15
+
16
+ Function unified_diff(a, b):
17
+ For two lists of strings, return a delta in unified diff format.
18
+
19
+ Class SequenceMatcher:
20
+ A flexible class for comparing pairs of sequences of any type.
21
+
22
+ Class Differ:
23
+ For producing human-readable deltas from sequences of lines of text.
24
+
25
+ Class HtmlDiff:
26
+ For producing HTML side by side comparison with change highlights.
27
+ """
28
+
29
+ __all__ = ['get_close_matches', 'ndiff', 'restore', 'SequenceMatcher',
30
+ 'Differ','IS_CHARACTER_JUNK', 'IS_LINE_JUNK', 'context_diff',
31
+ 'unified_diff', 'diff_bytes', 'HtmlDiff', 'Match']
32
+
33
+ from heapq import nlargest as _nlargest
34
+ from collections import namedtuple as _namedtuple
35
+ from types import GenericAlias
36
+ lazy from _colorize import can_colorize, get_theme
37
+
38
+ Match = _namedtuple('Match', 'a b size')
39
+
40
+ def _calculate_ratio(matches, length):
41
+ if length:
42
+ return 2.0 * matches / length
43
+ return 1.0
44
+
45
+ class SequenceMatcher:
46
+
47
+ """
48
+ SequenceMatcher is a flexible class for comparing pairs of sequences of
49
+ any type, so long as the sequence elements are hashable. The basic
50
+ algorithm predates, and is a little fancier than, an algorithm
51
+ published in the late 1980's by Ratcliff and Obershelp under the
52
+ hyperbolic name "gestalt pattern matching". The basic idea is to find
53
+ the longest contiguous matching subsequence that contains no "junk"
54
+ elements (R-O doesn't address junk). The same idea is then applied
55
+ recursively to the pieces of the sequences to the left and to the right
56
+ of the matching subsequence. This does not yield minimal edit
57
+ sequences, but does tend to yield matches that "look right" to people.
58
+
59
+ SequenceMatcher tries to compute a "human-friendly diff" between two
60
+ sequences. Unlike e.g. UNIX(tm) diff, the fundamental notion is the
61
+ longest *contiguous* & junk-free matching subsequence. That's what
62
+ catches peoples' eyes. The Windows(tm) windiff has another interesting
63
+ notion, pairing up elements that appear uniquely in each sequence.
64
+ That, and the method here, appear to yield more intuitive difference
65
+ reports than does diff. This method appears to be the least vulnerable
66
+ to syncing up on blocks of "junk lines", though (like blank lines in
67
+ ordinary text files, or maybe "<P>" lines in HTML files). That may be
68
+ because this is the only method of the 3 that has a *concept* of
69
+ "junk" <wink>.
70
+
71
+ Example, comparing two strings, and considering blanks to be "junk":
72
+
73
+ >>> s = SequenceMatcher(lambda x: x == " ",
74
+ ... "private Thread currentThread;",
75
+ ... "private volatile Thread currentThread;")
76
+ >>>
77
+
78
+ .ratio() returns a float in [0, 1], measuring the "similarity" of the
79
+ sequences. As a rule of thumb, a .ratio() value over 0.6 means the
80
+ sequences are close matches:
81
+
82
+ >>> print(round(s.ratio(), 2))
83
+ 0.87
84
+ >>>
85
+
86
+ If you're only interested in where the sequences match,
87
+ .get_matching_blocks() is handy:
88
+
89
+ >>> for block in s.get_matching_blocks():
90
+ ... print("a[%d] and b[%d] match for %d elements" % block)
91
+ a[0] and b[0] match for 8 elements
92
+ a[8] and b[17] match for 21 elements
93
+ a[29] and b[38] match for 0 elements
94
+
95
+ Note that the last tuple returned by .get_matching_blocks() is always a
96
+ dummy, (len(a), len(b), 0), and this is the only case in which the last
97
+ tuple element (number of elements matched) is 0.
98
+
99
+ If you want to know how to change the first sequence into the second,
100
+ use .get_opcodes():
101
+
102
+ >>> for opcode in s.get_opcodes():
103
+ ... print("%6s a[%d:%d] b[%d:%d]" % opcode)
104
+ equal a[0:8] b[0:8]
105
+ insert a[8:8] b[8:17]
106
+ equal a[8:29] b[17:38]
107
+
108
+ See the Differ class for a fancy human-friendly file differencer, which
109
+ uses SequenceMatcher both to compare sequences of lines, and to compare
110
+ sequences of characters within similar (near-matching) lines.
111
+
112
+ See also function get_close_matches() in this module, which shows how
113
+ simple code building on SequenceMatcher can be used to do useful work.
114
+
115
+ Timing: Basic R-O is cubic time worst case and quadratic time expected
116
+ case. SequenceMatcher is quadratic time for the worst case and has
117
+ expected-case behavior dependent in a complicated way on how many
118
+ elements the sequences have in common; best case time is linear.
119
+ """
120
+
121
+ def __init__(self, isjunk=None, a='', b='', autojunk=True):
122
+ """Construct a SequenceMatcher.
123
+
124
+ Optional arg isjunk is None (the default), or a one-argument
125
+ function that takes a sequence element and returns true iff the
126
+ element is junk. None is equivalent to passing "lambda x: 0", i.e.
127
+ no elements are considered to be junk. For example, pass
128
+ lambda x: x in " \\t"
129
+ if you're comparing lines as sequences of characters, and don't
130
+ want to synch up on blanks or hard tabs.
131
+
132
+ Optional arg a is the first of two sequences to be compared. By
133
+ default, an empty string. The elements of a must be hashable. See
134
+ also .set_seqs() and .set_seq1().
135
+
136
+ Optional arg b is the second of two sequences to be compared. By
137
+ default, an empty string. The elements of b must be hashable. See
138
+ also .set_seqs() and .set_seq2().
139
+
140
+ Optional arg autojunk should be set to False to disable the
141
+ "automatic junk heuristic" that treats popular elements as junk
142
+ (see module documentation for more information).
143
+ """
144
+
145
+ # Members:
146
+ # a
147
+ # first sequence
148
+ # b
149
+ # second sequence; differences are computed as "what do
150
+ # we need to do to 'a' to change it into 'b'?"
151
+ # b2j
152
+ # for x in b, b2j[x] is a list of the indices (into b)
153
+ # at which x appears; junk and popular elements do not appear
154
+ # fullbcount
155
+ # for x in b, fullbcount[x] == the number of times x
156
+ # appears in b; only materialized if really needed (used
157
+ # only for computing quick_ratio())
158
+ # matching_blocks
159
+ # a list of (i, j, k) triples, where a[i:i+k] == b[j:j+k];
160
+ # ascending & non-overlapping in i and in j; terminated by
161
+ # a dummy (len(a), len(b), 0) sentinel
162
+ # opcodes
163
+ # a list of (tag, i1, i2, j1, j2) tuples, where tag is
164
+ # one of
165
+ # 'replace' a[i1:i2] should be replaced by b[j1:j2]
166
+ # 'delete' a[i1:i2] should be deleted
167
+ # 'insert' b[j1:j2] should be inserted
168
+ # 'equal' a[i1:i2] == b[j1:j2]
169
+ # isjunk
170
+ # a user-supplied function taking a sequence element and
171
+ # returning true iff the element is "junk" -- this has
172
+ # subtle but helpful effects on the algorithm, which I'll
173
+ # get around to writing up someday <0.9 wink>.
174
+ # DON'T USE! Only __chain_b uses this. Use "in self.bjunk".
175
+ # bjunk
176
+ # the items in b for which isjunk is True.
177
+ # bpopular
178
+ # nonjunk items in b treated as junk by the heuristic (if used).
179
+
180
+ self.isjunk = isjunk
181
+ self.a = self.b = None
182
+ self.autojunk = autojunk
183
+ self.set_seqs(a, b)
184
+
185
+ def set_seqs(self, a, b):
186
+ """Set the two sequences to be compared.
187
+
188
+ >>> s = SequenceMatcher()
189
+ >>> s.set_seqs("abcd", "bcde")
190
+ >>> s.ratio()
191
+ 0.75
192
+ """
193
+
194
+ self.set_seq1(a)
195
+ self.set_seq2(b)
196
+
197
+ def set_seq1(self, a):
198
+ """Set the first sequence to be compared.
199
+
200
+ The second sequence to be compared is not changed.
201
+
202
+ >>> s = SequenceMatcher(None, "abcd", "bcde")
203
+ >>> s.ratio()
204
+ 0.75
205
+ >>> s.set_seq1("bcde")
206
+ >>> s.ratio()
207
+ 1.0
208
+ >>>
209
+
210
+ SequenceMatcher computes and caches detailed information about the
211
+ second sequence, so if you want to compare one sequence S against
212
+ many sequences, use .set_seq2(S) once and call .set_seq1(x)
213
+ repeatedly for each of the other sequences.
214
+
215
+ See also set_seqs() and set_seq2().
216
+ """
217
+
218
+ if a is self.a:
219
+ return
220
+ self.a = a
221
+ self.matching_blocks = self.opcodes = None
222
+
223
+ def set_seq2(self, b):
224
+ """Set the second sequence to be compared.
225
+
226
+ The first sequence to be compared is not changed.
227
+
228
+ >>> s = SequenceMatcher(None, "abcd", "bcde")
229
+ >>> s.ratio()
230
+ 0.75
231
+ >>> s.set_seq2("abcd")
232
+ >>> s.ratio()
233
+ 1.0
234
+ >>>
235
+
236
+ SequenceMatcher computes and caches detailed information about the
237
+ second sequence, so if you want to compare one sequence S against
238
+ many sequences, use .set_seq2(S) once and call .set_seq1(x)
239
+ repeatedly for each of the other sequences.
240
+
241
+ See also set_seqs() and set_seq1().
242
+ """
243
+
244
+ if b is self.b:
245
+ return
246
+ self.b = b
247
+ self.matching_blocks = self.opcodes = None
248
+ self.fullbcount = None
249
+ self.__chain_b()
250
+
251
+ # For each element x in b, set b2j[x] to a list of the indices in
252
+ # b where x appears; the indices are in increasing order; note that
253
+ # the number of times x appears in b is len(b2j[x]) ...
254
+ # when self.isjunk is defined, junk elements don't show up in this
255
+ # map at all, which stops the central find_longest_match method
256
+ # from starting any matching block at a junk element ...
257
+ # b2j also does not contain entries for "popular" elements, meaning
258
+ # elements that account for more than 1 + 1% of the total elements, and
259
+ # when the sequence is reasonably large (>= 200 elements); this can
260
+ # be viewed as an adaptive notion of semi-junk, and yields an enormous
261
+ # speedup when, e.g., comparing program files with hundreds of
262
+ # instances of "return NULL;" ...
263
+ # note that this is only called when b changes; so for cross-product
264
+ # kinds of matches, it's best to call set_seq2 once, then set_seq1
265
+ # repeatedly
266
+
267
+ def __chain_b(self):
268
+ # Because isjunk is a user-defined (not C) function, and we test
269
+ # for junk a LOT, it's important to minimize the number of calls.
270
+ # Before the tricks described here, __chain_b was by far the most
271
+ # time-consuming routine in the whole module! If anyone sees
272
+ # Jim Roskind, thank him again for profile.py -- I never would
273
+ # have guessed that.
274
+ # The first trick is to build b2j ignoring the possibility
275
+ # of junk. I.e., we don't call isjunk at all yet. Throwing
276
+ # out the junk later is much cheaper than building b2j "right"
277
+ # from the start.
278
+ b = self.b
279
+ self.b2j = b2j = {}
280
+
281
+ for i, elt in enumerate(b):
282
+ indices = b2j.setdefault(elt, [])
283
+ indices.append(i)
284
+
285
+ # Purge junk elements
286
+ self.bjunk = junk = set()
287
+ isjunk = self.isjunk
288
+ if isjunk:
289
+ for elt in b2j.keys():
290
+ if isjunk(elt):
291
+ junk.add(elt)
292
+ for elt in junk: # separate loop avoids separate list of keys
293
+ del b2j[elt]
294
+
295
+ # Purge popular elements that are not junk
296
+ self.bpopular = popular = set()
297
+ n = len(b)
298
+ if self.autojunk and n >= 200:
299
+ ntest = n // 100 + 1
300
+ for elt, idxs in b2j.items():
301
+ if len(idxs) > ntest:
302
+ popular.add(elt)
303
+ for elt in popular: # ditto; as fast for 1% deletion
304
+ del b2j[elt]
305
+
306
+ def find_longest_match(self, alo=0, ahi=None, blo=0, bhi=None):
307
+ """Find longest matching block in a[alo:ahi] and b[blo:bhi].
308
+
309
+ By default it will find the longest match in the entirety of a and b.
310
+
311
+ If isjunk is not defined:
312
+
313
+ Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where
314
+ alo <= i <= i+k <= ahi
315
+ blo <= j <= j+k <= bhi
316
+ and for all (i',j',k') meeting those conditions,
317
+ k >= k'
318
+ i <= i'
319
+ and if i == i', j <= j'
320
+
321
+ In other words, of all maximal matching blocks, return one that
322
+ starts earliest in a, and of all those maximal matching blocks that
323
+ start earliest in a, return the one that starts earliest in b.
324
+
325
+ >>> s = SequenceMatcher(None, " abcd", "abcd abcd")
326
+ >>> s.find_longest_match(0, 5, 0, 9)
327
+ Match(a=0, b=4, size=5)
328
+
329
+ If isjunk is defined, first the longest matching block is
330
+ determined as above, but with the additional restriction that no
331
+ junk element appears in the block. Then that block is extended as
332
+ far as possible by matching (only) junk elements on both sides. So
333
+ the resulting block never matches on junk except as identical junk
334
+ happens to be adjacent to an "interesting" match.
335
+
336
+ Here's the same example as before, but considering blanks to be
337
+ junk. That prevents " abcd" from matching the " abcd" at the tail
338
+ end of the second sequence directly. Instead only the "abcd" can
339
+ match, and matches the leftmost "abcd" in the second sequence:
340
+
341
+ >>> s = SequenceMatcher(lambda x: x==" ", " abcd", "abcd abcd")
342
+ >>> s.find_longest_match(0, 5, 0, 9)
343
+ Match(a=1, b=0, size=4)
344
+
345
+ If no blocks match, return (alo, blo, 0).
346
+
347
+ >>> s = SequenceMatcher(None, "ab", "c")
348
+ >>> s.find_longest_match(0, 2, 0, 1)
349
+ Match(a=0, b=0, size=0)
350
+ """
351
+
352
+ # CAUTION: stripping common prefix or suffix would be incorrect.
353
+ # E.g.,
354
+ # ab
355
+ # acab
356
+ # Longest matching block is "ab", but if common prefix is
357
+ # stripped, it's "a" (tied with "b"). UNIX(tm) diff does so
358
+ # strip, so ends up claiming that ab is changed to acab by
359
+ # inserting "ca" in the middle. That's minimal but unintuitive:
360
+ # "it's obvious" that someone inserted "ac" at the front.
361
+ # Windiff ends up at the same place as diff, but by pairing up
362
+ # the unique 'b's and then matching the first two 'a's.
363
+
364
+ a, b, b2j, isbjunk = self.a, self.b, self.b2j, self.bjunk.__contains__
365
+ if ahi is None:
366
+ ahi = len(a)
367
+ if bhi is None:
368
+ bhi = len(b)
369
+ besti, bestj, bestsize = alo, blo, 0
370
+ # find longest junk-free match
371
+ # during an iteration of the loop, j2len[j] = length of longest
372
+ # junk-free match ending with a[i-1] and b[j]
373
+ j2len = {}
374
+ nothing = []
375
+ for i in range(alo, ahi):
376
+ # look at all instances of a[i] in b; note that because
377
+ # b2j has no junk keys, the loop is skipped if a[i] is junk
378
+ j2lenget = j2len.get
379
+ newj2len = {}
380
+ for j in b2j.get(a[i], nothing):
381
+ # a[i] matches b[j]
382
+ if j < blo:
383
+ continue
384
+ if j >= bhi:
385
+ break
386
+ k = newj2len[j] = j2lenget(j-1, 0) + 1
387
+ if k > bestsize:
388
+ besti, bestj, bestsize = i-k+1, j-k+1, k
389
+ j2len = newj2len
390
+
391
+ # Extend the best by non-junk elements on each end. In particular,
392
+ # "popular" non-junk elements aren't in b2j, which greatly speeds
393
+ # the inner loop above, but also means "the best" match so far
394
+ # doesn't contain any junk *or* popular non-junk elements.
395
+ while besti > alo and bestj > blo and \
396
+ not isbjunk(b[bestj-1]) and \
397
+ a[besti-1] == b[bestj-1]:
398
+ besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
399
+ while besti+bestsize < ahi and bestj+bestsize < bhi and \
400
+ not isbjunk(b[bestj+bestsize]) and \
401
+ a[besti+bestsize] == b[bestj+bestsize]:
402
+ bestsize += 1
403
+
404
+ # Now that we have a wholly interesting match (albeit possibly
405
+ # empty!), we may as well suck up the matching junk on each
406
+ # side of it too. Can't think of a good reason not to, and it
407
+ # saves post-processing the (possibly considerable) expense of
408
+ # figuring out what to do with it. In the case of an empty
409
+ # interesting match, this is clearly the right thing to do,
410
+ # because no other kind of match is possible in the regions.
411
+ while besti > alo and bestj > blo and \
412
+ isbjunk(b[bestj-1]) and \
413
+ a[besti-1] == b[bestj-1]:
414
+ besti, bestj, bestsize = besti-1, bestj-1, bestsize+1
415
+ while besti+bestsize < ahi and bestj+bestsize < bhi and \
416
+ isbjunk(b[bestj+bestsize]) and \
417
+ a[besti+bestsize] == b[bestj+bestsize]:
418
+ bestsize = bestsize + 1
419
+
420
+ return Match(besti, bestj, bestsize)
421
+
422
+ def get_matching_blocks(self):
423
+ """Return list of triples describing matching subsequences.
424
+
425
+ Each triple is of the form (i, j, n), and means that
426
+ a[i:i+n] == b[j:j+n]. The triples are monotonically increasing in
427
+ i and in j. New in Python 2.5, it's also guaranteed that if
428
+ (i, j, n) and (i', j', n') are adjacent triples in the list, and
429
+ the second is not the last triple in the list, then i+n != i' or
430
+ j+n != j'. IOW, adjacent triples never describe adjacent equal
431
+ blocks.
432
+
433
+ The last triple is a dummy, (len(a), len(b), 0), and is the only
434
+ triple with n==0.
435
+
436
+ >>> s = SequenceMatcher(None, "abxcd", "abcd")
437
+ >>> list(s.get_matching_blocks())
438
+ [Match(a=0, b=0, size=2), Match(a=3, b=2, size=2), Match(a=5, b=4, size=0)]
439
+ """
440
+
441
+ if self.matching_blocks is not None:
442
+ return self.matching_blocks
443
+ la, lb = len(self.a), len(self.b)
444
+
445
+ # This is most naturally expressed as a recursive algorithm, but
446
+ # at least one user bumped into extreme use cases that exceeded
447
+ # the recursion limit on their box. So, now we maintain a list
448
+ # ('queue`) of blocks we still need to look at, and append partial
449
+ # results to `matching_blocks` in a loop; the matches are sorted
450
+ # at the end.
451
+ queue = [(0, la, 0, lb)]
452
+ matching_blocks = []
453
+ while queue:
454
+ alo, ahi, blo, bhi = queue.pop()
455
+ i, j, k = x = self.find_longest_match(alo, ahi, blo, bhi)
456
+ # a[alo:i] vs b[blo:j] unknown
457
+ # a[i:i+k] same as b[j:j+k]
458
+ # a[i+k:ahi] vs b[j+k:bhi] unknown
459
+ if k: # if k is 0, there was no matching block
460
+ matching_blocks.append(x)
461
+ if alo < i and blo < j:
462
+ queue.append((alo, i, blo, j))
463
+ if i+k < ahi and j+k < bhi:
464
+ queue.append((i+k, ahi, j+k, bhi))
465
+ matching_blocks.sort()
466
+
467
+ # It's possible that we have adjacent equal blocks in the
468
+ # matching_blocks list now. Starting with 2.5, this code was added
469
+ # to collapse them.
470
+ i1 = j1 = k1 = 0
471
+ non_adjacent = []
472
+ for i2, j2, k2 in matching_blocks:
473
+ # Is this block adjacent to i1, j1, k1?
474
+ if i1 + k1 == i2 and j1 + k1 == j2:
475
+ # Yes, so collapse them -- this just increases the length of
476
+ # the first block by the length of the second, and the first
477
+ # block so lengthened remains the block to compare against.
478
+ k1 += k2
479
+ else:
480
+ # Not adjacent. Remember the first block (k1==0 means it's
481
+ # the dummy we started with), and make the second block the
482
+ # new block to compare against.
483
+ if k1:
484
+ non_adjacent.append((i1, j1, k1))
485
+ i1, j1, k1 = i2, j2, k2
486
+ if k1:
487
+ non_adjacent.append((i1, j1, k1))
488
+
489
+ non_adjacent.append( (la, lb, 0) )
490
+ self.matching_blocks = list(map(Match._make, non_adjacent))
491
+ return self.matching_blocks
492
+
493
+ def get_opcodes(self):
494
+ """Return list of 5-tuples describing how to turn a into b.
495
+
496
+ Each tuple is of the form (tag, i1, i2, j1, j2). The first tuple
497
+ has i1 == j1 == 0, and remaining tuples have i1 == the i2 from the
498
+ tuple preceding it, and likewise for j1 == the previous j2.
499
+
500
+ The tags are strings, with these meanings:
501
+
502
+ 'replace': a[i1:i2] should be replaced by b[j1:j2]
503
+ 'delete': a[i1:i2] should be deleted.
504
+ Note that j1==j2 in this case.
505
+ 'insert': b[j1:j2] should be inserted at a[i1:i1].
506
+ Note that i1==i2 in this case.
507
+ 'equal': a[i1:i2] == b[j1:j2]
508
+
509
+ >>> a = "qabxcd"
510
+ >>> b = "abycdf"
511
+ >>> s = SequenceMatcher(None, a, b)
512
+ >>> for tag, i1, i2, j1, j2 in s.get_opcodes():
513
+ ... print(("%7s a[%d:%d] (%s) b[%d:%d] (%s)" %
514
+ ... (tag, i1, i2, a[i1:i2], j1, j2, b[j1:j2])))
515
+ delete a[0:1] (q) b[0:0] ()
516
+ equal a[1:3] (ab) b[0:2] (ab)
517
+ replace a[3:4] (x) b[2:3] (y)
518
+ equal a[4:6] (cd) b[3:5] (cd)
519
+ insert a[6:6] () b[5:6] (f)
520
+ """
521
+
522
+ if self.opcodes is not None:
523
+ return self.opcodes
524
+ i = j = 0
525
+ self.opcodes = answer = []
526
+ for ai, bj, size in self.get_matching_blocks():
527
+ # invariant: we've pumped out correct diffs to change
528
+ # a[:i] into b[:j], and the next matching block is
529
+ # a[ai:ai+size] == b[bj:bj+size]. So we need to pump
530
+ # out a diff to change a[i:ai] into b[j:bj], pump out
531
+ # the matching block, and move (i,j) beyond the match
532
+ tag = ''
533
+ if i < ai and j < bj:
534
+ tag = 'replace'
535
+ elif i < ai:
536
+ tag = 'delete'
537
+ elif j < bj:
538
+ tag = 'insert'
539
+ if tag:
540
+ answer.append( (tag, i, ai, j, bj) )
541
+ i, j = ai+size, bj+size
542
+ # the list of matching blocks is terminated by a
543
+ # sentinel with size 0
544
+ if size:
545
+ answer.append( ('equal', ai, i, bj, j) )
546
+ return answer
547
+
548
+ def get_grouped_opcodes(self, n=3):
549
+ """ Isolate change clusters by eliminating ranges with no changes.
550
+
551
+ Return a generator of groups with up to n lines of context.
552
+ Each group is in the same format as returned by get_opcodes().
553
+
554
+ >>> from pprint import pprint
555
+ >>> a = list(map(str, range(1,40)))
556
+ >>> b = a[:]
557
+ >>> b[8:8] = ['i'] # Make an insertion
558
+ >>> b[20] += 'x' # Make a replacement
559
+ >>> b[23:28] = [] # Make a deletion
560
+ >>> b[30] += 'y' # Make another replacement
561
+ >>> pprint(list(SequenceMatcher(None,a,b).get_grouped_opcodes()))
562
+ [[('equal', 5, 8, 5, 8), ('insert', 8, 8, 8, 9), ('equal', 8, 11, 9, 12)],
563
+ [('equal', 16, 19, 17, 20),
564
+ ('replace', 19, 20, 20, 21),
565
+ ('equal', 20, 22, 21, 23),
566
+ ('delete', 22, 27, 23, 23),
567
+ ('equal', 27, 30, 23, 26)],
568
+ [('equal', 31, 34, 27, 30),
569
+ ('replace', 34, 35, 30, 31),
570
+ ('equal', 35, 38, 31, 34)]]
571
+ """
572
+
573
+ codes = self.get_opcodes()
574
+ if not codes:
575
+ codes = [("equal", 0, 1, 0, 1)]
576
+ # Fixup leading and trailing groups if they show no changes.
577
+ if codes[0][0] == 'equal':
578
+ tag, i1, i2, j1, j2 = codes[0]
579
+ codes[0] = tag, max(i1, i2-n), i2, max(j1, j2-n), j2
580
+ if codes[-1][0] == 'equal':
581
+ tag, i1, i2, j1, j2 = codes[-1]
582
+ codes[-1] = tag, i1, min(i2, i1+n), j1, min(j2, j1+n)
583
+
584
+ nn = n + n
585
+ group = []
586
+ for tag, i1, i2, j1, j2 in codes:
587
+ # End the current group and start a new one whenever
588
+ # there is a large range with no changes.
589
+ if tag == 'equal' and i2-i1 > nn:
590
+ group.append((tag, i1, min(i2, i1+n), j1, min(j2, j1+n)))
591
+ yield group
592
+ group = []
593
+ i1, j1 = max(i1, i2-n), max(j1, j2-n)
594
+ group.append((tag, i1, i2, j1 ,j2))
595
+ if group and not (len(group)==1 and group[0][0] == 'equal'):
596
+ yield group
597
+
598
+ def ratio(self):
599
+ """Return a measure of the sequences' similarity (float in [0,1]).
600
+
601
+ Where T is the total number of elements in both sequences, and
602
+ M is the number of matches, this is 2.0*M / T.
603
+ Note that this is 1 if the sequences are identical, and 0 if
604
+ they have nothing in common.
605
+
606
+ .ratio() is expensive to compute if you haven't already computed
607
+ .get_matching_blocks() or .get_opcodes(), in which case you may
608
+ want to try .quick_ratio() or .real_quick_ratio() first to get an
609
+ upper bound.
610
+
611
+ >>> s = SequenceMatcher(None, "abcd", "bcde")
612
+ >>> s.ratio()
613
+ 0.75
614
+ >>> s.quick_ratio()
615
+ 0.75
616
+ >>> s.real_quick_ratio()
617
+ 1.0
618
+ """
619
+
620
+ matches = sum(triple[-1] for triple in self.get_matching_blocks())
621
+ return _calculate_ratio(matches, len(self.a) + len(self.b))
622
+
623
+ def quick_ratio(self):
624
+ """Return an upper bound on ratio() relatively quickly.
625
+
626
+ This isn't defined beyond that it is an upper bound on .ratio(), and
627
+ is faster to compute.
628
+ """
629
+
630
+ # viewing a and b as multisets, set matches to the cardinality
631
+ # of their intersection; this counts the number of matches
632
+ # without regard to order, so is clearly an upper bound
633
+ if self.fullbcount is None:
634
+ self.fullbcount = fullbcount = {}
635
+ for elt in self.b:
636
+ fullbcount[elt] = fullbcount.get(elt, 0) + 1
637
+ fullbcount = self.fullbcount
638
+ # avail[x] is the number of times x appears in 'b' less the
639
+ # number of times we've seen it in 'a' so far ... kinda
640
+ avail = {}
641
+ matches = 0
642
+ for elt in self.a:
643
+ if elt in avail:
644
+ numb = avail[elt]
645
+ else:
646
+ numb = fullbcount.get(elt, 0)
647
+ avail[elt] = numb - 1
648
+ if numb > 0:
649
+ matches += 1
650
+ return _calculate_ratio(matches, len(self.a) + len(self.b))
651
+
652
+ def real_quick_ratio(self):
653
+ """Return an upper bound on ratio() very quickly.
654
+
655
+ This isn't defined beyond that it is an upper bound on .ratio(), and
656
+ is faster to compute than either .ratio() or .quick_ratio().
657
+ """
658
+
659
+ la, lb = len(self.a), len(self.b)
660
+ # can't have more matches than the number of elements in the
661
+ # shorter sequence
662
+ return _calculate_ratio(min(la, lb), la + lb)
663
+
664
+ __class_getitem__ = classmethod(GenericAlias)
665
+
666
+
667
+ def get_close_matches(word, possibilities, n=3, cutoff=0.6):
668
+ """Use SequenceMatcher to return list of the best "good enough" matches.
669
+
670
+ word is a sequence for which close matches are desired (typically a
671
+ string).
672
+
673
+ possibilities is a list of sequences against which to match word
674
+ (typically a list of strings).
675
+
676
+ Optional arg n (default 3) is the maximum number of close matches to
677
+ return. n must be > 0.
678
+
679
+ Optional arg cutoff (default 0.6) is a float in [0, 1]. Possibilities
680
+ that don't score at least that similar to word are ignored.
681
+
682
+ The best (no more than n) matches among the possibilities are returned
683
+ in a list, sorted by similarity score, most similar first.
684
+
685
+ >>> get_close_matches("appel", ["ape", "apple", "peach", "puppy"])
686
+ ['apple', 'ape']
687
+ >>> import keyword as _keyword
688
+ >>> get_close_matches("wheel", _keyword.kwlist)
689
+ ['while']
690
+ >>> get_close_matches("Apple", _keyword.kwlist)
691
+ []
692
+ >>> get_close_matches("accept", _keyword.kwlist)
693
+ ['except']
694
+ """
695
+
696
+ if not n > 0:
697
+ raise ValueError("n must be > 0: %r" % (n,))
698
+ if not 0.0 <= cutoff <= 1.0:
699
+ raise ValueError("cutoff must be in [0.0, 1.0]: %r" % (cutoff,))
700
+ result = []
701
+ s = SequenceMatcher()
702
+ s.set_seq2(word)
703
+ for x in possibilities:
704
+ s.set_seq1(x)
705
+ if s.real_quick_ratio() < cutoff or s.quick_ratio() < cutoff:
706
+ continue
707
+
708
+ ratio = s.ratio()
709
+ if ratio >= cutoff:
710
+ result.append((ratio, x))
711
+
712
+ # Move the best scorers to head of list
713
+ result = _nlargest(n, result)
714
+ # Strip scores for the best n matches
715
+ return [x for score, x in result]
716
+
717
+
718
+ def _keep_original_ws(s, tag_s):
719
+ """Replace whitespace with the original whitespace characters in `s`"""
720
+ return ''.join(
721
+ c if tag_c == " " and c.isspace() else tag_c
722
+ for c, tag_c in zip(s, tag_s)
723
+ )
724
+
725
+
726
+
727
+ class Differ:
728
+ r"""
729
+ Differ is a class for comparing sequences of lines of text, and
730
+ producing human-readable differences or deltas. Differ uses
731
+ SequenceMatcher both to compare sequences of lines, and to compare
732
+ sequences of characters within similar (near-matching) lines.
733
+
734
+ Each line of a Differ delta begins with a two-letter code:
735
+
736
+ '- ' line unique to sequence 1
737
+ '+ ' line unique to sequence 2
738
+ ' ' line common to both sequences
739
+ '? ' line not present in either input sequence
740
+
741
+ Lines beginning with '? ' attempt to guide the eye to intraline
742
+ differences, and were not present in either input sequence. These lines
743
+ can be confusing if the sequences contain tab characters.
744
+
745
+ Note that Differ makes no claim to produce a *minimal* diff. To the
746
+ contrary, minimal diffs are often counter-intuitive, because they synch
747
+ up anywhere possible, sometimes accidental matches 100 pages apart.
748
+ Restricting synch points to contiguous matches preserves some notion of
749
+ locality, at the occasional cost of producing a longer diff.
750
+
751
+ Example: Comparing two texts.
752
+
753
+ First we set up the texts, sequences of individual single-line strings
754
+ ending with newlines (such sequences can also be obtained from the
755
+ `readlines()` method of file-like objects):
756
+
757
+ >>> text1 = ''' 1. Beautiful is better than ugly.
758
+ ... 2. Explicit is better than implicit.
759
+ ... 3. Simple is better than complex.
760
+ ... 4. Complex is better than complicated.
761
+ ... '''.splitlines(keepends=True)
762
+ >>> len(text1)
763
+ 4
764
+ >>> text1[0][-1]
765
+ '\n'
766
+ >>> text2 = ''' 1. Beautiful is better than ugly.
767
+ ... 3. Simple is better than complex.
768
+ ... 4. Complicated is better than complex.
769
+ ... 5. Flat is better than nested.
770
+ ... '''.splitlines(keepends=True)
771
+
772
+ Next we instantiate a Differ object:
773
+
774
+ >>> d = Differ()
775
+
776
+ Note that when instantiating a Differ object we may pass functions to
777
+ filter out line and character 'junk'. See Differ.__init__ for details.
778
+
779
+ Finally, we compare the two:
780
+
781
+ >>> result = list(d.compare(text1, text2))
782
+
783
+ 'result' is a list of strings, so let's pretty-print it:
784
+
785
+ >>> from pprint import pprint as _pprint
786
+ >>> _pprint(result)
787
+ [' 1. Beautiful is better than ugly.\n',
788
+ '- 2. Explicit is better than implicit.\n',
789
+ '- 3. Simple is better than complex.\n',
790
+ '+ 3. Simple is better than complex.\n',
791
+ '? ++\n',
792
+ '- 4. Complex is better than complicated.\n',
793
+ '? ^ ---- ^\n',
794
+ '+ 4. Complicated is better than complex.\n',
795
+ '? ++++ ^ ^\n',
796
+ '+ 5. Flat is better than nested.\n']
797
+
798
+ As a single multi-line string it looks like this:
799
+
800
+ >>> print(''.join(result), end="")
801
+ 1. Beautiful is better than ugly.
802
+ - 2. Explicit is better than implicit.
803
+ - 3. Simple is better than complex.
804
+ + 3. Simple is better than complex.
805
+ ? ++
806
+ - 4. Complex is better than complicated.
807
+ ? ^ ---- ^
808
+ + 4. Complicated is better than complex.
809
+ ? ++++ ^ ^
810
+ + 5. Flat is better than nested.
811
+ """
812
+
813
+ def __init__(self, linejunk=None, charjunk=None):
814
+ """
815
+ Construct a text differencer, with optional filters.
816
+
817
+ The two optional keyword parameters are for filter functions:
818
+
819
+ - `linejunk`: A function that should accept a single string argument,
820
+ and return true iff the string is junk. The module-level function
821
+ `IS_LINE_JUNK` may be used to filter out lines without visible
822
+ characters, except for at most one splat ('#'). It is recommended
823
+ to leave linejunk None; the underlying SequenceMatcher class has
824
+ an adaptive notion of "noise" lines that's better than any static
825
+ definition the author has ever been able to craft.
826
+
827
+ - `charjunk`: A function that should accept a string of length 1. The
828
+ module-level function `IS_CHARACTER_JUNK` may be used to filter out
829
+ whitespace characters (a blank or tab; **note**: bad idea to include
830
+ newline in this!). Use of IS_CHARACTER_JUNK is recommended.
831
+ """
832
+
833
+ self.linejunk = linejunk
834
+ self.charjunk = charjunk
835
+
836
+ def compare(self, a, b):
837
+ r"""
838
+ Compare two sequences of lines; generate the resulting delta.
839
+
840
+ Each sequence must contain individual single-line strings ending with
841
+ newlines. Such sequences can be obtained from the `readlines()` method
842
+ of file-like objects. The delta generated also consists of newline-
843
+ terminated strings, ready to be printed as-is via the writelines()
844
+ method of a file-like object.
845
+
846
+ Example:
847
+
848
+ >>> print(''.join(Differ().compare('one\ntwo\nthree\n'.splitlines(True),
849
+ ... 'ore\ntree\nemu\n'.splitlines(True))),
850
+ ... end="")
851
+ - one
852
+ ? ^
853
+ + ore
854
+ ? ^
855
+ - two
856
+ - three
857
+ ? -
858
+ + tree
859
+ + emu
860
+ """
861
+
862
+ cruncher = SequenceMatcher(self.linejunk, a, b)
863
+ for tag, alo, ahi, blo, bhi in cruncher.get_opcodes():
864
+ if tag == 'replace':
865
+ g = self._fancy_replace(a, alo, ahi, b, blo, bhi)
866
+ elif tag == 'delete':
867
+ g = self._dump('-', a, alo, ahi)
868
+ elif tag == 'insert':
869
+ g = self._dump('+', b, blo, bhi)
870
+ elif tag == 'equal':
871
+ g = self._dump(' ', a, alo, ahi)
872
+ else:
873
+ raise ValueError('unknown tag %r' % (tag,))
874
+
875
+ yield from g
876
+
877
+ def _dump(self, tag, x, lo, hi):
878
+ """Generate comparison results for a same-tagged range."""
879
+ for i in range(lo, hi):
880
+ yield '%s %s' % (tag, x[i])
881
+
882
+ def _plain_replace(self, a, alo, ahi, b, blo, bhi):
883
+ assert alo < ahi and blo < bhi
884
+ # dump the shorter block first -- reduces the burden on short-term
885
+ # memory if the blocks are of very different sizes
886
+ if bhi - blo < ahi - alo:
887
+ first = self._dump('+', b, blo, bhi)
888
+ second = self._dump('-', a, alo, ahi)
889
+ else:
890
+ first = self._dump('-', a, alo, ahi)
891
+ second = self._dump('+', b, blo, bhi)
892
+
893
+ for g in first, second:
894
+ yield from g
895
+
896
+ def _fancy_replace(self, a, alo, ahi, b, blo, bhi):
897
+ r"""
898
+ When replacing one block of lines with another, search the blocks
899
+ for *similar* lines; the best-matching pair (if any) is used as a
900
+ synch point, and intraline difference marking is done on the
901
+ similar pair. Lots of work, but often worth it.
902
+
903
+ Example:
904
+
905
+ >>> d = Differ()
906
+ >>> results = d._fancy_replace(['abcDefghiJkl\n'], 0, 1,
907
+ ... ['abcdefGhijkl\n'], 0, 1)
908
+ >>> print(''.join(results), end="")
909
+ - abcDefghiJkl
910
+ ? ^ ^ ^
911
+ + abcdefGhijkl
912
+ ? ^ ^ ^
913
+ """
914
+ # Don't synch up unless the lines have a similarity score above
915
+ # cutoff. Previously only the smallest pair was handled here,
916
+ # and if there are many pairs with the best ratio, recursion
917
+ # could grow very deep, and runtime cubic. See:
918
+ # https://github.com/python/cpython/issues/119105
919
+ #
920
+ # Later, more pathological cases prompted removing recursion
921
+ # entirely.
922
+ cutoff = 0.74999
923
+ cruncher = SequenceMatcher(self.charjunk)
924
+ crqr = cruncher.real_quick_ratio
925
+ cqr = cruncher.quick_ratio
926
+ cr = cruncher.ratio
927
+
928
+ WINDOW = 10
929
+ best_i = best_j = None
930
+ dump_i, dump_j = alo, blo # smallest indices not yet resolved
931
+ for j in range(blo, bhi):
932
+ cruncher.set_seq2(b[j])
933
+ # Search the corresponding i's within WINDOW for rhe highest
934
+ # ratio greater than `cutoff`.
935
+ aequiv = alo + (j - blo)
936
+ arange = range(max(aequiv - WINDOW, dump_i),
937
+ min(aequiv + WINDOW + 1, ahi))
938
+ if not arange: # likely exit if `a` is shorter than `b`
939
+ break
940
+ best_ratio = cutoff
941
+ for i in arange:
942
+ cruncher.set_seq1(a[i])
943
+ # Ordering by cheapest to most expensive ratio is very
944
+ # valuable, most often getting out early.
945
+ if crqr() <= best_ratio or cqr() <= best_ratio:
946
+ continue
947
+
948
+ ratio = cr()
949
+ if ratio > best_ratio:
950
+ best_i, best_j, best_ratio = i, j, ratio
951
+
952
+ if best_i is None:
953
+ # found nothing to synch on yet - move to next j
954
+ continue
955
+
956
+ # pump out straight replace from before this synch pair
957
+ yield from self._fancy_helper(a, dump_i, best_i,
958
+ b, dump_j, best_j)
959
+ # do intraline marking on the synch pair
960
+ aelt, belt = a[best_i], b[best_j]
961
+ if aelt != belt:
962
+ # pump out a '-', '?', '+', '?' quad for the synched lines
963
+ atags = btags = ""
964
+ cruncher.set_seqs(aelt, belt)
965
+ for tag, ai1, ai2, bj1, bj2 in cruncher.get_opcodes():
966
+ la, lb = ai2 - ai1, bj2 - bj1
967
+ if tag == 'replace':
968
+ atags += '^' * la
969
+ btags += '^' * lb
970
+ elif tag == 'delete':
971
+ atags += '-' * la
972
+ elif tag == 'insert':
973
+ btags += '+' * lb
974
+ elif tag == 'equal':
975
+ atags += ' ' * la
976
+ btags += ' ' * lb
977
+ else:
978
+ raise ValueError('unknown tag %r' % (tag,))
979
+ yield from self._qformat(aelt, belt, atags, btags)
980
+ else:
981
+ # the synch pair is identical
982
+ yield ' ' + aelt
983
+ dump_i, dump_j = best_i + 1, best_j + 1
984
+ best_i = best_j = None
985
+
986
+ # pump out straight replace from after the last synch pair
987
+ yield from self._fancy_helper(a, dump_i, ahi,
988
+ b, dump_j, bhi)
989
+
990
+ def _fancy_helper(self, a, alo, ahi, b, blo, bhi):
991
+ g = []
992
+ if alo < ahi:
993
+ if blo < bhi:
994
+ g = self._plain_replace(a, alo, ahi, b, blo, bhi)
995
+ else:
996
+ g = self._dump('-', a, alo, ahi)
997
+ elif blo < bhi:
998
+ g = self._dump('+', b, blo, bhi)
999
+
1000
+ yield from g
1001
+
1002
+ def _qformat(self, aline, bline, atags, btags):
1003
+ r"""
1004
+ Format "?" output and deal with tabs.
1005
+
1006
+ Example:
1007
+
1008
+ >>> d = Differ()
1009
+ >>> results = d._qformat('\tabcDefghiJkl\n', '\tabcdefGhijkl\n',
1010
+ ... ' ^ ^ ^ ', ' ^ ^ ^ ')
1011
+ >>> for line in results: print(repr(line))
1012
+ ...
1013
+ '- \tabcDefghiJkl\n'
1014
+ '? \t ^ ^ ^\n'
1015
+ '+ \tabcdefGhijkl\n'
1016
+ '? \t ^ ^ ^\n'
1017
+ """
1018
+ atags = _keep_original_ws(aline, atags).rstrip()
1019
+ btags = _keep_original_ws(bline, btags).rstrip()
1020
+
1021
+ yield "- " + aline
1022
+ if atags:
1023
+ yield f"? {atags}\n"
1024
+
1025
+ yield "+ " + bline
1026
+ if btags:
1027
+ yield f"? {btags}\n"
1028
+
1029
+ # With respect to junk, an earlier version of ndiff simply refused to
1030
+ # *start* a match with a junk element. The result was cases like this:
1031
+ # before: private Thread currentThread;
1032
+ # after: private volatile Thread currentThread;
1033
+ # If you consider whitespace to be junk, the longest contiguous match
1034
+ # not starting with junk is "e Thread currentThread". So ndiff reported
1035
+ # that "e volatil" was inserted between the 't' and the 'e' in "private".
1036
+ # While an accurate view, to people that's absurd. The current version
1037
+ # looks for matching blocks that are entirely junk-free, then extends the
1038
+ # longest one of those as far as possible but only with matching junk.
1039
+ # So now "currentThread" is matched, then extended to suck up the
1040
+ # preceding blank; then "private" is matched, and extended to suck up the
1041
+ # following blank; then "Thread" is matched; and finally ndiff reports
1042
+ # that "volatile " was inserted before "Thread". The only quibble
1043
+ # remaining is that perhaps it was really the case that " volatile"
1044
+ # was inserted after "private". I can live with that <wink>.
1045
+
1046
+ def IS_LINE_JUNK(line, pat=None):
1047
+ r"""
1048
+ Return True for ignorable line: if `line` is blank or contains a single '#'.
1049
+
1050
+ Examples:
1051
+
1052
+ >>> IS_LINE_JUNK('\n')
1053
+ True
1054
+ >>> IS_LINE_JUNK(' # \n')
1055
+ True
1056
+ >>> IS_LINE_JUNK('hello\n')
1057
+ False
1058
+ """
1059
+
1060
+ if pat is None:
1061
+ # Default: match '#' or the empty string
1062
+ return line.strip() in '#'
1063
+ # Previous versions used the undocumented parameter 'pat' as a
1064
+ # match function. Retain this behaviour for compatibility.
1065
+ return pat(line) is not None
1066
+
1067
+ def IS_CHARACTER_JUNK(ch, ws=" \t"):
1068
+ r"""
1069
+ Return True for ignorable character: iff `ch` is a space or tab.
1070
+
1071
+ Examples:
1072
+
1073
+ >>> IS_CHARACTER_JUNK(' ')
1074
+ True
1075
+ >>> IS_CHARACTER_JUNK('\t')
1076
+ True
1077
+ >>> IS_CHARACTER_JUNK('\n')
1078
+ False
1079
+ >>> IS_CHARACTER_JUNK('x')
1080
+ False
1081
+ """
1082
+
1083
+ return ch in ws
1084
+
1085
+
1086
+ ########################################################################
1087
+ ### Unified Diff
1088
+ ########################################################################
1089
+
1090
+ def _format_range_unified(start, stop):
1091
+ 'Convert range to the "ed" format'
1092
+ # Per the diff spec at http://www.unix.org/single_unix_specification/
1093
+ beginning = start + 1 # lines start numbering with one
1094
+ length = stop - start
1095
+ if length == 1:
1096
+ return '{}'.format(beginning)
1097
+ if not length:
1098
+ beginning -= 1 # empty ranges begin at line just before the range
1099
+ return '{},{}'.format(beginning, length)
1100
+
1101
+ def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',
1102
+ tofiledate='', n=3, lineterm='\n', *, color=False):
1103
+ r"""
1104
+ Compare two sequences of lines; generate the delta as a unified diff.
1105
+
1106
+ Unified diffs are a compact way of showing line changes and a few
1107
+ lines of context. The number of context lines is set by 'n' which
1108
+ defaults to three.
1109
+
1110
+ By default, the diff control lines (those with ---, +++, or @@) are
1111
+ created with a trailing newline. This is helpful so that inputs
1112
+ created from file.readlines() result in diffs that are suitable for
1113
+ file.writelines() since both the inputs and outputs have trailing
1114
+ newlines.
1115
+
1116
+ For inputs that do not have trailing newlines, set the lineterm
1117
+ argument to "" so that the output will be uniformly newline free.
1118
+
1119
+ Set 'color' to True to enable output in color, similar to
1120
+ 'git diff --color'. Even if enabled, it can be
1121
+ controlled using environment variables such as 'NO_COLOR'.
1122
+
1123
+ The unidiff format normally has a header for filenames and modification
1124
+ times. Any or all of these may be specified using strings for
1125
+ 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'.
1126
+ The modification times are normally expressed in the ISO 8601 format.
1127
+
1128
+ Example:
1129
+
1130
+ >>> for line in unified_diff('one two three four'.split(),
1131
+ ... 'zero one tree four'.split(), 'Original', 'Current',
1132
+ ... '2005-01-26 23:30:50', '2010-04-02 10:20:52',
1133
+ ... lineterm=''):
1134
+ ... print(line) # doctest: +NORMALIZE_WHITESPACE
1135
+ --- Original 2005-01-26 23:30:50
1136
+ +++ Current 2010-04-02 10:20:52
1137
+ @@ -1,4 +1,4 @@
1138
+ +zero
1139
+ one
1140
+ -two
1141
+ -three
1142
+ +tree
1143
+ four
1144
+ """
1145
+
1146
+ if color and can_colorize():
1147
+ t = get_theme(force_color=True).difflib
1148
+ else:
1149
+ t = get_theme(force_no_color=True).difflib
1150
+
1151
+ _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
1152
+ started = False
1153
+ for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
1154
+ if not started:
1155
+ started = True
1156
+ fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
1157
+ todate = '\t{}'.format(tofiledate) if tofiledate else ''
1158
+ yield f'{t.header}--- {fromfile}{fromdate}{lineterm}{t.reset}'
1159
+ yield f'{t.header}+++ {tofile}{todate}{lineterm}{t.reset}'
1160
+
1161
+ first, last = group[0], group[-1]
1162
+ file1_range = _format_range_unified(first[1], last[2])
1163
+ file2_range = _format_range_unified(first[3], last[4])
1164
+ yield f'{t.hunk}@@ -{file1_range} +{file2_range} @@{lineterm}{t.reset}'
1165
+
1166
+ for tag, i1, i2, j1, j2 in group:
1167
+ if tag == 'equal':
1168
+ for line in a[i1:i2]:
1169
+ yield f'{t.context} {line}{t.reset}'
1170
+ continue
1171
+ if tag in {'replace', 'delete'}:
1172
+ for line in a[i1:i2]:
1173
+ yield f'{t.removed}-{line}{t.reset}'
1174
+ if tag in {'replace', 'insert'}:
1175
+ for line in b[j1:j2]:
1176
+ yield f'{t.added}+{line}{t.reset}'
1177
+
1178
+
1179
+ ########################################################################
1180
+ ### Context Diff
1181
+ ########################################################################
1182
+
1183
+ def _format_range_context(start, stop):
1184
+ 'Convert range to the "ed" format'
1185
+ # Per the diff spec at http://www.unix.org/single_unix_specification/
1186
+ beginning = start + 1 # lines start numbering with one
1187
+ length = stop - start
1188
+ if not length:
1189
+ beginning -= 1 # empty ranges begin at line just before the range
1190
+ if length <= 1:
1191
+ return '{}'.format(beginning)
1192
+ return '{},{}'.format(beginning, beginning + length - 1)
1193
+
1194
+ # See http://www.unix.org/single_unix_specification/
1195
+ def context_diff(a, b, fromfile='', tofile='',
1196
+ fromfiledate='', tofiledate='', n=3, lineterm='\n'):
1197
+ r"""
1198
+ Compare two sequences of lines; generate the delta as a context diff.
1199
+
1200
+ Context diffs are a compact way of showing line changes and a few
1201
+ lines of context. The number of context lines is set by 'n' which
1202
+ defaults to three.
1203
+
1204
+ By default, the diff control lines (those with *** or ---) are
1205
+ created with a trailing newline. This is helpful so that inputs
1206
+ created from file.readlines() result in diffs that are suitable for
1207
+ file.writelines() since both the inputs and outputs have trailing
1208
+ newlines.
1209
+
1210
+ For inputs that do not have trailing newlines, set the lineterm
1211
+ argument to "" so that the output will be uniformly newline free.
1212
+
1213
+ The context diff format normally has a header for filenames and
1214
+ modification times. Any or all of these may be specified using
1215
+ strings for 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'.
1216
+ The modification times are normally expressed in the ISO 8601 format.
1217
+ If not specified, the strings default to blanks.
1218
+
1219
+ Example:
1220
+
1221
+ >>> print(''.join(context_diff('one\ntwo\nthree\nfour\n'.splitlines(True),
1222
+ ... 'zero\none\ntree\nfour\n'.splitlines(True), 'Original', 'Current')),
1223
+ ... end="")
1224
+ *** Original
1225
+ --- Current
1226
+ ***************
1227
+ *** 1,4 ****
1228
+ one
1229
+ ! two
1230
+ ! three
1231
+ four
1232
+ --- 1,4 ----
1233
+ + zero
1234
+ one
1235
+ ! tree
1236
+ four
1237
+ """
1238
+
1239
+ _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
1240
+ prefix = dict(insert='+ ', delete='- ', replace='! ', equal=' ')
1241
+ started = False
1242
+ for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
1243
+ if not started:
1244
+ started = True
1245
+ fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
1246
+ todate = '\t{}'.format(tofiledate) if tofiledate else ''
1247
+ yield '*** {}{}{}'.format(fromfile, fromdate, lineterm)
1248
+ yield '--- {}{}{}'.format(tofile, todate, lineterm)
1249
+
1250
+ first, last = group[0], group[-1]
1251
+ yield '***************' + lineterm
1252
+
1253
+ file1_range = _format_range_context(first[1], last[2])
1254
+ yield '*** {} ****{}'.format(file1_range, lineterm)
1255
+
1256
+ if any(tag in {'replace', 'delete'} for tag, _, _, _, _ in group):
1257
+ for tag, i1, i2, _, _ in group:
1258
+ if tag != 'insert':
1259
+ for line in a[i1:i2]:
1260
+ yield prefix[tag] + line
1261
+
1262
+ file2_range = _format_range_context(first[3], last[4])
1263
+ yield '--- {} ----{}'.format(file2_range, lineterm)
1264
+
1265
+ if any(tag in {'replace', 'insert'} for tag, _, _, _, _ in group):
1266
+ for tag, _, _, j1, j2 in group:
1267
+ if tag != 'delete':
1268
+ for line in b[j1:j2]:
1269
+ yield prefix[tag] + line
1270
+
1271
+ def _check_types(a, b, *args):
1272
+ # Checking types is weird, but the alternative is garbled output when
1273
+ # someone passes mixed bytes and str to {unified,context}_diff(). E.g.
1274
+ # without this check, passing filenames as bytes results in output like
1275
+ # --- b'oldfile.txt'
1276
+ # +++ b'newfile.txt'
1277
+ # because of how str.format() incorporates bytes objects.
1278
+ if a and not isinstance(a[0], str):
1279
+ raise TypeError('lines to compare must be str, not %s (%r)' %
1280
+ (type(a[0]).__name__, a[0]))
1281
+ if b and not isinstance(b[0], str):
1282
+ raise TypeError('lines to compare must be str, not %s (%r)' %
1283
+ (type(b[0]).__name__, b[0]))
1284
+ if isinstance(a, str):
1285
+ raise TypeError('input must be a sequence of strings, not %s' %
1286
+ type(a).__name__)
1287
+ if isinstance(b, str):
1288
+ raise TypeError('input must be a sequence of strings, not %s' %
1289
+ type(b).__name__)
1290
+ for arg in args:
1291
+ if not isinstance(arg, str):
1292
+ raise TypeError('all arguments must be str, not: %r' % (arg,))
1293
+
1294
+ def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'',
1295
+ fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n'):
1296
+ r"""
1297
+ Compare `a` and `b`, two sequences of lines represented as bytes rather
1298
+ than str. This is a wrapper for `dfunc`, which is typically either
1299
+ unified_diff() or context_diff(). Inputs are losslessly converted to
1300
+ strings so that `dfunc` only has to worry about strings, and encoded
1301
+ back to bytes on return. This is necessary to compare files with
1302
+ unknown or inconsistent encoding. All other inputs (except `n`) must be
1303
+ bytes rather than str.
1304
+ """
1305
+ def decode(s):
1306
+ try:
1307
+ return s.decode('ascii', 'surrogateescape')
1308
+ except AttributeError as err:
1309
+ msg = ('all arguments must be bytes, not %s (%r)' %
1310
+ (type(s).__name__, s))
1311
+ raise TypeError(msg) from err
1312
+ a = list(map(decode, a))
1313
+ b = list(map(decode, b))
1314
+ fromfile = decode(fromfile)
1315
+ tofile = decode(tofile)
1316
+ fromfiledate = decode(fromfiledate)
1317
+ tofiledate = decode(tofiledate)
1318
+ lineterm = decode(lineterm)
1319
+
1320
+ lines = dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)
1321
+ for line in lines:
1322
+ yield line.encode('ascii', 'surrogateescape')
1323
+
1324
+ def ndiff(a, b, linejunk=None, charjunk=IS_CHARACTER_JUNK):
1325
+ r"""
1326
+ Compare `a` and `b` (lists of strings); return a `Differ`-style delta.
1327
+
1328
+ Optional keyword parameters `linejunk` and `charjunk` are for filter
1329
+ functions, or can be None:
1330
+
1331
+ - linejunk: A function that should accept a single string argument and
1332
+ return true iff the string is junk. The default is None, and is
1333
+ recommended; the underlying SequenceMatcher class has an adaptive
1334
+ notion of "noise" lines.
1335
+
1336
+ - charjunk: A function that accepts a character (string of length
1337
+ 1), and returns true iff the character is junk. The default is
1338
+ the module-level function IS_CHARACTER_JUNK, which filters out
1339
+ whitespace characters (a blank or tab; note: it's a bad idea to
1340
+ include newline in this!).
1341
+
1342
+ Tools/scripts/ndiff.py is a command-line front-end to this function.
1343
+
1344
+ Example:
1345
+
1346
+ >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True),
1347
+ ... 'ore\ntree\nemu\n'.splitlines(keepends=True))
1348
+ >>> print(''.join(diff), end="")
1349
+ - one
1350
+ ? ^
1351
+ + ore
1352
+ ? ^
1353
+ - two
1354
+ - three
1355
+ ? -
1356
+ + tree
1357
+ + emu
1358
+ """
1359
+ return Differ(linejunk, charjunk).compare(a, b)
1360
+
1361
+ def _mdiff(fromlines, tolines, context=None, linejunk=None,
1362
+ charjunk=IS_CHARACTER_JUNK):
1363
+ r"""Returns generator yielding marked up from/to side by side differences.
1364
+
1365
+ Arguments:
1366
+ fromlines -- list of text lines to compared to tolines
1367
+ tolines -- list of text lines to be compared to fromlines
1368
+ context -- number of context lines to display on each side of difference,
1369
+ if None, all from/to text lines will be generated.
1370
+ linejunk -- passed on to ndiff (see ndiff documentation)
1371
+ charjunk -- passed on to ndiff (see ndiff documentation)
1372
+
1373
+ This function returns an iterator which returns a tuple:
1374
+ (from line tuple, to line tuple, boolean flag)
1375
+
1376
+ from/to line tuple -- (line num, line text)
1377
+ line num -- integer or None (to indicate a context separation)
1378
+ line text -- original line text with following markers inserted:
1379
+ '\0+' -- marks start of added text
1380
+ '\0-' -- marks start of deleted text
1381
+ '\0^' -- marks start of changed text
1382
+ '\1' -- marks end of added/deleted/changed text
1383
+
1384
+ boolean flag -- None indicates context separation, True indicates
1385
+ either "from" or "to" line contains a change, otherwise False.
1386
+
1387
+ This function/iterator was originally developed to generate side by side
1388
+ file difference for making HTML pages (see HtmlDiff class for example
1389
+ usage).
1390
+
1391
+ Note, this function utilizes the ndiff function to generate the side by
1392
+ side difference markup. Optional ndiff arguments may be passed to this
1393
+ function and they in turn will be passed to ndiff.
1394
+ """
1395
+ import re
1396
+
1397
+ # regular expression for finding intraline change indices
1398
+ change_re = re.compile(r'(\++|\-+|\^+)')
1399
+
1400
+ # create the difference iterator to generate the differences
1401
+ diff_lines_iterator = ndiff(fromlines,tolines,linejunk,charjunk)
1402
+
1403
+ def _make_line(lines, format_key, side, num_lines=[0,0]):
1404
+ """Returns line of text with user's change markup and line formatting.
1405
+
1406
+ lines -- list of lines from the ndiff generator to produce a line of
1407
+ text from. When producing the line of text to return, the
1408
+ lines used are removed from this list.
1409
+ format_key -- '+' return first line in list with "add" markup around
1410
+ the entire line.
1411
+ '-' return first line in list with "delete" markup around
1412
+ the entire line.
1413
+ '?' return first line in list with add/delete/change
1414
+ intraline markup (indices obtained from second line)
1415
+ None return first line in list with no markup
1416
+ side -- indice into the num_lines list (0=from,1=to)
1417
+ num_lines -- from/to current line number. This is NOT intended to be a
1418
+ passed parameter. It is present as a keyword argument to
1419
+ maintain memory of the current line numbers between calls
1420
+ of this function.
1421
+
1422
+ Note, this function is purposefully not defined at the module scope so
1423
+ that data it needs from its parent function (within whose context it
1424
+ is defined) does not need to be of module scope.
1425
+ """
1426
+ num_lines[side] += 1
1427
+ # Handle case where no user markup is to be added, just return line of
1428
+ # text with user's line format to allow for usage of the line number.
1429
+ if format_key is None:
1430
+ return (num_lines[side],lines.pop(0)[2:])
1431
+ # Handle case of intraline changes
1432
+ if format_key == '?':
1433
+ text, markers = lines.pop(0), lines.pop(0)
1434
+ # find intraline changes (store change type and indices in tuples)
1435
+ sub_info = []
1436
+ def record_sub_info(match_object,sub_info=sub_info):
1437
+ sub_info.append([match_object.group(1)[0],match_object.span()])
1438
+ return match_object.group(1)
1439
+ change_re.sub(record_sub_info,markers)
1440
+ # process each tuple inserting our special marks that won't be
1441
+ # noticed by an xml/html escaper.
1442
+ for key,(begin,end) in reversed(sub_info):
1443
+ text = text[0:begin]+'\0'+key+text[begin:end]+'\1'+text[end:]
1444
+ text = text[2:]
1445
+ # Handle case of add/delete entire line
1446
+ else:
1447
+ text = lines.pop(0)[2:]
1448
+ # if line of text is just a newline, insert a space so there is
1449
+ # something for the user to highlight and see.
1450
+ if not text:
1451
+ text = ' '
1452
+ # insert marks that won't be noticed by an xml/html escaper.
1453
+ text = '\0' + format_key + text + '\1'
1454
+ # Return line of text, first allow user's line formatter to do its
1455
+ # thing (such as adding the line number) then replace the special
1456
+ # marks with what the user's change markup.
1457
+ return (num_lines[side],text)
1458
+
1459
+ def _line_iterator():
1460
+ """Yields from/to lines of text with a change indication.
1461
+
1462
+ This function is an iterator. It itself pulls lines from a
1463
+ differencing iterator, processes them and yields them. When it can
1464
+ it yields both a "from" and a "to" line, otherwise it will yield one
1465
+ or the other. In addition to yielding the lines of from/to text, a
1466
+ boolean flag is yielded to indicate if the text line(s) have
1467
+ differences in them.
1468
+
1469
+ Note, this function is purposefully not defined at the module scope so
1470
+ that data it needs from its parent function (within whose context it
1471
+ is defined) does not need to be of module scope.
1472
+ """
1473
+ lines = []
1474
+ num_blanks_pending, num_blanks_to_yield = 0, 0
1475
+ while True:
1476
+ # Load up next 4 lines so we can look ahead, create strings which
1477
+ # are a concatenation of the first character of each of the 4 lines
1478
+ # so we can do some very readable comparisons.
1479
+ while len(lines) < 4:
1480
+ lines.append(next(diff_lines_iterator, 'X'))
1481
+ s = ''.join([line[0] for line in lines])
1482
+ if s.startswith('X'):
1483
+ # When no more lines, pump out any remaining blank lines so the
1484
+ # corresponding add/delete lines get a matching blank line so
1485
+ # all line pairs get yielded at the next level.
1486
+ num_blanks_to_yield = num_blanks_pending
1487
+ elif s.startswith('-?+?'):
1488
+ # simple intraline change
1489
+ yield _make_line(lines,'?',0), _make_line(lines,'?',1), True
1490
+ continue
1491
+ elif s.startswith('--++'):
1492
+ # in delete block, add block coming: we do NOT want to get
1493
+ # caught up on blank lines yet, just process the delete line
1494
+ num_blanks_pending -= 1
1495
+ yield _make_line(lines,'-',0), None, True
1496
+ continue
1497
+ elif s.startswith(('--?+', '--+', '- ')):
1498
+ # in delete block and see an intraline change or unchanged line
1499
+ # coming: yield the delete line and then blanks
1500
+ from_line,to_line = _make_line(lines,'-',0), None
1501
+ num_blanks_to_yield,num_blanks_pending = num_blanks_pending-1,0
1502
+ elif s.startswith('-+?'):
1503
+ # intraline change
1504
+ yield _make_line(lines,None,0), _make_line(lines,'?',1), True
1505
+ continue
1506
+ elif s.startswith('-?+'):
1507
+ # intraline change
1508
+ yield _make_line(lines,'?',0), _make_line(lines,None,1), True
1509
+ continue
1510
+ elif s.startswith('-'):
1511
+ # delete FROM line
1512
+ num_blanks_pending -= 1
1513
+ yield _make_line(lines,'-',0), None, True
1514
+ continue
1515
+ elif s.startswith('+--'):
1516
+ # in add block, delete block coming: we do NOT want to get
1517
+ # caught up on blank lines yet, just process the add line
1518
+ num_blanks_pending += 1
1519
+ yield None, _make_line(lines,'+',1), True
1520
+ continue
1521
+ elif s.startswith(('+ ', '+-')):
1522
+ # will be leaving an add block: yield blanks then add line
1523
+ from_line, to_line = None, _make_line(lines,'+',1)
1524
+ num_blanks_to_yield,num_blanks_pending = num_blanks_pending+1,0
1525
+ elif s.startswith('+'):
1526
+ # inside an add block, yield the add line
1527
+ num_blanks_pending += 1
1528
+ yield None, _make_line(lines,'+',1), True
1529
+ continue
1530
+ elif s.startswith(' '):
1531
+ # unchanged text, yield it to both sides
1532
+ yield _make_line(lines[:],None,0),_make_line(lines,None,1),False
1533
+ continue
1534
+ # Catch up on the blank lines so when we yield the next from/to
1535
+ # pair, they are lined up.
1536
+ while(num_blanks_to_yield < 0):
1537
+ num_blanks_to_yield += 1
1538
+ yield None,('','\n'),True
1539
+ while(num_blanks_to_yield > 0):
1540
+ num_blanks_to_yield -= 1
1541
+ yield ('','\n'),None,True
1542
+ if s.startswith('X'):
1543
+ return
1544
+ else:
1545
+ yield from_line,to_line,True
1546
+
1547
+ def _line_pair_iterator():
1548
+ """Yields from/to lines of text with a change indication.
1549
+
1550
+ This function is an iterator. It itself pulls lines from the line
1551
+ iterator. Its difference from that iterator is that this function
1552
+ always yields a pair of from/to text lines (with the change
1553
+ indication). If necessary it will collect single from/to lines
1554
+ until it has a matching pair from/to pair to yield.
1555
+
1556
+ Note, this function is purposefully not defined at the module scope so
1557
+ that data it needs from its parent function (within whose context it
1558
+ is defined) does not need to be of module scope.
1559
+ """
1560
+ line_iterator = _line_iterator()
1561
+ fromlines,tolines=[],[]
1562
+ while True:
1563
+ # Collecting lines of text until we have a from/to pair
1564
+ while (len(fromlines)==0 or len(tolines)==0):
1565
+ try:
1566
+ from_line, to_line, found_diff = next(line_iterator)
1567
+ except StopIteration:
1568
+ return
1569
+ if from_line is not None:
1570
+ fromlines.append((from_line,found_diff))
1571
+ if to_line is not None:
1572
+ tolines.append((to_line,found_diff))
1573
+ # Once we have a pair, remove them from the collection and yield it
1574
+ from_line, fromDiff = fromlines.pop(0)
1575
+ to_line, to_diff = tolines.pop(0)
1576
+ yield (from_line,to_line,fromDiff or to_diff)
1577
+
1578
+ # Handle case where user does not want context differencing, just yield
1579
+ # them up without doing anything else with them.
1580
+ line_pair_iterator = _line_pair_iterator()
1581
+ if context is None:
1582
+ yield from line_pair_iterator
1583
+ # Handle case where user wants context differencing. We must do some
1584
+ # storage of lines until we know for sure that they are to be yielded.
1585
+ else:
1586
+ context += 1
1587
+ lines_to_write = 0
1588
+ while True:
1589
+ # Store lines up until we find a difference, note use of a
1590
+ # circular queue because we only need to keep around what
1591
+ # we need for context.
1592
+ index, contextLines = 0, [None]*(context)
1593
+ found_diff = False
1594
+ while(found_diff is False):
1595
+ try:
1596
+ from_line, to_line, found_diff = next(line_pair_iterator)
1597
+ except StopIteration:
1598
+ return
1599
+ i = index % context
1600
+ contextLines[i] = (from_line, to_line, found_diff)
1601
+ index += 1
1602
+ # Yield lines that we have collected so far, but first yield
1603
+ # the user's separator.
1604
+ if index > context:
1605
+ yield None, None, None
1606
+ lines_to_write = context
1607
+ else:
1608
+ lines_to_write = index
1609
+ index = 0
1610
+ while(lines_to_write):
1611
+ i = index % context
1612
+ index += 1
1613
+ yield contextLines[i]
1614
+ lines_to_write -= 1
1615
+ # Now yield the context lines after the change
1616
+ lines_to_write = context-1
1617
+ try:
1618
+ while(lines_to_write):
1619
+ from_line, to_line, found_diff = next(line_pair_iterator)
1620
+ # If another change within the context, extend the context
1621
+ if found_diff:
1622
+ lines_to_write = context-1
1623
+ else:
1624
+ lines_to_write -= 1
1625
+ yield from_line, to_line, found_diff
1626
+ except StopIteration:
1627
+ # Catch exception from next() and return normally
1628
+ return
1629
+
1630
+
1631
+ _file_template = """
1632
+ <!DOCTYPE html>
1633
+ <html lang="en">
1634
+ <head>
1635
+ <meta charset="%(charset)s">
1636
+ <meta name="viewport" content="width=device-width, initial-scale=1">
1637
+ <title>Diff comparison</title>
1638
+ <style>%(styles)s
1639
+ </style>
1640
+ </head>
1641
+
1642
+ <body>
1643
+ %(table)s%(legend)s
1644
+ </body>
1645
+
1646
+ </html>"""
1647
+
1648
+ _styles = """
1649
+ :root {color-scheme: light dark}
1650
+ table.diff {
1651
+ font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
1652
+ border: medium;
1653
+ }
1654
+ .diff_header {
1655
+ background-color: #e0e0e0;
1656
+ font-weight: bold;
1657
+ }
1658
+ td.diff_header {
1659
+ text-align: right;
1660
+ padding: 0 8px;
1661
+ }
1662
+ .diff_next {
1663
+ background-color: #c0c0c0;
1664
+ padding: 4px 0;
1665
+ }
1666
+ .diff_add {background-color:palegreen}
1667
+ .diff_chg {background-color:#ffff77}
1668
+ .diff_sub {background-color:#ffaaaa}
1669
+ table.diff[summary="Legends"] {
1670
+ margin-top: 20px;
1671
+ border: 1px solid #ccc;
1672
+ }
1673
+ table.diff[summary="Legends"] th {
1674
+ background-color: #e0e0e0;
1675
+ padding: 4px 8px;
1676
+ }
1677
+ table.diff[summary="Legends"] td {
1678
+ padding: 4px 8px;
1679
+ }
1680
+
1681
+ @media (prefers-color-scheme: dark) {
1682
+ .diff_header {background-color:#666}
1683
+ .diff_next {background-color:#393939}
1684
+ .diff_add {background-color:darkgreen}
1685
+ .diff_chg {background-color:#847415}
1686
+ .diff_sub {background-color:darkred}
1687
+ table.diff[summary="Legends"] {border-color:#555}
1688
+ table.diff[summary="Legends"] th{background-color:#666}
1689
+ }"""
1690
+
1691
+ _table_template = """
1692
+ <table class="diff" id="difflib_chg_%(prefix)s_top"
1693
+ cellspacing="0" cellpadding="0" rules="groups" >
1694
+ <colgroup></colgroup> <colgroup></colgroup> <colgroup></colgroup>
1695
+ <colgroup></colgroup> <colgroup></colgroup> <colgroup></colgroup>
1696
+ %(header_row)s
1697
+ <tbody>
1698
+ %(data_rows)s </tbody>
1699
+ </table>"""
1700
+
1701
+ _legend = """
1702
+ <table class="diff" summary="Legends">
1703
+ <tr> <th colspan="2"> Legends </th> </tr>
1704
+ <tr> <td> <table border="" summary="Colors">
1705
+ <tr><th> Colors </th> </tr>
1706
+ <tr><td class="diff_add">&nbsp;Added&nbsp;</td></tr>
1707
+ <tr><td class="diff_chg">Changed</td> </tr>
1708
+ <tr><td class="diff_sub">Deleted</td> </tr>
1709
+ </table></td>
1710
+ <td> <table border="" summary="Links">
1711
+ <tr><th colspan="2"> Links </th> </tr>
1712
+ <tr><td>(f)irst change</td> </tr>
1713
+ <tr><td>(n)ext change</td> </tr>
1714
+ <tr><td>(t)op</td> </tr>
1715
+ </table></td> </tr>
1716
+ </table>"""
1717
+
1718
+ class HtmlDiff(object):
1719
+ """For producing HTML side by side comparison with change highlights.
1720
+
1721
+ This class can be used to create an HTML table (or a complete HTML file
1722
+ containing the table) showing a side by side, line by line comparison
1723
+ of text with inter-line and intra-line change highlights. The table can
1724
+ be generated in either full or contextual difference mode.
1725
+
1726
+ The following methods are provided for HTML generation:
1727
+
1728
+ make_table -- generates HTML for a single side by side table
1729
+ make_file -- generates complete HTML file with a single side by side table
1730
+
1731
+ See Doc/includes/diff.py for an example usage of this class.
1732
+ """
1733
+
1734
+ _file_template = _file_template
1735
+ _styles = _styles
1736
+ _table_template = _table_template
1737
+ _legend = _legend
1738
+ _default_prefix = 0
1739
+
1740
+ def __init__(self,tabsize=8,wrapcolumn=None,linejunk=None,
1741
+ charjunk=IS_CHARACTER_JUNK):
1742
+ """HtmlDiff instance initializer
1743
+
1744
+ Arguments:
1745
+ tabsize -- tab stop spacing, defaults to 8.
1746
+ wrapcolumn -- column number where lines are broken and wrapped,
1747
+ defaults to None where lines are not wrapped.
1748
+ linejunk,charjunk -- keyword arguments passed into ndiff() (used by
1749
+ HtmlDiff() to generate the side by side HTML differences). See
1750
+ ndiff() documentation for argument default values and descriptions.
1751
+ """
1752
+ self._tabsize = tabsize
1753
+ self._wrapcolumn = wrapcolumn
1754
+ self._linejunk = linejunk
1755
+ self._charjunk = charjunk
1756
+
1757
+ def make_file(self, fromlines, tolines, fromdesc='', todesc='',
1758
+ context=False, numlines=5, *, charset='utf-8'):
1759
+ """Returns HTML file of side by side comparison with change highlights
1760
+
1761
+ Arguments:
1762
+ fromlines -- list of "from" lines
1763
+ tolines -- list of "to" lines
1764
+ fromdesc -- "from" file column header string
1765
+ todesc -- "to" file column header string
1766
+ context -- set to True for contextual differences (defaults to False
1767
+ which shows full differences).
1768
+ numlines -- number of context lines. When context is set True,
1769
+ controls number of lines displayed before and after the change.
1770
+ When context is False, controls the number of lines to place
1771
+ the "next" link anchors before the next change (so click of
1772
+ "next" link jumps to just before the change).
1773
+ charset -- charset of the HTML document
1774
+ """
1775
+
1776
+ return (self._file_template % dict(
1777
+ styles=self._styles,
1778
+ legend=self._legend,
1779
+ table=self.make_table(fromlines, tolines, fromdesc, todesc,
1780
+ context=context, numlines=numlines),
1781
+ charset=charset
1782
+ )).encode(charset, 'xmlcharrefreplace').decode(charset)
1783
+
1784
+ def _tab_newline_replace(self,fromlines,tolines):
1785
+ """Returns from/to line lists with tabs expanded and newlines removed.
1786
+
1787
+ Instead of tab characters being replaced by the number of spaces
1788
+ needed to fill in to the next tab stop, this function will fill
1789
+ the space with tab characters. This is done so that the difference
1790
+ algorithms can identify changes in a file when tabs are replaced by
1791
+ spaces and vice versa. At the end of the HTML generation, the tab
1792
+ characters will be replaced with a nonbreakable space.
1793
+ """
1794
+ def expand_tabs(line):
1795
+ # hide real spaces
1796
+ line = line.replace(' ','\0')
1797
+ # expand tabs into spaces
1798
+ line = line.expandtabs(self._tabsize)
1799
+ # replace spaces from expanded tabs back into tab characters
1800
+ # (we'll replace them with markup after we do differencing)
1801
+ line = line.replace(' ','\t')
1802
+ return line.replace('\0',' ').rstrip('\n')
1803
+ fromlines = [expand_tabs(line) for line in fromlines]
1804
+ tolines = [expand_tabs(line) for line in tolines]
1805
+ return fromlines,tolines
1806
+
1807
+ def _split_line(self,data_list,line_num,text):
1808
+ """Builds list of text lines by splitting text lines at wrap point
1809
+
1810
+ This function will determine if the input text line needs to be
1811
+ wrapped (split) into separate lines. If so, the first wrap point
1812
+ will be determined and the first line appended to the output
1813
+ text line list. This function is used recursively to handle
1814
+ the second part of the split line to further split it.
1815
+ """
1816
+ # if blank line or context separator, just add it to the output list
1817
+ if not line_num:
1818
+ data_list.append((line_num,text))
1819
+ return
1820
+
1821
+ # if line text doesn't need wrapping, just add it to the output list
1822
+ size = len(text)
1823
+ max = self._wrapcolumn
1824
+ if (size <= max) or ((size -(text.count('\0')*3)) <= max):
1825
+ data_list.append((line_num,text))
1826
+ return
1827
+
1828
+ # scan text looking for the wrap point, keeping track if the wrap
1829
+ # point is inside markers
1830
+ i = 0
1831
+ n = 0
1832
+ mark = ''
1833
+ while n < max and i < size:
1834
+ if text[i] == '\0':
1835
+ i += 1
1836
+ mark = text[i]
1837
+ i += 1
1838
+ elif text[i] == '\1':
1839
+ i += 1
1840
+ mark = ''
1841
+ else:
1842
+ i += 1
1843
+ n += 1
1844
+
1845
+ # wrap point is inside text, break it up into separate lines
1846
+ line1 = text[:i]
1847
+ line2 = text[i:]
1848
+
1849
+ # if wrap point is inside markers, place end marker at end of first
1850
+ # line and start marker at beginning of second line because each
1851
+ # line will have its own table tag markup around it.
1852
+ if mark:
1853
+ line1 = line1 + '\1'
1854
+ line2 = '\0' + mark + line2
1855
+
1856
+ # tack on first line onto the output list
1857
+ data_list.append((line_num,line1))
1858
+
1859
+ # use this routine again to wrap the remaining text
1860
+ self._split_line(data_list,'>',line2)
1861
+
1862
+ def _line_wrapper(self,diffs):
1863
+ """Returns iterator that splits (wraps) mdiff text lines"""
1864
+
1865
+ # pull from/to data and flags from mdiff iterator
1866
+ for fromdata,todata,flag in diffs:
1867
+ # check for context separators and pass them through
1868
+ if flag is None:
1869
+ yield fromdata,todata,flag
1870
+ continue
1871
+ (fromline,fromtext),(toline,totext) = fromdata,todata
1872
+ # for each from/to line split it at the wrap column to form
1873
+ # list of text lines.
1874
+ fromlist,tolist = [],[]
1875
+ self._split_line(fromlist,fromline,fromtext)
1876
+ self._split_line(tolist,toline,totext)
1877
+ # yield from/to line in pairs inserting blank lines as
1878
+ # necessary when one side has more wrapped lines
1879
+ while fromlist or tolist:
1880
+ if fromlist:
1881
+ fromdata = fromlist.pop(0)
1882
+ else:
1883
+ fromdata = ('',' ')
1884
+ if tolist:
1885
+ todata = tolist.pop(0)
1886
+ else:
1887
+ todata = ('',' ')
1888
+ yield fromdata,todata,flag
1889
+
1890
+ def _collect_lines(self,diffs):
1891
+ """Collects mdiff output into separate lists
1892
+
1893
+ Before storing the mdiff from/to data into a list, it is converted
1894
+ into a single line of text with HTML markup.
1895
+ """
1896
+
1897
+ fromlist,tolist,flaglist = [],[],[]
1898
+ # pull from/to data and flags from mdiff style iterator
1899
+ for fromdata,todata,flag in diffs:
1900
+ try:
1901
+ # store HTML markup of the lines into the lists
1902
+ fromlist.append(self._format_line(0,flag,*fromdata))
1903
+ tolist.append(self._format_line(1,flag,*todata))
1904
+ except TypeError:
1905
+ # exceptions occur for lines where context separators go
1906
+ fromlist.append(None)
1907
+ tolist.append(None)
1908
+ flaglist.append(flag)
1909
+ return fromlist,tolist,flaglist
1910
+
1911
+ def _format_line(self,side,flag,linenum,text):
1912
+ """Returns HTML markup of "from" / "to" text lines
1913
+
1914
+ side -- 0 or 1 indicating "from" or "to" text
1915
+ flag -- indicates if difference on line
1916
+ linenum -- line number (used for line number column)
1917
+ text -- line text to be marked up
1918
+ """
1919
+ try:
1920
+ linenum = '%d' % linenum
1921
+ id = ' id="%s%s"' % (self._prefix[side],linenum)
1922
+ except TypeError:
1923
+ # handle blank lines where linenum is '>' or ''
1924
+ id = ''
1925
+ # replace those things that would get confused with HTML symbols
1926
+ text=text.replace("&","&amp;").replace(">","&gt;").replace("<","&lt;")
1927
+
1928
+ # make space non-breakable so they don't get compressed or line wrapped
1929
+ text = text.replace(' ','&nbsp;').rstrip()
1930
+
1931
+ # add a class to the td tag if there is a difference on the line
1932
+ css_class = ' class="diff_changed" ' if flag else ' '
1933
+
1934
+ return f'<td class="diff_header"{id}>{linenum}</td>' \
1935
+ + f'<td{css_class}nowrap="nowrap">{text}</td>'
1936
+
1937
+ def _make_prefix(self):
1938
+ """Create unique anchor prefixes"""
1939
+
1940
+ # Generate a unique anchor prefix so multiple tables
1941
+ # can exist on the same HTML page without conflicts.
1942
+ fromprefix = "from%d_" % HtmlDiff._default_prefix
1943
+ toprefix = "to%d_" % HtmlDiff._default_prefix
1944
+ HtmlDiff._default_prefix += 1
1945
+ # store prefixes so line format method has access
1946
+ self._prefix = [fromprefix,toprefix]
1947
+
1948
+ def _convert_flags(self,fromlist,tolist,flaglist,context,numlines):
1949
+ """Makes list of "next" links"""
1950
+
1951
+ # all anchor names will be generated using the unique "to" prefix
1952
+ toprefix = self._prefix[1]
1953
+
1954
+ # process change flags, generating middle column of next anchors/links
1955
+ next_id = ['']*len(flaglist)
1956
+ next_href = ['']*len(flaglist)
1957
+ num_chg, in_change = 0, False
1958
+ last = 0
1959
+ for i,flag in enumerate(flaglist):
1960
+ if flag:
1961
+ if not in_change:
1962
+ in_change = True
1963
+ last = i
1964
+ # at the beginning of a change, drop an anchor a few lines
1965
+ # (the context lines) before the change for the previous
1966
+ # link
1967
+ i = max([0,i-numlines])
1968
+ next_id[i] = ' id="difflib_chg_%s_%d"' % (toprefix,num_chg)
1969
+ # at the beginning of a change, drop a link to the next
1970
+ # change
1971
+ num_chg += 1
1972
+ next_href[last] = '<a href="#difflib_chg_%s_%d">n</a>' % (
1973
+ toprefix,num_chg)
1974
+ else:
1975
+ in_change = False
1976
+ # check for cases where there is no content to avoid exceptions
1977
+ if not flaglist:
1978
+ flaglist = [False]
1979
+ next_id = ['']
1980
+ next_href = ['']
1981
+ last = 0
1982
+ if context:
1983
+ fromlist = ['<td></td><td>&nbsp;No Differences Found&nbsp;</td>']
1984
+ tolist = fromlist
1985
+ else:
1986
+ fromlist = tolist = ['<td></td><td>&nbsp;Empty File&nbsp;</td>']
1987
+ # if not a change on first line, drop a link
1988
+ if not flaglist[0]:
1989
+ next_href[0] = '<a href="#difflib_chg_%s_0">f</a>' % toprefix
1990
+ # redo the last link to link to the top
1991
+ next_href[last] = '<a href="#difflib_chg_%s_top">t</a>' % (toprefix)
1992
+
1993
+ return fromlist,tolist,flaglist,next_href,next_id
1994
+
1995
+ def make_table(self,fromlines,tolines,fromdesc='',todesc='',context=False,
1996
+ numlines=5):
1997
+ """Returns HTML table of side by side comparison with change highlights
1998
+
1999
+ Arguments:
2000
+ fromlines -- list of "from" lines
2001
+ tolines -- list of "to" lines
2002
+ fromdesc -- "from" file column header string
2003
+ todesc -- "to" file column header string
2004
+ context -- set to True for contextual differences (defaults to False
2005
+ which shows full differences).
2006
+ numlines -- number of context lines. When context is set True,
2007
+ controls number of lines displayed before and after the change.
2008
+ When context is False, controls the number of lines to place
2009
+ the "next" link anchors before the next change (so click of
2010
+ "next" link jumps to just before the change).
2011
+ """
2012
+
2013
+ # make unique anchor prefixes so that multiple tables may exist
2014
+ # on the same page without conflict.
2015
+ self._make_prefix()
2016
+
2017
+ # change tabs to spaces before it gets more difficult after we insert
2018
+ # markup
2019
+ # it also removes trailing newlines, causing some diffs to be missed
2020
+ # see: gh-71896
2021
+ fromlines,tolines = self._tab_newline_replace(fromlines,tolines)
2022
+
2023
+ # create diffs iterator which generates side by side from/to data
2024
+ if context:
2025
+ context_lines = numlines
2026
+ else:
2027
+ context_lines = None
2028
+ diffs = _mdiff(fromlines,tolines,context_lines,linejunk=self._linejunk,
2029
+ charjunk=self._charjunk)
2030
+
2031
+ # set up iterator to wrap lines that exceed desired width
2032
+ if self._wrapcolumn:
2033
+ diffs = self._line_wrapper(diffs)
2034
+
2035
+ # collect up from/to lines and flags into lists (also format the lines)
2036
+ fromlist,tolist,flaglist = self._collect_lines(diffs)
2037
+
2038
+ # process change flags, generating middle column of next anchors/links
2039
+ fromlist,tolist,flaglist,next_href,next_id = self._convert_flags(
2040
+ fromlist,tolist,flaglist,context,numlines)
2041
+
2042
+ s = []
2043
+ fmt = ' <tr><td class="diff_next"%s>%s</td>%s' + \
2044
+ '<td class="diff_next">%s</td>%s</tr>\n'
2045
+ for i in range(len(flaglist)):
2046
+ if flaglist[i] is None:
2047
+ # mdiff yields None on separator lines skip the bogus ones
2048
+ # generated for the first line
2049
+ if i > 0:
2050
+ s.append(' </tbody> \n <tbody>\n')
2051
+ else:
2052
+ s.append( fmt % (next_id[i],next_href[i],fromlist[i],
2053
+ next_href[i],tolist[i]))
2054
+ if fromdesc or todesc:
2055
+ header_row = '<thead><tr>%s%s%s%s</tr></thead>' % (
2056
+ '<th class="diff_next"><br /></th>',
2057
+ '<th colspan="2" class="diff_header">%s</th>' % fromdesc,
2058
+ '<th class="diff_next"><br /></th>',
2059
+ '<th colspan="2" class="diff_header">%s</th>' % todesc)
2060
+ else:
2061
+ header_row = ''
2062
+
2063
+ table = self._table_template % dict(
2064
+ data_rows=''.join(s),
2065
+ header_row=header_row,
2066
+ prefix=self._prefix[1])
2067
+
2068
+ return table.replace('\0+','<span class="diff_add">'). \
2069
+ replace('\0-','<span class="diff_sub">'). \
2070
+ replace('\0^','<span class="diff_chg">'). \
2071
+ replace('\1','</span>'). \
2072
+ replace('\t','&nbsp;')
2073
+
2074
+
2075
+ def restore(delta, which):
2076
+ r"""
2077
+ Generate one of the two sequences that generated a delta.
2078
+
2079
+ Given a `delta` produced by `Differ.compare()` or `ndiff()`, extract
2080
+ lines originating from file 1 or 2 (parameter `which`), stripping off line
2081
+ prefixes.
2082
+
2083
+ Examples:
2084
+
2085
+ >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True),
2086
+ ... 'ore\ntree\nemu\n'.splitlines(keepends=True))
2087
+ >>> diff = list(diff)
2088
+ >>> print(''.join(restore(diff, 1)), end="")
2089
+ one
2090
+ two
2091
+ three
2092
+ >>> print(''.join(restore(diff, 2)), end="")
2093
+ ore
2094
+ tree
2095
+ emu
2096
+ """
2097
+ try:
2098
+ tag = {1: "- ", 2: "+ "}[int(which)]
2099
+ except KeyError:
2100
+ raise ValueError('unknown delta choice (must be 1 or 2): %r'
2101
+ % which) from None
2102
+ prefixes = (" ", tag)
2103
+ for line in delta:
2104
+ if line[:2] in prefixes:
2105
+ yield line[2:]