@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,2177 @@
1
+ """An extensible library for opening URLs using a variety of protocols
2
+
3
+ The simplest way to use this module is to call the urlopen function,
4
+ which accepts a string containing a URL or a Request object (described
5
+ below). It opens the URL and returns the results as file-like
6
+ object; the returned object has some extra methods described below.
7
+
8
+ The OpenerDirector manages a collection of Handler objects that do
9
+ all the actual work. Each Handler implements a particular protocol or
10
+ option. The OpenerDirector is a composite object that invokes the
11
+ Handlers needed to open the requested URL. For example, the
12
+ HTTPHandler performs HTTP GET and POST requests and deals with
13
+ non-error returns. The HTTPRedirectHandler automatically deals with
14
+ HTTP 301, 302, 303, 307, and 308 redirect errors, and the
15
+ HTTPDigestAuthHandler deals with digest authentication.
16
+
17
+ urlopen(url, data=None) -- Basic usage is the same as original
18
+ urllib. pass the url and optionally data to post to an HTTP URL, and
19
+ get a file-like object back. One difference is that you can also pass
20
+ a Request instance instead of URL. Raises a URLError (subclass of
21
+ OSError); for HTTP errors, raises an HTTPError, which can also be
22
+ treated as a valid response.
23
+
24
+ build_opener -- Function that creates a new OpenerDirector instance.
25
+ Will install the default handlers. Accepts one or more Handlers as
26
+ arguments, either instances or Handler classes that it will
27
+ instantiate. If one of the argument is a subclass of the default
28
+ handler, the argument will be installed instead of the default.
29
+
30
+ install_opener -- Installs a new opener as the default opener.
31
+
32
+ objects of interest:
33
+
34
+ OpenerDirector -- Sets up the User Agent as the Python-urllib client and manages
35
+ the Handler classes, while dealing with requests and responses.
36
+
37
+ Request -- An object that encapsulates the state of a request. The
38
+ state can be as simple as the URL. It can also include extra HTTP
39
+ headers, e.g. a User-Agent.
40
+
41
+ BaseHandler --
42
+
43
+ internals:
44
+ BaseHandler and parent
45
+ _call_chain conventions
46
+
47
+ Example usage:
48
+
49
+ import urllib.request
50
+
51
+ # set up authentication info
52
+ authinfo = urllib.request.HTTPBasicAuthHandler()
53
+ authinfo.add_password(realm='PDQ Application',
54
+ uri='https://mahler:8092/site-updates.py',
55
+ user='klem',
56
+ passwd='geheim$parole')
57
+
58
+ proxy_support = urllib.request.ProxyHandler({"http" : "http://ahad-haam:3128"})
59
+
60
+ # build a new opener that adds authentication and caching FTP handlers
61
+ opener = urllib.request.build_opener(proxy_support, authinfo,
62
+ urllib.request.CacheFTPHandler)
63
+
64
+ # install it
65
+ urllib.request.install_opener(opener)
66
+
67
+ f = urllib.request.urlopen('https://www.python.org/')
68
+ """
69
+
70
+ # XXX issues:
71
+ # If an authentication error handler that tries to perform
72
+ # authentication for some reason but fails, how should the error be
73
+ # signalled? The client needs to know the HTTP error code. But if
74
+ # the handler knows that the problem was, e.g., that it didn't know
75
+ # that hash algo that requested in the challenge, it would be good to
76
+ # pass that information along to the client, too.
77
+ # ftp errors aren't handled cleanly
78
+ # check digest against correct (i.e. non-apache) implementation
79
+
80
+ # Possible extensions:
81
+ # complex proxies XXX not sure what exactly was meant by this
82
+ # abstract factory for opener
83
+
84
+ import base64
85
+ import bisect
86
+ import contextlib
87
+ import email
88
+ import hashlib
89
+ import http.client
90
+ import io
91
+ import os
92
+ import re
93
+ import socket
94
+ import string
95
+ import sys
96
+ import time
97
+ import tempfile
98
+
99
+
100
+ from urllib.error import URLError, HTTPError, ContentTooShortError
101
+ from urllib.parse import (
102
+ urlparse, urlsplit, urljoin, unwrap, quote, unquote,
103
+ _splittype, _splithost, _splitport, _splituser, _splitpasswd,
104
+ _splitattr, _splitvalue, _splittag,
105
+ unquote_to_bytes, urlunparse)
106
+ from urllib.response import addinfourl, addclosehook
107
+
108
+ # check for SSL
109
+ try:
110
+ import ssl # noqa: F401
111
+ except ImportError:
112
+ _have_ssl = False
113
+ else:
114
+ _have_ssl = True
115
+
116
+ __all__ = [
117
+ # Classes
118
+ 'Request', 'OpenerDirector', 'BaseHandler', 'HTTPDefaultErrorHandler',
119
+ 'HTTPRedirectHandler', 'HTTPCookieProcessor', 'ProxyHandler',
120
+ 'HTTPPasswordMgr', 'HTTPPasswordMgrWithDefaultRealm',
121
+ 'HTTPPasswordMgrWithPriorAuth', 'AbstractBasicAuthHandler',
122
+ 'HTTPBasicAuthHandler', 'ProxyBasicAuthHandler', 'AbstractDigestAuthHandler',
123
+ 'HTTPDigestAuthHandler', 'ProxyDigestAuthHandler', 'HTTPHandler',
124
+ 'FileHandler', 'FTPHandler', 'CacheFTPHandler', 'DataHandler',
125
+ 'UnknownHandler', 'HTTPErrorProcessor',
126
+ # Functions
127
+ 'urlopen', 'install_opener', 'build_opener',
128
+ 'pathname2url', 'url2pathname', 'getproxies',
129
+ # Legacy interface
130
+ 'urlretrieve', 'urlcleanup',
131
+ ]
132
+
133
+ # used in User-Agent header sent
134
+ __version__ = '%d.%d' % sys.version_info[:2]
135
+
136
+ _opener = None
137
+ def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
138
+ *, context=None):
139
+ '''Open the URL url, which can be either a string or a Request object.
140
+
141
+ *data* must be an object specifying additional data to be sent to
142
+ the server, or None if no such data is needed. See Request for
143
+ details.
144
+
145
+ urllib.request module uses HTTP/1.1 and includes a "Connection:close"
146
+ header in its HTTP requests.
147
+
148
+ The optional *timeout* parameter specifies a timeout in seconds for
149
+ blocking operations like the connection attempt (if not specified, the
150
+ global default timeout setting will be used). This only works for HTTP,
151
+ HTTPS and FTP connections.
152
+
153
+ If *context* is specified, it must be a ssl.SSLContext instance describing
154
+ the various SSL options. See HTTPSConnection for more details.
155
+
156
+
157
+ This function always returns an object which can work as a
158
+ context manager and has the properties url, headers, and status.
159
+ See urllib.response.addinfourl for more detail on these properties.
160
+
161
+ For HTTP and HTTPS URLs, this function returns a http.client.HTTPResponse
162
+ object slightly modified. In addition to the three new methods above, the
163
+ msg attribute contains the same information as the reason attribute ---
164
+ the reason phrase returned by the server --- instead of the response
165
+ headers as it is specified in the documentation for HTTPResponse.
166
+
167
+ For FTP, file, and data URLs, this function returns a
168
+ urllib.response.addinfourl object.
169
+
170
+ Note that None may be returned if no handler handles the request (though
171
+ the default installed global OpenerDirector uses UnknownHandler to ensure
172
+ this never happens).
173
+
174
+ In addition, if proxy settings are detected (for example, when a *_proxy
175
+ environment variable like http_proxy is set), ProxyHandler is default
176
+ installed and makes sure the requests are handled through the proxy.
177
+
178
+ '''
179
+ global _opener
180
+ if context:
181
+ https_handler = HTTPSHandler(context=context)
182
+ opener = build_opener(https_handler)
183
+ elif _opener is None:
184
+ _opener = opener = build_opener()
185
+ else:
186
+ opener = _opener
187
+ return opener.open(url, data, timeout)
188
+
189
+ def install_opener(opener):
190
+ global _opener
191
+ _opener = opener
192
+
193
+ _url_tempfiles = []
194
+ def urlretrieve(url, filename=None, reporthook=None, data=None):
195
+ """
196
+ Retrieve a URL into a temporary location on disk.
197
+
198
+ Requires a URL argument. If a filename is passed, it is used as
199
+ the temporary file location. The reporthook argument should be
200
+ a callable that accepts a block number, a read size, and the
201
+ total file size of the URL target. The data argument should be
202
+ valid URL encoded data.
203
+
204
+ If a filename is passed and the URL points to a local resource,
205
+ the result is a copy from local file to new file.
206
+
207
+ Returns a tuple containing the path to the newly created
208
+ data file as well as the resulting HTTPMessage object.
209
+ """
210
+ url_type, path = _splittype(url)
211
+
212
+ with contextlib.closing(urlopen(url, data)) as fp:
213
+ headers = fp.info()
214
+
215
+ # Just return the local path and the "headers" for file://
216
+ # URLs. No sense in performing a copy unless requested.
217
+ if url_type == "file" and not filename:
218
+ return os.path.normpath(path), headers
219
+
220
+ # Handle temporary file setup.
221
+ if filename:
222
+ tfp = open(filename, 'wb')
223
+ else:
224
+ tfp = tempfile.NamedTemporaryFile(delete=False)
225
+ filename = tfp.name
226
+ _url_tempfiles.append(filename)
227
+
228
+ with tfp:
229
+ result = filename, headers
230
+ bs = 1024*8
231
+ size = -1
232
+ read = 0
233
+ blocknum = 0
234
+ if "content-length" in headers:
235
+ size = int(headers["Content-Length"])
236
+
237
+ if reporthook:
238
+ reporthook(blocknum, bs, size)
239
+
240
+ while block := fp.read(bs):
241
+ read += len(block)
242
+ tfp.write(block)
243
+ blocknum += 1
244
+ if reporthook:
245
+ reporthook(blocknum, bs, size)
246
+
247
+ if size >= 0 and read < size:
248
+ raise ContentTooShortError(
249
+ "retrieval incomplete: got only %i out of %i bytes"
250
+ % (read, size), result)
251
+
252
+ return result
253
+
254
+ def urlcleanup():
255
+ """Clean up temporary files from urlretrieve calls."""
256
+ for temp_file in _url_tempfiles:
257
+ try:
258
+ os.unlink(temp_file)
259
+ except OSError:
260
+ pass
261
+
262
+ del _url_tempfiles[:]
263
+ global _opener
264
+ if _opener:
265
+ _opener = None
266
+
267
+ # copied from cookielib.py
268
+ _cut_port_re = re.compile(r":\d+$", re.ASCII)
269
+ def request_host(request):
270
+ """Return request-host, as defined by RFC 2965.
271
+
272
+ Variation from RFC: returned value is lowercased, for convenient
273
+ comparison.
274
+
275
+ """
276
+ url = request.full_url
277
+ host = urlparse(url)[1]
278
+ if host == "":
279
+ host = request.get_header("Host", "")
280
+
281
+ # remove port, if present
282
+ host = _cut_port_re.sub("", host, 1)
283
+ return host.lower()
284
+
285
+ class Request:
286
+
287
+ def __init__(self, url, data=None, headers={},
288
+ origin_req_host=None, unverifiable=False,
289
+ method=None):
290
+ self.full_url = url
291
+ self.headers = {}
292
+ self.unredirected_hdrs = {}
293
+ self._data = None
294
+ self.data = data
295
+ self._tunnel_host = None
296
+ for key, value in headers.items():
297
+ self.add_header(key, value)
298
+ if origin_req_host is None:
299
+ origin_req_host = request_host(self)
300
+ self.origin_req_host = origin_req_host
301
+ self.unverifiable = unverifiable
302
+ if method:
303
+ self.method = method
304
+
305
+ @property
306
+ def full_url(self):
307
+ if self.fragment:
308
+ return '{}#{}'.format(self._full_url, self.fragment)
309
+ return self._full_url
310
+
311
+ @full_url.setter
312
+ def full_url(self, url):
313
+ # unwrap('<URL:type://host/path>') --> 'type://host/path'
314
+ self._full_url = unwrap(url)
315
+ self._full_url, self.fragment = _splittag(self._full_url)
316
+ self._parse()
317
+
318
+ @full_url.deleter
319
+ def full_url(self):
320
+ self._full_url = None
321
+ self.fragment = None
322
+ self.selector = ''
323
+
324
+ @property
325
+ def data(self):
326
+ return self._data
327
+
328
+ @data.setter
329
+ def data(self, data):
330
+ if data != self._data:
331
+ self._data = data
332
+ # issue 16464
333
+ # if we change data we need to remove content-length header
334
+ # (cause it's most probably calculated for previous value)
335
+ if self.has_header("Content-length"):
336
+ self.remove_header("Content-length")
337
+
338
+ @data.deleter
339
+ def data(self):
340
+ self.data = None
341
+
342
+ def _parse(self):
343
+ self.type, rest = _splittype(self._full_url)
344
+ if self.type is None:
345
+ raise ValueError("unknown url type: %r" % self.full_url)
346
+ self.host, self.selector = _splithost(rest)
347
+ if self.host:
348
+ self.host = unquote(self.host)
349
+
350
+ def get_method(self):
351
+ """Return a string indicating the HTTP request method."""
352
+ default_method = "POST" if self.data is not None else "GET"
353
+ return getattr(self, 'method', default_method)
354
+
355
+ def get_full_url(self):
356
+ return self.full_url
357
+
358
+ def set_proxy(self, host, type):
359
+ if self.type == 'https' and not self._tunnel_host:
360
+ self._tunnel_host = self.host
361
+ else:
362
+ self.type= type
363
+ self.selector = self.full_url
364
+ self.host = host
365
+
366
+ def has_proxy(self):
367
+ return self.selector == self.full_url
368
+
369
+ def add_header(self, key, val):
370
+ # useful for something like authentication
371
+ self.headers[key.capitalize()] = val
372
+
373
+ def add_unredirected_header(self, key, val):
374
+ # will not be added to a redirected request
375
+ self.unredirected_hdrs[key.capitalize()] = val
376
+
377
+ def has_header(self, header_name):
378
+ return (header_name in self.headers or
379
+ header_name in self.unredirected_hdrs)
380
+
381
+ def get_header(self, header_name, default=None):
382
+ return self.headers.get(
383
+ header_name,
384
+ self.unredirected_hdrs.get(header_name, default))
385
+
386
+ def remove_header(self, header_name):
387
+ self.headers.pop(header_name, None)
388
+ self.unredirected_hdrs.pop(header_name, None)
389
+
390
+ def header_items(self):
391
+ hdrs = {**self.unredirected_hdrs, **self.headers}
392
+ return list(hdrs.items())
393
+
394
+ class OpenerDirector:
395
+ def __init__(self):
396
+ client_version = "Python-urllib/%s" % __version__
397
+ self.addheaders = [('User-agent', client_version)]
398
+ # self.handlers is retained only for backward compatibility
399
+ self.handlers = []
400
+ # manage the individual handlers
401
+ self.handle_open = {}
402
+ self.handle_error = {}
403
+ self.process_response = {}
404
+ self.process_request = {}
405
+
406
+ def add_handler(self, handler):
407
+ if not hasattr(handler, "add_parent"):
408
+ raise TypeError("expected BaseHandler instance, got %r" %
409
+ type(handler))
410
+
411
+ added = False
412
+ for meth in dir(handler):
413
+ if meth in ["redirect_request", "do_open", "proxy_open"]:
414
+ # oops, coincidental match
415
+ continue
416
+
417
+ i = meth.find("_")
418
+ if i < 1:
419
+ continue
420
+ protocol = meth[:i]
421
+ condition = meth[i+1:]
422
+
423
+ if condition.startswith("error"):
424
+ j = condition.find("_") + i + 1
425
+ kind = meth[j+1:]
426
+ try:
427
+ kind = int(kind)
428
+ except ValueError:
429
+ pass
430
+ lookup = self.handle_error.get(protocol, {})
431
+ self.handle_error[protocol] = lookup
432
+ elif condition == "open":
433
+ kind = protocol
434
+ lookup = self.handle_open
435
+ elif condition == "response":
436
+ kind = protocol
437
+ lookup = self.process_response
438
+ elif condition == "request":
439
+ kind = protocol
440
+ lookup = self.process_request
441
+ else:
442
+ continue
443
+
444
+ handlers = lookup.setdefault(kind, [])
445
+ if handlers:
446
+ bisect.insort(handlers, handler)
447
+ else:
448
+ handlers.append(handler)
449
+ added = True
450
+
451
+ if added:
452
+ bisect.insort(self.handlers, handler)
453
+ handler.add_parent(self)
454
+
455
+ def close(self):
456
+ # Only exists for backwards compatibility.
457
+ pass
458
+
459
+ def _call_chain(self, chain, kind, meth_name, *args):
460
+ # Handlers raise an exception if no one else should try to handle
461
+ # the request, or return None if they can't but another handler
462
+ # could. Otherwise, they return the response.
463
+ handlers = chain.get(kind, ())
464
+ for handler in handlers:
465
+ func = getattr(handler, meth_name)
466
+ result = func(*args)
467
+ if result is not None:
468
+ return result
469
+
470
+ def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
471
+ # accept a URL or a Request object
472
+ if isinstance(fullurl, str):
473
+ req = Request(fullurl, data)
474
+ else:
475
+ req = fullurl
476
+ if data is not None:
477
+ req.data = data
478
+
479
+ req.timeout = timeout
480
+ protocol = req.type
481
+
482
+ # pre-process request
483
+ meth_name = protocol+"_request"
484
+ for processor in self.process_request.get(protocol, []):
485
+ meth = getattr(processor, meth_name)
486
+ req = meth(req)
487
+
488
+ sys.audit('urllib.Request', req.full_url, req.data, req.headers, req.get_method())
489
+ response = self._open(req, data)
490
+
491
+ # post-process response
492
+ meth_name = protocol+"_response"
493
+ for processor in self.process_response.get(protocol, []):
494
+ meth = getattr(processor, meth_name)
495
+ response = meth(req, response)
496
+
497
+ return response
498
+
499
+ def _open(self, req, data=None):
500
+ result = self._call_chain(self.handle_open, 'default',
501
+ 'default_open', req)
502
+ if result:
503
+ return result
504
+
505
+ protocol = req.type
506
+ result = self._call_chain(self.handle_open, protocol, protocol +
507
+ '_open', req)
508
+ if result:
509
+ return result
510
+
511
+ return self._call_chain(self.handle_open, 'unknown',
512
+ 'unknown_open', req)
513
+
514
+ def error(self, proto, *args):
515
+ if proto in ('http', 'https'):
516
+ # XXX http[s] protocols are special-cased
517
+ dict = self.handle_error['http'] # https is not different than http
518
+ proto = args[2] # YUCK!
519
+ meth_name = 'http_error_%s' % proto
520
+ http_err = 1
521
+ orig_args = args
522
+ else:
523
+ dict = self.handle_error
524
+ meth_name = proto + '_error'
525
+ http_err = 0
526
+ args = (dict, proto, meth_name) + args
527
+ result = self._call_chain(*args)
528
+ if result:
529
+ return result
530
+
531
+ if http_err:
532
+ args = (dict, 'default', 'http_error_default') + orig_args
533
+ return self._call_chain(*args)
534
+
535
+ # XXX probably also want an abstract factory that knows when it makes
536
+ # sense to skip a superclass in favor of a subclass and when it might
537
+ # make sense to include both
538
+
539
+ def build_opener(*handlers):
540
+ """Create an opener object from a list of handlers.
541
+
542
+ The opener will use several default handlers, including support
543
+ for HTTP, FTP and when applicable HTTPS.
544
+
545
+ If any of the handlers passed as arguments are subclasses of the
546
+ default handlers, the default handlers will not be used.
547
+ """
548
+ opener = OpenerDirector()
549
+ default_classes = [ProxyHandler, UnknownHandler, HTTPHandler,
550
+ HTTPDefaultErrorHandler, HTTPRedirectHandler,
551
+ FTPHandler, FileHandler, HTTPErrorProcessor,
552
+ DataHandler]
553
+ if hasattr(http.client, "HTTPSConnection"):
554
+ default_classes.append(HTTPSHandler)
555
+ skip = set()
556
+ for klass in default_classes:
557
+ for check in handlers:
558
+ if isinstance(check, type):
559
+ if issubclass(check, klass):
560
+ skip.add(klass)
561
+ elif isinstance(check, klass):
562
+ skip.add(klass)
563
+ for klass in skip:
564
+ default_classes.remove(klass)
565
+
566
+ for klass in default_classes:
567
+ opener.add_handler(klass())
568
+
569
+ for h in handlers:
570
+ if isinstance(h, type):
571
+ h = h()
572
+ opener.add_handler(h)
573
+ return opener
574
+
575
+ class BaseHandler:
576
+ handler_order = 500
577
+
578
+ def add_parent(self, parent):
579
+ self.parent = parent
580
+
581
+ def close(self):
582
+ # Only exists for backwards compatibility
583
+ pass
584
+
585
+ def __lt__(self, other):
586
+ if not hasattr(other, "handler_order"):
587
+ # Try to preserve the old behavior of having custom classes
588
+ # inserted after default ones (works only for custom user
589
+ # classes which are not aware of handler_order).
590
+ return True
591
+ return self.handler_order < other.handler_order
592
+
593
+
594
+ class HTTPErrorProcessor(BaseHandler):
595
+ """Process HTTP error responses."""
596
+ handler_order = 1000 # after all other processing
597
+
598
+ def http_response(self, request, response):
599
+ code, msg, hdrs = response.code, response.msg, response.info()
600
+
601
+ # According to RFC 2616, "2xx" code indicates that the client's
602
+ # request was successfully received, understood, and accepted.
603
+ if not (200 <= code < 300):
604
+ response = self.parent.error(
605
+ 'http', request, response, code, msg, hdrs)
606
+
607
+ return response
608
+
609
+ https_response = http_response
610
+
611
+ class HTTPDefaultErrorHandler(BaseHandler):
612
+ def http_error_default(self, req, fp, code, msg, hdrs):
613
+ raise HTTPError(req.full_url, code, msg, hdrs, fp)
614
+
615
+ class HTTPRedirectHandler(BaseHandler):
616
+ # maximum number of redirections to any single URL
617
+ # this is needed because of the state that cookies introduce
618
+ max_repeats = 4
619
+ # maximum total number of redirections (regardless of URL) before
620
+ # assuming we're in a loop
621
+ max_redirections = 10
622
+
623
+ def redirect_request(self, req, fp, code, msg, headers, newurl):
624
+ """Return a Request or None in response to a redirect.
625
+
626
+ This is called by the http_error_30x methods when a
627
+ redirection response is received. If a redirection should
628
+ take place, return a new Request to allow http_error_30x to
629
+ perform the redirect. Otherwise, raise HTTPError if no-one
630
+ else should try to handle this url. Return None if you can't
631
+ but another Handler might.
632
+ """
633
+ m = req.get_method()
634
+ if (not (code in (301, 302, 303, 307, 308) and m in ("GET", "HEAD")
635
+ or code in (301, 302, 303) and m == "POST")):
636
+ raise HTTPError(req.full_url, code, msg, headers, fp)
637
+
638
+ # Strictly (according to RFC 2616), 301 or 302 in response to
639
+ # a POST MUST NOT cause a redirection without confirmation
640
+ # from the user (of urllib.request, in this case). In practice,
641
+ # essentially all clients do redirect in this case, so we do
642
+ # the same.
643
+
644
+ # Be conciliant with URIs containing a space. This is mainly
645
+ # redundant with the more complete encoding done in http_error_302(),
646
+ # but it is kept for compatibility with other callers.
647
+ newurl = newurl.replace(' ', '%20')
648
+
649
+ CONTENT_HEADERS = ("content-length", "content-type")
650
+ newheaders = {k: v for k, v in req.headers.items()
651
+ if k.lower() not in CONTENT_HEADERS}
652
+ return Request(newurl,
653
+ method="HEAD" if m == "HEAD" else "GET",
654
+ headers=newheaders,
655
+ origin_req_host=req.origin_req_host,
656
+ unverifiable=True)
657
+
658
+ # Implementation note: To avoid the server sending us into an
659
+ # infinite loop, the request object needs to track what URLs we
660
+ # have already seen. Do this by adding a handler-specific
661
+ # attribute to the Request object.
662
+ def http_error_302(self, req, fp, code, msg, headers):
663
+ # Some servers (incorrectly) return multiple Location headers
664
+ # (so probably same goes for URI). Use first header.
665
+ if "location" in headers:
666
+ newurl = headers["location"]
667
+ elif "uri" in headers:
668
+ newurl = headers["uri"]
669
+ else:
670
+ return
671
+
672
+ # fix a possible malformed URL
673
+ urlparts = urlparse(newurl)
674
+
675
+ # For security reasons we don't allow redirection to anything other
676
+ # than http, https or ftp.
677
+
678
+ if urlparts.scheme not in ('http', 'https', 'ftp', ''):
679
+ raise HTTPError(
680
+ newurl, code,
681
+ "%s - Redirection to url '%s' is not allowed" % (msg, newurl),
682
+ headers, fp)
683
+
684
+ if not urlparts.path and urlparts.netloc:
685
+ urlparts = list(urlparts)
686
+ urlparts[2] = "/"
687
+ newurl = urlunparse(urlparts)
688
+
689
+ # http.client.parse_headers() decodes as ISO-8859-1. Recover the
690
+ # original bytes and percent-encode non-ASCII bytes, and any special
691
+ # characters such as the space.
692
+ newurl = quote(
693
+ newurl, encoding="iso-8859-1", safe=string.punctuation)
694
+ newurl = urljoin(req.full_url, newurl)
695
+
696
+ # XXX Probably want to forget about the state of the current
697
+ # request, although that might interact poorly with other
698
+ # handlers that also use handler-specific request attributes
699
+ new = self.redirect_request(req, fp, code, msg, headers, newurl)
700
+ if new is None:
701
+ return
702
+
703
+ # loop detection
704
+ # .redirect_dict has a key url if url was previously visited.
705
+ if hasattr(req, 'redirect_dict'):
706
+ visited = new.redirect_dict = req.redirect_dict
707
+ if (visited.get(newurl, 0) >= self.max_repeats or
708
+ len(visited) >= self.max_redirections):
709
+ raise HTTPError(req.full_url, code,
710
+ self.inf_msg + msg, headers, fp)
711
+ else:
712
+ visited = new.redirect_dict = req.redirect_dict = {}
713
+ visited[newurl] = visited.get(newurl, 0) + 1
714
+
715
+ # Don't close the fp until we are sure that we won't use it
716
+ # with HTTPError.
717
+ fp.read()
718
+ fp.close()
719
+
720
+ return self.parent.open(new, timeout=req.timeout)
721
+
722
+ http_error_301 = http_error_303 = http_error_307 = http_error_308 = http_error_302
723
+
724
+ inf_msg = "The HTTP server returned a redirect error that would " \
725
+ "lead to an infinite loop.\n" \
726
+ "The last 30x error message was:\n"
727
+
728
+
729
+ def _parse_proxy(proxy):
730
+ """Return (scheme, user, password, host/port) given a URL or an authority.
731
+
732
+ If a URL is supplied, it must have an authority (host:port) component.
733
+ According to RFC 3986, having an authority component means the URL must
734
+ have two slashes after the scheme.
735
+ """
736
+ scheme, r_scheme = _splittype(proxy)
737
+ if not r_scheme.startswith("/"):
738
+ # authority
739
+ scheme = None
740
+ authority = proxy
741
+ else:
742
+ # URL
743
+ if not r_scheme.startswith("//"):
744
+ raise ValueError("proxy URL with no authority: %r" % proxy)
745
+ # We have an authority, so for RFC 3986-compliant URLs (by ss 3.
746
+ # and 3.3.), path is empty or starts with '/'
747
+ if '@' in r_scheme:
748
+ host_separator = r_scheme.find('@')
749
+ end = r_scheme.find("/", host_separator)
750
+ else:
751
+ end = r_scheme.find("/", 2)
752
+ if end == -1:
753
+ end = None
754
+ authority = r_scheme[2:end]
755
+ userinfo, hostport = _splituser(authority)
756
+ if userinfo is not None:
757
+ user, password = _splitpasswd(userinfo)
758
+ else:
759
+ user = password = None
760
+ return scheme, user, password, hostport
761
+
762
+ class ProxyHandler(BaseHandler):
763
+ # Proxies must be in front
764
+ handler_order = 100
765
+
766
+ def __init__(self, proxies=None):
767
+ if proxies is None:
768
+ proxies = getproxies()
769
+ assert hasattr(proxies, 'keys'), "proxies must be a mapping"
770
+ self.proxies = proxies
771
+ for type, url in proxies.items():
772
+ type = type.lower()
773
+ setattr(self, '%s_open' % type,
774
+ lambda r, proxy=url, type=type, meth=self.proxy_open:
775
+ meth(r, proxy, type))
776
+
777
+ def proxy_open(self, req, proxy, type):
778
+ orig_type = req.type
779
+ proxy_type, user, password, hostport = _parse_proxy(proxy)
780
+ if proxy_type is None:
781
+ proxy_type = orig_type
782
+
783
+ if req.host and proxy_bypass(req.host):
784
+ return None
785
+
786
+ if user and password:
787
+ user_pass = '%s:%s' % (unquote(user),
788
+ unquote(password))
789
+ creds = base64.b64encode(user_pass.encode()).decode("ascii")
790
+ req.add_header('Proxy-authorization', 'Basic ' + creds)
791
+ hostport = unquote(hostport)
792
+ req.set_proxy(hostport, proxy_type)
793
+ if orig_type == proxy_type or orig_type == 'https':
794
+ # let other handlers take care of it
795
+ return None
796
+ else:
797
+ # need to start over, because the other handlers don't
798
+ # grok the proxy's URL type
799
+ # e.g. if we have a constructor arg proxies like so:
800
+ # {'http': 'ftp://proxy.example.com'}, we may end up turning
801
+ # a request for http://acme.example.com/a into one for
802
+ # ftp://proxy.example.com/a
803
+ return self.parent.open(req, timeout=req.timeout)
804
+
805
+ class HTTPPasswordMgr:
806
+
807
+ def __init__(self):
808
+ self.passwd = {}
809
+
810
+ def add_password(self, realm, uri, user, passwd):
811
+ # uri could be a single URI or a sequence
812
+ if isinstance(uri, str):
813
+ uri = [uri]
814
+ if realm not in self.passwd:
815
+ self.passwd[realm] = {}
816
+ for default_port in True, False:
817
+ reduced_uri = tuple(
818
+ self._reduce_uri_with_scheme(u, default_port) for u in uri)
819
+ self.passwd[realm][reduced_uri] = (user, passwd)
820
+
821
+ def find_user_password(self, realm, authuri):
822
+ domains = self.passwd.get(realm, {})
823
+ for default_port in True, False:
824
+ reduced_authuri = self._reduce_uri_with_scheme(
825
+ authuri, default_port)
826
+ for uris, authinfo in domains.items():
827
+ for uri in uris:
828
+ if self._is_suburi_with_scheme(uri, reduced_authuri):
829
+ return authinfo
830
+ return None, None
831
+
832
+ def reduce_uri(self, uri, default_port=True):
833
+ """Accept authority or URI and extract only the authority and path."""
834
+ # note HTTP URLs do not have a userinfo component
835
+ parts = urlsplit(uri)
836
+ if parts[1]:
837
+ # URI
838
+ scheme = parts[0]
839
+ authority = parts[1]
840
+ path = parts[2] or '/'
841
+ else:
842
+ # host or host:port
843
+ scheme = None
844
+ authority = uri
845
+ path = '/'
846
+ host, port = _splitport(authority)
847
+ if default_port and port is None and scheme is not None:
848
+ dport = {"http": 80,
849
+ "https": 443,
850
+ }.get(scheme)
851
+ if dport is not None:
852
+ authority = "%s:%d" % (host, dport)
853
+ return authority, path
854
+
855
+ def _reduce_uri_with_scheme(self, uri, default_port=True):
856
+ parts = urlsplit(uri)
857
+ scheme = parts[0] if parts[1] else None
858
+ return (scheme or None, *self.reduce_uri(uri, default_port))
859
+
860
+ def _is_suburi_with_scheme(self, base, test):
861
+ if (base[0] is not None and test[0] is not None and
862
+ base[0] != test[0]):
863
+ return False
864
+ return self.is_suburi(base[1:], test[1:])
865
+
866
+ def is_suburi(self, base, test):
867
+ """Check if test is below base in a URI tree
868
+
869
+ Both args must be URIs in reduced form.
870
+ """
871
+ if base == test:
872
+ return True
873
+ if base[0] != test[0]:
874
+ return False
875
+ prefix = base[1]
876
+ if prefix[-1:] != '/':
877
+ prefix += '/'
878
+ return test[1].startswith(prefix)
879
+
880
+
881
+ class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr):
882
+
883
+ def find_user_password(self, realm, authuri):
884
+ user, password = HTTPPasswordMgr.find_user_password(self, realm,
885
+ authuri)
886
+ if user is not None:
887
+ return user, password
888
+ return HTTPPasswordMgr.find_user_password(self, None, authuri)
889
+
890
+
891
+ class HTTPPasswordMgrWithPriorAuth(HTTPPasswordMgrWithDefaultRealm):
892
+
893
+ def __init__(self):
894
+ self.authenticated = {}
895
+ super().__init__()
896
+
897
+ def add_password(self, realm, uri, user, passwd, is_authenticated=False):
898
+ self.update_authenticated(uri, is_authenticated)
899
+ # Add a default for prior auth requests
900
+ if realm is not None:
901
+ super().add_password(None, uri, user, passwd)
902
+ super().add_password(realm, uri, user, passwd)
903
+
904
+ def update_authenticated(self, uri, is_authenticated=False):
905
+ # uri could be a single URI or a sequence
906
+ if isinstance(uri, str):
907
+ uri = [uri]
908
+
909
+ for default_port in True, False:
910
+ for u in uri:
911
+ reduced_uri = self._reduce_uri_with_scheme(u, default_port)
912
+ self.authenticated[reduced_uri] = is_authenticated
913
+
914
+ def is_authenticated(self, authuri):
915
+ for default_port in True, False:
916
+ reduced_authuri = self._reduce_uri_with_scheme(
917
+ authuri, default_port)
918
+ for uri in self.authenticated:
919
+ if self._is_suburi_with_scheme(uri, reduced_authuri):
920
+ return self.authenticated[uri]
921
+
922
+
923
+ class AbstractBasicAuthHandler:
924
+
925
+ # XXX this allows for multiple auth-schemes, but will stupidly pick
926
+ # the last one with a realm specified.
927
+
928
+ # allow for double- and single-quoted realm values
929
+ # (single quotes are a violation of the RFC, but appear in the wild)
930
+ rx = re.compile('(?:^|,)' # start of the string or ','
931
+ '[ \t]*' # optional whitespaces
932
+ '([^ \t,]+)' # scheme like "Basic"
933
+ '[ \t]+' # mandatory whitespaces
934
+ # realm=xxx
935
+ # realm='xxx'
936
+ # realm="xxx"
937
+ 'realm=(["\']?)([^"\']*)\\2',
938
+ re.I)
939
+
940
+ # XXX could pre-emptively send auth info already accepted (RFC 2617,
941
+ # end of section 2, and section 1.2 immediately after "credentials"
942
+ # production).
943
+
944
+ def __init__(self, password_mgr=None):
945
+ if password_mgr is None:
946
+ password_mgr = HTTPPasswordMgr()
947
+ self.passwd = password_mgr
948
+ self.add_password = self.passwd.add_password
949
+
950
+ def _parse_realm(self, header):
951
+ # parse WWW-Authenticate header: accept multiple challenges per header
952
+ found_challenge = False
953
+ for mo in AbstractBasicAuthHandler.rx.finditer(header):
954
+ scheme, quote, realm = mo.groups()
955
+ if quote not in ['"', "'"]:
956
+ import warnings
957
+ warnings.warn("Basic Auth Realm was unquoted",
958
+ UserWarning, 3)
959
+
960
+ yield (scheme, realm)
961
+
962
+ found_challenge = True
963
+
964
+ if not found_challenge:
965
+ if header:
966
+ scheme = header.split()[0]
967
+ else:
968
+ scheme = ''
969
+ yield (scheme, None)
970
+
971
+ def http_error_auth_reqed(self, authreq, host, req, headers):
972
+ # host may be an authority (without userinfo) or a URL with an
973
+ # authority
974
+ headers = headers.get_all(authreq)
975
+ if not headers:
976
+ # no header found
977
+ return
978
+
979
+ unsupported = None
980
+ for header in headers:
981
+ for scheme, realm in self._parse_realm(header):
982
+ if scheme.lower() != 'basic':
983
+ unsupported = scheme
984
+ continue
985
+
986
+ if realm is not None:
987
+ # Use the first matching Basic challenge.
988
+ # Ignore following challenges even if they use the Basic
989
+ # scheme.
990
+ return self.retry_http_basic_auth(host, req, realm)
991
+
992
+ if unsupported is not None:
993
+ raise ValueError("AbstractBasicAuthHandler does not "
994
+ "support the following scheme: %r"
995
+ % (scheme,))
996
+
997
+ def retry_http_basic_auth(self, host, req, realm):
998
+ user, pw = self.passwd.find_user_password(realm, host)
999
+ if pw is not None:
1000
+ raw = "%s:%s" % (user, pw)
1001
+ auth = "Basic " + base64.b64encode(raw.encode()).decode("ascii")
1002
+ if req.get_header(self.auth_header, None) == auth:
1003
+ return None
1004
+ req.add_unredirected_header(self.auth_header, auth)
1005
+ return self.parent.open(req, timeout=req.timeout)
1006
+ else:
1007
+ return None
1008
+
1009
+ def http_request(self, req):
1010
+ if (not hasattr(self.passwd, 'is_authenticated') or
1011
+ not self.passwd.is_authenticated(req.full_url)):
1012
+ return req
1013
+
1014
+ if not req.has_header('Authorization'):
1015
+ user, passwd = self.passwd.find_user_password(None, req.full_url)
1016
+ credentials = '{0}:{1}'.format(user, passwd).encode()
1017
+ auth_str = base64.standard_b64encode(credentials).decode()
1018
+ req.add_unredirected_header('Authorization',
1019
+ 'Basic {}'.format(auth_str.strip()))
1020
+ return req
1021
+
1022
+ def http_response(self, req, response):
1023
+ if hasattr(self.passwd, 'is_authenticated'):
1024
+ if 200 <= response.code < 300:
1025
+ self.passwd.update_authenticated(req.full_url, True)
1026
+ else:
1027
+ self.passwd.update_authenticated(req.full_url, False)
1028
+ return response
1029
+
1030
+ https_request = http_request
1031
+ https_response = http_response
1032
+
1033
+
1034
+
1035
+ class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
1036
+
1037
+ auth_header = 'Authorization'
1038
+
1039
+ def http_error_401(self, req, fp, code, msg, headers):
1040
+ url = req.full_url
1041
+ response = self.http_error_auth_reqed('www-authenticate',
1042
+ url, req, headers)
1043
+ return response
1044
+
1045
+
1046
+ class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
1047
+
1048
+ auth_header = 'Proxy-authorization'
1049
+
1050
+ def http_error_407(self, req, fp, code, msg, headers):
1051
+ # http_error_auth_reqed requires that there is no userinfo component in
1052
+ # authority. Assume there isn't one, since urllib.request does not (and
1053
+ # should not, RFC 3986 s. 3.2.1) support requests for URLs containing
1054
+ # userinfo.
1055
+ authority = req.host
1056
+ response = self.http_error_auth_reqed('proxy-authenticate',
1057
+ authority, req, headers)
1058
+ return response
1059
+
1060
+
1061
+ # Return n random bytes.
1062
+ _randombytes = os.urandom
1063
+
1064
+
1065
+ class AbstractDigestAuthHandler:
1066
+ # Digest authentication is specified in RFC 2617/7616.
1067
+
1068
+ # XXX The client does not inspect the Authentication-Info header
1069
+ # in a successful response.
1070
+
1071
+ # XXX It should be possible to test this implementation against
1072
+ # a mock server that just generates a static set of challenges.
1073
+
1074
+ # XXX qop="auth-int" supports is shaky
1075
+
1076
+ def __init__(self, passwd=None):
1077
+ if passwd is None:
1078
+ passwd = HTTPPasswordMgr()
1079
+ self.passwd = passwd
1080
+ self.add_password = self.passwd.add_password
1081
+ self.retried = 0
1082
+ self.nonce_count = 0
1083
+ self.last_nonce = None
1084
+
1085
+ def reset_retry_count(self):
1086
+ self.retried = 0
1087
+
1088
+ def http_error_auth_reqed(self, auth_header, host, req, headers):
1089
+ authreq = headers.get(auth_header, None)
1090
+ if self.retried > 5:
1091
+ # Don't fail endlessly - if we failed once, we'll probably
1092
+ # fail a second time. Hm. Unless the Password Manager is
1093
+ # prompting for the information. Crap. This isn't great
1094
+ # but it's better than the current 'repeat until recursion
1095
+ # depth exceeded' approach <wink>
1096
+ raise HTTPError(req.full_url, 401, "digest auth failed",
1097
+ headers, None)
1098
+ else:
1099
+ self.retried += 1
1100
+ if authreq:
1101
+ scheme = authreq.split()[0]
1102
+ if scheme.lower() == 'digest':
1103
+ return self.retry_http_digest_auth(req, authreq)
1104
+ elif scheme.lower() != 'basic':
1105
+ raise ValueError("AbstractDigestAuthHandler does not support"
1106
+ " the following scheme: '%s'" % scheme)
1107
+
1108
+ def retry_http_digest_auth(self, req, auth):
1109
+ token, challenge = auth.split(' ', 1)
1110
+ chal = parse_keqv_list(filter(None, parse_http_list(challenge)))
1111
+ auth = self.get_authorization(req, chal)
1112
+ if auth:
1113
+ auth_val = 'Digest %s' % auth
1114
+ if req.headers.get(self.auth_header, None) == auth_val:
1115
+ return None
1116
+ req.add_unredirected_header(self.auth_header, auth_val)
1117
+ resp = self.parent.open(req, timeout=req.timeout)
1118
+ return resp
1119
+
1120
+ def get_cnonce(self, nonce):
1121
+ # The cnonce-value is an opaque
1122
+ # quoted string value provided by the client and used by both client
1123
+ # and server to avoid chosen plaintext attacks, to provide mutual
1124
+ # authentication, and to provide some message integrity protection.
1125
+ # This isn't a fabulous effort, but it's probably Good Enough.
1126
+ s = "%s:%s:%s:" % (self.nonce_count, nonce, time.ctime())
1127
+ b = s.encode("ascii") + _randombytes(8)
1128
+ dig = hashlib.sha1(b).hexdigest()
1129
+ return dig[:16]
1130
+
1131
+ def get_authorization(self, req, chal):
1132
+ try:
1133
+ realm = chal['realm']
1134
+ nonce = chal['nonce']
1135
+ qop = chal.get('qop')
1136
+ algorithm = chal.get('algorithm', 'MD5')
1137
+ # mod_digest doesn't send an opaque, even though it isn't
1138
+ # supposed to be optional
1139
+ opaque = chal.get('opaque', None)
1140
+ except KeyError:
1141
+ return None
1142
+
1143
+ H, KD = self.get_algorithm_impls(algorithm)
1144
+ if H is None:
1145
+ return None
1146
+
1147
+ user, pw = self.passwd.find_user_password(realm, req.full_url)
1148
+ if user is None:
1149
+ return None
1150
+
1151
+ # XXX not implemented yet
1152
+ if req.data is not None:
1153
+ entdig = self.get_entity_digest(req.data, chal)
1154
+ else:
1155
+ entdig = None
1156
+
1157
+ A1 = "%s:%s:%s" % (user, realm, pw)
1158
+ A2 = "%s:%s" % (req.get_method(),
1159
+ # XXX selector: what about proxies and full urls
1160
+ req.selector)
1161
+ # NOTE: As per RFC 2617, when server sends "auth,auth-int", the client could use either `auth`
1162
+ # or `auth-int` to the response back. we use `auth` to send the response back.
1163
+ if qop is None:
1164
+ respdig = KD(H(A1), "%s:%s" % (nonce, H(A2)))
1165
+ elif 'auth' in qop.split(','):
1166
+ if nonce == self.last_nonce:
1167
+ self.nonce_count += 1
1168
+ else:
1169
+ self.nonce_count = 1
1170
+ self.last_nonce = nonce
1171
+ ncvalue = '%08x' % self.nonce_count
1172
+ cnonce = self.get_cnonce(nonce)
1173
+ noncebit = "%s:%s:%s:%s:%s" % (nonce, ncvalue, cnonce, 'auth', H(A2))
1174
+ respdig = KD(H(A1), noncebit)
1175
+ else:
1176
+ # XXX handle auth-int.
1177
+ raise URLError("qop '%s' is not supported." % qop)
1178
+
1179
+ # XXX should the partial digests be encoded too?
1180
+
1181
+ base = 'username="%s", realm="%s", nonce="%s", uri="%s", ' \
1182
+ 'response="%s"' % (user, realm, nonce, req.selector,
1183
+ respdig)
1184
+ if opaque:
1185
+ base += ', opaque="%s"' % opaque
1186
+ if entdig:
1187
+ base += ', digest="%s"' % entdig
1188
+ base += ', algorithm="%s"' % algorithm
1189
+ if qop:
1190
+ base += ', qop=auth, nc=%s, cnonce="%s"' % (ncvalue, cnonce)
1191
+ return base
1192
+
1193
+ def get_algorithm_impls(self, algorithm):
1194
+ # algorithm names taken from RFC 7616 Section 6.1
1195
+ # lambdas assume digest modules are imported at the top level
1196
+ if algorithm == 'MD5':
1197
+ H = lambda x: hashlib.md5(x.encode("ascii")).hexdigest()
1198
+ elif algorithm == 'SHA': # non-standard, retained for compatibility.
1199
+ H = lambda x: hashlib.sha1(x.encode("ascii")).hexdigest()
1200
+ elif algorithm == 'SHA-256':
1201
+ H = lambda x: hashlib.sha256(x.encode("ascii")).hexdigest()
1202
+ # XXX MD5-sess
1203
+ else:
1204
+ raise ValueError("Unsupported digest authentication "
1205
+ "algorithm %r" % algorithm)
1206
+ KD = lambda s, d: H("%s:%s" % (s, d))
1207
+ return H, KD
1208
+
1209
+ def get_entity_digest(self, data, chal):
1210
+ # XXX not implemented yet
1211
+ return None
1212
+
1213
+
1214
+ class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
1215
+ """An authentication protocol defined by RFC 2069
1216
+
1217
+ Digest authentication improves on basic authentication because it
1218
+ does not transmit passwords in the clear.
1219
+ """
1220
+
1221
+ auth_header = 'Authorization'
1222
+ handler_order = 490 # before Basic auth
1223
+
1224
+ def http_error_401(self, req, fp, code, msg, headers):
1225
+ host = urlparse(req.full_url)[1]
1226
+ retry = self.http_error_auth_reqed('www-authenticate',
1227
+ host, req, headers)
1228
+ self.reset_retry_count()
1229
+ return retry
1230
+
1231
+
1232
+ class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
1233
+
1234
+ auth_header = 'Proxy-Authorization'
1235
+ handler_order = 490 # before Basic auth
1236
+
1237
+ def http_error_407(self, req, fp, code, msg, headers):
1238
+ host = req.host
1239
+ retry = self.http_error_auth_reqed('proxy-authenticate',
1240
+ host, req, headers)
1241
+ self.reset_retry_count()
1242
+ return retry
1243
+
1244
+ class AbstractHTTPHandler(BaseHandler):
1245
+
1246
+ def __init__(self, debuglevel=None):
1247
+ self._debuglevel = debuglevel if debuglevel is not None else http.client.HTTPConnection.debuglevel
1248
+
1249
+ def set_http_debuglevel(self, level):
1250
+ self._debuglevel = level
1251
+
1252
+ def _get_content_length(self, request):
1253
+ return http.client.HTTPConnection._get_content_length(
1254
+ request.data,
1255
+ request.get_method())
1256
+
1257
+ def do_request_(self, request):
1258
+ host = request.host
1259
+ if not host:
1260
+ raise URLError('no host given')
1261
+
1262
+ if request.data is not None: # POST
1263
+ data = request.data
1264
+ if isinstance(data, str):
1265
+ msg = "POST data should be bytes, an iterable of bytes, " \
1266
+ "or a file object. It cannot be of type str."
1267
+ raise TypeError(msg)
1268
+ if not request.has_header('Content-type'):
1269
+ request.add_unredirected_header(
1270
+ 'Content-type',
1271
+ 'application/x-www-form-urlencoded')
1272
+ if (not request.has_header('Content-length')
1273
+ and not request.has_header('Transfer-encoding')):
1274
+ content_length = self._get_content_length(request)
1275
+ if content_length is not None:
1276
+ request.add_unredirected_header(
1277
+ 'Content-length', str(content_length))
1278
+ else:
1279
+ request.add_unredirected_header(
1280
+ 'Transfer-encoding', 'chunked')
1281
+
1282
+ sel_host = host
1283
+ if request.has_proxy():
1284
+ scheme, sel = _splittype(request.selector)
1285
+ sel_host, sel_path = _splithost(sel)
1286
+ if not request.has_header('Host'):
1287
+ request.add_unredirected_header('Host', sel_host)
1288
+ for name, value in self.parent.addheaders:
1289
+ name = name.capitalize()
1290
+ if not request.has_header(name):
1291
+ request.add_unredirected_header(name, value)
1292
+
1293
+ return request
1294
+
1295
+ def do_open(self, http_class, req, **http_conn_args):
1296
+ """Return an HTTPResponse object for the request, using http_class.
1297
+
1298
+ http_class must implement the HTTPConnection API from http.client.
1299
+ """
1300
+ host = req.host
1301
+ if not host:
1302
+ raise URLError('no host given')
1303
+
1304
+ # will parse host:port
1305
+ h = http_class(host, timeout=req.timeout, **http_conn_args)
1306
+ h.set_debuglevel(self._debuglevel)
1307
+
1308
+ headers = dict(req.unredirected_hdrs)
1309
+ headers.update(req.headers)
1310
+
1311
+ # TODO(jhylton): Should this be redesigned to handle
1312
+ # persistent connections?
1313
+
1314
+ # We want to make an HTTP/1.1 request, but the addinfourl
1315
+ # class isn't prepared to deal with a persistent connection.
1316
+ # It will try to read all remaining data from the socket,
1317
+ # which will block while the server waits for the next request.
1318
+ # So make sure the connection gets closed after the (only)
1319
+ # request.
1320
+ headers["Connection"] = "close"
1321
+ headers = {name.title(): val for name, val in headers.items()}
1322
+
1323
+ if req._tunnel_host:
1324
+ tunnel_headers = {}
1325
+ proxy_auth_hdr = "Proxy-Authorization"
1326
+ if proxy_auth_hdr in headers:
1327
+ tunnel_headers[proxy_auth_hdr] = headers[proxy_auth_hdr]
1328
+ # Proxy-Authorization should not be sent to origin
1329
+ # server.
1330
+ del headers[proxy_auth_hdr]
1331
+ h.set_tunnel(req._tunnel_host, headers=tunnel_headers)
1332
+
1333
+ try:
1334
+ try:
1335
+ h.request(req.get_method(), req.selector, req.data, headers,
1336
+ encode_chunked=req.has_header('Transfer-encoding'))
1337
+ except OSError as err: # timeout error
1338
+ raise URLError(err)
1339
+ r = h.getresponse()
1340
+ except:
1341
+ h.close()
1342
+ raise
1343
+
1344
+ # If the server does not send us a 'Connection: close' header,
1345
+ # HTTPConnection assumes the socket should be left open. Manually
1346
+ # mark the socket to be closed when this response object goes away.
1347
+ if h.sock:
1348
+ h.sock.close()
1349
+ h.sock = None
1350
+
1351
+ r.url = req.get_full_url()
1352
+ # This line replaces the .msg attribute of the HTTPResponse
1353
+ # with .headers, because urllib clients expect the response to
1354
+ # have the reason in .msg. It would be good to mark this
1355
+ # attribute is deprecated and get then to use info() or
1356
+ # .headers.
1357
+ r.msg = r.reason
1358
+ return r
1359
+
1360
+
1361
+ class HTTPHandler(AbstractHTTPHandler):
1362
+
1363
+ def http_open(self, req):
1364
+ return self.do_open(http.client.HTTPConnection, req)
1365
+
1366
+ http_request = AbstractHTTPHandler.do_request_
1367
+
1368
+ if hasattr(http.client, 'HTTPSConnection'):
1369
+
1370
+ class HTTPSHandler(AbstractHTTPHandler):
1371
+
1372
+ def __init__(self, debuglevel=None, context=None, check_hostname=None):
1373
+ debuglevel = debuglevel if debuglevel is not None else http.client.HTTPSConnection.debuglevel
1374
+ AbstractHTTPHandler.__init__(self, debuglevel)
1375
+ if context is None:
1376
+ http_version = http.client.HTTPSConnection._http_vsn
1377
+ context = http.client._create_https_context(http_version)
1378
+ if check_hostname is not None:
1379
+ context.check_hostname = check_hostname
1380
+ self._context = context
1381
+
1382
+ def https_open(self, req):
1383
+ return self.do_open(http.client.HTTPSConnection, req,
1384
+ context=self._context)
1385
+
1386
+ https_request = AbstractHTTPHandler.do_request_
1387
+
1388
+ __all__.append('HTTPSHandler')
1389
+
1390
+ class HTTPCookieProcessor(BaseHandler):
1391
+ def __init__(self, cookiejar=None):
1392
+ import http.cookiejar
1393
+ if cookiejar is None:
1394
+ cookiejar = http.cookiejar.CookieJar()
1395
+ self.cookiejar = cookiejar
1396
+
1397
+ def http_request(self, request):
1398
+ self.cookiejar.add_cookie_header(request)
1399
+ return request
1400
+
1401
+ def http_response(self, request, response):
1402
+ self.cookiejar.extract_cookies(response, request)
1403
+ return response
1404
+
1405
+ https_request = http_request
1406
+ https_response = http_response
1407
+
1408
+ class UnknownHandler(BaseHandler):
1409
+ def unknown_open(self, req):
1410
+ type = req.type
1411
+ raise URLError('unknown url type: %s' % type)
1412
+
1413
+ def parse_keqv_list(l):
1414
+ """Parse list of key=value strings where keys are not duplicated."""
1415
+ parsed = {}
1416
+ for elt in l:
1417
+ k, v = elt.split('=', 1)
1418
+ if v[0] == '"' and v[-1] == '"':
1419
+ v = v[1:-1]
1420
+ parsed[k] = v
1421
+ return parsed
1422
+
1423
+ def parse_http_list(s):
1424
+ """Parse lists as described by RFC 2068 Section 2.
1425
+
1426
+ In particular, parse comma-separated lists where the elements of
1427
+ the list may include quoted-strings. A quoted-string could
1428
+ contain a comma. A non-quoted string could have quotes in the
1429
+ middle. Neither commas nor quotes count if they are escaped.
1430
+ Only double-quotes count, not single-quotes.
1431
+ """
1432
+ res = []
1433
+ part = ''
1434
+
1435
+ escape = quote = False
1436
+ for cur in s:
1437
+ if escape:
1438
+ part += cur
1439
+ escape = False
1440
+ continue
1441
+ if quote:
1442
+ if cur == '\\':
1443
+ escape = True
1444
+ continue
1445
+ elif cur == '"':
1446
+ quote = False
1447
+ part += cur
1448
+ continue
1449
+
1450
+ if cur == ',':
1451
+ res.append(part)
1452
+ part = ''
1453
+ continue
1454
+
1455
+ if cur == '"':
1456
+ quote = True
1457
+
1458
+ part += cur
1459
+
1460
+ # append last part
1461
+ if part:
1462
+ res.append(part)
1463
+
1464
+ return [part.strip() for part in res]
1465
+
1466
+ class FileHandler(BaseHandler):
1467
+ # names for the localhost
1468
+ names = None
1469
+ def get_names(self):
1470
+ if FileHandler.names is None:
1471
+ try:
1472
+ FileHandler.names = tuple(
1473
+ socket.gethostbyname_ex('localhost')[2] +
1474
+ socket.gethostbyname_ex(socket.gethostname())[2])
1475
+ except socket.gaierror:
1476
+ FileHandler.names = (socket.gethostbyname('localhost'),)
1477
+ return FileHandler.names
1478
+
1479
+ # not entirely sure what the rules are here
1480
+ def open_local_file(self, req):
1481
+ import email.utils
1482
+ import mimetypes
1483
+ localfile = url2pathname(req.full_url, require_scheme=True, resolve_host=True)
1484
+ try:
1485
+ stats = os.stat(localfile)
1486
+ size = stats.st_size
1487
+ modified = email.utils.formatdate(stats.st_mtime, usegmt=True)
1488
+ mtype = mimetypes.guess_file_type(localfile)[0]
1489
+ headers = email.message_from_string(
1490
+ 'Content-type: %s\nContent-length: %d\nLast-modified: %s\n' %
1491
+ (mtype or 'text/plain', size, modified))
1492
+ origurl = pathname2url(localfile, add_scheme=True)
1493
+ return addinfourl(open(localfile, 'rb'), headers, origurl)
1494
+ except OSError as exp:
1495
+ raise URLError(exp, exp.filename)
1496
+
1497
+ file_open = open_local_file
1498
+
1499
+ def _is_local_authority(authority, resolve):
1500
+ # Compare hostnames
1501
+ if not authority or authority == 'localhost':
1502
+ return True
1503
+ try:
1504
+ hostname = socket.gethostname()
1505
+ except (socket.gaierror, AttributeError):
1506
+ pass
1507
+ else:
1508
+ if authority == hostname:
1509
+ return True
1510
+ # Compare IP addresses
1511
+ if not resolve:
1512
+ return False
1513
+ try:
1514
+ address = socket.gethostbyname(authority)
1515
+ except (socket.gaierror, AttributeError, UnicodeEncodeError):
1516
+ return False
1517
+ return address in FileHandler().get_names()
1518
+
1519
+ class FTPHandler(BaseHandler):
1520
+ def ftp_open(self, req):
1521
+ import ftplib
1522
+ import mimetypes
1523
+ host = req.host
1524
+ if not host:
1525
+ raise URLError('ftp error: no host given')
1526
+ host, port = _splitport(host)
1527
+ if port is None:
1528
+ port = ftplib.FTP_PORT
1529
+ else:
1530
+ port = int(port)
1531
+
1532
+ # username/password handling
1533
+ user, host = _splituser(host)
1534
+ if user:
1535
+ user, passwd = _splitpasswd(user)
1536
+ else:
1537
+ passwd = None
1538
+ host = unquote(host)
1539
+ user = user or ''
1540
+ passwd = passwd or ''
1541
+
1542
+ try:
1543
+ host = socket.gethostbyname(host)
1544
+ except OSError as msg:
1545
+ raise URLError(msg)
1546
+ path, attrs = _splitattr(req.selector)
1547
+ dirs = path.split('/')
1548
+ dirs = list(map(unquote, dirs))
1549
+ dirs, file = dirs[:-1], dirs[-1]
1550
+ if dirs and not dirs[0]:
1551
+ dirs = dirs[1:]
1552
+ fw = None
1553
+ try:
1554
+ fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
1555
+ type = file and 'I' or 'D'
1556
+ for attr in attrs:
1557
+ attr, value = _splitvalue(attr)
1558
+ if attr.lower() == 'type' and \
1559
+ value in ('a', 'A', 'i', 'I', 'd', 'D'):
1560
+ type = value.upper()
1561
+ fp, retrlen = fw.retrfile(file, type)
1562
+ headers = ""
1563
+ mtype = mimetypes.guess_type(req.full_url)[0]
1564
+ if mtype:
1565
+ headers += "Content-type: %s\n" % mtype
1566
+ if retrlen is not None and retrlen >= 0:
1567
+ headers += "Content-length: %d\n" % retrlen
1568
+ headers = email.message_from_string(headers)
1569
+ return addinfourl(fp, headers, req.full_url)
1570
+ except Exception as exp:
1571
+ if fw is not None and not fw.keepalive:
1572
+ fw.close()
1573
+ if isinstance(exp, ftplib.all_errors):
1574
+ raise URLError(f"ftp error: {exp}") from exp
1575
+ raise
1576
+
1577
+ def connect_ftp(self, user, passwd, host, port, dirs, timeout):
1578
+ return ftpwrapper(user, passwd, host, port, dirs, timeout,
1579
+ persistent=False)
1580
+
1581
+ class CacheFTPHandler(FTPHandler):
1582
+ # XXX would be nice to have pluggable cache strategies
1583
+ # XXX this stuff is definitely not thread safe
1584
+ def __init__(self):
1585
+ self.cache = {}
1586
+ self.timeout = {}
1587
+ self.soonest = 0
1588
+ self.delay = 60
1589
+ self.max_conns = 16
1590
+
1591
+ def setTimeout(self, t):
1592
+ self.delay = t
1593
+
1594
+ def setMaxConns(self, m):
1595
+ self.max_conns = m
1596
+
1597
+ def connect_ftp(self, user, passwd, host, port, dirs, timeout):
1598
+ key = user, host, port, '/'.join(dirs), timeout
1599
+ conn = self.cache.get(key)
1600
+ if conn is None or not conn.keepalive:
1601
+ if conn is not None:
1602
+ conn.close()
1603
+ conn = self.cache[key] = ftpwrapper(user, passwd, host, port,
1604
+ dirs, timeout)
1605
+ self.timeout[key] = time.time() + self.delay
1606
+ self.check_cache()
1607
+ return conn
1608
+
1609
+ def check_cache(self):
1610
+ # first check for old ones
1611
+ t = time.time()
1612
+ if self.soonest <= t:
1613
+ for k, v in list(self.timeout.items()):
1614
+ if v < t:
1615
+ self.cache[k].close()
1616
+ del self.cache[k]
1617
+ del self.timeout[k]
1618
+ self.soonest = min(list(self.timeout.values()))
1619
+
1620
+ # then check the size
1621
+ if len(self.cache) == self.max_conns:
1622
+ for k, v in list(self.timeout.items()):
1623
+ if v == self.soonest:
1624
+ del self.cache[k]
1625
+ del self.timeout[k]
1626
+ break
1627
+ self.soonest = min(list(self.timeout.values()))
1628
+
1629
+ def clear_cache(self):
1630
+ for conn in self.cache.values():
1631
+ conn.close()
1632
+ self.cache.clear()
1633
+ self.timeout.clear()
1634
+
1635
+ class DataHandler(BaseHandler):
1636
+ def data_open(self, req):
1637
+ # data URLs as specified in RFC 2397.
1638
+ #
1639
+ # ignores POSTed data
1640
+ #
1641
+ # syntax:
1642
+ # dataurl := "data:" [ mediatype ] [ ";base64" ] "," data
1643
+ # mediatype := [ type "/" subtype ] *( ";" parameter )
1644
+ # data := *urlchar
1645
+ # parameter := attribute "=" value
1646
+ url = req.full_url
1647
+
1648
+ scheme, data = url.split(":",1)
1649
+ mediatype, data = data.split(",",1)
1650
+
1651
+ # Disallow control characters within mediatype.
1652
+ if re.search(r"[\x00-\x1F\x7F]", mediatype):
1653
+ raise ValueError(
1654
+ "Control characters not allowed in data: mediatype")
1655
+
1656
+ # even base64 encoded data URLs might be quoted so unquote in any case:
1657
+ data = unquote_to_bytes(data)
1658
+ if mediatype.endswith(";base64"):
1659
+ data = base64.decodebytes(data)
1660
+ mediatype = mediatype[:-7]
1661
+
1662
+ if not mediatype:
1663
+ mediatype = "text/plain;charset=US-ASCII"
1664
+
1665
+ headers = email.message_from_string("Content-type: %s\nContent-length: %d\n" %
1666
+ (mediatype, len(data)))
1667
+
1668
+ return addinfourl(io.BytesIO(data), headers, url)
1669
+
1670
+
1671
+ # Code moved from the old urllib module
1672
+
1673
+ def url2pathname(url, *, require_scheme=False, resolve_host=False):
1674
+ """Convert the given file URL to a local file system path.
1675
+
1676
+ The 'file:' scheme prefix must be omitted unless *require_scheme*
1677
+ is set to true.
1678
+
1679
+ The URL authority may be resolved with gethostbyname() if
1680
+ *resolve_host* is set to true.
1681
+ """
1682
+ if not require_scheme:
1683
+ url = 'file:' + url
1684
+ scheme, authority, url = urlsplit(url)[:3] # Discard query and fragment.
1685
+ if scheme != 'file':
1686
+ raise URLError("URL is missing a 'file:' scheme")
1687
+ if os.name == 'nt':
1688
+ if authority[1:2] == ':':
1689
+ # e.g. file://c:/file.txt
1690
+ url = authority + url
1691
+ elif not _is_local_authority(authority, resolve_host):
1692
+ # e.g. file://server/share/file.txt
1693
+ url = '//' + authority + url
1694
+ elif url[:3] == '///':
1695
+ # e.g. file://///server/share/file.txt
1696
+ url = url[1:]
1697
+ else:
1698
+ if url[:1] == '/' and url[2:3] in (':', '|'):
1699
+ # Skip past extra slash before DOS drive in URL path.
1700
+ url = url[1:]
1701
+ if url[1:2] == '|':
1702
+ # Older URLs use a pipe after a drive letter
1703
+ url = url[:1] + ':' + url[2:]
1704
+ url = url.replace('/', '\\')
1705
+ elif not _is_local_authority(authority, resolve_host):
1706
+ raise URLError("file:// scheme is supported only on localhost")
1707
+ encoding = sys.getfilesystemencoding()
1708
+ errors = sys.getfilesystemencodeerrors()
1709
+ return unquote(url, encoding=encoding, errors=errors)
1710
+
1711
+
1712
+ def pathname2url(pathname, *, add_scheme=False):
1713
+ """Convert the given local file system path to a file URL.
1714
+
1715
+ The 'file:' scheme prefix is omitted unless *add_scheme*
1716
+ is set to true.
1717
+ """
1718
+ if os.name == 'nt':
1719
+ pathname = pathname.replace('\\', '/')
1720
+ encoding = sys.getfilesystemencoding()
1721
+ errors = sys.getfilesystemencodeerrors()
1722
+ scheme = 'file:' if add_scheme else ''
1723
+ drive, root, tail = os.path.splitroot(pathname)
1724
+ if drive:
1725
+ # First, clean up some special forms. We are going to sacrifice the
1726
+ # additional information anyway
1727
+ if drive[:4] == '//?/':
1728
+ drive = drive[4:]
1729
+ if drive[:4].upper() == 'UNC/':
1730
+ drive = '//' + drive[4:]
1731
+ if drive[1:] == ':':
1732
+ # DOS drive specified. Add three slashes to the start, producing
1733
+ # an authority section with a zero-length authority, and a path
1734
+ # section starting with a single slash.
1735
+ drive = '///' + drive
1736
+ drive = quote(drive, encoding=encoding, errors=errors, safe='/:')
1737
+ elif root:
1738
+ # Add explicitly empty authority to absolute path. If the path
1739
+ # starts with exactly one slash then this change is mostly
1740
+ # cosmetic, but if it begins with two or more slashes then this
1741
+ # avoids interpreting the path as a URL authority.
1742
+ root = '//' + root
1743
+ tail = quote(tail, encoding=encoding, errors=errors)
1744
+ return scheme + drive + root + tail
1745
+
1746
+
1747
+ # Utility functions
1748
+
1749
+ _localhost = None
1750
+ def localhost():
1751
+ """Return the IP address of the magic hostname 'localhost'."""
1752
+ global _localhost
1753
+ if _localhost is None:
1754
+ _localhost = socket.gethostbyname('localhost')
1755
+ return _localhost
1756
+
1757
+ _thishost = None
1758
+ def thishost():
1759
+ """Return the IP addresses of the current host."""
1760
+ global _thishost
1761
+ if _thishost is None:
1762
+ try:
1763
+ _thishost = tuple(socket.gethostbyname_ex(socket.gethostname())[2])
1764
+ except socket.gaierror:
1765
+ _thishost = tuple(socket.gethostbyname_ex('localhost')[2])
1766
+ return _thishost
1767
+
1768
+ _ftperrors = None
1769
+ def ftperrors():
1770
+ """Return the set of errors raised by the FTP class."""
1771
+ global _ftperrors
1772
+ if _ftperrors is None:
1773
+ import ftplib
1774
+ _ftperrors = ftplib.all_errors
1775
+ return _ftperrors
1776
+
1777
+ _noheaders = None
1778
+ def noheaders():
1779
+ """Return an empty email Message object."""
1780
+ global _noheaders
1781
+ if _noheaders is None:
1782
+ _noheaders = email.message_from_string("")
1783
+ return _noheaders
1784
+
1785
+
1786
+ # Utility classes
1787
+
1788
+ class ftpwrapper:
1789
+ """Class used by open_ftp() for cache of open FTP connections."""
1790
+
1791
+ def __init__(self, user, passwd, host, port, dirs, timeout=None,
1792
+ persistent=True):
1793
+ self.user = user
1794
+ self.passwd = passwd
1795
+ self.host = host
1796
+ self.port = port
1797
+ self.dirs = dirs
1798
+ self.timeout = timeout
1799
+ self.refcount = 0
1800
+ self.keepalive = persistent
1801
+ try:
1802
+ self.init()
1803
+ except:
1804
+ self.close()
1805
+ raise
1806
+
1807
+ def init(self):
1808
+ import ftplib
1809
+ self.busy = 0
1810
+ self.ftp = ftplib.FTP()
1811
+ self.ftp.connect(self.host, self.port, self.timeout)
1812
+ self.ftp.login(self.user, self.passwd)
1813
+ _target = '/'.join(self.dirs)
1814
+ self.ftp.cwd(_target)
1815
+
1816
+ def retrfile(self, file, type):
1817
+ import ftplib
1818
+ self.endtransfer()
1819
+ if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1
1820
+ else: cmd = 'TYPE ' + type; isdir = 0
1821
+ try:
1822
+ self.ftp.voidcmd(cmd)
1823
+ except ftplib.all_errors:
1824
+ self.init()
1825
+ self.ftp.voidcmd(cmd)
1826
+ conn = None
1827
+ if file and not isdir:
1828
+ # Try to retrieve as a file
1829
+ try:
1830
+ cmd = 'RETR ' + file
1831
+ conn, retrlen = self.ftp.ntransfercmd(cmd)
1832
+ except ftplib.error_perm as reason:
1833
+ if str(reason)[:3] != '550':
1834
+ raise URLError(f'ftp error: {reason}') from reason
1835
+ if not conn:
1836
+ # Set transfer mode to ASCII!
1837
+ self.ftp.voidcmd('TYPE A')
1838
+ # Try a directory listing. Verify that directory exists.
1839
+ if file:
1840
+ pwd = self.ftp.pwd()
1841
+ try:
1842
+ try:
1843
+ self.ftp.cwd(file)
1844
+ except ftplib.error_perm as reason:
1845
+ raise URLError('ftp error: %r' % reason) from reason
1846
+ finally:
1847
+ self.ftp.cwd(pwd)
1848
+ cmd = 'LIST ' + file
1849
+ else:
1850
+ cmd = 'LIST'
1851
+ conn, retrlen = self.ftp.ntransfercmd(cmd)
1852
+ self.busy = 1
1853
+
1854
+ ftpobj = addclosehook(conn.makefile('rb'), self.file_close)
1855
+ self.refcount += 1
1856
+ conn.close()
1857
+ # Pass back both a suitably decorated object and a retrieval length
1858
+ return (ftpobj, retrlen)
1859
+
1860
+ def endtransfer(self):
1861
+ if not self.busy:
1862
+ return
1863
+ self.busy = 0
1864
+ try:
1865
+ self.ftp.voidresp()
1866
+ except ftperrors():
1867
+ pass
1868
+
1869
+ def close(self):
1870
+ self.keepalive = False
1871
+ if self.refcount <= 0:
1872
+ self.real_close()
1873
+
1874
+ def file_close(self):
1875
+ self.endtransfer()
1876
+ self.refcount -= 1
1877
+ if self.refcount <= 0 and not self.keepalive:
1878
+ self.real_close()
1879
+
1880
+ def real_close(self):
1881
+ self.endtransfer()
1882
+ try:
1883
+ self.ftp.close()
1884
+ except ftperrors():
1885
+ pass
1886
+
1887
+ # Proxy handling
1888
+ def getproxies_environment():
1889
+ """Return a dictionary of scheme -> proxy server URL mappings.
1890
+
1891
+ Scan the environment for variables named <scheme>_proxy;
1892
+ this seems to be the standard convention.
1893
+ """
1894
+ # in order to prefer lowercase variables, process environment in
1895
+ # two passes: first matches any, second pass matches lowercase only
1896
+
1897
+ # select only environment variables which end in (after making lowercase) _proxy
1898
+ proxies = {}
1899
+ environment = []
1900
+ for name in os.environ:
1901
+ # fast screen underscore position before more expensive case-folding
1902
+ if len(name) > 5 and name[-6] == "_" and name[-5:].lower() == "proxy":
1903
+ value = os.environ[name]
1904
+ proxy_name = name[:-6].lower()
1905
+ environment.append((name, value, proxy_name))
1906
+ if value:
1907
+ proxies[proxy_name] = value
1908
+ # CVE-2016-1000110 - If we are running as CGI script, forget HTTP_PROXY
1909
+ # (non-all-lowercase) as it may be set from the web server by a "Proxy:"
1910
+ # header from the client
1911
+ # If "proxy" is lowercase, it will still be used thanks to the next block
1912
+ if 'REQUEST_METHOD' in os.environ:
1913
+ proxies.pop('http', None)
1914
+ for name, value, proxy_name in environment:
1915
+ # not case-folded, checking here for lower-case env vars only
1916
+ if name[-6:] == '_proxy':
1917
+ if value:
1918
+ proxies[proxy_name] = value
1919
+ else:
1920
+ proxies.pop(proxy_name, None)
1921
+ return proxies
1922
+
1923
+ def proxy_bypass_environment(host, proxies=None):
1924
+ """Test if proxies should not be used for a particular host.
1925
+
1926
+ Checks the proxy dict for the value of no_proxy, which should
1927
+ be a list of comma separated DNS suffixes, or '*' for all hosts.
1928
+
1929
+ """
1930
+ if proxies is None:
1931
+ proxies = getproxies_environment()
1932
+ # don't bypass, if no_proxy isn't specified
1933
+ try:
1934
+ no_proxy = proxies['no']
1935
+ except KeyError:
1936
+ return False
1937
+ # '*' is special case for always bypass
1938
+ if no_proxy == '*':
1939
+ return True
1940
+ host = host.lower()
1941
+ # strip port off host
1942
+ hostonly, port = _splitport(host)
1943
+ # check if the host ends with any of the DNS suffixes
1944
+ for name in no_proxy.split(','):
1945
+ name = name.strip()
1946
+ if name:
1947
+ name = name.lstrip('.') # ignore leading dots
1948
+ name = name.lower()
1949
+ if hostonly == name or host == name:
1950
+ return True
1951
+ name = '.' + name
1952
+ if hostonly.endswith(name) or host.endswith(name):
1953
+ return True
1954
+ # otherwise, don't bypass
1955
+ return False
1956
+
1957
+
1958
+ # This code tests an OSX specific data structure but is testable on all
1959
+ # platforms
1960
+ def _proxy_bypass_macosx_sysconf(host, proxy_settings):
1961
+ """
1962
+ Return True iff this host shouldn't be accessed using a proxy
1963
+
1964
+ This function uses the MacOSX framework SystemConfiguration
1965
+ to fetch the proxy information.
1966
+
1967
+ proxy_settings come from _scproxy._get_proxy_settings or get mocked ie:
1968
+ { 'exclude_simple': bool,
1969
+ 'exceptions': ['foo.bar', '*.bar.com', '127.0.0.1', '10.1', '10.0/16']
1970
+ }
1971
+ """
1972
+ from fnmatch import fnmatch
1973
+ from ipaddress import AddressValueError, IPv4Address
1974
+
1975
+ hostonly, port = _splitport(host)
1976
+
1977
+ def ip2num(ipAddr):
1978
+ parts = ipAddr.split('.')
1979
+ parts = list(map(int, parts))
1980
+ if len(parts) != 4:
1981
+ parts = (parts + [0, 0, 0, 0])[:4]
1982
+ return (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3]
1983
+
1984
+ # Check for simple host names:
1985
+ if '.' not in host:
1986
+ if proxy_settings['exclude_simple']:
1987
+ return True
1988
+
1989
+ hostIP = None
1990
+ try:
1991
+ hostIP = int(IPv4Address(hostonly))
1992
+ except AddressValueError:
1993
+ pass
1994
+
1995
+ for value in proxy_settings.get('exceptions', ()):
1996
+ # Items in the list are strings like these: *.local, 169.254/16
1997
+ if not value: continue
1998
+
1999
+ m = re.match(r"(\d+(?:\.\d+)*)(/\d+)?", value)
2000
+ if m is not None and hostIP is not None:
2001
+ base = ip2num(m.group(1))
2002
+ mask = m.group(2)
2003
+ if mask is None:
2004
+ mask = 8 * (m.group(1).count('.') + 1)
2005
+ else:
2006
+ mask = int(mask[1:])
2007
+
2008
+ if mask < 0 or mask > 32:
2009
+ # System libraries ignore invalid prefix lengths
2010
+ continue
2011
+
2012
+ mask = 32 - mask
2013
+
2014
+ if (hostIP >> mask) == (base >> mask):
2015
+ return True
2016
+
2017
+ elif fnmatch(host, value):
2018
+ return True
2019
+
2020
+ return False
2021
+
2022
+
2023
+ # Same as _proxy_bypass_macosx_sysconf, testable on all platforms
2024
+ def _proxy_bypass_winreg_override(host, override):
2025
+ """Return True if the host should bypass the proxy server.
2026
+
2027
+ The proxy override list is obtained from the Windows
2028
+ Internet settings proxy override registry value.
2029
+
2030
+ An example of a proxy override value is:
2031
+ "www.example.com;*.example.net; 192.168.0.1"
2032
+ """
2033
+ from fnmatch import fnmatch
2034
+
2035
+ host, _ = _splitport(host)
2036
+ proxy_override = override.split(';')
2037
+ for test in proxy_override:
2038
+ test = test.strip()
2039
+ # "<local>" should bypass the proxy server for all intranet addresses
2040
+ if test == '<local>':
2041
+ if '.' not in host:
2042
+ return True
2043
+ elif fnmatch(host, test):
2044
+ return True
2045
+ return False
2046
+
2047
+
2048
+ if sys.platform == 'darwin':
2049
+ from _scproxy import _get_proxy_settings, _get_proxies
2050
+
2051
+ def proxy_bypass_macosx_sysconf(host):
2052
+ proxy_settings = _get_proxy_settings()
2053
+ return _proxy_bypass_macosx_sysconf(host, proxy_settings)
2054
+
2055
+ def getproxies_macosx_sysconf():
2056
+ """Return a dictionary of scheme -> proxy server URL mappings.
2057
+
2058
+ This function uses the MacOSX framework SystemConfiguration
2059
+ to fetch the proxy information.
2060
+ """
2061
+ return _get_proxies()
2062
+
2063
+
2064
+
2065
+ def proxy_bypass(host):
2066
+ """Return True, if host should be bypassed.
2067
+
2068
+ Checks proxy settings gathered from the environment, if specified,
2069
+ or from the MacOSX framework SystemConfiguration.
2070
+
2071
+ """
2072
+ proxies = getproxies_environment()
2073
+ if proxies:
2074
+ return proxy_bypass_environment(host, proxies)
2075
+ else:
2076
+ return proxy_bypass_macosx_sysconf(host)
2077
+
2078
+ def getproxies():
2079
+ return getproxies_environment() or getproxies_macosx_sysconf()
2080
+
2081
+
2082
+ elif os.name == 'nt':
2083
+ def getproxies_registry():
2084
+ """Return a dictionary of scheme -> proxy server URL mappings.
2085
+
2086
+ Win32 uses the registry to store proxies.
2087
+
2088
+ """
2089
+ proxies = {}
2090
+ try:
2091
+ import winreg
2092
+ except ImportError:
2093
+ # Std module, so should be around - but you never know!
2094
+ return proxies
2095
+ try:
2096
+ internetSettings = winreg.OpenKey(winreg.HKEY_CURRENT_USER,
2097
+ r'Software\Microsoft\Windows\CurrentVersion\Internet Settings')
2098
+ proxyEnable = winreg.QueryValueEx(internetSettings,
2099
+ 'ProxyEnable')[0]
2100
+ if proxyEnable:
2101
+ # Returned as Unicode but problems if not converted to ASCII
2102
+ proxyServer = str(winreg.QueryValueEx(internetSettings,
2103
+ 'ProxyServer')[0])
2104
+ if '=' not in proxyServer and ';' not in proxyServer:
2105
+ # Use one setting for all protocols.
2106
+ proxyServer = 'http={0};https={0};ftp={0}'.format(proxyServer)
2107
+ for p in proxyServer.split(';'):
2108
+ protocol, address = p.split('=', 1)
2109
+ # See if address has a type:// prefix
2110
+ if not re.match('(?:[^/:]+)://', address):
2111
+ # Add type:// prefix to address without specifying type
2112
+ if protocol in ('http', 'https', 'ftp'):
2113
+ # The default proxy type of Windows is HTTP
2114
+ address = 'http://' + address
2115
+ elif protocol == 'socks':
2116
+ address = 'socks://' + address
2117
+ proxies[protocol] = address
2118
+ # Use SOCKS proxy for HTTP(S) protocols
2119
+ if proxies.get('socks'):
2120
+ # The default SOCKS proxy type of Windows is SOCKS4
2121
+ address = re.sub(r'^socks://', 'socks4://', proxies['socks'])
2122
+ proxies['http'] = proxies.get('http') or address
2123
+ proxies['https'] = proxies.get('https') or address
2124
+ internetSettings.Close()
2125
+ except (OSError, ValueError, TypeError):
2126
+ # Either registry key not found etc, or the value in an
2127
+ # unexpected format.
2128
+ # proxies already set up to be empty so nothing to do
2129
+ pass
2130
+ return proxies
2131
+
2132
+ def getproxies():
2133
+ """Return a dictionary of scheme -> proxy server URL mappings.
2134
+
2135
+ Returns settings gathered from the environment, if specified,
2136
+ or the registry.
2137
+
2138
+ """
2139
+ return getproxies_environment() or getproxies_registry()
2140
+
2141
+ def proxy_bypass_registry(host):
2142
+ try:
2143
+ import winreg
2144
+ except ImportError:
2145
+ # Std modules, so should be around - but you never know!
2146
+ return False
2147
+ try:
2148
+ internetSettings = winreg.OpenKey(winreg.HKEY_CURRENT_USER,
2149
+ r'Software\Microsoft\Windows\CurrentVersion\Internet Settings')
2150
+ proxyEnable = winreg.QueryValueEx(internetSettings,
2151
+ 'ProxyEnable')[0]
2152
+ proxyOverride = str(winreg.QueryValueEx(internetSettings,
2153
+ 'ProxyOverride')[0])
2154
+ # ^^^^ Returned as Unicode but problems if not converted to ASCII
2155
+ except OSError:
2156
+ return False
2157
+ if not proxyEnable or not proxyOverride:
2158
+ return False
2159
+ return _proxy_bypass_winreg_override(host, proxyOverride)
2160
+
2161
+ def proxy_bypass(host):
2162
+ """Return True, if host should be bypassed.
2163
+
2164
+ Checks proxy settings gathered from the environment, if specified,
2165
+ or the registry.
2166
+
2167
+ """
2168
+ proxies = getproxies_environment()
2169
+ if proxies:
2170
+ return proxy_bypass_environment(host, proxies)
2171
+ else:
2172
+ return proxy_bypass_registry(host)
2173
+
2174
+ else:
2175
+ # By default use environment variables
2176
+ getproxies = getproxies_environment
2177
+ proxy_bypass = proxy_bypass_environment