@djlint/linux-arm64-musl 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 (1753) 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_aarch64-linux-musl.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_aarch64-linux-musl.json +1196 -0
  243. package/python/lib/python3.15/_sysconfigdata__linux_aarch64-linux-musl.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-aarch64-linux-musl.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.cpython-315-aarch64-linux-musl.so +0 -0
  1116. package/python/lib/python3.15/site-packages/djlint/_cli.py +1006 -0
  1117. package/python/lib/python3.15/site-packages/djlint/api.cpython-315-aarch64-linux-musl.so +0 -0
  1118. package/python/lib/python3.15/site-packages/djlint/api.py +106 -0
  1119. package/python/lib/python3.15/site-packages/djlint/const.cpython-315-aarch64-linux-musl.so +0 -0
  1120. package/python/lib/python3.15/site-packages/djlint/const.py +506 -0
  1121. package/python/lib/python3.15/site-packages/djlint/formatter/__init__.cpython-315-aarch64-linux-musl.so +0 -0
  1122. package/python/lib/python3.15/site-packages/djlint/formatter/__init__.py +0 -0
  1123. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/__init__.cpython-315.pyc +0 -0
  1124. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attribute_values.cpython-315.pyc +0 -0
  1125. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/attributes.cpython-315.pyc +0 -0
  1126. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/beautifier.cpython-315.pyc +0 -0
  1127. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/class_attributes.cpython-315.pyc +0 -0
  1128. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/compress.cpython-315.pyc +0 -0
  1129. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/condense.cpython-315.pyc +0 -0
  1130. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/css.cpython-315.pyc +0 -0
  1131. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/endblocks.cpython-315.pyc +0 -0
  1132. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/entities.cpython-315.pyc +0 -0
  1133. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/expand.cpython-315.pyc +0 -0
  1134. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/indent.cpython-315.pyc +0 -0
  1135. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/js.cpython-315.pyc +0 -0
  1136. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/load_tags.cpython-315.pyc +0 -0
  1137. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/mako.cpython-315.pyc +0 -0
  1138. package/python/lib/python3.15/site-packages/djlint/formatter/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1139. package/python/lib/python3.15/site-packages/djlint/formatter/attribute_values.cpython-315-aarch64-linux-musl.so +0 -0
  1140. package/python/lib/python3.15/site-packages/djlint/formatter/attribute_values.py +152 -0
  1141. package/python/lib/python3.15/site-packages/djlint/formatter/attributes.cpython-315-aarch64-linux-musl.so +0 -0
  1142. package/python/lib/python3.15/site-packages/djlint/formatter/attributes.py +580 -0
  1143. package/python/lib/python3.15/site-packages/djlint/formatter/beautifier.cpython-315-aarch64-linux-musl.so +0 -0
  1144. package/python/lib/python3.15/site-packages/djlint/formatter/beautifier.py +144 -0
  1145. package/python/lib/python3.15/site-packages/djlint/formatter/class_attributes.cpython-315-aarch64-linux-musl.so +0 -0
  1146. package/python/lib/python3.15/site-packages/djlint/formatter/class_attributes.py +318 -0
  1147. package/python/lib/python3.15/site-packages/djlint/formatter/compress.cpython-315-aarch64-linux-musl.so +0 -0
  1148. package/python/lib/python3.15/site-packages/djlint/formatter/compress.py +158 -0
  1149. package/python/lib/python3.15/site-packages/djlint/formatter/condense.cpython-315-aarch64-linux-musl.so +0 -0
  1150. package/python/lib/python3.15/site-packages/djlint/formatter/condense.py +503 -0
  1151. package/python/lib/python3.15/site-packages/djlint/formatter/css.cpython-315-aarch64-linux-musl.so +0 -0
  1152. package/python/lib/python3.15/site-packages/djlint/formatter/css.py +28 -0
  1153. package/python/lib/python3.15/site-packages/djlint/formatter/endblocks.cpython-315-aarch64-linux-musl.so +0 -0
  1154. package/python/lib/python3.15/site-packages/djlint/formatter/endblocks.py +68 -0
  1155. package/python/lib/python3.15/site-packages/djlint/formatter/entities.cpython-315-aarch64-linux-musl.so +0 -0
  1156. package/python/lib/python3.15/site-packages/djlint/formatter/entities.py +39 -0
  1157. package/python/lib/python3.15/site-packages/djlint/formatter/expand.cpython-315-aarch64-linux-musl.so +0 -0
  1158. package/python/lib/python3.15/site-packages/djlint/formatter/expand.py +576 -0
  1159. package/python/lib/python3.15/site-packages/djlint/formatter/indent.cpython-315-aarch64-linux-musl.so +0 -0
  1160. package/python/lib/python3.15/site-packages/djlint/formatter/indent.py +1239 -0
  1161. package/python/lib/python3.15/site-packages/djlint/formatter/js.cpython-315-aarch64-linux-musl.so +0 -0
  1162. package/python/lib/python3.15/site-packages/djlint/formatter/js.py +82 -0
  1163. package/python/lib/python3.15/site-packages/djlint/formatter/load_tags.cpython-315-aarch64-linux-musl.so +0 -0
  1164. package/python/lib/python3.15/site-packages/djlint/formatter/load_tags.py +60 -0
  1165. package/python/lib/python3.15/site-packages/djlint/formatter/mako.cpython-315-aarch64-linux-musl.so +0 -0
  1166. package/python/lib/python3.15/site-packages/djlint/formatter/mako.py +501 -0
  1167. package/python/lib/python3.15/site-packages/djlint/formatter/tokenizer.cpython-315-aarch64-linux-musl.so +0 -0
  1168. package/python/lib/python3.15/site-packages/djlint/formatter/tokenizer.py +359 -0
  1169. package/python/lib/python3.15/site-packages/djlint/github_output.cpython-315-aarch64-linux-musl.so +0 -0
  1170. package/python/lib/python3.15/site-packages/djlint/github_output.py +117 -0
  1171. package/python/lib/python3.15/site-packages/djlint/helpers.cpython-315-aarch64-linux-musl.so +0 -0
  1172. package/python/lib/python3.15/site-packages/djlint/helpers.py +979 -0
  1173. package/python/lib/python3.15/site-packages/djlint/lint.cpython-315-aarch64-linux-musl.so +0 -0
  1174. package/python/lib/python3.15/site-packages/djlint/lint.py +246 -0
  1175. package/python/lib/python3.15/site-packages/djlint/output.cpython-315-aarch64-linux-musl.so +0 -0
  1176. package/python/lib/python3.15/site-packages/djlint/output.py +250 -0
  1177. package/python/lib/python3.15/site-packages/djlint/py.typed +0 -0
  1178. package/python/lib/python3.15/site-packages/djlint/reformat.cpython-315-aarch64-linux-musl.so +0 -0
  1179. package/python/lib/python3.15/site-packages/djlint/reformat.py +130 -0
  1180. package/python/lib/python3.15/site-packages/djlint/rules/D058.cpython-315-aarch64-linux-musl.so +0 -0
  1181. package/python/lib/python3.15/site-packages/djlint/rules/D058.py +78 -0
  1182. package/python/lib/python3.15/site-packages/djlint/rules/D059.cpython-315-aarch64-linux-musl.so +0 -0
  1183. package/python/lib/python3.15/site-packages/djlint/rules/D059.py +139 -0
  1184. package/python/lib/python3.15/site-packages/djlint/rules/H009.cpython-315-aarch64-linux-musl.so +0 -0
  1185. package/python/lib/python3.15/site-packages/djlint/rules/H009.py +54 -0
  1186. package/python/lib/python3.15/site-packages/djlint/rules/H012.cpython-315-aarch64-linux-musl.so +0 -0
  1187. package/python/lib/python3.15/site-packages/djlint/rules/H012.py +240 -0
  1188. package/python/lib/python3.15/site-packages/djlint/rules/H014.cpython-315-aarch64-linux-musl.so +0 -0
  1189. package/python/lib/python3.15/site-packages/djlint/rules/H014.py +68 -0
  1190. package/python/lib/python3.15/site-packages/djlint/rules/H016.cpython-315-aarch64-linux-musl.so +0 -0
  1191. package/python/lib/python3.15/site-packages/djlint/rules/H016.py +83 -0
  1192. package/python/lib/python3.15/site-packages/djlint/rules/H022.cpython-315-aarch64-linux-musl.so +0 -0
  1193. package/python/lib/python3.15/site-packages/djlint/rules/H022.py +161 -0
  1194. package/python/lib/python3.15/site-packages/djlint/rules/H025.cpython-315-aarch64-linux-musl.so +0 -0
  1195. package/python/lib/python3.15/site-packages/djlint/rules/H025.py +141 -0
  1196. package/python/lib/python3.15/site-packages/djlint/rules/H036.cpython-315-aarch64-linux-musl.so +0 -0
  1197. package/python/lib/python3.15/site-packages/djlint/rules/H036.py +183 -0
  1198. package/python/lib/python3.15/site-packages/djlint/rules/H037.cpython-315-aarch64-linux-musl.so +0 -0
  1199. package/python/lib/python3.15/site-packages/djlint/rules/H037.py +138 -0
  1200. package/python/lib/python3.15/site-packages/djlint/rules/H041.cpython-315-aarch64-linux-musl.so +0 -0
  1201. package/python/lib/python3.15/site-packages/djlint/rules/H041.py +113 -0
  1202. package/python/lib/python3.15/site-packages/djlint/rules/H042.cpython-315-aarch64-linux-musl.so +0 -0
  1203. package/python/lib/python3.15/site-packages/djlint/rules/H042.py +199 -0
  1204. package/python/lib/python3.15/site-packages/djlint/rules/H044.cpython-315-aarch64-linux-musl.so +0 -0
  1205. package/python/lib/python3.15/site-packages/djlint/rules/H044.py +119 -0
  1206. package/python/lib/python3.15/site-packages/djlint/rules/H047.cpython-315-aarch64-linux-musl.so +0 -0
  1207. package/python/lib/python3.15/site-packages/djlint/rules/H047.py +118 -0
  1208. package/python/lib/python3.15/site-packages/djlint/rules/H048.cpython-315-aarch64-linux-musl.so +0 -0
  1209. package/python/lib/python3.15/site-packages/djlint/rules/H048.py +82 -0
  1210. package/python/lib/python3.15/site-packages/djlint/rules/H051.cpython-315-aarch64-linux-musl.so +0 -0
  1211. package/python/lib/python3.15/site-packages/djlint/rules/H051.py +98 -0
  1212. package/python/lib/python3.15/site-packages/djlint/rules/H053.cpython-315-aarch64-linux-musl.so +0 -0
  1213. package/python/lib/python3.15/site-packages/djlint/rules/H053.py +361 -0
  1214. package/python/lib/python3.15/site-packages/djlint/rules/H054.cpython-315-aarch64-linux-musl.so +0 -0
  1215. package/python/lib/python3.15/site-packages/djlint/rules/H054.py +264 -0
  1216. package/python/lib/python3.15/site-packages/djlint/rules/H057.cpython-315-aarch64-linux-musl.so +0 -0
  1217. package/python/lib/python3.15/site-packages/djlint/rules/H057.py +235 -0
  1218. package/python/lib/python3.15/site-packages/djlint/rules/T001.cpython-315-aarch64-linux-musl.so +0 -0
  1219. package/python/lib/python3.15/site-packages/djlint/rules/T001.py +103 -0
  1220. package/python/lib/python3.15/site-packages/djlint/rules/T002.cpython-315-aarch64-linux-musl.so +0 -0
  1221. package/python/lib/python3.15/site-packages/djlint/rules/T002.py +75 -0
  1222. package/python/lib/python3.15/site-packages/djlint/rules/T003.cpython-315-aarch64-linux-musl.so +0 -0
  1223. package/python/lib/python3.15/site-packages/djlint/rules/T003.py +93 -0
  1224. package/python/lib/python3.15/site-packages/djlint/rules/T027.cpython-315-aarch64-linux-musl.so +0 -0
  1225. package/python/lib/python3.15/site-packages/djlint/rules/T027.py +183 -0
  1226. package/python/lib/python3.15/site-packages/djlint/rules/T038.cpython-315-aarch64-linux-musl.so +0 -0
  1227. package/python/lib/python3.15/site-packages/djlint/rules/T038.py +152 -0
  1228. package/python/lib/python3.15/site-packages/djlint/rules/T039.cpython-315-aarch64-linux-musl.so +0 -0
  1229. package/python/lib/python3.15/site-packages/djlint/rules/T039.py +167 -0
  1230. package/python/lib/python3.15/site-packages/djlint/rules/T041.cpython-315-aarch64-linux-musl.so +0 -0
  1231. package/python/lib/python3.15/site-packages/djlint/rules/T041.py +307 -0
  1232. package/python/lib/python3.15/site-packages/djlint/rules/T042.cpython-315-aarch64-linux-musl.so +0 -0
  1233. package/python/lib/python3.15/site-packages/djlint/rules/T042.py +219 -0
  1234. package/python/lib/python3.15/site-packages/djlint/rules/T043.cpython-315-aarch64-linux-musl.so +0 -0
  1235. package/python/lib/python3.15/site-packages/djlint/rules/T043.py +154 -0
  1236. package/python/lib/python3.15/site-packages/djlint/rules/T044.cpython-315-aarch64-linux-musl.so +0 -0
  1237. package/python/lib/python3.15/site-packages/djlint/rules/T044.py +189 -0
  1238. package/python/lib/python3.15/site-packages/djlint/rules/T045.cpython-315-aarch64-linux-musl.so +0 -0
  1239. package/python/lib/python3.15/site-packages/djlint/rules/T045.py +281 -0
  1240. package/python/lib/python3.15/site-packages/djlint/rules/__init__.cpython-315-aarch64-linux-musl.so +0 -0
  1241. package/python/lib/python3.15/site-packages/djlint/rules/__init__.py +0 -0
  1242. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D058.cpython-315.pyc +0 -0
  1243. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/D059.cpython-315.pyc +0 -0
  1244. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H009.cpython-315.pyc +0 -0
  1245. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H012.cpython-315.pyc +0 -0
  1246. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H014.cpython-315.pyc +0 -0
  1247. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H016.cpython-315.pyc +0 -0
  1248. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H022.cpython-315.pyc +0 -0
  1249. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H025.cpython-315.pyc +0 -0
  1250. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H036.cpython-315.pyc +0 -0
  1251. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H037.cpython-315.pyc +0 -0
  1252. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H041.cpython-315.pyc +0 -0
  1253. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H042.cpython-315.pyc +0 -0
  1254. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H044.cpython-315.pyc +0 -0
  1255. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H047.cpython-315.pyc +0 -0
  1256. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H048.cpython-315.pyc +0 -0
  1257. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H051.cpython-315.pyc +0 -0
  1258. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H053.cpython-315.pyc +0 -0
  1259. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H054.cpython-315.pyc +0 -0
  1260. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/H057.cpython-315.pyc +0 -0
  1261. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T001.cpython-315.pyc +0 -0
  1262. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T002.cpython-315.pyc +0 -0
  1263. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T003.cpython-315.pyc +0 -0
  1264. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T027.cpython-315.pyc +0 -0
  1265. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T038.cpython-315.pyc +0 -0
  1266. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T039.cpython-315.pyc +0 -0
  1267. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T041.cpython-315.pyc +0 -0
  1268. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T042.cpython-315.pyc +0 -0
  1269. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T043.cpython-315.pyc +0 -0
  1270. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T044.cpython-315.pyc +0 -0
  1271. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/T045.cpython-315.pyc +0 -0
  1272. package/python/lib/python3.15/site-packages/djlint/rules/__pycache__/__init__.cpython-315.pyc +0 -0
  1273. package/python/lib/python3.15/site-packages/djlint/rules.yaml +482 -0
  1274. package/python/lib/python3.15/site-packages/djlint/sarif_output.cpython-315-aarch64-linux-musl.so +0 -0
  1275. package/python/lib/python3.15/site-packages/djlint/sarif_output.py +171 -0
  1276. package/python/lib/python3.15/site-packages/djlint/server.cpython-315-aarch64-linux-musl.so +0 -0
  1277. package/python/lib/python3.15/site-packages/djlint/server.py +983 -0
  1278. package/python/lib/python3.15/site-packages/djlint/settings.cpython-315-aarch64-linux-musl.so +0 -0
  1279. package/python/lib/python3.15/site-packages/djlint/settings.py +2381 -0
  1280. package/python/lib/python3.15/site-packages/djlint/src.cpython-315-aarch64-linux-musl.so +0 -0
  1281. package/python/lib/python3.15/site-packages/djlint/src.py +192 -0
  1282. package/python/lib/python3.15/site-packages/djlint/types.pyi +20 -0
  1283. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/INSTALLER +1 -0
  1284. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/METADATA +236 -0
  1285. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/RECORD +133 -0
  1286. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/REQUESTED +0 -0
  1287. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/WHEEL +5 -0
  1288. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/entry_points.txt +2 -0
  1289. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE +675 -0
  1290. package/python/lib/python3.15/site-packages/djlint-1.54.2.dist-info/licenses/LICENSE-THIRD-PARTY +271 -0
  1291. package/python/lib/python3.15/site-packages/ed0510dfe26979f3c42b__mypyc.cpython-315-aarch64-linux-musl.so +0 -0
  1292. package/python/lib/python3.15/site-packages/editorconfig/__init__.py +20 -0
  1293. package/python/lib/python3.15/site-packages/editorconfig/__main__.py +83 -0
  1294. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__init__.cpython-315.pyc +0 -0
  1295. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/__main__.cpython-315.pyc +0 -0
  1296. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/exceptions.cpython-315.pyc +0 -0
  1297. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/fnmatch.cpython-315.pyc +0 -0
  1298. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/handler.cpython-315.pyc +0 -0
  1299. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/ini.cpython-315.pyc +0 -0
  1300. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/version.cpython-315.pyc +0 -0
  1301. package/python/lib/python3.15/site-packages/editorconfig/__pycache__/versiontools.cpython-315.pyc +0 -0
  1302. package/python/lib/python3.15/site-packages/editorconfig/exceptions.py +24 -0
  1303. package/python/lib/python3.15/site-packages/editorconfig/fnmatch.py +224 -0
  1304. package/python/lib/python3.15/site-packages/editorconfig/handler.py +128 -0
  1305. package/python/lib/python3.15/site-packages/editorconfig/ini.py +173 -0
  1306. package/python/lib/python3.15/site-packages/editorconfig/py.typed +0 -0
  1307. package/python/lib/python3.15/site-packages/editorconfig/version.py +1 -0
  1308. package/python/lib/python3.15/site-packages/editorconfig/versiontools.py +36 -0
  1309. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/INSTALLER +1 -0
  1310. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/METADATA +116 -0
  1311. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/RECORD +20 -0
  1312. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/REQUESTED +0 -0
  1313. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/WHEEL +5 -0
  1314. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/entry_points.txt +2 -0
  1315. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/COPYING +11 -0
  1316. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.BSD +22 -0
  1317. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.PSF +192 -0
  1318. package/python/lib/python3.15/site-packages/editorconfig-0.17.1.dist-info/top_level.txt +1 -0
  1319. package/python/lib/python3.15/site-packages/jsbeautifier/__init__.py +309 -0
  1320. package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__init__.cpython-315.pyc +0 -0
  1321. package/python/lib/python3.15/site-packages/jsbeautifier/__pycache__/__version__.cpython-315.pyc +0 -0
  1322. package/python/lib/python3.15/site-packages/jsbeautifier/__version__.py +1 -0
  1323. package/python/lib/python3.15/site-packages/jsbeautifier/cli/__init__.py +210 -0
  1324. package/python/lib/python3.15/site-packages/jsbeautifier/cli/__pycache__/__init__.cpython-315.pyc +0 -0
  1325. package/python/lib/python3.15/site-packages/jsbeautifier/core/__init__.py +1 -0
  1326. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/__init__.cpython-315.pyc +0 -0
  1327. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/directives.cpython-315.pyc +0 -0
  1328. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/inputscanner.cpython-315.pyc +0 -0
  1329. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/options.cpython-315.pyc +0 -0
  1330. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/output.cpython-315.pyc +0 -0
  1331. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/pattern.cpython-315.pyc +0 -0
  1332. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/templatablepattern.cpython-315.pyc +0 -0
  1333. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/token.cpython-315.pyc +0 -0
  1334. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1335. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/tokenstream.cpython-315.pyc +0 -0
  1336. package/python/lib/python3.15/site-packages/jsbeautifier/core/__pycache__/whitespacepattern.cpython-315.pyc +0 -0
  1337. package/python/lib/python3.15/site-packages/jsbeautifier/core/directives.py +55 -0
  1338. package/python/lib/python3.15/site-packages/jsbeautifier/core/inputscanner.py +139 -0
  1339. package/python/lib/python3.15/site-packages/jsbeautifier/core/options.py +230 -0
  1340. package/python/lib/python3.15/site-packages/jsbeautifier/core/output.py +352 -0
  1341. package/python/lib/python3.15/site-packages/jsbeautifier/core/pattern.py +83 -0
  1342. package/python/lib/python3.15/site-packages/jsbeautifier/core/templatablepattern.py +192 -0
  1343. package/python/lib/python3.15/site-packages/jsbeautifier/core/token.py +38 -0
  1344. package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenizer.py +138 -0
  1345. package/python/lib/python3.15/site-packages/jsbeautifier/core/tokenstream.py +74 -0
  1346. package/python/lib/python3.15/site-packages/jsbeautifier/core/whitespacepattern.py +73 -0
  1347. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__init__.py +1 -0
  1348. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/__init__.cpython-315.pyc +0 -0
  1349. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/acorn.cpython-315.pyc +0 -0
  1350. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/beautifier.cpython-315.pyc +0 -0
  1351. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/options.cpython-315.pyc +0 -0
  1352. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/__pycache__/tokenizer.cpython-315.pyc +0 -0
  1353. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/acorn.py +81 -0
  1354. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/beautifier.py +1647 -0
  1355. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/options.py +102 -0
  1356. package/python/lib/python3.15/site-packages/jsbeautifier/javascript/tokenizer.py +628 -0
  1357. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__init__.py +1 -0
  1358. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1359. package/python/lib/python3.15/site-packages/jsbeautifier/tests/__pycache__/testindentation.cpython-315.pyc +0 -0
  1360. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__init__.py +1 -0
  1361. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/__init__.cpython-315.pyc +0 -0
  1362. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/__pycache__/tests.cpython-315.pyc +0 -0
  1363. package/python/lib/python3.15/site-packages/jsbeautifier/tests/generated/tests.py +10470 -0
  1364. package/python/lib/python3.15/site-packages/jsbeautifier/tests/testindentation.py +49 -0
  1365. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__init__.py +73 -0
  1366. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/__init__.cpython-315.pyc +0 -0
  1367. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/evalbased.cpython-315.pyc +0 -0
  1368. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/javascriptobfuscator.cpython-315.pyc +0 -0
  1369. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/myobfuscate.cpython-315.pyc +0 -0
  1370. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/packer.cpython-315.pyc +0 -0
  1371. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/__pycache__/urlencode.cpython-315.pyc +0 -0
  1372. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/evalbased.py +44 -0
  1373. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/javascriptobfuscator.py +61 -0
  1374. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/myobfuscate.py +83 -0
  1375. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/packer.py +158 -0
  1376. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__init__.py +2 -0
  1377. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/__init__.cpython-315.pyc +0 -0
  1378. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testjavascriptobfuscator.cpython-315.pyc +0 -0
  1379. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testmyobfuscate.cpython-315.pyc +0 -0
  1380. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testpacker.cpython-315.pyc +0 -0
  1381. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/__pycache__/testurlencode.cpython-315.pyc +0 -0
  1382. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +59 -0
  1383. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testmyobfuscate.py +48 -0
  1384. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testpacker.py +72 -0
  1385. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/tests/testurlencode.py +46 -0
  1386. package/python/lib/python3.15/site-packages/jsbeautifier/unpackers/urlencode.py +32 -0
  1387. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1388. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/METADATA +18 -0
  1389. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/RECORD +42 -0
  1390. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1391. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1392. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1393. package/python/lib/python3.15/site-packages/jsbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1394. package/python/lib/python3.15/site-packages/json5/__init__.py +30 -0
  1395. package/python/lib/python3.15/site-packages/json5/__main__.py +22 -0
  1396. package/python/lib/python3.15/site-packages/json5/__pycache__/__init__.cpython-315.pyc +0 -0
  1397. package/python/lib/python3.15/site-packages/json5/__pycache__/__main__.cpython-315.pyc +0 -0
  1398. package/python/lib/python3.15/site-packages/json5/__pycache__/host.cpython-315.pyc +0 -0
  1399. package/python/lib/python3.15/site-packages/json5/__pycache__/lib.cpython-315.pyc +0 -0
  1400. package/python/lib/python3.15/site-packages/json5/__pycache__/parser.cpython-315.pyc +0 -0
  1401. package/python/lib/python3.15/site-packages/json5/__pycache__/tool.cpython-315.pyc +0 -0
  1402. package/python/lib/python3.15/site-packages/json5/__pycache__/version.cpython-315.pyc +0 -0
  1403. package/python/lib/python3.15/site-packages/json5/host.py +53 -0
  1404. package/python/lib/python3.15/site-packages/json5/lib.py +1007 -0
  1405. package/python/lib/python3.15/site-packages/json5/parser.py +1376 -0
  1406. package/python/lib/python3.15/site-packages/json5/py.typed +0 -0
  1407. package/python/lib/python3.15/site-packages/json5/tool.py +198 -0
  1408. package/python/lib/python3.15/site-packages/json5/version.py +18 -0
  1409. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/INSTALLER +1 -0
  1410. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/METADATA +585 -0
  1411. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/RECORD +17 -0
  1412. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/REQUESTED +0 -0
  1413. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/WHEEL +5 -0
  1414. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/entry_points.txt +2 -0
  1415. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/licenses/LICENSE +281 -0
  1416. package/python/lib/python3.15/site-packages/json5-0.17.3.dist-info/top_level.txt +1 -0
  1417. package/python/lib/python3.15/site-packages/pathspec/__init__.py +68 -0
  1418. package/python/lib/python3.15/site-packages/pathspec/__pycache__/__init__.cpython-315.pyc +0 -0
  1419. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_meta.cpython-315.pyc +0 -0
  1420. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_typing.cpython-315.pyc +0 -0
  1421. package/python/lib/python3.15/site-packages/pathspec/__pycache__/_version.cpython-315.pyc +0 -0
  1422. package/python/lib/python3.15/site-packages/pathspec/__pycache__/backend.cpython-315.pyc +0 -0
  1423. package/python/lib/python3.15/site-packages/pathspec/__pycache__/gitignore.cpython-315.pyc +0 -0
  1424. package/python/lib/python3.15/site-packages/pathspec/__pycache__/pathspec.cpython-315.pyc +0 -0
  1425. package/python/lib/python3.15/site-packages/pathspec/__pycache__/pattern.cpython-315.pyc +0 -0
  1426. package/python/lib/python3.15/site-packages/pathspec/__pycache__/util.cpython-315.pyc +0 -0
  1427. package/python/lib/python3.15/site-packages/pathspec/_backends/__init__.py +4 -0
  1428. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/__init__.cpython-315.pyc +0 -0
  1429. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/_utils.cpython-315.pyc +0 -0
  1430. package/python/lib/python3.15/site-packages/pathspec/_backends/__pycache__/agg.cpython-315.pyc +0 -0
  1431. package/python/lib/python3.15/site-packages/pathspec/_backends/_utils.py +45 -0
  1432. package/python/lib/python3.15/site-packages/pathspec/_backends/agg.py +104 -0
  1433. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__init__.py +0 -0
  1434. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/__init__.cpython-315.pyc +0 -0
  1435. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/_base.cpython-315.pyc +0 -0
  1436. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/base.cpython-315.pyc +0 -0
  1437. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/gitignore.cpython-315.pyc +0 -0
  1438. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/__pycache__/pathspec.cpython-315.pyc +0 -0
  1439. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/_base.py +78 -0
  1440. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/base.py +24 -0
  1441. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/gitignore.py +250 -0
  1442. package/python/lib/python3.15/site-packages/pathspec/_backends/hyperscan/pathspec.py +257 -0
  1443. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__init__.py +0 -0
  1444. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/__init__.cpython-315.pyc +0 -0
  1445. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/_base.cpython-315.pyc +0 -0
  1446. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/base.cpython-315.pyc +0 -0
  1447. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/gitignore.cpython-315.pyc +0 -0
  1448. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/__pycache__/pathspec.cpython-315.pyc +0 -0
  1449. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/_base.py +95 -0
  1450. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/base.py +18 -0
  1451. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/gitignore.py +180 -0
  1452. package/python/lib/python3.15/site-packages/pathspec/_backends/re2/pathspec.py +189 -0
  1453. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__init__.py +0 -0
  1454. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/__init__.cpython-315.pyc +0 -0
  1455. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/gitignore.cpython-315.pyc +0 -0
  1456. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/__pycache__/pathspec.cpython-315.pyc +0 -0
  1457. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/gitignore.py +104 -0
  1458. package/python/lib/python3.15/site-packages/pathspec/_backends/simple/pathspec.py +76 -0
  1459. package/python/lib/python3.15/site-packages/pathspec/_meta.py +70 -0
  1460. package/python/lib/python3.15/site-packages/pathspec/_typing.py +64 -0
  1461. package/python/lib/python3.15/site-packages/pathspec/_version.py +5 -0
  1462. package/python/lib/python3.15/site-packages/pathspec/backend.py +51 -0
  1463. package/python/lib/python3.15/site-packages/pathspec/gitignore.py +172 -0
  1464. package/python/lib/python3.15/site-packages/pathspec/pathspec.py +527 -0
  1465. package/python/lib/python3.15/site-packages/pathspec/pattern.py +259 -0
  1466. package/python/lib/python3.15/site-packages/pathspec/patterns/__init__.py +12 -0
  1467. package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/__init__.cpython-315.pyc +0 -0
  1468. package/python/lib/python3.15/site-packages/pathspec/patterns/__pycache__/gitwildmatch.cpython-315.pyc +0 -0
  1469. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__init__.py +17 -0
  1470. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/__init__.cpython-315.pyc +0 -0
  1471. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/base.cpython-315.pyc +0 -0
  1472. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/basic.cpython-315.pyc +0 -0
  1473. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/__pycache__/spec.cpython-315.pyc +0 -0
  1474. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/base.py +210 -0
  1475. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/basic.py +320 -0
  1476. package/python/lib/python3.15/site-packages/pathspec/patterns/gitignore/spec.py +344 -0
  1477. package/python/lib/python3.15/site-packages/pathspec/patterns/gitwildmatch.py +52 -0
  1478. package/python/lib/python3.15/site-packages/pathspec/py.typed +1 -0
  1479. package/python/lib/python3.15/site-packages/pathspec/util.py +864 -0
  1480. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/INSTALLER +1 -0
  1481. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/METADATA +392 -0
  1482. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/RECORD +38 -0
  1483. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/REQUESTED +0 -0
  1484. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/WHEEL +4 -0
  1485. package/python/lib/python3.15/site-packages/pathspec-1.1.1.dist-info/licenses/LICENSE +373 -0
  1486. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/INSTALLER +1 -0
  1487. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/METADATA +58 -0
  1488. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/RECORD +26 -0
  1489. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/REQUESTED +0 -0
  1490. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/WHEEL +5 -0
  1491. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/licenses/LICENSE +20 -0
  1492. package/python/lib/python3.15/site-packages/pyyaml-6.0.4.dist-info/top_level.txt +2 -0
  1493. package/python/lib/python3.15/site-packages/regex/__init__.py +3 -0
  1494. package/python/lib/python3.15/site-packages/regex/__pycache__/__init__.cpython-315.pyc +0 -0
  1495. package/python/lib/python3.15/site-packages/regex/__pycache__/_main.cpython-315.pyc +0 -0
  1496. package/python/lib/python3.15/site-packages/regex/__pycache__/_regex_core.cpython-315.pyc +0 -0
  1497. package/python/lib/python3.15/site-packages/regex/_main.py +759 -0
  1498. package/python/lib/python3.15/site-packages/regex/_regex.cpython-315-aarch64-linux-musl.so +0 -0
  1499. package/python/lib/python3.15/site-packages/regex/_regex_core.py +4689 -0
  1500. package/python/lib/python3.15/site-packages/regex/tests/__pycache__/test_regex.cpython-315.pyc +0 -0
  1501. package/python/lib/python3.15/site-packages/regex/tests/test_regex.py +4612 -0
  1502. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/INSTALLER +1 -0
  1503. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/METADATA +1060 -0
  1504. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/RECORD +12 -0
  1505. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/REQUESTED +0 -0
  1506. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/WHEEL +5 -0
  1507. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/licenses/LICENSE.txt +208 -0
  1508. package/python/lib/python3.15/site-packages/regex-2026.11.19.dist-info/top_level.txt +1 -0
  1509. package/python/lib/python3.15/site-packages/yaml/__init__.py +390 -0
  1510. package/python/lib/python3.15/site-packages/yaml/__pycache__/__init__.cpython-315.pyc +0 -0
  1511. package/python/lib/python3.15/site-packages/yaml/__pycache__/composer.cpython-315.pyc +0 -0
  1512. package/python/lib/python3.15/site-packages/yaml/__pycache__/constructor.cpython-315.pyc +0 -0
  1513. package/python/lib/python3.15/site-packages/yaml/__pycache__/cyaml.cpython-315.pyc +0 -0
  1514. package/python/lib/python3.15/site-packages/yaml/__pycache__/dumper.cpython-315.pyc +0 -0
  1515. package/python/lib/python3.15/site-packages/yaml/__pycache__/emitter.cpython-315.pyc +0 -0
  1516. package/python/lib/python3.15/site-packages/yaml/__pycache__/error.cpython-315.pyc +0 -0
  1517. package/python/lib/python3.15/site-packages/yaml/__pycache__/events.cpython-315.pyc +0 -0
  1518. package/python/lib/python3.15/site-packages/yaml/__pycache__/loader.cpython-315.pyc +0 -0
  1519. package/python/lib/python3.15/site-packages/yaml/__pycache__/nodes.cpython-315.pyc +0 -0
  1520. package/python/lib/python3.15/site-packages/yaml/__pycache__/parser.cpython-315.pyc +0 -0
  1521. package/python/lib/python3.15/site-packages/yaml/__pycache__/reader.cpython-315.pyc +0 -0
  1522. package/python/lib/python3.15/site-packages/yaml/__pycache__/representer.cpython-315.pyc +0 -0
  1523. package/python/lib/python3.15/site-packages/yaml/__pycache__/resolver.cpython-315.pyc +0 -0
  1524. package/python/lib/python3.15/site-packages/yaml/__pycache__/scanner.cpython-315.pyc +0 -0
  1525. package/python/lib/python3.15/site-packages/yaml/__pycache__/serializer.cpython-315.pyc +0 -0
  1526. package/python/lib/python3.15/site-packages/yaml/__pycache__/tokens.cpython-315.pyc +0 -0
  1527. package/python/lib/python3.15/site-packages/yaml/_yaml.cpython-315-aarch64-linux-musl.so +0 -0
  1528. package/python/lib/python3.15/site-packages/yaml/composer.py +139 -0
  1529. package/python/lib/python3.15/site-packages/yaml/constructor.py +751 -0
  1530. package/python/lib/python3.15/site-packages/yaml/cyaml.py +101 -0
  1531. package/python/lib/python3.15/site-packages/yaml/dumper.py +62 -0
  1532. package/python/lib/python3.15/site-packages/yaml/emitter.py +1137 -0
  1533. package/python/lib/python3.15/site-packages/yaml/error.py +75 -0
  1534. package/python/lib/python3.15/site-packages/yaml/events.py +86 -0
  1535. package/python/lib/python3.15/site-packages/yaml/loader.py +63 -0
  1536. package/python/lib/python3.15/site-packages/yaml/nodes.py +49 -0
  1537. package/python/lib/python3.15/site-packages/yaml/parser.py +589 -0
  1538. package/python/lib/python3.15/site-packages/yaml/reader.py +185 -0
  1539. package/python/lib/python3.15/site-packages/yaml/representer.py +389 -0
  1540. package/python/lib/python3.15/site-packages/yaml/resolver.py +227 -0
  1541. package/python/lib/python3.15/site-packages/yaml/scanner.py +1435 -0
  1542. package/python/lib/python3.15/site-packages/yaml/serializer.py +111 -0
  1543. package/python/lib/python3.15/site-packages/yaml/tokens.py +104 -0
  1544. package/python/lib/python3.15/site.py +1159 -0
  1545. package/python/lib/python3.15/smtplib.py +1121 -0
  1546. package/python/lib/python3.15/socket.py +1003 -0
  1547. package/python/lib/python3.15/socketserver.py +869 -0
  1548. package/python/lib/python3.15/sqlite3/__init__.py +57 -0
  1549. package/python/lib/python3.15/sqlite3/__main__.py +156 -0
  1550. package/python/lib/python3.15/sqlite3/__pycache__/__init__.cpython-315.pyc +0 -0
  1551. package/python/lib/python3.15/sqlite3/__pycache__/__main__.cpython-315.pyc +0 -0
  1552. package/python/lib/python3.15/sqlite3/__pycache__/_completer.cpython-315.pyc +0 -0
  1553. package/python/lib/python3.15/sqlite3/__pycache__/dbapi2.cpython-315.pyc +0 -0
  1554. package/python/lib/python3.15/sqlite3/__pycache__/dump.cpython-315.pyc +0 -0
  1555. package/python/lib/python3.15/sqlite3/_completer.py +111 -0
  1556. package/python/lib/python3.15/sqlite3/dbapi2.py +96 -0
  1557. package/python/lib/python3.15/sqlite3/dump.py +118 -0
  1558. package/python/lib/python3.15/ssl.py +1600 -0
  1559. package/python/lib/python3.15/stat.py +227 -0
  1560. package/python/lib/python3.15/statistics.py +1880 -0
  1561. package/python/lib/python3.15/string/__init__.py +323 -0
  1562. package/python/lib/python3.15/string/__pycache__/__init__.cpython-315.pyc +0 -0
  1563. package/python/lib/python3.15/string/__pycache__/templatelib.cpython-315.pyc +0 -0
  1564. package/python/lib/python3.15/string/templatelib.py +33 -0
  1565. package/python/lib/python3.15/stringprep.py +463 -0
  1566. package/python/lib/python3.15/struct.py +15 -0
  1567. package/python/lib/python3.15/subprocess.py +2509 -0
  1568. package/python/lib/python3.15/symtable.py +452 -0
  1569. package/python/lib/python3.15/sysconfig/__init__.py +797 -0
  1570. package/python/lib/python3.15/sysconfig/__main__.py +250 -0
  1571. package/python/lib/python3.15/sysconfig/__pycache__/__init__.cpython-315.pyc +0 -0
  1572. package/python/lib/python3.15/sysconfig/__pycache__/__main__.cpython-315.pyc +0 -0
  1573. package/python/lib/python3.15/tabnanny.py +345 -0
  1574. package/python/lib/python3.15/tarfile.py +3259 -0
  1575. package/python/lib/python3.15/tempfile.py +1057 -0
  1576. package/python/lib/python3.15/textwrap.py +475 -0
  1577. package/python/lib/python3.15/this.py +28 -0
  1578. package/python/lib/python3.15/threading.py +1780 -0
  1579. package/python/lib/python3.15/timeit.py +431 -0
  1580. package/python/lib/python3.15/token.py +144 -0
  1581. package/python/lib/python3.15/tokenize.py +644 -0
  1582. package/python/lib/python3.15/tomllib/__init__.py +10 -0
  1583. package/python/lib/python3.15/tomllib/__pycache__/__init__.cpython-315.pyc +0 -0
  1584. package/python/lib/python3.15/tomllib/__pycache__/_parser.cpython-315.pyc +0 -0
  1585. package/python/lib/python3.15/tomllib/__pycache__/_re.cpython-315.pyc +0 -0
  1586. package/python/lib/python3.15/tomllib/__pycache__/_types.cpython-315.pyc +0 -0
  1587. package/python/lib/python3.15/tomllib/_parser.py +776 -0
  1588. package/python/lib/python3.15/tomllib/_re.py +119 -0
  1589. package/python/lib/python3.15/tomllib/_types.py +10 -0
  1590. package/python/lib/python3.15/tomllib/mypy.ini +15 -0
  1591. package/python/lib/python3.15/trace.py +749 -0
  1592. package/python/lib/python3.15/traceback.py +2090 -0
  1593. package/python/lib/python3.15/tracemalloc.py +560 -0
  1594. package/python/lib/python3.15/tty.py +73 -0
  1595. package/python/lib/python3.15/types.py +355 -0
  1596. package/python/lib/python3.15/typing.py +3949 -0
  1597. package/python/lib/python3.15/unittest/__init__.py +80 -0
  1598. package/python/lib/python3.15/unittest/__main__.py +18 -0
  1599. package/python/lib/python3.15/unittest/__pycache__/__init__.cpython-315.pyc +0 -0
  1600. package/python/lib/python3.15/unittest/__pycache__/__main__.cpython-315.pyc +0 -0
  1601. package/python/lib/python3.15/unittest/__pycache__/_log.cpython-315.pyc +0 -0
  1602. package/python/lib/python3.15/unittest/__pycache__/async_case.cpython-315.pyc +0 -0
  1603. package/python/lib/python3.15/unittest/__pycache__/case.cpython-315.pyc +0 -0
  1604. package/python/lib/python3.15/unittest/__pycache__/loader.cpython-315.pyc +0 -0
  1605. package/python/lib/python3.15/unittest/__pycache__/main.cpython-315.pyc +0 -0
  1606. package/python/lib/python3.15/unittest/__pycache__/mock.cpython-315.pyc +0 -0
  1607. package/python/lib/python3.15/unittest/__pycache__/result.cpython-315.pyc +0 -0
  1608. package/python/lib/python3.15/unittest/__pycache__/runner.cpython-315.pyc +0 -0
  1609. package/python/lib/python3.15/unittest/__pycache__/signals.cpython-315.pyc +0 -0
  1610. package/python/lib/python3.15/unittest/__pycache__/suite.cpython-315.pyc +0 -0
  1611. package/python/lib/python3.15/unittest/__pycache__/util.cpython-315.pyc +0 -0
  1612. package/python/lib/python3.15/unittest/_log.py +87 -0
  1613. package/python/lib/python3.15/unittest/async_case.py +158 -0
  1614. package/python/lib/python3.15/unittest/case.py +1652 -0
  1615. package/python/lib/python3.15/unittest/loader.py +491 -0
  1616. package/python/lib/python3.15/unittest/main.py +280 -0
  1617. package/python/lib/python3.15/unittest/mock.py +3212 -0
  1618. package/python/lib/python3.15/unittest/result.py +259 -0
  1619. package/python/lib/python3.15/unittest/runner.py +312 -0
  1620. package/python/lib/python3.15/unittest/signals.py +71 -0
  1621. package/python/lib/python3.15/unittest/suite.py +391 -0
  1622. package/python/lib/python3.15/unittest/util.py +187 -0
  1623. package/python/lib/python3.15/urllib/__init__.py +0 -0
  1624. package/python/lib/python3.15/urllib/__pycache__/__init__.cpython-315.pyc +0 -0
  1625. package/python/lib/python3.15/urllib/__pycache__/error.cpython-315.pyc +0 -0
  1626. package/python/lib/python3.15/urllib/__pycache__/parse.cpython-315.pyc +0 -0
  1627. package/python/lib/python3.15/urllib/__pycache__/request.cpython-315.pyc +0 -0
  1628. package/python/lib/python3.15/urllib/__pycache__/response.cpython-315.pyc +0 -0
  1629. package/python/lib/python3.15/urllib/__pycache__/robotparser.cpython-315.pyc +0 -0
  1630. package/python/lib/python3.15/urllib/error.py +74 -0
  1631. package/python/lib/python3.15/urllib/parse.py +1407 -0
  1632. package/python/lib/python3.15/urllib/request.py +2177 -0
  1633. package/python/lib/python3.15/urllib/response.py +84 -0
  1634. package/python/lib/python3.15/urllib/robotparser.py +363 -0
  1635. package/python/lib/python3.15/uuid.py +1013 -0
  1636. package/python/lib/python3.15/venv/__init__.py +695 -0
  1637. package/python/lib/python3.15/venv/__main__.py +10 -0
  1638. package/python/lib/python3.15/venv/__pycache__/__init__.cpython-315.pyc +0 -0
  1639. package/python/lib/python3.15/venv/__pycache__/__main__.cpython-315.pyc +0 -0
  1640. package/python/lib/python3.15/venv/scripts/common/Activate.ps1 +248 -0
  1641. package/python/lib/python3.15/venv/scripts/common/activate +76 -0
  1642. package/python/lib/python3.15/venv/scripts/common/activate.fish +69 -0
  1643. package/python/lib/python3.15/venv/scripts/posix/activate.csh +29 -0
  1644. package/python/lib/python3.15/warnings.py +99 -0
  1645. package/python/lib/python3.15/wave.py +704 -0
  1646. package/python/lib/python3.15/weakref.py +576 -0
  1647. package/python/lib/python3.15/webbrowser.py +841 -0
  1648. package/python/lib/python3.15/wsgiref/__init__.py +25 -0
  1649. package/python/lib/python3.15/wsgiref/__pycache__/__init__.cpython-315.pyc +0 -0
  1650. package/python/lib/python3.15/wsgiref/__pycache__/handlers.cpython-315.pyc +0 -0
  1651. package/python/lib/python3.15/wsgiref/__pycache__/headers.cpython-315.pyc +0 -0
  1652. package/python/lib/python3.15/wsgiref/__pycache__/simple_server.cpython-315.pyc +0 -0
  1653. package/python/lib/python3.15/wsgiref/__pycache__/types.cpython-315.pyc +0 -0
  1654. package/python/lib/python3.15/wsgiref/__pycache__/util.cpython-315.pyc +0 -0
  1655. package/python/lib/python3.15/wsgiref/__pycache__/validate.cpython-315.pyc +0 -0
  1656. package/python/lib/python3.15/wsgiref/handlers.py +576 -0
  1657. package/python/lib/python3.15/wsgiref/headers.py +192 -0
  1658. package/python/lib/python3.15/wsgiref/simple_server.py +169 -0
  1659. package/python/lib/python3.15/wsgiref/types.py +54 -0
  1660. package/python/lib/python3.15/wsgiref/util.py +159 -0
  1661. package/python/lib/python3.15/wsgiref/validate.py +438 -0
  1662. package/python/lib/python3.15/xml/__init__.py +21 -0
  1663. package/python/lib/python3.15/xml/__pycache__/__init__.cpython-315.pyc +0 -0
  1664. package/python/lib/python3.15/xml/__pycache__/utils.cpython-315.pyc +0 -0
  1665. package/python/lib/python3.15/xml/dom/NodeFilter.py +27 -0
  1666. package/python/lib/python3.15/xml/dom/__init__.py +140 -0
  1667. package/python/lib/python3.15/xml/dom/__pycache__/NodeFilter.cpython-315.pyc +0 -0
  1668. package/python/lib/python3.15/xml/dom/__pycache__/__init__.cpython-315.pyc +0 -0
  1669. package/python/lib/python3.15/xml/dom/__pycache__/domreg.cpython-315.pyc +0 -0
  1670. package/python/lib/python3.15/xml/dom/__pycache__/expatbuilder.cpython-315.pyc +0 -0
  1671. package/python/lib/python3.15/xml/dom/__pycache__/minicompat.cpython-315.pyc +0 -0
  1672. package/python/lib/python3.15/xml/dom/__pycache__/minidom.cpython-315.pyc +0 -0
  1673. package/python/lib/python3.15/xml/dom/__pycache__/pulldom.cpython-315.pyc +0 -0
  1674. package/python/lib/python3.15/xml/dom/__pycache__/xmlbuilder.cpython-315.pyc +0 -0
  1675. package/python/lib/python3.15/xml/dom/domreg.py +99 -0
  1676. package/python/lib/python3.15/xml/dom/expatbuilder.py +964 -0
  1677. package/python/lib/python3.15/xml/dom/minicompat.py +109 -0
  1678. package/python/lib/python3.15/xml/dom/minidom.py +2027 -0
  1679. package/python/lib/python3.15/xml/dom/pulldom.py +350 -0
  1680. package/python/lib/python3.15/xml/dom/xmlbuilder.py +389 -0
  1681. package/python/lib/python3.15/xml/etree/ElementInclude.py +186 -0
  1682. package/python/lib/python3.15/xml/etree/ElementPath.py +430 -0
  1683. package/python/lib/python3.15/xml/etree/ElementTree.py +2111 -0
  1684. package/python/lib/python3.15/xml/etree/__init__.py +33 -0
  1685. package/python/lib/python3.15/xml/etree/__pycache__/ElementInclude.cpython-315.pyc +0 -0
  1686. package/python/lib/python3.15/xml/etree/__pycache__/ElementPath.cpython-315.pyc +0 -0
  1687. package/python/lib/python3.15/xml/etree/__pycache__/ElementTree.cpython-315.pyc +0 -0
  1688. package/python/lib/python3.15/xml/etree/__pycache__/__init__.cpython-315.pyc +0 -0
  1689. package/python/lib/python3.15/xml/etree/__pycache__/cElementTree.cpython-315.pyc +0 -0
  1690. package/python/lib/python3.15/xml/etree/cElementTree.py +3 -0
  1691. package/python/lib/python3.15/xml/parsers/__init__.py +8 -0
  1692. package/python/lib/python3.15/xml/parsers/__pycache__/__init__.cpython-315.pyc +0 -0
  1693. package/python/lib/python3.15/xml/parsers/__pycache__/expat.cpython-315.pyc +0 -0
  1694. package/python/lib/python3.15/xml/parsers/expat.py +8 -0
  1695. package/python/lib/python3.15/xml/sax/__init__.py +109 -0
  1696. package/python/lib/python3.15/xml/sax/__pycache__/__init__.cpython-315.pyc +0 -0
  1697. package/python/lib/python3.15/xml/sax/__pycache__/_exceptions.cpython-315.pyc +0 -0
  1698. package/python/lib/python3.15/xml/sax/__pycache__/expatreader.cpython-315.pyc +0 -0
  1699. package/python/lib/python3.15/xml/sax/__pycache__/handler.cpython-315.pyc +0 -0
  1700. package/python/lib/python3.15/xml/sax/__pycache__/saxutils.cpython-315.pyc +0 -0
  1701. package/python/lib/python3.15/xml/sax/__pycache__/xmlreader.cpython-315.pyc +0 -0
  1702. package/python/lib/python3.15/xml/sax/_exceptions.py +127 -0
  1703. package/python/lib/python3.15/xml/sax/expatreader.py +462 -0
  1704. package/python/lib/python3.15/xml/sax/handler.py +394 -0
  1705. package/python/lib/python3.15/xml/sax/saxutils.py +370 -0
  1706. package/python/lib/python3.15/xml/sax/xmlreader.py +379 -0
  1707. package/python/lib/python3.15/xml/utils.py +37 -0
  1708. package/python/lib/python3.15/xmlrpc/__init__.py +1 -0
  1709. package/python/lib/python3.15/xmlrpc/__pycache__/__init__.cpython-315.pyc +0 -0
  1710. package/python/lib/python3.15/xmlrpc/__pycache__/client.cpython-315.pyc +0 -0
  1711. package/python/lib/python3.15/xmlrpc/__pycache__/server.cpython-315.pyc +0 -0
  1712. package/python/lib/python3.15/xmlrpc/client.py +1503 -0
  1713. package/python/lib/python3.15/xmlrpc/server.py +1003 -0
  1714. package/python/lib/python3.15/zipapp.py +231 -0
  1715. package/python/lib/python3.15/zipfile/__init__.py +2444 -0
  1716. package/python/lib/python3.15/zipfile/__main__.py +4 -0
  1717. package/python/lib/python3.15/zipfile/__pycache__/__init__.cpython-315.pyc +0 -0
  1718. package/python/lib/python3.15/zipfile/__pycache__/__main__.cpython-315.pyc +0 -0
  1719. package/python/lib/python3.15/zipfile/_path/__init__.py +456 -0
  1720. package/python/lib/python3.15/zipfile/_path/__pycache__/__init__.cpython-315.pyc +0 -0
  1721. package/python/lib/python3.15/zipfile/_path/__pycache__/_functools.cpython-315.pyc +0 -0
  1722. package/python/lib/python3.15/zipfile/_path/__pycache__/glob.cpython-315.pyc +0 -0
  1723. package/python/lib/python3.15/zipfile/_path/_functools.py +31 -0
  1724. package/python/lib/python3.15/zipfile/_path/glob.py +113 -0
  1725. package/python/lib/python3.15/zipimport.py +849 -0
  1726. package/python/lib/python3.15/zoneinfo/__init__.py +34 -0
  1727. package/python/lib/python3.15/zoneinfo/__pycache__/__init__.cpython-315.pyc +0 -0
  1728. package/python/lib/python3.15/zoneinfo/__pycache__/_common.cpython-315.pyc +0 -0
  1729. package/python/lib/python3.15/zoneinfo/__pycache__/_tzpath.cpython-315.pyc +0 -0
  1730. package/python/lib/python3.15/zoneinfo/__pycache__/_zoneinfo.cpython-315.pyc +0 -0
  1731. package/python/lib/python3.15/zoneinfo/_common.py +172 -0
  1732. package/python/lib/python3.15/zoneinfo/_tzpath.py +193 -0
  1733. package/python/lib/python3.15/zoneinfo/_zoneinfo.py +779 -0
  1734. package/python/licenses/LICENSE.bdb.txt +126 -0
  1735. package/python/licenses/LICENSE.bzip2.txt +37 -0
  1736. package/python/licenses/LICENSE.cpython.txt +771 -0
  1737. package/python/licenses/LICENSE.expat.txt +21 -0
  1738. package/python/licenses/LICENSE.libX11.txt +942 -0
  1739. package/python/licenses/LICENSE.libXau.txt +21 -0
  1740. package/python/licenses/LICENSE.libedit.txt +29 -0
  1741. package/python/licenses/LICENSE.libffi.txt +21 -0
  1742. package/python/licenses/LICENSE.liblzma.txt +13 -0
  1743. package/python/licenses/LICENSE.libuuid.txt +27 -0
  1744. package/python/licenses/LICENSE.libxcb.txt +30 -0
  1745. package/python/licenses/LICENSE.mpdecimal.txt +24 -0
  1746. package/python/licenses/LICENSE.ncurses.txt +29 -0
  1747. package/python/licenses/LICENSE.openssl-3.txt +177 -0
  1748. package/python/licenses/LICENSE.sqlite.txt +23 -0
  1749. package/python/licenses/LICENSE.tcl.txt +40 -0
  1750. package/python/licenses/LICENSE.tix.txt +54 -0
  1751. package/python/licenses/LICENSE.zlib-ng.txt +19 -0
  1752. package/python/licenses/LICENSE.zlib.txt +22 -0
  1753. package/python/licenses/LICENSE.zstd.txt +30 -0
@@ -0,0 +1,2843 @@
1
+ """Generate Python documentation in HTML or text for interactive use.
2
+
3
+ At the Python interactive prompt, calling help(thing) on a Python object
4
+ documents the object, and calling help() starts up an interactive
5
+ help session.
6
+
7
+ Or, at the shell command line outside of Python:
8
+
9
+ Run "pydoc <name>" to show documentation on something. <name> may be
10
+ the name of a function, module, package, or a dotted reference to a
11
+ class or function within a module or module in a package. If the
12
+ argument contains a path segment delimiter (e.g. slash on Unix,
13
+ backslash on Windows) it is treated as the path to a Python source file.
14
+
15
+ Run "pydoc -k <keyword>" to search for a keyword in the synopsis lines
16
+ of all available modules.
17
+
18
+ Run "pydoc -n <hostname>" to start an HTTP server with the given
19
+ hostname (default: localhost) on the local machine.
20
+
21
+ Run "pydoc -p <port>" to start an HTTP server on the given port on the
22
+ local machine. Port number 0 can be used to get an arbitrary unused port.
23
+
24
+ Run "pydoc -b" to start an HTTP server on an arbitrary unused port and
25
+ open a web browser to interactively browse documentation. Combine with
26
+ the -n and -p options to control the hostname and port used.
27
+
28
+ Run "pydoc -w <name>" to write out the HTML documentation for a module
29
+ to a file named "<name>.html".
30
+
31
+ Module docs for core modules are assumed to be in
32
+
33
+ https://docs.python.org/X.Y/library/
34
+
35
+ This can be overridden by setting the PYTHONDOCS environment variable
36
+ to a different URL or to a local directory containing the Library
37
+ Reference Manual pages.
38
+ """
39
+ __all__ = ['help']
40
+ __author__ = "Ka-Ping Yee <ping@lfw.org>"
41
+ __date__ = "26 February 2001"
42
+
43
+ __credits__ = """Guido van Rossum, for an excellent programming language.
44
+ Tommy Burnette, the original creator of manpy.
45
+ Paul Prescod, for all his work on onlinehelp.
46
+ Richard Chamberlain, for the first implementation of textdoc.
47
+ """
48
+
49
+ # Known bugs that can't be fixed here:
50
+ # - synopsis() cannot be prevented from clobbering existing
51
+ # loaded modules.
52
+ # - If the __file__ attribute on a module is a relative path and
53
+ # the current directory is changed with os.chdir(), an incorrect
54
+ # path will be displayed.
55
+
56
+ import ast
57
+ import __future__
58
+ import builtins
59
+ import importlib._bootstrap
60
+ import importlib._bootstrap_external
61
+ import importlib.machinery
62
+ import importlib.util
63
+ import inspect
64
+ import io
65
+ import os
66
+ import pkgutil
67
+ import platform
68
+ import re
69
+ import sys
70
+ import sysconfig
71
+ import textwrap
72
+ import time
73
+ import tokenize
74
+ import warnings
75
+ from annotationlib import Format
76
+ from collections import deque
77
+ from reprlib import Repr
78
+ from traceback import format_exception_only
79
+
80
+ try:
81
+ from _pyrepl.pager import (get_pager, pipe_pager,
82
+ plain_pager, tempfile_pager, tty_pager)
83
+
84
+ # Expose plain() as pydoc.plain()
85
+ from _pyrepl.pager import plain # noqa: F401
86
+
87
+ # --------------------------------------------------------- old names
88
+ getpager = get_pager
89
+ pipepager = pipe_pager
90
+ plainpager = plain_pager
91
+ tempfilepager = tempfile_pager
92
+ ttypager = tty_pager
93
+
94
+ except ModuleNotFoundError:
95
+ # Minimal alternatives for cases where _pyrepl is absent.
96
+
97
+ def plain(text: str) -> str:
98
+ """Remove boldface formatting from text."""
99
+ return re.sub('.\b', '', text)
100
+
101
+ def plain_pager(text: str, title: str = '') -> None:
102
+ """Simply print unformatted text. This is the ultimate fallback."""
103
+ encoding = getattr(sys.stdout, 'encoding', None) or 'utf-8'
104
+ text = text.encode(encoding, 'backslashreplace').decode(encoding)
105
+ text = plain(text)
106
+ sys.stdout.write(text)
107
+
108
+ def get_pager():
109
+ """Unconditionally return the plain pager, since _pyrepl is absent."""
110
+ return plain_pager
111
+
112
+ # --------------------------------------------------------- old names
113
+ getpager = get_pager
114
+ plainpager = plain_pager
115
+
116
+
117
+ # --------------------------------------------------------- common routines
118
+
119
+ def pathdirs():
120
+ """Convert sys.path into a list of absolute, existing, unique paths."""
121
+ dirs = []
122
+ normdirs = []
123
+ for dir in sys.path:
124
+ dir = os.path.abspath(dir or '.')
125
+ normdir = os.path.normcase(dir)
126
+ if normdir not in normdirs and os.path.isdir(dir):
127
+ dirs.append(dir)
128
+ normdirs.append(normdir)
129
+ return dirs
130
+
131
+ def _getdoc(object):
132
+ return inspect.getdoc(object,
133
+ fallback_to_class_doc=False,
134
+ inherit_class_doc=False)
135
+
136
+ def getdoc(object):
137
+ """Get the doc string or comments for an object."""
138
+ result = _getdoc(object) or inspect.getcomments(object)
139
+ return result and re.sub('^ *\n', '', result.rstrip()) or ''
140
+
141
+ def splitdoc(doc):
142
+ """Split a doc string into a synopsis line (if any) and the rest."""
143
+ lines = doc.strip().split('\n')
144
+ if len(lines) == 1:
145
+ return lines[0], ''
146
+ elif len(lines) >= 2 and not lines[1].rstrip():
147
+ return lines[0], '\n'.join(lines[2:])
148
+ return '', '\n'.join(lines)
149
+
150
+ def _getargspec(object):
151
+ try:
152
+ signature = inspect.signature(object, annotation_format=Format.STRING)
153
+ if signature:
154
+ name = getattr(object, '__name__', '')
155
+ # <lambda> function are always single-line and should not be formatted
156
+ max_width = (80 - len(name)) if name != '<lambda>' else None
157
+ return signature.format(max_width=max_width, quote_annotation_strings=False)
158
+ except (ValueError, TypeError):
159
+ argspec = getattr(object, '__text_signature__', None)
160
+ if argspec:
161
+ if argspec[:2] == '($':
162
+ argspec = '(' + argspec[2:]
163
+ if getattr(object, '__self__', None) is not None:
164
+ # Strip the bound argument.
165
+ m = re.match(r'\(\w+(?:(?=\))|,\s*(?:/(?:(?=\))|,\s*))?)', argspec)
166
+ if m:
167
+ argspec = '(' + argspec[m.end():]
168
+ return argspec
169
+ return None
170
+
171
+ def classname(object, modname):
172
+ """Get a class name and qualify it with a module name if necessary."""
173
+ name = object.__name__
174
+ if object.__module__ != modname:
175
+ name = object.__module__ + '.' + name
176
+ return name
177
+
178
+ def parentname(object, modname):
179
+ """Get a name of the enclosing class (qualified it with a module name
180
+ if necessary) or module."""
181
+ if '.' in object.__qualname__:
182
+ name = object.__qualname__.rpartition('.')[0]
183
+ if object.__module__ != modname and object.__module__ is not None:
184
+ return object.__module__ + '.' + name
185
+ else:
186
+ return name
187
+ else:
188
+ if object.__module__ != modname:
189
+ return object.__module__
190
+
191
+ def isdata(object):
192
+ """Check if an object is of a type that probably means it's data."""
193
+ return not (inspect.ismodule(object) or inspect.isclass(object) or
194
+ inspect.isroutine(object) or inspect.isframe(object) or
195
+ inspect.istraceback(object) or inspect.iscode(object))
196
+
197
+ def replace(text, *pairs):
198
+ """Do a series of global replacements on a string."""
199
+ while pairs:
200
+ text = pairs[1].join(text.split(pairs[0]))
201
+ pairs = pairs[2:]
202
+ return text
203
+
204
+ def cram(text, maxlen):
205
+ """Omit part of a string if needed to make it fit in a maximum length."""
206
+ if len(text) > maxlen:
207
+ pre = max(0, (maxlen-3)//2)
208
+ post = max(0, maxlen-3-pre)
209
+ return text[:pre] + '...' + text[len(text)-post:]
210
+ return text
211
+
212
+ _re_stripid = re.compile(r' at 0x[0-9a-f]{6,16}(>+)$', re.IGNORECASE)
213
+ def stripid(text):
214
+ """Remove the hexadecimal id from a Python object representation."""
215
+ # The behaviour of %p is implementation-dependent in terms of case.
216
+ return _re_stripid.sub(r'\1', text)
217
+
218
+ def _is_bound_method(fn):
219
+ """
220
+ Returns True if fn is a bound method, regardless of whether
221
+ fn was implemented in Python or in C.
222
+ """
223
+ if inspect.ismethod(fn):
224
+ return True
225
+ if inspect.isbuiltin(fn):
226
+ self = getattr(fn, '__self__', None)
227
+ return not (inspect.ismodule(self) or (self is None))
228
+ return False
229
+
230
+
231
+ def allmethods(cl):
232
+ methods = {}
233
+ for key, value in inspect.getmembers(cl, inspect.isroutine):
234
+ methods[key] = 1
235
+ for base in cl.__bases__:
236
+ methods.update(allmethods(base)) # all your base are belong to us
237
+ for key in methods.keys():
238
+ methods[key] = getattr(cl, key)
239
+ return methods
240
+
241
+ def _split_list(s, predicate):
242
+ """Split sequence s via predicate, and return pair ([true], [false]).
243
+
244
+ The return value is a 2-tuple of lists,
245
+ ([x for x in s if predicate(x)],
246
+ [x for x in s if not predicate(x)])
247
+ """
248
+
249
+ yes = []
250
+ no = []
251
+ for x in s:
252
+ if predicate(x):
253
+ yes.append(x)
254
+ else:
255
+ no.append(x)
256
+ return yes, no
257
+
258
+ _future_feature_names = set(__future__.all_feature_names)
259
+
260
+ def visiblename(name, all=None, obj=None):
261
+ """Decide whether to show documentation on a variable."""
262
+ # Certain special names are redundant or internal.
263
+ # XXX Remove __initializing__?
264
+ if name in {'__author__', '__builtins__', '__credits__', '__date__',
265
+ '__doc__', '__file__', '__spec__', '__loader__', '__module__',
266
+ '__name__', '__package__', '__path__', '__qualname__',
267
+ '__slots__', '__version__', '__static_attributes__',
268
+ '__firstlineno__', '__annotate_func__',
269
+ '__annotations_cache__'}:
270
+ return 0
271
+ # Private names are hidden, but special names are displayed.
272
+ if name.startswith('__') and name.endswith('__'): return 1
273
+ # Namedtuples have public fields and methods with a single leading underscore
274
+ if name.startswith('_') and hasattr(obj, '_fields'):
275
+ return True
276
+ # Ignore __future__ imports.
277
+ if obj is not __future__ and name in _future_feature_names:
278
+ if isinstance(getattr(obj, name, None), __future__._Feature):
279
+ return False
280
+ if all is not None:
281
+ # only document that which the programmer exported in __all__
282
+ return name in all
283
+ else:
284
+ return not name.startswith('_')
285
+
286
+ def classify_class_attrs(object):
287
+ """Wrap inspect.classify_class_attrs, with fixup for data descriptors and bound methods."""
288
+ results = []
289
+ for (name, kind, cls, value) in inspect.classify_class_attrs(object):
290
+ if inspect.isdatadescriptor(value):
291
+ kind = 'data descriptor'
292
+ if isinstance(value, property) and value.fset is None:
293
+ kind = 'readonly property'
294
+ elif kind == 'method' and _is_bound_method(value):
295
+ kind = 'static method'
296
+ results.append((name, kind, cls, value))
297
+ return results
298
+
299
+ def sort_attributes(attrs, object):
300
+ 'Sort the attrs list in-place by _fields and then alphabetically by name'
301
+ # This allows data descriptors to be ordered according
302
+ # to a _fields attribute if present.
303
+ fields = getattr(object, '_fields', [])
304
+ try:
305
+ field_order = {name : i-len(fields) for (i, name) in enumerate(fields)}
306
+ except TypeError:
307
+ field_order = {}
308
+ keyfunc = lambda attr: (field_order.get(attr[0], 0), attr[0])
309
+ attrs.sort(key=keyfunc)
310
+
311
+ # ----------------------------------------------------- module manipulation
312
+
313
+ def ispackage(path):
314
+ """Guess whether a path refers to a package directory."""
315
+ warnings.warn('The pydoc.ispackage() function is deprecated',
316
+ DeprecationWarning, stacklevel=2)
317
+ if os.path.isdir(path):
318
+ for ext in ('.py', '.pyc'):
319
+ if os.path.isfile(os.path.join(path, '__init__' + ext)):
320
+ return True
321
+ return False
322
+
323
+ def source_synopsis(file):
324
+ """Return the one-line summary of a file object, if present"""
325
+
326
+ string = ''
327
+ try:
328
+ tokens = tokenize.generate_tokens(file.readline)
329
+ for tok_type, tok_string, _, _, _ in tokens:
330
+ if tok_type == tokenize.STRING:
331
+ string += tok_string
332
+ elif tok_type == tokenize.NEWLINE:
333
+ with warnings.catch_warnings():
334
+ # Ignore the "invalid escape sequence" warning.
335
+ warnings.simplefilter("ignore", SyntaxWarning)
336
+ docstring = ast.literal_eval(string)
337
+ if not isinstance(docstring, str):
338
+ return None
339
+ return docstring.strip().split('\n')[0].strip()
340
+ elif tok_type == tokenize.OP and tok_string in ('(', ')'):
341
+ string += tok_string
342
+ elif tok_type not in (tokenize.COMMENT, tokenize.NL, tokenize.ENCODING):
343
+ return None
344
+ except (tokenize.TokenError, UnicodeDecodeError, SyntaxError):
345
+ return None
346
+ return None
347
+
348
+ def synopsis(filename, cache={}):
349
+ """Get the one-line summary out of a module file."""
350
+ mtime = os.stat(filename).st_mtime
351
+ lastupdate, result = cache.get(filename, (None, None))
352
+ if lastupdate is None or lastupdate < mtime:
353
+ # Look for binary suffixes first, falling back to source.
354
+ if filename.endswith(tuple(importlib.machinery.BYTECODE_SUFFIXES)):
355
+ loader_cls = importlib.machinery.SourcelessFileLoader
356
+ elif filename.endswith(tuple(importlib.machinery.EXTENSION_SUFFIXES)):
357
+ loader_cls = importlib.machinery.ExtensionFileLoader
358
+ else:
359
+ loader_cls = None
360
+ # Now handle the choice.
361
+ if loader_cls is None:
362
+ # Must be a source file.
363
+ try:
364
+ file = tokenize.open(filename)
365
+ except OSError:
366
+ # module can't be opened, so skip it
367
+ return None
368
+ # text modules can be directly examined
369
+ with file:
370
+ result = source_synopsis(file)
371
+ else:
372
+ # Must be a binary module, which has to be imported.
373
+ loader = loader_cls('__temp__', filename)
374
+ # XXX We probably don't need to pass in the loader here.
375
+ spec = importlib.util.spec_from_file_location('__temp__', filename,
376
+ loader=loader)
377
+ try:
378
+ module = importlib._bootstrap._load(spec)
379
+ except:
380
+ return None
381
+ del sys.modules['__temp__']
382
+ result = module.__doc__.splitlines()[0] if module.__doc__ else None
383
+ # Cache the result.
384
+ cache[filename] = (mtime, result)
385
+ return result
386
+
387
+ class ErrorDuringImport(Exception):
388
+ """Errors that occurred while trying to import something to document it."""
389
+ def __init__(self, filename, exc_info):
390
+ if not isinstance(exc_info, tuple):
391
+ assert isinstance(exc_info, BaseException)
392
+ self.exc = type(exc_info)
393
+ self.value = exc_info
394
+ self.tb = exc_info.__traceback__
395
+ else:
396
+ warnings.warn("A tuple value for exc_info is deprecated, use an exception instance",
397
+ DeprecationWarning)
398
+
399
+ self.exc, self.value, self.tb = exc_info
400
+ self.filename = filename
401
+
402
+ def __str__(self):
403
+ exc = self.exc.__name__
404
+ return 'problem in %s - %s: %s' % (self.filename, exc, self.value)
405
+
406
+ def importfile(path):
407
+ """Import a Python source file or compiled file given its path."""
408
+ magic = importlib.util.MAGIC_NUMBER
409
+ with open(path, 'rb') as file:
410
+ is_bytecode = magic == file.read(len(magic))
411
+ filename = os.path.basename(path)
412
+ name, ext = os.path.splitext(filename)
413
+ if is_bytecode:
414
+ loader = importlib._bootstrap_external.SourcelessFileLoader(name, path)
415
+ else:
416
+ loader = importlib._bootstrap_external.SourceFileLoader(name, path)
417
+ # XXX We probably don't need to pass in the loader here.
418
+ spec = importlib.util.spec_from_file_location(name, path, loader=loader)
419
+ try:
420
+ return importlib._bootstrap._load(spec)
421
+ except BaseException as err:
422
+ raise ErrorDuringImport(path, err)
423
+
424
+ def safeimport(path, forceload=0, cache={}):
425
+ """Import a module; handle errors; return None if the module isn't found.
426
+
427
+ If the module *is* found but an exception occurs, it's wrapped in an
428
+ ErrorDuringImport exception and reraised. Unlike __import__, if a
429
+ package path is specified, the module at the end of the path is returned,
430
+ not the package at the beginning. If the optional 'forceload' argument
431
+ is 1, we reload the module from disk (unless it's a dynamic extension)."""
432
+ try:
433
+ # If forceload is 1 and the module has been previously loaded from
434
+ # disk, we always have to reload the module. Checking the file's
435
+ # mtime isn't good enough (e.g. the module could contain a class
436
+ # that inherits from another module that has changed).
437
+ if forceload and path in sys.modules:
438
+ if path not in sys.builtin_module_names:
439
+ # Remove the module from sys.modules and re-import to try
440
+ # and avoid problems with partially loaded modules.
441
+ # Also remove any submodules because they won't appear
442
+ # in the newly loaded module's namespace if they're already
443
+ # in sys.modules.
444
+ subs = [m for m in sys.modules if m.startswith(path + '.')]
445
+ for key in [path] + subs:
446
+ # Prevent garbage collection.
447
+ cache[key] = sys.modules[key]
448
+ del sys.modules[key]
449
+ module = importlib.import_module(path)
450
+ except BaseException as err:
451
+ # Did the error occur before or after the module was found?
452
+ if path in sys.modules:
453
+ # An error occurred while executing the imported module.
454
+ raise ErrorDuringImport(sys.modules[path].__file__, err)
455
+ elif type(err) is SyntaxError:
456
+ # A SyntaxError occurred before we could execute the module.
457
+ raise ErrorDuringImport(err.filename, err)
458
+ elif isinstance(err, ImportError) and err.name == path:
459
+ # No such module in the path.
460
+ return None
461
+ else:
462
+ # Some other error occurred during the importing process.
463
+ raise ErrorDuringImport(path, err)
464
+ return module
465
+
466
+ # ---------------------------------------------------- formatter base class
467
+
468
+ class Doc:
469
+
470
+ PYTHONDOCS = os.environ.get("PYTHONDOCS",
471
+ "https://docs.python.org/%d.%d/library"
472
+ % sys.version_info[:2])
473
+ STDLIB_DIR = sysconfig.get_path('stdlib')
474
+
475
+ def document(self, object, name=None, *args):
476
+ """Generate documentation for an object."""
477
+ args = (object, name) + args
478
+ # 'try' clause is to attempt to handle the possibility that inspect
479
+ # identifies something in a way that pydoc itself has issues handling;
480
+ # think 'super' and how it is a descriptor (which raises the exception
481
+ # by lacking a __name__ attribute) and an instance.
482
+ try:
483
+ if inspect.ismodule(object): return self.docmodule(*args)
484
+ if inspect.isclass(object): return self.docclass(*args)
485
+ if inspect.isroutine(object): return self.docroutine(*args)
486
+ except AttributeError:
487
+ pass
488
+ if inspect.isdatadescriptor(object): return self.docdata(*args)
489
+ return self.docother(*args)
490
+
491
+ def fail(self, object, name=None, *args):
492
+ """Raise an exception for unimplemented types."""
493
+ message = "don't know how to document object%s of type %s" % (
494
+ name and ' ' + repr(name), type(object).__name__)
495
+ raise TypeError(message)
496
+
497
+ docmodule = docclass = docroutine = docother = docproperty = docdata = fail
498
+
499
+ def getdocloc(self, object, basedir=None):
500
+ """Return the location of module docs or None"""
501
+ basedir = self.STDLIB_DIR if basedir is None else basedir
502
+ docloc = os.environ.get("PYTHONDOCS", self.PYTHONDOCS)
503
+
504
+ if (self._is_stdlib_module(object, basedir) and
505
+ object.__name__ not in ('xml.etree', 'test.test_pydoc.pydoc_mod')):
506
+
507
+ try:
508
+ from pydoc_data import module_docs
509
+ except ImportError:
510
+ module_docs = None
511
+
512
+ if module_docs and object.__name__ in module_docs.module_docs:
513
+ doc_name = module_docs.module_docs[object.__name__]
514
+ if docloc.startswith(("http://", "https://")):
515
+ docloc = "{}/{}".format(docloc.rstrip("/"), doc_name)
516
+ else:
517
+ docloc = os.path.join(docloc, doc_name)
518
+ else:
519
+ docloc = None
520
+ else:
521
+ docloc = None
522
+ return docloc
523
+
524
+ def _get_version(self, object):
525
+ if self._is_stdlib_module(object):
526
+ with warnings.catch_warnings():
527
+ warnings.simplefilter("ignore", DeprecationWarning)
528
+ version = getattr(object, '__version__', None)
529
+ else:
530
+ version = getattr(object, '__version__', None)
531
+ return '' if version is None else str(version)
532
+
533
+ def _is_stdlib_module(self, object, basedir=None):
534
+ basedir = self.STDLIB_DIR if basedir is None else basedir
535
+
536
+ try:
537
+ file = inspect.getabsfile(object)
538
+ except TypeError:
539
+ file = '(built-in)'
540
+
541
+ if sysconfig.is_python_build():
542
+ srcdir = sysconfig.get_config_var('srcdir')
543
+ if srcdir:
544
+ basedir = os.path.join(srcdir, 'Lib')
545
+
546
+ basedir = os.path.normcase(basedir)
547
+ return (isinstance(object, type(os)) and
548
+ (object.__name__ in ('errno', 'exceptions', 'gc',
549
+ 'marshal', 'posix', 'signal', 'sys',
550
+ '_thread', 'zipimport')
551
+ or (file.startswith(basedir) and
552
+ not file.startswith(os.path.join(basedir, 'site-packages')))))
553
+
554
+ # -------------------------------------------- HTML documentation generator
555
+
556
+ class HTMLRepr(Repr):
557
+ """Class for safely making an HTML representation of a Python object."""
558
+ def __init__(self):
559
+ Repr.__init__(self)
560
+ self.maxlist = self.maxtuple = 20
561
+ self.maxdict = 10
562
+ self.maxstring = self.maxother = 100
563
+
564
+ def escape(self, text):
565
+ return replace(text, '&', '&amp;', '<', '&lt;', '>', '&gt;')
566
+
567
+ def repr(self, object):
568
+ return Repr.repr(self, object)
569
+
570
+ def repr1(self, x, level):
571
+ if hasattr(type(x), '__name__'):
572
+ methodname = 'repr_' + '_'.join(type(x).__name__.split())
573
+ if hasattr(self, methodname):
574
+ return getattr(self, methodname)(x, level)
575
+ return self.escape(cram(stripid(repr(x)), self.maxother))
576
+
577
+ def repr_string(self, x, level):
578
+ test = cram(x, self.maxstring)
579
+ testrepr = repr(test)
580
+ if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
581
+ # Backslashes are only literal in the string and are never
582
+ # needed to make any special characters, so show a raw string.
583
+ return 'r' + testrepr[0] + self.escape(test) + testrepr[0]
584
+ return re.sub(r'((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)',
585
+ r'<span class="repr">\1</span>',
586
+ self.escape(testrepr))
587
+
588
+ repr_str = repr_string
589
+
590
+ def repr_instance(self, x, level):
591
+ try:
592
+ return self.escape(cram(stripid(repr(x)), self.maxstring))
593
+ except:
594
+ return self.escape('<%s instance>' % x.__class__.__name__)
595
+
596
+ repr_unicode = repr_string
597
+
598
+ class HTMLDoc(Doc):
599
+ """Formatter class for HTML documentation."""
600
+
601
+ # ------------------------------------------- HTML formatting utilities
602
+
603
+ _repr_instance = HTMLRepr()
604
+ repr = _repr_instance.repr
605
+ escape = _repr_instance.escape
606
+
607
+ def page(self, title, contents):
608
+ """Format an HTML page."""
609
+ return '''\
610
+ <!DOCTYPE html>
611
+ <html lang="en">
612
+ <head>
613
+ <meta charset="utf-8">
614
+ <title>Python: %s</title>
615
+ </head><body>
616
+ %s
617
+ </body></html>''' % (title, contents)
618
+
619
+ def heading(self, title, extras=''):
620
+ """Format a page heading."""
621
+ return '''
622
+ <table class="heading">
623
+ <tr class="heading-text decor">
624
+ <td class="title">&nbsp;<br>%s</td>
625
+ <td class="extra">%s</td></tr></table>
626
+ ''' % (title, extras or '&nbsp;')
627
+
628
+ def section(self, title, cls, contents, width=6,
629
+ prelude='', marginalia=None, gap='&nbsp;'):
630
+ """Format a section with a heading."""
631
+ if marginalia is None:
632
+ marginalia = '<span class="code">' + '&nbsp;' * width + '</span>'
633
+ result = '''<p>
634
+ <table class="section">
635
+ <tr class="decor %s-decor heading-text">
636
+ <td class="section-title" colspan=3>&nbsp;<br>%s</td></tr>
637
+ ''' % (cls, title)
638
+ if prelude:
639
+ result = result + '''
640
+ <tr><td class="decor %s-decor" rowspan=2>%s</td>
641
+ <td class="decor %s-decor" colspan=2>%s</td></tr>
642
+ <tr><td>%s</td>''' % (cls, marginalia, cls, prelude, gap)
643
+ else:
644
+ result = result + '''
645
+ <tr><td class="decor %s-decor">%s</td><td>%s</td>''' % (cls, marginalia, gap)
646
+
647
+ return result + '\n<td class="singlecolumn">%s</td></tr></table>' % contents
648
+
649
+ def bigsection(self, title, *args):
650
+ """Format a section with a big heading."""
651
+ title = '<strong class="bigsection">%s</strong>' % title
652
+ return self.section(title, *args)
653
+
654
+ def preformat(self, text):
655
+ """Format literal preformatted text."""
656
+ text = self.escape(text.expandtabs())
657
+ return replace(text, '\n\n', '\n \n', '\n\n', '\n \n',
658
+ ' ', '&nbsp;', '\n', '<br>\n')
659
+
660
+ def multicolumn(self, list, format):
661
+ """Format a list of items into a multi-column list."""
662
+ result = ''
663
+ rows = (len(list) + 3) // 4
664
+ for col in range(4):
665
+ result = result + '<td class="multicolumn">'
666
+ for i in range(rows*col, rows*col+rows):
667
+ if i < len(list):
668
+ result = result + format(list[i]) + '<br>\n'
669
+ result = result + '</td>'
670
+ return '<table><tr>%s</tr></table>' % result
671
+
672
+ def grey(self, text): return '<span class="grey">%s</span>' % text
673
+
674
+ def namelink(self, name, *dicts):
675
+ """Make a link for an identifier, given name-to-URL mappings."""
676
+ for dict in dicts:
677
+ if name in dict:
678
+ return '<a href="%s">%s</a>' % (dict[name], name)
679
+ return name
680
+
681
+ def classlink(self, object, modname):
682
+ """Make a link for a class."""
683
+ name, module = object.__name__, sys.modules.get(object.__module__)
684
+ if hasattr(module, name) and getattr(module, name) is object:
685
+ return '<a href="%s.html#%s">%s</a>' % (
686
+ module.__name__, name, classname(object, modname))
687
+ return classname(object, modname)
688
+
689
+ def parentlink(self, object, modname):
690
+ """Make a link for the enclosing class or module."""
691
+ link = None
692
+ name, module = object.__name__, sys.modules.get(object.__module__)
693
+ if hasattr(module, name) and getattr(module, name) is object:
694
+ if '.' in object.__qualname__:
695
+ name = object.__qualname__.rpartition('.')[0]
696
+ if object.__module__ != modname:
697
+ link = '%s.html#%s' % (module.__name__, name)
698
+ else:
699
+ link = '#%s' % name
700
+ else:
701
+ if object.__module__ != modname:
702
+ link = '%s.html' % module.__name__
703
+ if link:
704
+ return '<a href="%s">%s</a>' % (link, parentname(object, modname))
705
+ else:
706
+ return parentname(object, modname)
707
+
708
+ def modulelink(self, object):
709
+ """Make a link for a module."""
710
+ return '<a href="%s.html">%s</a>' % (object.__name__, object.__name__)
711
+
712
+ def modpkglink(self, modpkginfo):
713
+ """Make a link for a module or package to display in an index."""
714
+ name, path, ispackage, shadowed = modpkginfo
715
+ if shadowed:
716
+ return self.grey(name)
717
+ if path:
718
+ url = '%s.%s.html' % (path, name)
719
+ else:
720
+ url = '%s.html' % name
721
+ if ispackage:
722
+ text = '<strong>%s</strong>&nbsp;(package)' % name
723
+ else:
724
+ text = name
725
+ return '<a href="%s">%s</a>' % (url, text)
726
+
727
+ def filelink(self, url, path):
728
+ """Make a link to source file."""
729
+ return '<a href="file:%s">%s</a>' % (url, path)
730
+
731
+ def markup(self, text, escape=None, funcs={}, classes={}, methods={}):
732
+ """Mark up some plain text, given a context of symbols to look for.
733
+ Each context dictionary maps object names to anchor names."""
734
+ escape = escape or self.escape
735
+ results = []
736
+ here = 0
737
+ pattern = re.compile(r'\b((http|https|ftp)://\S+[\w/]|'
738
+ r'RFC[- ]?(\d+)|'
739
+ r'PEP[- ]?(\d+)|'
740
+ r'(self\.)?(\w+))')
741
+ while match := pattern.search(text, here):
742
+ start, end = match.span()
743
+ results.append(escape(text[here:start]))
744
+
745
+ all, scheme, rfc, pep, selfdot, name = match.groups()
746
+ if scheme:
747
+ url = escape(all).replace('"', '&quot;')
748
+ results.append('<a href="%s">%s</a>' % (url, url))
749
+ elif rfc:
750
+ url = 'https://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
751
+ results.append('<a href="%s">%s</a>' % (url, escape(all)))
752
+ elif pep:
753
+ url = 'https://peps.python.org/pep-%04d/' % int(pep)
754
+ results.append('<a href="%s">%s</a>' % (url, escape(all)))
755
+ elif selfdot:
756
+ # Create a link for methods like 'self.method(...)'
757
+ # and use <strong> for attributes like 'self.attr'
758
+ if text[end:end+1] == '(':
759
+ results.append('self.' + self.namelink(name, methods))
760
+ else:
761
+ results.append('self.<strong>%s</strong>' % name)
762
+ elif text[end:end+1] == '(':
763
+ results.append(self.namelink(name, methods, funcs, classes))
764
+ else:
765
+ results.append(self.namelink(name, classes))
766
+ here = end
767
+ results.append(escape(text[here:]))
768
+ return ''.join(results)
769
+
770
+ # ---------------------------------------------- type-specific routines
771
+
772
+ def formattree(self, tree, modname, parent=None):
773
+ """Produce HTML for a class tree as given by inspect.getclasstree()."""
774
+ result = ''
775
+ for entry in tree:
776
+ if isinstance(entry, tuple):
777
+ c, bases = entry
778
+ result = result + '<dt class="heading-text">'
779
+ result = result + self.classlink(c, modname)
780
+ if bases and bases != (parent,):
781
+ parents = []
782
+ for base in bases:
783
+ parents.append(self.classlink(base, modname))
784
+ result = result + '(' + ', '.join(parents) + ')'
785
+ result = result + '\n</dt>'
786
+ elif isinstance(entry, list):
787
+ result = result + '<dd>\n%s</dd>\n' % self.formattree(
788
+ entry, modname, c)
789
+ return '<dl>\n%s</dl>\n' % result
790
+
791
+ def docmodule(self, object, name=None, mod=None, *ignored):
792
+ """Produce HTML documentation for a module object."""
793
+ name = object.__name__ # ignore the passed-in name
794
+ try:
795
+ all = object.__all__
796
+ except AttributeError:
797
+ all = None
798
+ parts = name.split('.')
799
+ links = []
800
+ for i in range(len(parts)-1):
801
+ links.append(
802
+ '<a href="%s.html" class="white">%s</a>' %
803
+ ('.'.join(parts[:i+1]), parts[i]))
804
+ linkedname = '.'.join(links + parts[-1:])
805
+ head = '<strong class="title">%s</strong>' % linkedname
806
+ try:
807
+ path = inspect.getabsfile(object)
808
+ import urllib.request
809
+ url = urllib.request.pathname2url(path)
810
+ filelink = self.filelink(url, path)
811
+ except TypeError:
812
+ filelink = '(built-in)'
813
+ info = []
814
+
815
+ if version := self._get_version(object):
816
+ if version[:11] == '$' + 'Revision: ' and version[-1:] == '$':
817
+ version = version[11:-1].strip()
818
+ info.append('version %s' % self.escape(version))
819
+ if hasattr(object, '__date__'):
820
+ info.append(self.escape(str(object.__date__)))
821
+ if info:
822
+ head = head + ' (%s)' % ', '.join(info)
823
+ docloc = self.getdocloc(object)
824
+ if docloc is not None:
825
+ docloc = '<br><a href="%(docloc)s">Module Reference</a>' % locals()
826
+ else:
827
+ docloc = ''
828
+ result = self.heading(head, '<a href=".">index</a><br>' + filelink + docloc)
829
+
830
+ modules = inspect.getmembers(object, inspect.ismodule)
831
+
832
+ classes, cdict = [], {}
833
+ for key, value in inspect.getmembers(object, inspect.isclass):
834
+ # if __all__ exists, believe it. Otherwise use old heuristic.
835
+ if (all is not None or
836
+ (inspect.getmodule(value) or object) is object):
837
+ if visiblename(key, all, object):
838
+ classes.append((key, value))
839
+ cdict[key] = cdict[value] = '#' + key
840
+ for key, value in classes:
841
+ for base in value.__bases__:
842
+ key, modname = base.__name__, base.__module__
843
+ module = sys.modules.get(modname)
844
+ if modname != name and module and hasattr(module, key):
845
+ if getattr(module, key) is base:
846
+ if not key in cdict:
847
+ cdict[key] = cdict[base] = modname + '.html#' + key
848
+ funcs, fdict = [], {}
849
+ for key, value in inspect.getmembers(object, inspect.isroutine):
850
+ # if __all__ exists, believe it. Otherwise use a heuristic.
851
+ if (all is not None
852
+ or inspect.isbuiltin(value)
853
+ or (inspect.getmodule(value) or object) is object):
854
+ if visiblename(key, all, object):
855
+ funcs.append((key, value))
856
+ fdict[key] = '#-' + key
857
+ if inspect.isfunction(value): fdict[value] = fdict[key]
858
+ data = []
859
+ for key, value in inspect.getmembers(object, isdata):
860
+ if visiblename(key, all, object):
861
+ data.append((key, value))
862
+
863
+ doc = self.markup(getdoc(object), self.preformat, fdict, cdict)
864
+ doc = doc and '<span class="code">%s</span>' % doc
865
+ result = result + '<p>%s</p>\n' % doc
866
+
867
+ if hasattr(object, '__path__'):
868
+ modpkgs = []
869
+ for importer, modname, ispkg in pkgutil.iter_modules(object.__path__):
870
+ modpkgs.append((modname, name, ispkg, 0))
871
+ modpkgs.sort()
872
+ contents = self.multicolumn(modpkgs, self.modpkglink)
873
+ result = result + self.bigsection(
874
+ 'Package Contents', 'pkg-content', contents)
875
+ elif modules:
876
+ contents = self.multicolumn(
877
+ modules, lambda t: self.modulelink(t[1]))
878
+ result = result + self.bigsection(
879
+ 'Modules', 'pkg-content', contents)
880
+
881
+ if classes:
882
+ classlist = [value for (key, value) in classes]
883
+ contents = [
884
+ self.formattree(inspect.getclasstree(classlist, 1), name)]
885
+ for key, value in classes:
886
+ contents.append(self.document(value, key, name, fdict, cdict))
887
+ result = result + self.bigsection(
888
+ 'Classes', 'index', ' '.join(contents))
889
+ if funcs:
890
+ contents = []
891
+ for key, value in funcs:
892
+ contents.append(self.document(value, key, name, fdict, cdict))
893
+ result = result + self.bigsection(
894
+ 'Functions', 'functions', ' '.join(contents))
895
+ if data:
896
+ contents = []
897
+ for key, value in data:
898
+ contents.append(self.document(value, key))
899
+ result = result + self.bigsection(
900
+ 'Data', 'data', '<br>\n'.join(contents))
901
+ if hasattr(object, '__author__'):
902
+ contents = self.markup(str(object.__author__), self.preformat)
903
+ result = result + self.bigsection('Author', 'author', contents)
904
+ if hasattr(object, '__credits__'):
905
+ contents = self.markup(str(object.__credits__), self.preformat)
906
+ result = result + self.bigsection('Credits', 'credits', contents)
907
+
908
+ return result
909
+
910
+ def docclass(self, object, name=None, mod=None, funcs={}, classes={},
911
+ *ignored):
912
+ """Produce HTML documentation for a class object."""
913
+ realname = object.__name__
914
+ name = name or realname
915
+ bases = object.__bases__
916
+
917
+ contents = []
918
+ push = contents.append
919
+
920
+ # Cute little class to pump out a horizontal rule between sections.
921
+ class HorizontalRule:
922
+ def __init__(self):
923
+ self.needone = 0
924
+ def maybe(self):
925
+ if self.needone:
926
+ push('<hr>\n')
927
+ self.needone = 1
928
+ hr = HorizontalRule()
929
+
930
+ # List the mro, if non-trivial.
931
+ mro = deque(inspect.getmro(object))
932
+ if len(mro) > 2:
933
+ hr.maybe()
934
+ push('<dl><dt>Method resolution order:</dt>\n')
935
+ for base in mro:
936
+ push('<dd>%s</dd>\n' % self.classlink(base,
937
+ object.__module__))
938
+ push('</dl>\n')
939
+
940
+ def spill(msg, attrs, predicate):
941
+ ok, attrs = _split_list(attrs, predicate)
942
+ if ok:
943
+ hr.maybe()
944
+ push(msg)
945
+ for name, kind, homecls, value in ok:
946
+ try:
947
+ value = getattr(object, name)
948
+ except Exception:
949
+ # Some descriptors may meet a failure in their __get__.
950
+ # (bug #1785)
951
+ push(self.docdata(value, name, mod))
952
+ else:
953
+ push(self.document(value, name, mod,
954
+ funcs, classes, mdict, object, homecls))
955
+ push('\n')
956
+ return attrs
957
+
958
+ def spilldescriptors(msg, attrs, predicate):
959
+ ok, attrs = _split_list(attrs, predicate)
960
+ if ok:
961
+ hr.maybe()
962
+ push(msg)
963
+ for name, kind, homecls, value in ok:
964
+ push(self.docdata(value, name, mod))
965
+ return attrs
966
+
967
+ def spilldata(msg, attrs, predicate):
968
+ ok, attrs = _split_list(attrs, predicate)
969
+ if ok:
970
+ hr.maybe()
971
+ push(msg)
972
+ for name, kind, homecls, value in ok:
973
+ base = self.docother(getattr(object, name), name, mod)
974
+ doc = getdoc(value)
975
+ if not doc:
976
+ push('<dl><dt>%s</dl>\n' % base)
977
+ else:
978
+ doc = self.markup(getdoc(value), self.preformat,
979
+ funcs, classes, mdict)
980
+ doc = '<dd><span class="code">%s</span>' % doc
981
+ push('<dl><dt>%s%s</dl>\n' % (base, doc))
982
+ push('\n')
983
+ return attrs
984
+
985
+ attrs = [(name, kind, cls, value)
986
+ for name, kind, cls, value in classify_class_attrs(object)
987
+ if visiblename(name, obj=object)]
988
+
989
+ mdict = {}
990
+ for key, kind, homecls, value in attrs:
991
+ mdict[key] = anchor = '#' + name + '-' + key
992
+ try:
993
+ value = getattr(object, name)
994
+ except Exception:
995
+ # Some descriptors may meet a failure in their __get__.
996
+ # (bug #1785)
997
+ pass
998
+ try:
999
+ # The value may not be hashable (e.g., a data attr with
1000
+ # a dict or list value).
1001
+ mdict[value] = anchor
1002
+ except TypeError:
1003
+ pass
1004
+
1005
+ while attrs:
1006
+ if mro:
1007
+ thisclass = mro.popleft()
1008
+ else:
1009
+ thisclass = attrs[0][2]
1010
+ attrs, inherited = _split_list(attrs, lambda t: t[2] is thisclass)
1011
+
1012
+ if object is not builtins.object and thisclass is builtins.object:
1013
+ attrs = inherited
1014
+ continue
1015
+ elif thisclass is object:
1016
+ tag = 'defined here'
1017
+ else:
1018
+ tag = 'inherited from %s' % self.classlink(thisclass,
1019
+ object.__module__)
1020
+ tag += ':<br>\n'
1021
+
1022
+ sort_attributes(attrs, object)
1023
+
1024
+ # Pump out the attrs, segregated by kind.
1025
+ attrs = spill('Methods %s' % tag, attrs,
1026
+ lambda t: t[1] == 'method')
1027
+ attrs = spill('Class methods %s' % tag, attrs,
1028
+ lambda t: t[1] == 'class method')
1029
+ attrs = spill('Static methods %s' % tag, attrs,
1030
+ lambda t: t[1] == 'static method')
1031
+ attrs = spilldescriptors("Readonly properties %s" % tag, attrs,
1032
+ lambda t: t[1] == 'readonly property')
1033
+ attrs = spilldescriptors('Data descriptors %s' % tag, attrs,
1034
+ lambda t: t[1] == 'data descriptor')
1035
+ attrs = spilldata('Data and other attributes %s' % tag, attrs,
1036
+ lambda t: t[1] == 'data')
1037
+ assert attrs == []
1038
+ attrs = inherited
1039
+
1040
+ contents = ''.join(contents)
1041
+
1042
+ if name == realname:
1043
+ title = '<a name="%s">class <strong>%s</strong></a>' % (
1044
+ name, realname)
1045
+ else:
1046
+ title = '<strong>%s</strong> = <a name="%s">class %s</a>' % (
1047
+ name, name, realname)
1048
+ if bases:
1049
+ parents = []
1050
+ for base in bases:
1051
+ parents.append(self.classlink(base, object.__module__))
1052
+ title = title + '(%s)' % ', '.join(parents)
1053
+
1054
+ decl = ''
1055
+ argspec = _getargspec(object)
1056
+ if argspec and argspec != '()':
1057
+ decl = name + self.escape(argspec) + '\n\n'
1058
+
1059
+ doc = getdoc(object)
1060
+ if decl:
1061
+ doc = decl + (doc or '')
1062
+ doc = self.markup(doc, self.preformat, funcs, classes, mdict)
1063
+ doc = doc and '<span class="code">%s<br>&nbsp;</span>' % doc
1064
+
1065
+ return self.section(title, 'title', contents, 3, doc)
1066
+
1067
+ def formatvalue(self, object):
1068
+ """Format an argument default value as text."""
1069
+ return self.grey('=' + self.repr(object))
1070
+
1071
+ def docroutine(self, object, name=None, mod=None,
1072
+ funcs={}, classes={}, methods={}, cl=None, homecls=None):
1073
+ """Produce HTML documentation for a function or method object."""
1074
+ realname = object.__name__
1075
+ name = name or realname
1076
+ if homecls is None:
1077
+ homecls = cl
1078
+ anchor = ('' if cl is None else cl.__name__) + '-' + name
1079
+ note = ''
1080
+ skipdocs = False
1081
+ imfunc = None
1082
+ if _is_bound_method(object):
1083
+ imself = object.__self__
1084
+ if imself is cl:
1085
+ imfunc = getattr(object, '__func__', None)
1086
+ elif inspect.isclass(imself):
1087
+ note = ' class method of %s' % self.classlink(imself, mod)
1088
+ else:
1089
+ note = ' method of %s instance' % self.classlink(
1090
+ imself.__class__, mod)
1091
+ elif (inspect.ismethoddescriptor(object) or
1092
+ inspect.ismethodwrapper(object)):
1093
+ try:
1094
+ objclass = object.__objclass__
1095
+ except AttributeError:
1096
+ pass
1097
+ else:
1098
+ if cl is None:
1099
+ note = ' unbound %s method' % self.classlink(objclass, mod)
1100
+ elif objclass is not homecls:
1101
+ note = ' from ' + self.classlink(objclass, mod)
1102
+ else:
1103
+ imfunc = object
1104
+ if inspect.isfunction(imfunc) and homecls is not None and (
1105
+ imfunc.__module__ != homecls.__module__ or
1106
+ imfunc.__qualname__ != homecls.__qualname__ + '.' + realname):
1107
+ pname = self.parentlink(imfunc, mod)
1108
+ if pname:
1109
+ note = ' from %s' % pname
1110
+
1111
+ if (inspect.iscoroutinefunction(object) or
1112
+ inspect.isasyncgenfunction(object)):
1113
+ asyncqualifier = 'async '
1114
+ else:
1115
+ asyncqualifier = ''
1116
+
1117
+ if name == realname:
1118
+ title = '<a name="%s"><strong>%s</strong></a>' % (anchor, realname)
1119
+ else:
1120
+ if (cl is not None and
1121
+ inspect.getattr_static(cl, realname, []) is object):
1122
+ reallink = '<a href="#%s">%s</a>' % (
1123
+ cl.__name__ + '-' + realname, realname)
1124
+ skipdocs = True
1125
+ if note.startswith(' from '):
1126
+ note = ''
1127
+ else:
1128
+ reallink = realname
1129
+ title = '<a name="%s"><strong>%s</strong></a> = %s' % (
1130
+ anchor, name, reallink)
1131
+ argspec = None
1132
+ if inspect.isroutine(object):
1133
+ argspec = _getargspec(object)
1134
+ if argspec and realname == '<lambda>':
1135
+ title = '<strong>%s</strong> <em>lambda</em> ' % name
1136
+ # XXX lambda's won't usually have func_annotations['return']
1137
+ # since the syntax doesn't support but it is possible.
1138
+ # So removing parentheses isn't truly safe.
1139
+ if not object.__annotations__:
1140
+ argspec = argspec[1:-1] # remove parentheses
1141
+ if not argspec:
1142
+ argspec = '(...)'
1143
+
1144
+ decl = asyncqualifier + title + self.escape(argspec) + (note and
1145
+ self.grey('<span class="heading-text">%s</span>' % note))
1146
+
1147
+ if skipdocs:
1148
+ return '<dl><dt>%s</dt></dl>\n' % decl
1149
+ else:
1150
+ doc = self.markup(
1151
+ getdoc(object), self.preformat, funcs, classes, methods)
1152
+ doc = doc and '<dd><span class="code">%s</span></dd>' % doc
1153
+ return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
1154
+
1155
+ def docdata(self, object, name=None, mod=None, cl=None, *ignored):
1156
+ """Produce html documentation for a data descriptor."""
1157
+ results = []
1158
+ push = results.append
1159
+
1160
+ if name:
1161
+ push('<dl><dt><strong>%s</strong></dt>\n' % name)
1162
+ doc = self.markup(getdoc(object), self.preformat)
1163
+ if doc:
1164
+ push('<dd><span class="code">%s</span></dd>\n' % doc)
1165
+ push('</dl>\n')
1166
+
1167
+ return ''.join(results)
1168
+
1169
+ docproperty = docdata
1170
+
1171
+ def docother(self, object, name=None, mod=None, *ignored):
1172
+ """Produce HTML documentation for a data object."""
1173
+ lhs = name and '<strong>%s</strong> = ' % name or ''
1174
+ return lhs + self.repr(object)
1175
+
1176
+ def index(self, dir, shadowed=None):
1177
+ """Generate an HTML index for a directory of modules."""
1178
+ modpkgs = []
1179
+ if shadowed is None: shadowed = {}
1180
+ for importer, name, ispkg in pkgutil.iter_modules([dir]):
1181
+ if any((0xD800 <= ord(ch) <= 0xDFFF) for ch in name):
1182
+ # ignore a module if its name contains a surrogate character
1183
+ continue
1184
+ modpkgs.append((name, '', ispkg, name in shadowed))
1185
+ shadowed[name] = 1
1186
+
1187
+ modpkgs.sort()
1188
+ contents = self.multicolumn(modpkgs, self.modpkglink)
1189
+ return self.bigsection(dir, 'index', contents)
1190
+
1191
+ # -------------------------------------------- text documentation generator
1192
+
1193
+ class TextRepr(Repr):
1194
+ """Class for safely making a text representation of a Python object."""
1195
+ def __init__(self):
1196
+ Repr.__init__(self)
1197
+ self.maxlist = self.maxtuple = 20
1198
+ self.maxdict = 10
1199
+ self.maxstring = self.maxother = 100
1200
+
1201
+ def repr1(self, x, level):
1202
+ if hasattr(type(x), '__name__'):
1203
+ methodname = 'repr_' + '_'.join(type(x).__name__.split())
1204
+ if hasattr(self, methodname):
1205
+ return getattr(self, methodname)(x, level)
1206
+ return cram(stripid(repr(x)), self.maxother)
1207
+
1208
+ def repr_string(self, x, level):
1209
+ test = cram(x, self.maxstring)
1210
+ testrepr = repr(test)
1211
+ if '\\' in test and '\\' not in replace(testrepr, r'\\', ''):
1212
+ # Backslashes are only literal in the string and are never
1213
+ # needed to make any special characters, so show a raw string.
1214
+ return 'r' + testrepr[0] + test + testrepr[0]
1215
+ return testrepr
1216
+
1217
+ repr_str = repr_string
1218
+
1219
+ def repr_instance(self, x, level):
1220
+ try:
1221
+ return cram(stripid(repr(x)), self.maxstring)
1222
+ except:
1223
+ return '<%s instance>' % x.__class__.__name__
1224
+
1225
+ class TextDoc(Doc):
1226
+ """Formatter class for text documentation."""
1227
+
1228
+ # ------------------------------------------- text formatting utilities
1229
+
1230
+ _repr_instance = TextRepr()
1231
+ repr = _repr_instance.repr
1232
+
1233
+ def bold(self, text):
1234
+ """Format a string in bold by overstriking."""
1235
+ return ''.join(ch + '\b' + ch for ch in text)
1236
+
1237
+ def indent(self, text, prefix=' '):
1238
+ """Indent text by prepending a given prefix to each line."""
1239
+ if not text: return ''
1240
+ lines = [(prefix + line).rstrip() for line in text.split('\n')]
1241
+ return '\n'.join(lines)
1242
+
1243
+ def section(self, title, contents):
1244
+ """Format a section with a given heading."""
1245
+ clean_contents = self.indent(contents).rstrip()
1246
+ return self.bold(title) + '\n' + clean_contents + '\n\n'
1247
+
1248
+ # ---------------------------------------------- type-specific routines
1249
+
1250
+ def formattree(self, tree, modname, parent=None, prefix=''):
1251
+ """Render in text a class tree as returned by inspect.getclasstree()."""
1252
+ result = ''
1253
+ for entry in tree:
1254
+ if isinstance(entry, tuple):
1255
+ c, bases = entry
1256
+ result = result + prefix + classname(c, modname)
1257
+ if bases and bases != (parent,):
1258
+ parents = (classname(c, modname) for c in bases)
1259
+ result = result + '(%s)' % ', '.join(parents)
1260
+ result = result + '\n'
1261
+ elif isinstance(entry, list):
1262
+ result = result + self.formattree(
1263
+ entry, modname, c, prefix + ' ')
1264
+ return result
1265
+
1266
+ def docmodule(self, object, name=None, mod=None, *ignored):
1267
+ """Produce text documentation for a given module object."""
1268
+ name = object.__name__ # ignore the passed-in name
1269
+ synop, desc = splitdoc(getdoc(object))
1270
+ result = self.section('NAME', name + (synop and ' - ' + synop))
1271
+ all = getattr(object, '__all__', None)
1272
+ docloc = self.getdocloc(object)
1273
+ if docloc is not None:
1274
+ result = result + self.section('MODULE REFERENCE', docloc + """
1275
+
1276
+ The following documentation is automatically generated from the Python
1277
+ source files. It may be incomplete, incorrect or include features that
1278
+ are considered implementation detail and may vary between Python
1279
+ implementations. When in doubt, consult the module reference at the
1280
+ location listed above.
1281
+ """)
1282
+
1283
+ if desc:
1284
+ result = result + self.section('DESCRIPTION', desc)
1285
+
1286
+ classes = []
1287
+ for key, value in inspect.getmembers(object, inspect.isclass):
1288
+ # if __all__ exists, believe it. Otherwise use old heuristic.
1289
+ if (all is not None
1290
+ or (inspect.getmodule(value) or object) is object):
1291
+ if visiblename(key, all, object):
1292
+ classes.append((key, value))
1293
+ funcs = []
1294
+ for key, value in inspect.getmembers(object, inspect.isroutine):
1295
+ # if __all__ exists, believe it. Otherwise use a heuristic.
1296
+ if (all is not None
1297
+ or inspect.isbuiltin(value)
1298
+ or (inspect.getmodule(value) or object) is object):
1299
+ if visiblename(key, all, object):
1300
+ funcs.append((key, value))
1301
+ data = []
1302
+ for key, value in inspect.getmembers(object, isdata):
1303
+ if visiblename(key, all, object):
1304
+ data.append((key, value))
1305
+
1306
+ modpkgs = []
1307
+ modpkgs_names = set()
1308
+ if hasattr(object, '__path__'):
1309
+ for importer, modname, ispkg in pkgutil.iter_modules(object.__path__):
1310
+ modpkgs_names.add(modname)
1311
+ if ispkg:
1312
+ modpkgs.append(modname + ' (package)')
1313
+ else:
1314
+ modpkgs.append(modname)
1315
+
1316
+ modpkgs.sort()
1317
+ result = result + self.section(
1318
+ 'PACKAGE CONTENTS', '\n'.join(modpkgs))
1319
+
1320
+ # Detect submodules as sometimes created by C extensions
1321
+ submodules = []
1322
+ for key, value in inspect.getmembers(object, inspect.ismodule):
1323
+ if value.__name__.startswith(name + '.') and key not in modpkgs_names:
1324
+ submodules.append(key)
1325
+ if submodules:
1326
+ submodules.sort()
1327
+ result = result + self.section(
1328
+ 'SUBMODULES', '\n'.join(submodules))
1329
+
1330
+ if classes:
1331
+ classlist = [value for key, value in classes]
1332
+ contents = [self.formattree(
1333
+ inspect.getclasstree(classlist, 1), name)]
1334
+ for key, value in classes:
1335
+ contents.append(self.document(value, key, name))
1336
+ result = result + self.section('CLASSES', '\n'.join(contents))
1337
+
1338
+ if funcs:
1339
+ contents = []
1340
+ for key, value in funcs:
1341
+ contents.append(self.document(value, key, name))
1342
+ result = result + self.section('FUNCTIONS', '\n'.join(contents))
1343
+
1344
+ if data:
1345
+ contents = []
1346
+ for key, value in data:
1347
+ contents.append(self.docother(value, key, name, maxlen=70))
1348
+ result = result + self.section('DATA', '\n'.join(contents))
1349
+
1350
+ if version := self._get_version(object):
1351
+ if version[:11] == '$' + 'Revision: ' and version[-1:] == '$':
1352
+ version = version[11:-1].strip()
1353
+ result = result + self.section('VERSION', version)
1354
+ if hasattr(object, '__date__'):
1355
+ result = result + self.section('DATE', str(object.__date__))
1356
+ if hasattr(object, '__author__'):
1357
+ result = result + self.section('AUTHOR', str(object.__author__))
1358
+ if hasattr(object, '__credits__'):
1359
+ result = result + self.section('CREDITS', str(object.__credits__))
1360
+ try:
1361
+ file = inspect.getabsfile(object)
1362
+ except TypeError:
1363
+ file = '(built-in)'
1364
+ result = result + self.section('FILE', file)
1365
+ return result
1366
+
1367
+ def docclass(self, object, name=None, mod=None, *ignored):
1368
+ """Produce text documentation for a given class object."""
1369
+ realname = object.__name__
1370
+ name = name or realname
1371
+ bases = object.__bases__
1372
+
1373
+ def makename(c, m=object.__module__):
1374
+ return classname(c, m)
1375
+
1376
+ if name == realname:
1377
+ title = 'class ' + self.bold(realname)
1378
+ else:
1379
+ title = self.bold(name) + ' = class ' + realname
1380
+ if bases:
1381
+ parents = map(makename, bases)
1382
+ title = title + '(%s)' % ', '.join(parents)
1383
+
1384
+ contents = []
1385
+ push = contents.append
1386
+
1387
+ argspec = _getargspec(object)
1388
+ if argspec and argspec != '()':
1389
+ push(name + argspec + '\n')
1390
+
1391
+ doc = getdoc(object)
1392
+ if doc:
1393
+ push(doc + '\n')
1394
+
1395
+ # List the mro, if non-trivial.
1396
+ mro = deque(inspect.getmro(object))
1397
+ if len(mro) > 2:
1398
+ push("Method resolution order:")
1399
+ for base in mro:
1400
+ push(' ' + makename(base))
1401
+ push('')
1402
+
1403
+ # List the built-in subclasses, if any:
1404
+ subclasses = sorted(
1405
+ (str(cls.__name__) for cls in type.__subclasses__(object)
1406
+ if (not cls.__name__.startswith("_") and
1407
+ getattr(cls, '__module__', '') == "builtins")),
1408
+ key=str.lower
1409
+ )
1410
+ no_of_subclasses = len(subclasses)
1411
+ MAX_SUBCLASSES_TO_DISPLAY = 4
1412
+ if subclasses:
1413
+ push("Built-in subclasses:")
1414
+ for subclassname in subclasses[:MAX_SUBCLASSES_TO_DISPLAY]:
1415
+ push(' ' + subclassname)
1416
+ if no_of_subclasses > MAX_SUBCLASSES_TO_DISPLAY:
1417
+ push(' ... and ' +
1418
+ str(no_of_subclasses - MAX_SUBCLASSES_TO_DISPLAY) +
1419
+ ' other subclasses')
1420
+ push('')
1421
+
1422
+ # Cute little class to pump out a horizontal rule between sections.
1423
+ class HorizontalRule:
1424
+ def __init__(self):
1425
+ self.needone = 0
1426
+ def maybe(self):
1427
+ if self.needone:
1428
+ push('-' * 70)
1429
+ self.needone = 1
1430
+ hr = HorizontalRule()
1431
+
1432
+ def spill(msg, attrs, predicate):
1433
+ ok, attrs = _split_list(attrs, predicate)
1434
+ if ok:
1435
+ hr.maybe()
1436
+ push(msg)
1437
+ for name, kind, homecls, value in ok:
1438
+ try:
1439
+ value = getattr(object, name)
1440
+ except Exception:
1441
+ # Some descriptors may meet a failure in their __get__.
1442
+ # (bug #1785)
1443
+ push(self.docdata(value, name, mod))
1444
+ else:
1445
+ push(self.document(value,
1446
+ name, mod, object, homecls))
1447
+ return attrs
1448
+
1449
+ def spilldescriptors(msg, attrs, predicate):
1450
+ ok, attrs = _split_list(attrs, predicate)
1451
+ if ok:
1452
+ hr.maybe()
1453
+ push(msg)
1454
+ for name, kind, homecls, value in ok:
1455
+ push(self.docdata(value, name, mod))
1456
+ return attrs
1457
+
1458
+ def spilldata(msg, attrs, predicate):
1459
+ ok, attrs = _split_list(attrs, predicate)
1460
+ if ok:
1461
+ hr.maybe()
1462
+ push(msg)
1463
+ for name, kind, homecls, value in ok:
1464
+ doc = getdoc(value)
1465
+ try:
1466
+ obj = getattr(object, name)
1467
+ except AttributeError:
1468
+ obj = homecls.__dict__[name]
1469
+ push(self.docother(obj, name, mod, maxlen=70, doc=doc) +
1470
+ '\n')
1471
+ return attrs
1472
+
1473
+ attrs = [(name, kind, cls, value)
1474
+ for name, kind, cls, value in classify_class_attrs(object)
1475
+ if visiblename(name, obj=object)]
1476
+
1477
+ while attrs:
1478
+ if mro:
1479
+ thisclass = mro.popleft()
1480
+ else:
1481
+ thisclass = attrs[0][2]
1482
+ attrs, inherited = _split_list(attrs, lambda t: t[2] is thisclass)
1483
+
1484
+ if object is not builtins.object and thisclass is builtins.object:
1485
+ attrs = inherited
1486
+ continue
1487
+ elif thisclass is object:
1488
+ tag = "defined here"
1489
+ else:
1490
+ tag = "inherited from %s" % classname(thisclass,
1491
+ object.__module__)
1492
+
1493
+ sort_attributes(attrs, object)
1494
+
1495
+ # Pump out the attrs, segregated by kind.
1496
+ attrs = spill("Methods %s:\n" % tag, attrs,
1497
+ lambda t: t[1] == 'method')
1498
+ attrs = spill("Class methods %s:\n" % tag, attrs,
1499
+ lambda t: t[1] == 'class method')
1500
+ attrs = spill("Static methods %s:\n" % tag, attrs,
1501
+ lambda t: t[1] == 'static method')
1502
+ attrs = spilldescriptors("Readonly properties %s:\n" % tag, attrs,
1503
+ lambda t: t[1] == 'readonly property')
1504
+ attrs = spilldescriptors("Data descriptors %s:\n" % tag, attrs,
1505
+ lambda t: t[1] == 'data descriptor')
1506
+ attrs = spilldata("Data and other attributes %s:\n" % tag, attrs,
1507
+ lambda t: t[1] == 'data')
1508
+
1509
+ assert attrs == []
1510
+ attrs = inherited
1511
+
1512
+ contents = '\n'.join(contents)
1513
+ if not contents:
1514
+ return title + '\n'
1515
+ return title + '\n' + self.indent(contents.rstrip(), ' | ') + '\n'
1516
+
1517
+ def formatvalue(self, object):
1518
+ """Format an argument default value as text."""
1519
+ return '=' + self.repr(object)
1520
+
1521
+ def docroutine(self, object, name=None, mod=None, cl=None, homecls=None):
1522
+ """Produce text documentation for a function or method object."""
1523
+ realname = object.__name__
1524
+ name = name or realname
1525
+ if homecls is None:
1526
+ homecls = cl
1527
+ note = ''
1528
+ skipdocs = False
1529
+ imfunc = None
1530
+ if _is_bound_method(object):
1531
+ imself = object.__self__
1532
+ if imself is cl:
1533
+ imfunc = getattr(object, '__func__', None)
1534
+ elif inspect.isclass(imself):
1535
+ note = ' class method of %s' % classname(imself, mod)
1536
+ else:
1537
+ note = ' method of %s instance' % classname(
1538
+ imself.__class__, mod)
1539
+ elif (inspect.ismethoddescriptor(object) or
1540
+ inspect.ismethodwrapper(object)):
1541
+ try:
1542
+ objclass = object.__objclass__
1543
+ except AttributeError:
1544
+ pass
1545
+ else:
1546
+ if cl is None:
1547
+ note = ' unbound %s method' % classname(objclass, mod)
1548
+ elif objclass is not homecls:
1549
+ note = ' from ' + classname(objclass, mod)
1550
+ else:
1551
+ imfunc = object
1552
+ if inspect.isfunction(imfunc) and homecls is not None and (
1553
+ imfunc.__module__ != homecls.__module__ or
1554
+ imfunc.__qualname__ != homecls.__qualname__ + '.' + realname):
1555
+ pname = parentname(imfunc, mod)
1556
+ if pname:
1557
+ note = ' from %s' % pname
1558
+
1559
+ if (inspect.iscoroutinefunction(object) or
1560
+ inspect.isasyncgenfunction(object)):
1561
+ asyncqualifier = 'async '
1562
+ else:
1563
+ asyncqualifier = ''
1564
+
1565
+ if name == realname:
1566
+ title = self.bold(realname)
1567
+ else:
1568
+ if (cl is not None and
1569
+ inspect.getattr_static(cl, realname, []) is object):
1570
+ skipdocs = True
1571
+ if note.startswith(' from '):
1572
+ note = ''
1573
+ title = self.bold(name) + ' = ' + realname
1574
+ argspec = None
1575
+
1576
+ if inspect.isroutine(object):
1577
+ argspec = _getargspec(object)
1578
+ if argspec and realname == '<lambda>':
1579
+ title = self.bold(name) + ' lambda '
1580
+ # XXX lambda's won't usually have func_annotations['return']
1581
+ # since the syntax doesn't support but it is possible.
1582
+ # So removing parentheses isn't truly safe.
1583
+ if not object.__annotations__:
1584
+ argspec = argspec[1:-1]
1585
+ if not argspec:
1586
+ argspec = '(...)'
1587
+ decl = asyncqualifier + title + argspec + note
1588
+
1589
+ if skipdocs:
1590
+ return decl + '\n'
1591
+ else:
1592
+ doc = getdoc(object) or ''
1593
+ return decl + '\n' + (doc and self.indent(doc).rstrip() + '\n')
1594
+
1595
+ def docdata(self, object, name=None, mod=None, cl=None, *ignored):
1596
+ """Produce text documentation for a data descriptor."""
1597
+ results = []
1598
+ push = results.append
1599
+
1600
+ if name:
1601
+ push(self.bold(name))
1602
+ push('\n')
1603
+ doc = getdoc(object) or ''
1604
+ if doc:
1605
+ push(self.indent(doc))
1606
+ push('\n')
1607
+ return ''.join(results)
1608
+
1609
+ docproperty = docdata
1610
+
1611
+ def docother(self, object, name=None, mod=None, parent=None, *ignored,
1612
+ maxlen=None, doc=None):
1613
+ """Produce text documentation for a data object."""
1614
+ repr = self.repr(object)
1615
+ if maxlen:
1616
+ line = (name and name + ' = ' or '') + repr
1617
+ chop = maxlen - len(line)
1618
+ if chop < 0: repr = repr[:chop] + '...'
1619
+ line = (name and self.bold(name) + ' = ' or '') + repr
1620
+ if not doc:
1621
+ doc = getdoc(object)
1622
+ if doc:
1623
+ line += '\n' + self.indent(str(doc)) + '\n'
1624
+ return line
1625
+
1626
+ class _PlainTextDoc(TextDoc):
1627
+ """Subclass of TextDoc which overrides string styling"""
1628
+ def bold(self, text):
1629
+ return text
1630
+
1631
+ # --------------------------------------------------------- user interfaces
1632
+
1633
+ def pager(text, title=''):
1634
+ """The first time this is called, determine what kind of pager to use."""
1635
+ global pager
1636
+ pager = get_pager()
1637
+ pager(text, title)
1638
+
1639
+ def describe(thing):
1640
+ """Produce a short description of the given thing."""
1641
+ if inspect.ismodule(thing):
1642
+ if thing.__name__ in sys.builtin_module_names:
1643
+ return 'built-in module ' + thing.__name__
1644
+ if hasattr(thing, '__path__'):
1645
+ return 'package ' + thing.__name__
1646
+ else:
1647
+ return 'module ' + thing.__name__
1648
+ if inspect.isbuiltin(thing):
1649
+ return 'built-in function ' + thing.__name__
1650
+ if inspect.isgetsetdescriptor(thing):
1651
+ return 'getset descriptor %s.%s.%s' % (
1652
+ thing.__objclass__.__module__, thing.__objclass__.__name__,
1653
+ thing.__name__)
1654
+ if inspect.ismemberdescriptor(thing):
1655
+ return 'member descriptor %s.%s.%s' % (
1656
+ thing.__objclass__.__module__, thing.__objclass__.__name__,
1657
+ thing.__name__)
1658
+ if inspect.isclass(thing):
1659
+ return 'class ' + thing.__name__
1660
+ if inspect.isfunction(thing):
1661
+ return 'function ' + thing.__name__
1662
+ if inspect.ismethod(thing):
1663
+ return 'method ' + thing.__name__
1664
+ if inspect.ismethodwrapper(thing):
1665
+ return 'method wrapper ' + thing.__name__
1666
+ if inspect.ismethoddescriptor(thing):
1667
+ try:
1668
+ return 'method descriptor ' + thing.__name__
1669
+ except AttributeError:
1670
+ pass
1671
+ return type(thing).__name__
1672
+
1673
+ def locate(path, forceload=0):
1674
+ """Locate an object by name or dotted path, importing as necessary."""
1675
+ parts = [part for part in path.split('.') if part]
1676
+ module, n = None, 0
1677
+ while n < len(parts):
1678
+ nextmodule = safeimport('.'.join(parts[:n+1]), forceload)
1679
+ if nextmodule: module, n = nextmodule, n + 1
1680
+ else: break
1681
+ if module:
1682
+ object = module
1683
+ else:
1684
+ object = builtins
1685
+ for part in parts[n:]:
1686
+ try:
1687
+ object = getattr(object, part)
1688
+ except AttributeError:
1689
+ return None
1690
+ return object
1691
+
1692
+ # --------------------------------------- interactive interpreter interface
1693
+
1694
+ text = TextDoc()
1695
+ plaintext = _PlainTextDoc()
1696
+ html = HTMLDoc()
1697
+
1698
+ def resolve(thing, forceload=0):
1699
+ """Given an object or a path to an object, get the object and its name."""
1700
+ if isinstance(thing, str):
1701
+ object = locate(thing, forceload)
1702
+ if object is None:
1703
+ raise ImportError('''\
1704
+ No Python documentation found for %r.
1705
+ Use help() to get the interactive help utility.
1706
+ Use help(str) for help on the str class.''' % thing)
1707
+ return object, thing
1708
+ else:
1709
+ name = getattr(thing, '__name__', None)
1710
+ return thing, name if isinstance(name, str) else None
1711
+
1712
+ def render_doc(thing, title='Python Library Documentation: %s', forceload=0,
1713
+ renderer=None):
1714
+ """Render text documentation, given an object or a path to an object."""
1715
+ if renderer is None:
1716
+ renderer = text
1717
+ object, name = resolve(thing, forceload)
1718
+ desc = describe(object)
1719
+ module = inspect.getmodule(object)
1720
+ if name and '.' in name:
1721
+ desc += ' in ' + name[:name.rfind('.')]
1722
+ elif module and module is not object:
1723
+ desc += ' in module ' + module.__name__
1724
+
1725
+ if not (inspect.ismodule(object) or
1726
+ inspect.isclass(object) or
1727
+ inspect.isroutine(object) or
1728
+ inspect.isdatadescriptor(object) or
1729
+ _getdoc(object)):
1730
+ # If the passed object is a piece of data or an instance,
1731
+ # document its available methods instead of its value.
1732
+ if hasattr(object, '__origin__'):
1733
+ object = object.__origin__
1734
+ else:
1735
+ object = type(object)
1736
+ desc += ' object'
1737
+ return title % desc + '\n\n' + renderer.document(object, name)
1738
+
1739
+ def doc(thing, title='Python Library Documentation: %s', forceload=0,
1740
+ output=None, is_cli=False):
1741
+ """Display text documentation, given an object or a path to an object."""
1742
+ if output is None:
1743
+ try:
1744
+ if isinstance(thing, str):
1745
+ what = thing
1746
+ else:
1747
+ what = getattr(thing, '__qualname__', None)
1748
+ if not isinstance(what, str):
1749
+ what = getattr(thing, '__name__', None)
1750
+ if not isinstance(what, str):
1751
+ what = type(thing).__name__ + ' object'
1752
+ pager(render_doc(thing, title, forceload), f'Help on {what!s}')
1753
+ except ImportError as exc:
1754
+ if is_cli:
1755
+ raise
1756
+ print(exc)
1757
+ else:
1758
+ try:
1759
+ s = render_doc(thing, title, forceload, plaintext)
1760
+ except ImportError as exc:
1761
+ s = str(exc)
1762
+ output.write(s)
1763
+
1764
+ def writedoc(thing, forceload=0):
1765
+ """Write HTML documentation to a file in the current directory."""
1766
+ object, name = resolve(thing, forceload)
1767
+ page = html.page(describe(object), html.document(object, name))
1768
+ with open(name + '.html', 'w', encoding='utf-8',
1769
+ errors='backslashreplace') as file:
1770
+ file.write(page)
1771
+ print('wrote', name + '.html')
1772
+
1773
+ def writedocs(dir, pkgpath='', done=None):
1774
+ """Write out HTML documentation for all modules in a directory tree."""
1775
+ if done is None: done = {}
1776
+ for importer, modname, ispkg in pkgutil.walk_packages([dir], pkgpath):
1777
+ writedoc(modname)
1778
+ return
1779
+
1780
+
1781
+ def _introdoc():
1782
+ ver = '%d.%d' % sys.version_info[:2]
1783
+ if os.environ.get('PYTHON_BASIC_REPL'):
1784
+ pyrepl_keys = ''
1785
+ else:
1786
+ # Additional help for keyboard shortcuts if enhanced REPL is used.
1787
+ pyrepl_keys = '''
1788
+ You can use the following keyboard shortcuts at the main interpreter prompt.
1789
+ F1: enter interactive help, F2: enter history browsing mode, F3: enter paste
1790
+ mode (press again to exit).
1791
+ '''
1792
+ return textwrap.dedent(f'''\
1793
+ Welcome to Python {ver}'s help utility! If this is your first time using
1794
+ Python, you should definitely check out the tutorial at
1795
+ https://docs.python.org/{ver}/tutorial/.
1796
+
1797
+ Enter the name of any module, keyword, or topic to get help on writing
1798
+ Python programs and using Python modules. To get a list of available
1799
+ modules, keywords, symbols, or topics, enter "modules", "keywords",
1800
+ "symbols", or "topics".
1801
+ {pyrepl_keys}
1802
+ Each module also comes with a one-line summary of what it does; to list
1803
+ the modules whose name or summary contain a given string such as "spam",
1804
+ enter "modules spam".
1805
+
1806
+ To quit this help utility and return to the interpreter,
1807
+ enter "q", "quit" or "exit".
1808
+ ''')
1809
+
1810
+ class Helper:
1811
+
1812
+ # These dictionaries map a topic name to either an alias, or a tuple
1813
+ # (label, seealso-items). The "label" is the label of the corresponding
1814
+ # section in the .rst file under Doc/ and an index into the dictionary
1815
+ # in pydoc_data/topics.py.
1816
+ #
1817
+ # CAUTION: if you change one of these dictionaries, be sure to adapt the
1818
+ # list of needed labels in Doc/tools/extensions/pyspecific.py and
1819
+ # regenerate the pydoc_data/topics.py file by running
1820
+ # make pydoc-topics
1821
+ # in Doc/ and copying the output file into the Lib/ directory.
1822
+
1823
+ keywords = {
1824
+ 'False': '',
1825
+ 'None': '',
1826
+ 'True': '',
1827
+ 'and': 'BOOLEAN',
1828
+ 'as': 'with',
1829
+ 'assert': ('assert', ''),
1830
+ 'async': ('async', ''),
1831
+ 'await': ('await', ''),
1832
+ 'break': ('break', 'while for'),
1833
+ 'case': 'match',
1834
+ 'class': ('class', 'CLASSES SPECIALMETHODS'),
1835
+ 'continue': ('continue', 'while for'),
1836
+ 'def': ('function', ''),
1837
+ 'del': ('del', 'BASICMETHODS'),
1838
+ 'elif': 'if',
1839
+ 'else': ('else', 'while for'),
1840
+ 'except': 'try',
1841
+ 'finally': 'try',
1842
+ 'for': ('for', 'break continue while'),
1843
+ 'from': 'import',
1844
+ 'global': ('global', 'nonlocal NAMESPACES'),
1845
+ 'if': ('if', 'TRUTHVALUE match'),
1846
+ 'import': ('import', 'MODULES'),
1847
+ 'in': ('in', 'SEQUENCEMETHODS'),
1848
+ 'is': 'COMPARISON',
1849
+ 'lambda': ('lambda', 'FUNCTIONS'),
1850
+ 'lazy': ('lazy', 'MODULES'),
1851
+ 'match': ('match', 'if'),
1852
+ 'nonlocal': ('nonlocal', 'global NAMESPACES'),
1853
+ 'not': 'BOOLEAN',
1854
+ 'or': 'BOOLEAN',
1855
+ 'pass': ('pass', ''),
1856
+ 'raise': ('raise', 'EXCEPTIONS'),
1857
+ 'return': ('return', 'FUNCTIONS'),
1858
+ 'try': ('try', 'EXCEPTIONS'),
1859
+ 'while': ('while', 'break continue if TRUTHVALUE'),
1860
+ 'with': ('with', 'CONTEXTMANAGERS EXCEPTIONS yield'),
1861
+ 'yield': ('yield', ''),
1862
+ }
1863
+ # Either add symbols to this dictionary or to the symbols dictionary
1864
+ # directly: Whichever is easier. They are merged later.
1865
+ _strprefixes = [p + q for p in ('b', 'f', 'r', 'u') for q in ("'", '"')]
1866
+ _symbols_inverse = {
1867
+ 'STRINGS' : ("'", "'''", '"', '"""', *_strprefixes),
1868
+ 'OPERATORS' : ('+', '-', '*', '**', '/', '//', '%', '<<', '>>', '&',
1869
+ '|', '^', '~', '<', '>', '<=', '>=', '==', '!=', '<>'),
1870
+ 'COMPARISON' : ('<', '>', '<=', '>=', '==', '!=', '<>'),
1871
+ 'UNARY' : ('-', '~'),
1872
+ 'AUGMENTEDASSIGNMENT' : ('+=', '-=', '*=', '/=', '%=', '&=', '|=',
1873
+ '^=', '<<=', '>>=', '**=', '//='),
1874
+ 'BITWISE' : ('<<', '>>', '&', '|', '^', '~'),
1875
+ 'COMPLEX' : ('j', 'J')
1876
+ }
1877
+ symbols = {
1878
+ '%': 'OPERATORS FORMATTING',
1879
+ '**': 'POWER',
1880
+ ',': 'TUPLES LISTS FUNCTIONS',
1881
+ '.': 'ATTRIBUTES FLOAT MODULES OBJECTS',
1882
+ '...': 'ELLIPSIS',
1883
+ ':': 'SLICINGS DICTIONARYLITERALS',
1884
+ '@': 'def class',
1885
+ '\\': 'STRINGS',
1886
+ ':=': 'ASSIGNMENTEXPRESSIONS',
1887
+ '_': 'PRIVATENAMES',
1888
+ '__': 'PRIVATENAMES SPECIALMETHODS',
1889
+ '`': 'BACKQUOTES',
1890
+ '(': 'TUPLES FUNCTIONS CALLS',
1891
+ ')': 'TUPLES FUNCTIONS CALLS',
1892
+ '[': 'LISTS SUBSCRIPTS SLICINGS',
1893
+ ']': 'LISTS SUBSCRIPTS SLICINGS'
1894
+ }
1895
+ for topic, symbols_ in _symbols_inverse.items():
1896
+ for symbol in symbols_:
1897
+ topics = symbols.get(symbol, topic)
1898
+ if topic not in topics:
1899
+ topics = topics + ' ' + topic
1900
+ symbols[symbol] = topics
1901
+ del topic, symbols_, symbol, topics
1902
+
1903
+ topics = {
1904
+ 'TYPES': ('types', 'STRINGS UNICODE NUMBERS SEQUENCES MAPPINGS '
1905
+ 'FUNCTIONS CLASSES MODULES FILES inspect'),
1906
+ 'STRINGS': ('strings', 'str UNICODE SEQUENCES STRINGMETHODS '
1907
+ 'FORMATTING TYPES'),
1908
+ 'STRINGMETHODS': ('string-methods', 'STRINGS FORMATTING'),
1909
+ 'FORMATTING': ('formatstrings', 'OPERATORS'),
1910
+ 'UNICODE': ('strings', 'encodings unicode SEQUENCES STRINGMETHODS '
1911
+ 'FORMATTING TYPES'),
1912
+ 'NUMBERS': ('numbers', 'INTEGER FLOAT COMPLEX TYPES'),
1913
+ 'INTEGER': ('integers', 'int range'),
1914
+ 'FLOAT': ('floating', 'float math'),
1915
+ 'COMPLEX': ('imaginary', 'complex cmath'),
1916
+ 'SEQUENCES': ('typesseq', 'STRINGMETHODS FORMATTING range LISTS'),
1917
+ 'MAPPINGS': 'DICTIONARIES',
1918
+ 'FUNCTIONS': ('typesfunctions', 'def TYPES'),
1919
+ 'METHODS': ('typesmethods', 'class def CLASSES TYPES'),
1920
+ 'CODEOBJECTS': ('bltin-code-objects', 'compile FUNCTIONS TYPES'),
1921
+ 'TYPEOBJECTS': ('bltin-type-objects', 'types TYPES'),
1922
+ 'FRAMEOBJECTS': 'TYPES',
1923
+ 'TRACEBACKS': 'TYPES',
1924
+ 'NONE': ('bltin-null-object', ''),
1925
+ 'ELLIPSIS': ('bltin-ellipsis-object', 'SLICINGS'),
1926
+ 'SPECIALATTRIBUTES': ('specialattrs', ''),
1927
+ 'CLASSES': ('types', 'class SPECIALMETHODS PRIVATENAMES'),
1928
+ 'MODULES': ('typesmodules', 'import'),
1929
+ 'PACKAGES': 'import',
1930
+ 'EXPRESSIONS': ('operator-summary', 'lambda or and not in is BOOLEAN '
1931
+ 'COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER '
1932
+ 'UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES '
1933
+ 'LISTS DICTIONARIES'),
1934
+ 'OPERATORS': 'EXPRESSIONS',
1935
+ 'PRECEDENCE': 'EXPRESSIONS',
1936
+ 'OBJECTS': ('objects', 'TYPES'),
1937
+ 'SPECIALMETHODS': ('specialnames', 'BASICMETHODS ATTRIBUTEMETHODS '
1938
+ 'CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS '
1939
+ 'NUMBERMETHODS CLASSES'),
1940
+ 'BASICMETHODS': ('customization', 'hash repr str SPECIALMETHODS'),
1941
+ 'ATTRIBUTEMETHODS': ('attribute-access', 'ATTRIBUTES SPECIALMETHODS'),
1942
+ 'CALLABLEMETHODS': ('callable-types', 'CALLS SPECIALMETHODS'),
1943
+ 'SEQUENCEMETHODS': ('sequence-types', 'SEQUENCES SEQUENCEMETHODS '
1944
+ 'SPECIALMETHODS'),
1945
+ 'MAPPINGMETHODS': ('sequence-types', 'MAPPINGS SPECIALMETHODS'),
1946
+ 'NUMBERMETHODS': ('numeric-types', 'NUMBERS AUGMENTEDASSIGNMENT '
1947
+ 'SPECIALMETHODS'),
1948
+ 'EXECUTION': ('execmodel', 'NAMESPACES DYNAMICFEATURES EXCEPTIONS'),
1949
+ 'NAMESPACES': ('naming', 'global nonlocal ASSIGNMENT DELETION DYNAMICFEATURES'),
1950
+ 'DYNAMICFEATURES': ('dynamic-features', ''),
1951
+ 'SCOPING': 'NAMESPACES',
1952
+ 'FRAMES': 'NAMESPACES',
1953
+ 'EXCEPTIONS': ('exceptions', 'try except finally raise'),
1954
+ 'CONVERSIONS': ('conversions', ''),
1955
+ 'IDENTIFIERS': ('identifiers', 'keywords SPECIALIDENTIFIERS'),
1956
+ 'SPECIALIDENTIFIERS': ('id-classes', ''),
1957
+ 'PRIVATENAMES': ('atom-identifiers', ''),
1958
+ 'LITERALS': ('atom-literals', 'STRINGS NUMBERS TUPLELITERALS '
1959
+ 'LISTLITERALS DICTIONARYLITERALS'),
1960
+ 'TUPLES': 'SEQUENCES',
1961
+ 'TUPLELITERALS': ('exprlists', 'TUPLES LITERALS'),
1962
+ 'LISTS': ('typesseq-mutable', 'LISTLITERALS'),
1963
+ 'LISTLITERALS': ('lists', 'LISTS LITERALS'),
1964
+ 'DICTIONARIES': ('typesmapping', 'DICTIONARYLITERALS'),
1965
+ 'DICTIONARYLITERALS': ('dict', 'DICTIONARIES LITERALS'),
1966
+ 'ATTRIBUTES': ('attribute-references', 'getattr hasattr setattr ATTRIBUTEMETHODS'),
1967
+ 'SUBSCRIPTS': ('subscriptions', 'SEQUENCEMETHODS'),
1968
+ 'SLICINGS': ('slicings', 'SEQUENCEMETHODS'),
1969
+ 'CALLS': ('calls', 'EXPRESSIONS'),
1970
+ 'POWER': ('power', 'EXPRESSIONS'),
1971
+ 'UNARY': ('unary', 'EXPRESSIONS'),
1972
+ 'BINARY': ('binary', 'EXPRESSIONS'),
1973
+ 'SHIFTING': ('shifting', 'EXPRESSIONS'),
1974
+ 'BITWISE': ('bitwise', 'EXPRESSIONS'),
1975
+ 'COMPARISON': ('comparisons', 'EXPRESSIONS BASICMETHODS'),
1976
+ 'BOOLEAN': ('booleans', 'EXPRESSIONS TRUTHVALUE'),
1977
+ 'ASSERTION': 'assert',
1978
+ 'ASSIGNMENT': ('assignment', 'AUGMENTEDASSIGNMENT'),
1979
+ 'AUGMENTEDASSIGNMENT': ('augassign', 'NUMBERMETHODS'),
1980
+ 'ASSIGNMENTEXPRESSIONS': ('assignment-expressions', ''),
1981
+ 'DELETION': 'del',
1982
+ 'RETURNING': 'return',
1983
+ 'IMPORTING': 'import',
1984
+ 'CONDITIONAL': 'if',
1985
+ 'LOOPING': ('compound', 'for while break continue'),
1986
+ 'TRUTHVALUE': ('truth', 'if while and or not BASICMETHODS'),
1987
+ 'DEBUGGING': ('debugger', 'pdb'),
1988
+ 'CONTEXTMANAGERS': ('context-managers', 'with'),
1989
+ }
1990
+
1991
+ def __init__(self, input=None, output=None):
1992
+ self._input = input
1993
+ self._output = output
1994
+
1995
+ @property
1996
+ def input(self):
1997
+ return self._input or sys.stdin
1998
+
1999
+ @property
2000
+ def output(self):
2001
+ return self._output or sys.stdout
2002
+
2003
+ def __repr__(self):
2004
+ if inspect.stack()[1][3] == '?':
2005
+ self()
2006
+ return ''
2007
+ return '<%s.%s instance>' % (self.__class__.__module__,
2008
+ self.__class__.__qualname__)
2009
+
2010
+ _GoInteractive = object()
2011
+ def __call__(self, request=_GoInteractive):
2012
+ if request is not self._GoInteractive:
2013
+ try:
2014
+ self.help(request)
2015
+ except ImportError as err:
2016
+ self.output.write(f'{err}\n')
2017
+ else:
2018
+ self.intro()
2019
+ self.interact()
2020
+ self.output.write('''
2021
+ You are now leaving help and returning to the Python interpreter.
2022
+ If you want to ask for help on a particular object directly from the
2023
+ interpreter, you can type "help(object)". Executing "help('string')"
2024
+ has the same effect as typing a particular string at the help> prompt.
2025
+ ''')
2026
+
2027
+ def interact(self):
2028
+ self.output.write('\n')
2029
+ while True:
2030
+ try:
2031
+ request = self.getline('help> ')
2032
+ except (KeyboardInterrupt, EOFError):
2033
+ break
2034
+ request = request.strip()
2035
+ if not request:
2036
+ continue # back to the prompt
2037
+
2038
+ # Make sure significant trailing quoting marks of literals don't
2039
+ # get deleted while cleaning input
2040
+ if (len(request) > 2 and request[0] == request[-1] in ("'", '"')
2041
+ and request[0] not in request[1:-1]):
2042
+ request = request[1:-1]
2043
+ if request.lower() in ('q', 'quit', 'exit'): break
2044
+ if request == 'help':
2045
+ self.intro()
2046
+ else:
2047
+ self.help(request)
2048
+
2049
+ def getline(self, prompt):
2050
+ """Read one line, using input() when appropriate."""
2051
+ if self.input is sys.stdin:
2052
+ return input(prompt)
2053
+ else:
2054
+ self.output.write(prompt)
2055
+ self.output.flush()
2056
+ return self.input.readline()
2057
+
2058
+ def help(self, request, is_cli=False):
2059
+ if isinstance(request, str):
2060
+ request = request.strip()
2061
+ if request == 'keywords': self.listkeywords()
2062
+ elif request == 'symbols': self.listsymbols()
2063
+ elif request == 'topics': self.listtopics()
2064
+ elif request == 'modules': self.listmodules()
2065
+ elif request[:8] == 'modules ':
2066
+ self.listmodules(request.split()[1])
2067
+ elif request in self.symbols: self.showsymbol(request)
2068
+ elif request in ['True', 'False', 'None']:
2069
+ # special case these keywords since they are objects too
2070
+ doc(eval(request), 'Help on %s:', output=self._output, is_cli=is_cli)
2071
+ elif request in self.keywords: self.showtopic(request)
2072
+ elif request in self.topics: self.showtopic(request)
2073
+ elif request: doc(request, 'Help on %s:', output=self._output, is_cli=is_cli)
2074
+ else: doc(str, 'Help on %s:', output=self._output, is_cli=is_cli)
2075
+ elif isinstance(request, Helper): self()
2076
+ else: doc(request, 'Help on %s:', output=self._output, is_cli=is_cli)
2077
+ self.output.write('\n')
2078
+
2079
+ def intro(self):
2080
+ self.output.write(_introdoc())
2081
+
2082
+ def list(self, items, columns=4, width=80):
2083
+ items = sorted(items)
2084
+ colw = width // columns
2085
+ rows = (len(items) + columns - 1) // columns
2086
+ for row in range(rows):
2087
+ for col in range(columns):
2088
+ i = col * rows + row
2089
+ if i < len(items):
2090
+ self.output.write(items[i])
2091
+ if col < columns - 1:
2092
+ self.output.write(' ' + ' ' * (colw - 1 - len(items[i])))
2093
+ self.output.write('\n')
2094
+
2095
+ def listkeywords(self):
2096
+ self.output.write('''
2097
+ Here is a list of the Python keywords. Enter any keyword to get more help.
2098
+
2099
+ ''')
2100
+ self.list(self.keywords.keys())
2101
+
2102
+ def listsymbols(self):
2103
+ self.output.write('''
2104
+ Here is a list of the punctuation symbols which Python assigns special meaning
2105
+ to. Enter any symbol to get more help.
2106
+
2107
+ ''')
2108
+ self.list(self.symbols.keys())
2109
+
2110
+ def listtopics(self):
2111
+ self.output.write('''
2112
+ Here is a list of available topics. Enter any topic name to get more help.
2113
+
2114
+ ''')
2115
+ self.list(self.topics.keys(), columns=3)
2116
+
2117
+ def showtopic(self, topic, more_xrefs=''):
2118
+ try:
2119
+ import pydoc_data.topics
2120
+ except ImportError:
2121
+ self.output.write('''
2122
+ Sorry, topic and keyword documentation is not available because the
2123
+ module "pydoc_data.topics" could not be found.
2124
+ ''')
2125
+ return
2126
+ target = self.topics.get(topic, self.keywords.get(topic))
2127
+ if not target:
2128
+ self.output.write('no documentation found for %s\n' % repr(topic))
2129
+ return
2130
+ if isinstance(target, str):
2131
+ return self.showtopic(target, more_xrefs)
2132
+
2133
+ label, xrefs = target
2134
+ try:
2135
+ doc = pydoc_data.topics.topics[label]
2136
+ except KeyError:
2137
+ self.output.write('no documentation found for %s\n' % repr(topic))
2138
+ return
2139
+ doc = doc.strip() + '\n'
2140
+ if more_xrefs:
2141
+ xrefs = (xrefs or '') + ' ' + more_xrefs
2142
+ if xrefs:
2143
+ text = 'Related help topics: ' + ', '.join(xrefs.split()) + '\n'
2144
+ wrapped_text = textwrap.wrap(text, 72)
2145
+ doc += '\n%s\n' % '\n'.join(wrapped_text)
2146
+
2147
+ if self._output is None:
2148
+ pager(doc, f'Help on {topic!s}')
2149
+ else:
2150
+ self.output.write(doc)
2151
+
2152
+ def _gettopic(self, topic, more_xrefs=''):
2153
+ """Return unbuffered tuple of (topic, xrefs).
2154
+
2155
+ If an error occurs here, the exception is caught and displayed by
2156
+ the url handler.
2157
+
2158
+ This function duplicates the showtopic method but returns its
2159
+ result directly so it can be formatted for display in an html page.
2160
+ """
2161
+ try:
2162
+ import pydoc_data.topics
2163
+ except ImportError:
2164
+ return('''
2165
+ Sorry, topic and keyword documentation is not available because the
2166
+ module "pydoc_data.topics" could not be found.
2167
+ ''' , '')
2168
+ target = self.topics.get(topic, self.keywords.get(topic))
2169
+ if not target:
2170
+ raise ValueError('could not find topic')
2171
+ if isinstance(target, str):
2172
+ return self._gettopic(target, more_xrefs)
2173
+ label, xrefs = target
2174
+ doc = pydoc_data.topics.topics[label]
2175
+ if more_xrefs:
2176
+ xrefs = (xrefs or '') + ' ' + more_xrefs
2177
+ return doc, xrefs
2178
+
2179
+ def showsymbol(self, symbol):
2180
+ target = self.symbols[symbol]
2181
+ topic, _, xrefs = target.partition(' ')
2182
+ self.showtopic(topic, xrefs)
2183
+
2184
+ def listmodules(self, key=''):
2185
+ if key:
2186
+ self.output.write('''
2187
+ Here is a list of modules whose name or summary contains '{}'.
2188
+ If there are any, enter a module name to get more help.
2189
+
2190
+ '''.format(key))
2191
+ apropos(key)
2192
+ else:
2193
+ self.output.write('''
2194
+ Please wait a moment while I gather a list of all available modules...
2195
+
2196
+ ''')
2197
+ modules = {}
2198
+ def callback(path, modname, desc, modules=modules):
2199
+ if modname and modname[-9:] == '.__init__':
2200
+ modname = modname[:-9] + ' (package)'
2201
+ if modname.find('.') < 0:
2202
+ modules[modname] = 1
2203
+ def onerror(modname):
2204
+ callback(None, modname, None)
2205
+ ModuleScanner().run(callback, onerror=onerror)
2206
+ self.list(modules.keys())
2207
+ self.output.write('''
2208
+ Enter any module name to get more help. Or, type "modules spam" to search
2209
+ for modules whose name or summary contain the string "spam".
2210
+ ''')
2211
+
2212
+ help = Helper()
2213
+
2214
+ class ModuleScanner:
2215
+ """An interruptible scanner that searches module synopses."""
2216
+
2217
+ def run(self, callback, key=None, completer=None, onerror=None):
2218
+ if key: key = key.lower()
2219
+ self.quit = False
2220
+ seen = {}
2221
+
2222
+ for modname in sys.builtin_module_names:
2223
+ if modname != '__main__':
2224
+ seen[modname] = 1
2225
+ if key is None:
2226
+ callback(None, modname, '')
2227
+ else:
2228
+ name = __import__(modname).__doc__ or ''
2229
+ desc = name.split('\n')[0]
2230
+ name = modname + ' - ' + desc
2231
+ if name.lower().find(key) >= 0:
2232
+ callback(None, modname, desc)
2233
+
2234
+ for importer, modname, ispkg in pkgutil.walk_packages(onerror=onerror):
2235
+ if self.quit:
2236
+ break
2237
+
2238
+ if key is None:
2239
+ callback(None, modname, '')
2240
+ else:
2241
+ try:
2242
+ spec = importer.find_spec(modname)
2243
+ except SyntaxError:
2244
+ # raised by tests for bad coding cookies or BOM
2245
+ continue
2246
+ loader = spec.loader
2247
+ if hasattr(loader, 'get_source'):
2248
+ try:
2249
+ source = loader.get_source(modname)
2250
+ except Exception:
2251
+ if onerror:
2252
+ onerror(modname)
2253
+ continue
2254
+ desc = source_synopsis(io.StringIO(source)) or ''
2255
+ if hasattr(loader, 'get_filename'):
2256
+ path = loader.get_filename(modname)
2257
+ else:
2258
+ path = None
2259
+ else:
2260
+ try:
2261
+ module = importlib._bootstrap._load(spec)
2262
+ except ImportError:
2263
+ if onerror:
2264
+ onerror(modname)
2265
+ continue
2266
+ desc = module.__doc__.splitlines()[0] if module.__doc__ else ''
2267
+ path = getattr(module,'__file__',None)
2268
+ name = modname + ' - ' + desc
2269
+ if name.lower().find(key) >= 0:
2270
+ callback(path, modname, desc)
2271
+
2272
+ if completer:
2273
+ completer()
2274
+
2275
+ def apropos(key):
2276
+ """Print all the one-line module summaries that contain a substring."""
2277
+ def callback(path, modname, desc):
2278
+ if modname[-9:] == '.__init__':
2279
+ modname = modname[:-9] + ' (package)'
2280
+ print(modname, desc and '- ' + desc)
2281
+ def onerror(modname):
2282
+ pass
2283
+ with warnings.catch_warnings():
2284
+ warnings.filterwarnings('ignore') # ignore problems during import
2285
+ ModuleScanner().run(callback, key, onerror=onerror)
2286
+
2287
+ # --------------------------------------- enhanced web browser interface
2288
+
2289
+ def _start_server(urlhandler, hostname, port):
2290
+ """Start an HTTP server thread on a specific port.
2291
+
2292
+ Start an HTML/text server thread, so HTML or text documents can be
2293
+ browsed dynamically and interactively with a web browser. Example use:
2294
+
2295
+ >>> import time
2296
+ >>> import pydoc
2297
+
2298
+ Define a URL handler. To determine what the client is asking
2299
+ for, check the URL and content_type.
2300
+
2301
+ Then get or generate some text or HTML code and return it.
2302
+
2303
+ >>> def my_url_handler(url, content_type):
2304
+ ... text = 'the URL sent was: (%s, %s)' % (url, content_type)
2305
+ ... return text
2306
+
2307
+ Start server thread on port 0.
2308
+ If you use port 0, the server will pick a random port number.
2309
+ You can then use serverthread.port to get the port number.
2310
+
2311
+ >>> port = 0
2312
+ >>> serverthread = pydoc._start_server(my_url_handler, port)
2313
+
2314
+ Check that the server is really started. If it is, open browser
2315
+ and get first page. Use serverthread.url as the starting page.
2316
+
2317
+ >>> if serverthread.serving:
2318
+ ... import webbrowser
2319
+
2320
+ The next two lines are commented out so a browser doesn't open if
2321
+ doctest is run on this module.
2322
+
2323
+ #... webbrowser.open(serverthread.url)
2324
+ #True
2325
+
2326
+ Let the server do its thing. We just need to monitor its status.
2327
+ Use time.sleep so the loop doesn't hog the CPU.
2328
+
2329
+ >>> starttime = time.monotonic()
2330
+ >>> timeout = 1 #seconds
2331
+
2332
+ This is a short timeout for testing purposes.
2333
+
2334
+ >>> while serverthread.serving:
2335
+ ... time.sleep(.01)
2336
+ ... if serverthread.serving and time.monotonic() - starttime > timeout:
2337
+ ... serverthread.stop()
2338
+ ... break
2339
+
2340
+ Print any errors that may have occurred.
2341
+
2342
+ >>> print(serverthread.error)
2343
+ None
2344
+ """
2345
+ import http.server
2346
+ import email.message
2347
+ import select
2348
+ import threading
2349
+
2350
+ class DocHandler(http.server.BaseHTTPRequestHandler):
2351
+
2352
+ def do_GET(self):
2353
+ """Process a request from an HTML browser.
2354
+
2355
+ The URL received is in self.path.
2356
+ Get an HTML page from self.urlhandler and send it.
2357
+ """
2358
+ if self.path.endswith('.css'):
2359
+ content_type = 'text/css'
2360
+ else:
2361
+ content_type = 'text/html'
2362
+ self.send_response(200)
2363
+ self.send_header('Content-Type', '%s; charset=UTF-8' % content_type)
2364
+ self.end_headers()
2365
+ self.wfile.write(self.urlhandler(
2366
+ self.path, content_type).encode('utf-8', 'backslashreplace'))
2367
+
2368
+ def log_message(self, *args):
2369
+ # Don't log messages.
2370
+ pass
2371
+
2372
+ class DocServer(http.server.HTTPServer):
2373
+
2374
+ def __init__(self, host, port, callback):
2375
+ self.host = host
2376
+ self.address = (self.host, port)
2377
+ self.callback = callback
2378
+ self.base.__init__(self, self.address, self.handler)
2379
+ self.quit = False
2380
+
2381
+ def serve_until_quit(self):
2382
+ while not self.quit:
2383
+ rd, wr, ex = select.select([self.socket.fileno()], [], [], 1)
2384
+ if rd:
2385
+ self.handle_request()
2386
+ self.server_close()
2387
+
2388
+ def server_activate(self):
2389
+ self.base.server_activate(self)
2390
+ if self.callback:
2391
+ self.callback(self)
2392
+
2393
+ class ServerThread(threading.Thread):
2394
+
2395
+ def __init__(self, urlhandler, host, port):
2396
+ self.urlhandler = urlhandler
2397
+ self.host = host
2398
+ self.port = int(port)
2399
+ threading.Thread.__init__(self)
2400
+ self.serving = False
2401
+ self.error = None
2402
+ self.docserver = None
2403
+
2404
+ def run(self):
2405
+ """Start the server."""
2406
+ try:
2407
+ DocServer.base = http.server.HTTPServer
2408
+ DocServer.handler = DocHandler
2409
+ DocHandler.MessageClass = email.message.Message
2410
+ DocHandler.urlhandler = staticmethod(self.urlhandler)
2411
+ docsvr = DocServer(self.host, self.port, self.ready)
2412
+ self.docserver = docsvr
2413
+ docsvr.serve_until_quit()
2414
+ except Exception as err:
2415
+ self.error = err
2416
+
2417
+ def ready(self, server):
2418
+ self.serving = True
2419
+ self.host = server.host
2420
+ self.port = server.server_port
2421
+ self.url = 'http://%s:%d/' % (self.host, self.port)
2422
+
2423
+ def stop(self):
2424
+ """Stop the server and this thread nicely"""
2425
+ self.docserver.quit = True
2426
+ self.join()
2427
+ # explicitly break a reference cycle: DocServer.callback
2428
+ # has indirectly a reference to ServerThread.
2429
+ self.docserver = None
2430
+ self.serving = False
2431
+ self.url = None
2432
+
2433
+ thread = ServerThread(urlhandler, hostname, port)
2434
+ thread.start()
2435
+ # Wait until thread.serving is True and thread.docserver is set
2436
+ # to make sure we are really up before returning.
2437
+ while not thread.error and not (thread.serving and thread.docserver):
2438
+ time.sleep(.01)
2439
+ return thread
2440
+
2441
+
2442
+ def _url_handler(url, content_type="text/html"):
2443
+ """The pydoc url handler for use with the pydoc server.
2444
+
2445
+ If the content_type is 'text/css', the _pydoc.css style
2446
+ sheet is read and returned if it exits.
2447
+
2448
+ If the content_type is 'text/html', then the result of
2449
+ get_html_page(url) is returned.
2450
+ """
2451
+ class _HTMLDoc(HTMLDoc):
2452
+
2453
+ def page(self, title, contents):
2454
+ """Format an HTML page."""
2455
+ css_path = "pydoc_data/_pydoc.css"
2456
+ css_link = (
2457
+ '<link rel="stylesheet" type="text/css" href="%s">' %
2458
+ css_path)
2459
+ return '''\
2460
+ <!DOCTYPE>
2461
+ <html lang="en">
2462
+ <head>
2463
+ <meta charset="utf-8">
2464
+ <title>Pydoc: %s</title>
2465
+ %s</head><body>%s<div style="clear:both;padding-top:.5em;">%s</div>
2466
+ </body></html>''' % (title, css_link, html_navbar(), contents)
2467
+
2468
+
2469
+ html = _HTMLDoc()
2470
+
2471
+ def html_navbar():
2472
+ version = html.escape("%s [%s, %s]" % (platform.python_version(),
2473
+ platform.python_build()[0],
2474
+ platform.python_compiler()))
2475
+ return """
2476
+ <div style='float:left'>
2477
+ Python %s<br>%s
2478
+ </div>
2479
+ <div style='float:right'>
2480
+ <div style='text-align:center'>
2481
+ <a href="index.html">Module Index</a>
2482
+ : <a href="topics.html">Topics</a>
2483
+ : <a href="keywords.html">Keywords</a>
2484
+ </div>
2485
+ <div>
2486
+ <form action="get" style='display:inline;'>
2487
+ <input type=text name=key size=15>
2488
+ <input type=submit value="Get">
2489
+ </form>&nbsp;
2490
+ <form action="search" style='display:inline;'>
2491
+ <input type=text name=key size=15>
2492
+ <input type=submit value="Search">
2493
+ </form>
2494
+ </div>
2495
+ </div>
2496
+ """ % (version, html.escape(platform.platform(terse=True)))
2497
+
2498
+ def html_index():
2499
+ """Module Index page."""
2500
+
2501
+ def bltinlink(name):
2502
+ return '<a href="%s.html">%s</a>' % (name, name)
2503
+
2504
+ heading = html.heading(
2505
+ '<strong class="title">Index of Modules</strong>'
2506
+ )
2507
+ names = [name for name in sys.builtin_module_names
2508
+ if name != '__main__']
2509
+ contents = html.multicolumn(names, bltinlink)
2510
+ contents = [heading, '<p>' + html.bigsection(
2511
+ 'Built-in Modules', 'index', contents)]
2512
+
2513
+ seen = {}
2514
+ for dir in sys.path:
2515
+ contents.append(html.index(dir, seen))
2516
+
2517
+ contents.append(
2518
+ '<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee'
2519
+ '&lt;ping@lfw.org&gt;</p>')
2520
+ return 'Index of Modules', ''.join(contents)
2521
+
2522
+ def html_search(key):
2523
+ """Search results page."""
2524
+ # scan for modules
2525
+ search_result = []
2526
+
2527
+ def callback(path, modname, desc):
2528
+ if modname[-9:] == '.__init__':
2529
+ modname = modname[:-9] + ' (package)'
2530
+ search_result.append((modname, desc and '- ' + desc))
2531
+
2532
+ with warnings.catch_warnings():
2533
+ warnings.filterwarnings('ignore') # ignore problems during import
2534
+ def onerror(modname):
2535
+ pass
2536
+ ModuleScanner().run(callback, key, onerror=onerror)
2537
+
2538
+ # format page
2539
+ def bltinlink(name):
2540
+ return '<a href="%s.html">%s</a>' % (name, name)
2541
+
2542
+ results = []
2543
+ heading = html.heading(
2544
+ '<strong class="title">Search Results</strong>',
2545
+ )
2546
+ for name, desc in search_result:
2547
+ results.append(bltinlink(name) + desc)
2548
+ contents = heading + html.bigsection(
2549
+ 'key = %s' % key, 'index', '<br>'.join(results))
2550
+ return 'Search Results', contents
2551
+
2552
+ def html_topics():
2553
+ """Index of topic texts available."""
2554
+
2555
+ def bltinlink(name):
2556
+ return '<a href="topic?key=%s">%s</a>' % (name, name)
2557
+
2558
+ heading = html.heading(
2559
+ '<strong class="title">INDEX</strong>',
2560
+ )
2561
+ names = sorted(Helper.topics.keys())
2562
+
2563
+ contents = html.multicolumn(names, bltinlink)
2564
+ contents = heading + html.bigsection(
2565
+ 'Topics', 'index', contents)
2566
+ return 'Topics', contents
2567
+
2568
+ def html_keywords():
2569
+ """Index of keywords."""
2570
+ heading = html.heading(
2571
+ '<strong class="title">INDEX</strong>',
2572
+ )
2573
+ names = sorted(Helper.keywords.keys())
2574
+
2575
+ def bltinlink(name):
2576
+ return '<a href="topic?key=%s">%s</a>' % (name, name)
2577
+
2578
+ contents = html.multicolumn(names, bltinlink)
2579
+ contents = heading + html.bigsection(
2580
+ 'Keywords', 'index', contents)
2581
+ return 'Keywords', contents
2582
+
2583
+ def html_topicpage(topic):
2584
+ """Topic or keyword help page."""
2585
+ buf = io.StringIO()
2586
+ htmlhelp = Helper(buf, buf)
2587
+ contents, xrefs = htmlhelp._gettopic(topic)
2588
+ if topic in htmlhelp.keywords:
2589
+ title = 'KEYWORD'
2590
+ else:
2591
+ title = 'TOPIC'
2592
+ heading = html.heading(
2593
+ '<strong class="title">%s</strong>' % title,
2594
+ )
2595
+ contents = '<pre>%s</pre>' % html.markup(contents)
2596
+ contents = html.bigsection(topic , 'index', contents)
2597
+ if xrefs:
2598
+ xrefs = sorted(xrefs.split())
2599
+
2600
+ def bltinlink(name):
2601
+ return '<a href="topic?key=%s">%s</a>' % (name, name)
2602
+
2603
+ xrefs = html.multicolumn(xrefs, bltinlink)
2604
+ xrefs = html.section('Related help topics: ', 'index', xrefs)
2605
+ return ('%s %s' % (title, topic),
2606
+ ''.join((heading, contents, xrefs)))
2607
+
2608
+ def html_getobj(url):
2609
+ obj = locate(url, forceload=1)
2610
+ if obj is None and url != 'None':
2611
+ raise ValueError('could not find object')
2612
+ title = describe(obj)
2613
+ content = html.document(obj, url)
2614
+ return title, content
2615
+
2616
+ def html_error(url, exc):
2617
+ heading = html.heading(
2618
+ '<strong class="title">Error</strong>',
2619
+ )
2620
+ contents = '<br>'.join(html.escape(line) for line in
2621
+ format_exception_only(type(exc), exc))
2622
+ contents = heading + html.bigsection(url, 'error', contents)
2623
+ return "Error - %s" % url, contents
2624
+
2625
+ def get_html_page(url):
2626
+ """Generate an HTML page for url."""
2627
+ complete_url = url
2628
+ if url.endswith('.html'):
2629
+ url = url[:-5]
2630
+ try:
2631
+ if url in ("", "index"):
2632
+ title, content = html_index()
2633
+ elif url == "topics":
2634
+ title, content = html_topics()
2635
+ elif url == "keywords":
2636
+ title, content = html_keywords()
2637
+ elif '=' in url:
2638
+ op, _, url = url.partition('=')
2639
+ if op == "search?key":
2640
+ title, content = html_search(url)
2641
+ elif op == "topic?key":
2642
+ # try topics first, then objects.
2643
+ try:
2644
+ title, content = html_topicpage(url)
2645
+ except ValueError:
2646
+ title, content = html_getobj(url)
2647
+ elif op == "get?key":
2648
+ # try objects first, then topics.
2649
+ if url in ("", "index"):
2650
+ title, content = html_index()
2651
+ else:
2652
+ try:
2653
+ title, content = html_getobj(url)
2654
+ except ValueError:
2655
+ title, content = html_topicpage(url)
2656
+ else:
2657
+ raise ValueError('bad pydoc url')
2658
+ else:
2659
+ title, content = html_getobj(url)
2660
+ except Exception as exc:
2661
+ # Catch any errors and display them in an error page.
2662
+ title, content = html_error(complete_url, exc)
2663
+ return html.page(title, content)
2664
+
2665
+ if url.startswith('/'):
2666
+ url = url[1:]
2667
+ if content_type == 'text/css':
2668
+ path_here = os.path.dirname(os.path.realpath(__file__))
2669
+ css_path = os.path.join(path_here, url)
2670
+ with open(css_path) as fp:
2671
+ return ''.join(fp.readlines())
2672
+ elif content_type == 'text/html':
2673
+ return get_html_page(url)
2674
+ # Errors outside the url handler are caught by the server.
2675
+ raise TypeError('unknown content type %r for url %s' % (content_type, url))
2676
+
2677
+
2678
+ def browse(port=0, *, open_browser=True, hostname='localhost'):
2679
+ """Start the enhanced pydoc web server and open a web browser.
2680
+
2681
+ Use port '0' to start the server on an arbitrary port.
2682
+ Set open_browser to False to suppress opening a browser.
2683
+ """
2684
+ import webbrowser
2685
+ serverthread = _start_server(_url_handler, hostname, port)
2686
+ if serverthread.error:
2687
+ print(serverthread.error)
2688
+ return
2689
+ if serverthread.serving:
2690
+ server_help_msg = 'Server commands: [b]rowser, [q]uit'
2691
+ if open_browser:
2692
+ webbrowser.open(serverthread.url)
2693
+ try:
2694
+ print('Server ready at', serverthread.url)
2695
+ print(server_help_msg)
2696
+ while serverthread.serving:
2697
+ cmd = input('server> ')
2698
+ cmd = cmd.lower()
2699
+ if cmd == 'q':
2700
+ break
2701
+ elif cmd == 'b':
2702
+ webbrowser.open(serverthread.url)
2703
+ else:
2704
+ print(server_help_msg)
2705
+ except (KeyboardInterrupt, EOFError):
2706
+ print()
2707
+ finally:
2708
+ if serverthread.serving:
2709
+ serverthread.stop()
2710
+ print('Server stopped')
2711
+
2712
+
2713
+ # -------------------------------------------------- command-line interface
2714
+
2715
+ def ispath(x):
2716
+ return isinstance(x, str) and x.find(os.sep) >= 0
2717
+
2718
+ def _get_revised_path(given_path, argv0):
2719
+ """Ensures current directory is on returned path, and argv0 directory is not
2720
+
2721
+ Exception: argv0 dir is left alone if it's also pydoc's directory.
2722
+
2723
+ Returns a new path entry list, or None if no adjustment is needed.
2724
+ """
2725
+ # Scripts may get the current directory in their path by default if they're
2726
+ # run with the -m switch, or directly from the current directory.
2727
+ # The interactive prompt also allows imports from the current directory.
2728
+
2729
+ # Accordingly, if the current directory is already present, don't make
2730
+ # any changes to the given_path
2731
+ if '' in given_path or os.curdir in given_path or os.getcwd() in given_path:
2732
+ return None
2733
+
2734
+ # Otherwise, add the current directory to the given path, and remove the
2735
+ # script directory (as long as the latter isn't also pydoc's directory.
2736
+ stdlib_dir = os.path.dirname(__file__)
2737
+ script_dir = os.path.dirname(argv0)
2738
+ revised_path = given_path.copy()
2739
+ if script_dir in given_path and not os.path.samefile(script_dir, stdlib_dir):
2740
+ revised_path.remove(script_dir)
2741
+ revised_path.insert(0, os.getcwd())
2742
+ return revised_path
2743
+
2744
+
2745
+ # Note: the tests only cover _get_revised_path, not _adjust_cli_path itself
2746
+ def _adjust_cli_sys_path():
2747
+ """Ensures current directory is on sys.path, and __main__ directory is not.
2748
+
2749
+ Exception: __main__ dir is left alone if it's also pydoc's directory.
2750
+ """
2751
+ revised_path = _get_revised_path(sys.path, sys.argv[0])
2752
+ if revised_path is not None:
2753
+ sys.path[:] = revised_path
2754
+
2755
+
2756
+ def cli():
2757
+ """Command-line interface (looks at sys.argv to decide what to do)."""
2758
+ import getopt
2759
+ class BadUsage(Exception): pass
2760
+
2761
+ _adjust_cli_sys_path()
2762
+
2763
+ try:
2764
+ opts, args = getopt.getopt(sys.argv[1:], 'bk:n:p:w')
2765
+ writing = False
2766
+ start_server = False
2767
+ open_browser = False
2768
+ port = 0
2769
+ hostname = 'localhost'
2770
+ for opt, val in opts:
2771
+ if opt == '-b':
2772
+ start_server = True
2773
+ open_browser = True
2774
+ if opt == '-k':
2775
+ apropos(val)
2776
+ return
2777
+ if opt == '-p':
2778
+ start_server = True
2779
+ port = val
2780
+ if opt == '-w':
2781
+ writing = True
2782
+ if opt == '-n':
2783
+ start_server = True
2784
+ hostname = val
2785
+
2786
+ if start_server:
2787
+ browse(port, hostname=hostname, open_browser=open_browser)
2788
+ return
2789
+
2790
+ if not args: raise BadUsage
2791
+ for arg in args:
2792
+ if ispath(arg) and not os.path.exists(arg):
2793
+ print('file %r does not exist' % arg)
2794
+ sys.exit(1)
2795
+ try:
2796
+ if ispath(arg) and os.path.isfile(arg):
2797
+ arg = importfile(arg)
2798
+ if writing:
2799
+ if ispath(arg) and os.path.isdir(arg):
2800
+ writedocs(arg)
2801
+ else:
2802
+ writedoc(arg)
2803
+ else:
2804
+ help.help(arg, is_cli=True)
2805
+ except (ImportError, ErrorDuringImport) as value:
2806
+ print(value)
2807
+ sys.exit(1)
2808
+
2809
+ except (getopt.error, BadUsage):
2810
+ cmd = os.path.splitext(os.path.basename(sys.argv[0]))[0]
2811
+ print("""pydoc - the Python documentation tool
2812
+
2813
+ {cmd} <name> ...
2814
+ Show text documentation on something. <name> may be the name of a
2815
+ Python keyword, topic, function, module, or package, or a dotted
2816
+ reference to a class or function within a module or module in a
2817
+ package. If <name> contains a '{sep}', it is used as the path to a
2818
+ Python source file to document. If name is 'keywords', 'topics',
2819
+ or 'modules', a listing of these things is displayed.
2820
+
2821
+ {cmd} -k <keyword>
2822
+ Search for a keyword in the synopsis lines of all available modules.
2823
+
2824
+ {cmd} -n <hostname>
2825
+ Start an HTTP server with the given hostname (default: localhost).
2826
+
2827
+ {cmd} -p <port>
2828
+ Start an HTTP server on the given port on the local machine. Port
2829
+ number 0 can be used to get an arbitrary unused port.
2830
+
2831
+ {cmd} -b
2832
+ Start an HTTP server on an arbitrary unused port and open a web browser
2833
+ to interactively browse documentation. This option can be used in
2834
+ combination with -n and/or -p.
2835
+
2836
+ {cmd} -w <name> ...
2837
+ Write out the HTML documentation for a module to a file in the current
2838
+ directory. If <name> contains a '{sep}', it is treated as a filename; if
2839
+ it names a directory, documentation is written for all the contents.
2840
+ """.format(cmd=cmd, sep=os.sep))
2841
+
2842
+ if __name__ == '__main__':
2843
+ cli()