@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,2225 @@
1
+ """Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes."""
2
+
3
+ # Notes for authors of new mailbox subclasses:
4
+ #
5
+ # Remember to fsync() changes to disk before closing a modified file
6
+ # or returning from a flush() method. See functions _sync_flush() and
7
+ # _sync_close().
8
+
9
+ import os
10
+ import time
11
+ import calendar
12
+ import socket
13
+ import errno
14
+ import copy
15
+ import warnings
16
+ import email
17
+ import email.message
18
+ import email.generator
19
+ import io
20
+ import contextlib
21
+ from types import GenericAlias
22
+ try:
23
+ import fcntl
24
+ except ImportError:
25
+ fcntl = None
26
+
27
+ __all__ = ['Mailbox', 'Maildir', 'mbox', 'MH', 'Babyl', 'MMDF',
28
+ 'Message', 'MaildirMessage', 'mboxMessage', 'MHMessage',
29
+ 'BabylMessage', 'MMDFMessage', 'Error', 'NoSuchMailboxError',
30
+ 'NotEmptyError', 'ExternalClashError', 'FormatError']
31
+
32
+ linesep = os.linesep.encode('ascii')
33
+
34
+ class Mailbox:
35
+ """A group of messages in a particular place."""
36
+
37
+ def __init__(self, path, factory=None, create=True):
38
+ """Initialize a Mailbox instance."""
39
+ self._path = os.path.abspath(os.path.expanduser(path))
40
+ self._factory = factory
41
+
42
+ def __enter__(self):
43
+ self.lock()
44
+ return self
45
+
46
+ def __exit__(self, type, value, traceback):
47
+ self.close()
48
+
49
+ def add(self, message):
50
+ """Add message and return assigned key."""
51
+ raise NotImplementedError('Method must be implemented by subclass')
52
+
53
+ def remove(self, key):
54
+ """Remove the keyed message; raise KeyError if it doesn't exist."""
55
+ raise NotImplementedError('Method must be implemented by subclass')
56
+
57
+ def __delitem__(self, key):
58
+ self.remove(key)
59
+
60
+ def discard(self, key):
61
+ """If the keyed message exists, remove it."""
62
+ try:
63
+ self.remove(key)
64
+ except KeyError:
65
+ pass
66
+
67
+ def __setitem__(self, key, message):
68
+ """Replace the keyed message; raise KeyError if it doesn't exist."""
69
+ raise NotImplementedError('Method must be implemented by subclass')
70
+
71
+ def get(self, key, default=None):
72
+ """Return the keyed message, or default if it doesn't exist."""
73
+ try:
74
+ return self.__getitem__(key)
75
+ except KeyError:
76
+ return default
77
+
78
+ def __getitem__(self, key):
79
+ """Return the keyed message; raise KeyError if it doesn't exist."""
80
+ if not self._factory:
81
+ return self.get_message(key)
82
+ else:
83
+ with contextlib.closing(self.get_file(key)) as file:
84
+ return self._factory(file)
85
+
86
+ def get_message(self, key):
87
+ """Return a Message representation or raise a KeyError."""
88
+ raise NotImplementedError('Method must be implemented by subclass')
89
+
90
+ def get_string(self, key):
91
+ """Return a string representation or raise a KeyError.
92
+
93
+ Uses email.message.Message to create a 7bit clean string
94
+ representation of the message."""
95
+ return email.message_from_bytes(self.get_bytes(key)).as_string()
96
+
97
+ def get_bytes(self, key):
98
+ """Return a byte string representation or raise a KeyError."""
99
+ raise NotImplementedError('Method must be implemented by subclass')
100
+
101
+ def get_file(self, key):
102
+ """Return a file-like representation or raise a KeyError."""
103
+ raise NotImplementedError('Method must be implemented by subclass')
104
+
105
+ def iterkeys(self):
106
+ """Return an iterator over keys."""
107
+ raise NotImplementedError('Method must be implemented by subclass')
108
+
109
+ def keys(self):
110
+ """Return a list of keys."""
111
+ return list(self.iterkeys())
112
+
113
+ def itervalues(self):
114
+ """Return an iterator over all messages."""
115
+ for key in self.iterkeys():
116
+ try:
117
+ value = self[key]
118
+ except KeyError:
119
+ continue
120
+ yield value
121
+
122
+ def __iter__(self):
123
+ return self.itervalues()
124
+
125
+ def values(self):
126
+ """Return a list of messages. Memory intensive."""
127
+ return list(self.itervalues())
128
+
129
+ def iteritems(self):
130
+ """Return an iterator over (key, message) tuples."""
131
+ for key in self.iterkeys():
132
+ try:
133
+ value = self[key]
134
+ except KeyError:
135
+ continue
136
+ yield (key, value)
137
+
138
+ def items(self):
139
+ """Return a list of (key, message) tuples. Memory intensive."""
140
+ return list(self.iteritems())
141
+
142
+ def __contains__(self, key):
143
+ """Return True if the keyed message exists, False otherwise."""
144
+ raise NotImplementedError('Method must be implemented by subclass')
145
+
146
+ def __len__(self):
147
+ """Return a count of messages in the mailbox."""
148
+ raise NotImplementedError('Method must be implemented by subclass')
149
+
150
+ def clear(self):
151
+ """Delete all messages."""
152
+ for key in self.keys():
153
+ self.discard(key)
154
+
155
+ def pop(self, key, default=None):
156
+ """Delete the keyed message and return it, or default."""
157
+ try:
158
+ result = self[key]
159
+ except KeyError:
160
+ return default
161
+ self.discard(key)
162
+ return result
163
+
164
+ def popitem(self):
165
+ """Delete an arbitrary (key, message) pair and return it."""
166
+ for key in self.iterkeys():
167
+ return (key, self.pop(key)) # This is only run once.
168
+ else:
169
+ raise KeyError('No messages in mailbox')
170
+
171
+ def update(self, arg=None):
172
+ """Change the messages that correspond to certain keys."""
173
+ if hasattr(arg, 'iteritems'):
174
+ source = arg.iteritems()
175
+ elif hasattr(arg, 'items'):
176
+ source = arg.items()
177
+ else:
178
+ source = arg
179
+ bad_key = False
180
+ for key, message in source:
181
+ try:
182
+ self[key] = message
183
+ except KeyError:
184
+ bad_key = True
185
+ if bad_key:
186
+ raise KeyError('No message with key(s)')
187
+
188
+ def flush(self):
189
+ """Write any pending changes to the disk."""
190
+ raise NotImplementedError('Method must be implemented by subclass')
191
+
192
+ def lock(self):
193
+ """Lock the mailbox."""
194
+ raise NotImplementedError('Method must be implemented by subclass')
195
+
196
+ def unlock(self):
197
+ """Unlock the mailbox if it is locked."""
198
+ raise NotImplementedError('Method must be implemented by subclass')
199
+
200
+ def close(self):
201
+ """Flush and close the mailbox."""
202
+ raise NotImplementedError('Method must be implemented by subclass')
203
+
204
+ def _string_to_bytes(self, message):
205
+ # If a message is not 7bit clean, we refuse to handle it since it
206
+ # likely came from reading invalid messages in text mode, and that way
207
+ # lies mojibake.
208
+ try:
209
+ return message.encode('ascii')
210
+ except UnicodeError:
211
+ raise ValueError("String input must be ASCII-only; "
212
+ "use bytes or a Message instead")
213
+
214
+ # Whether each message must end in a newline
215
+ _append_newline = False
216
+
217
+ def _dump_message(self, message, target, mangle_from_=False):
218
+ # This assumes the target file is open in binary mode.
219
+ """Dump message contents to target file."""
220
+ if isinstance(message, email.message.Message):
221
+ buffer = io.BytesIO()
222
+ gen = email.generator.BytesGenerator(buffer, mangle_from_, 0)
223
+ gen.flatten(message)
224
+ buffer.seek(0)
225
+ data = buffer.read()
226
+ data = data.replace(b'\n', linesep)
227
+ target.write(data)
228
+ if self._append_newline and not data.endswith(linesep):
229
+ # Make sure the message ends with a newline
230
+ target.write(linesep)
231
+ elif isinstance(message, (str, bytes, io.StringIO)):
232
+ if isinstance(message, io.StringIO):
233
+ warnings.warn("Use of StringIO input is deprecated, "
234
+ "use BytesIO instead", DeprecationWarning, 3)
235
+ message = message.getvalue()
236
+ if isinstance(message, str):
237
+ message = self._string_to_bytes(message)
238
+ if mangle_from_:
239
+ message = message.replace(b'\nFrom ', b'\n>From ')
240
+ message = message.replace(b'\n', linesep)
241
+ target.write(message)
242
+ if self._append_newline and not message.endswith(linesep):
243
+ # Make sure the message ends with a newline
244
+ target.write(linesep)
245
+ elif hasattr(message, 'read'):
246
+ if hasattr(message, 'buffer'):
247
+ warnings.warn("Use of text mode files is deprecated, "
248
+ "use a binary mode file instead", DeprecationWarning, 3)
249
+ message = message.buffer
250
+ lastline = None
251
+ while True:
252
+ line = message.readline()
253
+ # Universal newline support.
254
+ if line.endswith(b'\r\n'):
255
+ line = line[:-2] + b'\n'
256
+ elif line.endswith(b'\r'):
257
+ line = line[:-1] + b'\n'
258
+ if not line:
259
+ break
260
+ if mangle_from_ and line.startswith(b'From '):
261
+ line = b'>From ' + line[5:]
262
+ line = line.replace(b'\n', linesep)
263
+ target.write(line)
264
+ lastline = line
265
+ if self._append_newline and lastline and not lastline.endswith(linesep):
266
+ # Make sure the message ends with a newline
267
+ target.write(linesep)
268
+ else:
269
+ raise TypeError('Invalid message type: %s' % type(message))
270
+
271
+ __class_getitem__ = classmethod(GenericAlias)
272
+
273
+
274
+ class Maildir(Mailbox):
275
+ """A qmail-style Maildir mailbox."""
276
+
277
+ colon = ':'
278
+
279
+ def __init__(self, dirname, factory=None, create=True):
280
+ """Initialize a Maildir instance."""
281
+ Mailbox.__init__(self, dirname, factory, create)
282
+ self._paths = {
283
+ 'tmp': os.path.join(self._path, 'tmp'),
284
+ 'new': os.path.join(self._path, 'new'),
285
+ 'cur': os.path.join(self._path, 'cur'),
286
+ }
287
+ if not os.path.exists(self._path):
288
+ if create:
289
+ os.mkdir(self._path, 0o700)
290
+ for path in self._paths.values():
291
+ os.mkdir(path, 0o700)
292
+ else:
293
+ raise NoSuchMailboxError(self._path)
294
+ self._toc = {}
295
+ self._toc_mtimes = {'cur': 0, 'new': 0}
296
+ self._last_read = 0 # Records last time we read cur/new
297
+ self._skewfactor = 0.1 # Adjust if os/fs clocks are skewing
298
+
299
+ def add(self, message):
300
+ """Add message and return assigned key."""
301
+ tmp_file = self._create_tmp()
302
+ try:
303
+ self._dump_message(message, tmp_file)
304
+ except BaseException:
305
+ tmp_file.close()
306
+ os.remove(tmp_file.name)
307
+ raise
308
+ _sync_close(tmp_file)
309
+ if isinstance(message, MaildirMessage):
310
+ subdir = message.get_subdir()
311
+ suffix = self.colon + message.get_info()
312
+ if suffix == self.colon:
313
+ suffix = ''
314
+ else:
315
+ subdir = 'new'
316
+ suffix = ''
317
+ uniq = os.path.basename(tmp_file.name).split(self.colon)[0]
318
+ dest = os.path.join(self._path, subdir, uniq + suffix)
319
+ if isinstance(message, MaildirMessage):
320
+ os.utime(tmp_file.name,
321
+ (os.path.getatime(tmp_file.name), message.get_date()))
322
+ # No file modification should be done after the file is moved to its
323
+ # final position in order to prevent race conditions with changes
324
+ # from other programs
325
+ try:
326
+ try:
327
+ os.link(tmp_file.name, dest)
328
+ except (AttributeError, PermissionError):
329
+ os.rename(tmp_file.name, dest)
330
+ else:
331
+ os.remove(tmp_file.name)
332
+ except OSError as e:
333
+ os.remove(tmp_file.name)
334
+ if e.errno == errno.EEXIST:
335
+ raise ExternalClashError('Name clash with existing message: %s'
336
+ % dest)
337
+ else:
338
+ raise
339
+ return uniq
340
+
341
+ def remove(self, key):
342
+ """Remove the keyed message; raise KeyError if it doesn't exist."""
343
+ os.remove(os.path.join(self._path, self._lookup(key)))
344
+
345
+ def discard(self, key):
346
+ """If the keyed message exists, remove it."""
347
+ # This overrides an inapplicable implementation in the superclass.
348
+ try:
349
+ self.remove(key)
350
+ except (KeyError, FileNotFoundError):
351
+ pass
352
+
353
+ def __setitem__(self, key, message):
354
+ """Replace the keyed message; raise KeyError if it doesn't exist."""
355
+ old_subpath = self._lookup(key)
356
+ temp_key = self.add(message)
357
+ temp_subpath = self._lookup(temp_key)
358
+ if isinstance(message, MaildirMessage):
359
+ # temp's subdir and suffix were specified by message.
360
+ dominant_subpath = temp_subpath
361
+ else:
362
+ # temp's subdir and suffix were defaults from add().
363
+ dominant_subpath = old_subpath
364
+ subdir = os.path.dirname(dominant_subpath)
365
+ if self.colon in dominant_subpath:
366
+ suffix = self.colon + dominant_subpath.split(self.colon)[-1]
367
+ else:
368
+ suffix = ''
369
+ self.discard(key)
370
+ tmp_path = os.path.join(self._path, temp_subpath)
371
+ new_path = os.path.join(self._path, subdir, key + suffix)
372
+ if isinstance(message, MaildirMessage):
373
+ os.utime(tmp_path,
374
+ (os.path.getatime(tmp_path), message.get_date()))
375
+ # No file modification should be done after the file is moved to its
376
+ # final position in order to prevent race conditions with changes
377
+ # from other programs
378
+ os.rename(tmp_path, new_path)
379
+
380
+ def get_message(self, key):
381
+ """Return a Message representation or raise a KeyError."""
382
+ subpath = self._lookup(key)
383
+ with open(os.path.join(self._path, subpath), 'rb') as f:
384
+ if self._factory:
385
+ msg = self._factory(f)
386
+ else:
387
+ msg = MaildirMessage(f)
388
+ subdir, name = os.path.split(subpath)
389
+ msg.set_subdir(subdir)
390
+ if self.colon in name:
391
+ msg.set_info(name.split(self.colon)[-1])
392
+ msg.set_date(os.path.getmtime(os.path.join(self._path, subpath)))
393
+ return msg
394
+
395
+ def get_bytes(self, key):
396
+ """Return a bytes representation or raise a KeyError."""
397
+ with open(os.path.join(self._path, self._lookup(key)), 'rb') as f:
398
+ return f.read().replace(linesep, b'\n')
399
+
400
+ def get_file(self, key):
401
+ """Return a file-like representation or raise a KeyError."""
402
+ f = open(os.path.join(self._path, self._lookup(key)), 'rb')
403
+ return _ProxyFile(f)
404
+
405
+ def get_info(self, key):
406
+ """Get the keyed message's "info" as a string."""
407
+ subpath = self._lookup(key)
408
+ if self.colon in subpath:
409
+ return subpath.split(self.colon)[-1]
410
+ return ''
411
+
412
+ def set_info(self, key, info: str):
413
+ """Set the keyed message's "info" string."""
414
+ if not isinstance(info, str):
415
+ raise TypeError(f'info must be a string: {type(info)}')
416
+ old_subpath = self._lookup(key)
417
+ new_subpath = old_subpath.split(self.colon)[0]
418
+ if info:
419
+ new_subpath += self.colon + info
420
+ if new_subpath == old_subpath:
421
+ return
422
+ old_path = os.path.join(self._path, old_subpath)
423
+ new_path = os.path.join(self._path, new_subpath)
424
+ os.rename(old_path, new_path)
425
+ self._toc[key] = new_subpath
426
+
427
+ def get_flags(self, key):
428
+ """Return as a string the standard flags that are set on the keyed message."""
429
+ info = self.get_info(key)
430
+ if info.startswith('2,'):
431
+ return info[2:]
432
+ return ''
433
+
434
+ def set_flags(self, key, flags: str):
435
+ """Set the given flags and unset all others on the keyed message."""
436
+ if not isinstance(flags, str):
437
+ raise TypeError(f'flags must be a string: {type(flags)}')
438
+ # TODO: check if flags are valid standard flag characters?
439
+ self.set_info(key, '2,' + ''.join(sorted(set(flags))))
440
+
441
+ def add_flag(self, key, flag: str):
442
+ """Set the given flag(s) without changing others on the keyed message."""
443
+ if not isinstance(flag, str):
444
+ raise TypeError(f'flag must be a string: {type(flag)}')
445
+ # TODO: check that flag is a valid standard flag character?
446
+ self.set_flags(key, ''.join(set(self.get_flags(key)) | set(flag)))
447
+
448
+ def remove_flag(self, key, flag: str):
449
+ """Unset the given string flag(s) without changing others on the keyed message."""
450
+ if not isinstance(flag, str):
451
+ raise TypeError(f'flag must be a string: {type(flag)}')
452
+ if self.get_flags(key):
453
+ self.set_flags(key, ''.join(set(self.get_flags(key)) - set(flag)))
454
+
455
+ def iterkeys(self):
456
+ """Return an iterator over keys."""
457
+ self._refresh()
458
+ for key in self._toc:
459
+ try:
460
+ self._lookup(key)
461
+ except KeyError:
462
+ continue
463
+ yield key
464
+
465
+ def __contains__(self, key):
466
+ """Return True if the keyed message exists, False otherwise."""
467
+ self._refresh()
468
+ return key in self._toc
469
+
470
+ def __len__(self):
471
+ """Return a count of messages in the mailbox."""
472
+ self._refresh()
473
+ return len(self._toc)
474
+
475
+ def flush(self):
476
+ """Write any pending changes to disk."""
477
+ # Maildir changes are always written immediately, so there's nothing
478
+ # to do.
479
+ pass
480
+
481
+ def lock(self):
482
+ """Lock the mailbox."""
483
+ return
484
+
485
+ def unlock(self):
486
+ """Unlock the mailbox if it is locked."""
487
+ return
488
+
489
+ def close(self):
490
+ """Flush and close the mailbox."""
491
+ return
492
+
493
+ def list_folders(self):
494
+ """Return a list of folder names."""
495
+ result = []
496
+ for entry in os.listdir(self._path):
497
+ if len(entry) > 1 and entry[0] == '.' and \
498
+ os.path.isdir(os.path.join(self._path, entry)):
499
+ result.append(entry[1:])
500
+ return result
501
+
502
+ def get_folder(self, folder):
503
+ """Return a Maildir instance for the named folder."""
504
+ return Maildir(os.path.join(self._path, '.' + folder),
505
+ factory=self._factory,
506
+ create=False)
507
+
508
+ def add_folder(self, folder):
509
+ """Create a folder and return a Maildir instance representing it."""
510
+ path = os.path.join(self._path, '.' + folder)
511
+ result = Maildir(path, factory=self._factory)
512
+ maildirfolder_path = os.path.join(path, 'maildirfolder')
513
+ if not os.path.exists(maildirfolder_path):
514
+ os.close(os.open(maildirfolder_path, os.O_CREAT | os.O_WRONLY,
515
+ 0o666))
516
+ return result
517
+
518
+ def remove_folder(self, folder):
519
+ """Delete the named folder, which must be empty."""
520
+ path = os.path.join(self._path, '.' + folder)
521
+ for entry in os.listdir(os.path.join(path, 'new')) + \
522
+ os.listdir(os.path.join(path, 'cur')):
523
+ if len(entry) < 1 or entry[0] != '.':
524
+ raise NotEmptyError('Folder contains message(s): %s' % folder)
525
+ for entry in os.listdir(path):
526
+ if entry != 'new' and entry != 'cur' and entry != 'tmp' and \
527
+ os.path.isdir(os.path.join(path, entry)):
528
+ raise NotEmptyError("Folder contains subdirectory '%s': %s" %
529
+ (folder, entry))
530
+ for root, dirs, files in os.walk(path, topdown=False):
531
+ for entry in files:
532
+ os.remove(os.path.join(root, entry))
533
+ for entry in dirs:
534
+ os.rmdir(os.path.join(root, entry))
535
+ os.rmdir(path)
536
+
537
+ def clean(self):
538
+ """Delete old files in "tmp"."""
539
+ now = time.time()
540
+ for entry in os.listdir(os.path.join(self._path, 'tmp')):
541
+ path = os.path.join(self._path, 'tmp', entry)
542
+ if now - os.path.getatime(path) > 129600: # 60 * 60 * 36
543
+ os.remove(path)
544
+
545
+ _count = 1 # This is used to generate unique file names.
546
+
547
+ def _create_tmp(self):
548
+ """Create a file in the tmp subdirectory and open and return it."""
549
+ now = time.time()
550
+ hostname = socket.gethostname()
551
+ if '/' in hostname:
552
+ hostname = hostname.replace('/', r'\057')
553
+ if ':' in hostname:
554
+ hostname = hostname.replace(':', r'\072')
555
+ uniq = "%s.M%sP%sQ%s.%s" % (int(now), int(now % 1 * 1e6), os.getpid(),
556
+ Maildir._count, hostname)
557
+ path = os.path.join(self._path, 'tmp', uniq)
558
+ try:
559
+ os.stat(path)
560
+ except FileNotFoundError:
561
+ Maildir._count += 1
562
+ try:
563
+ return _create_carefully(path)
564
+ except FileExistsError:
565
+ pass
566
+
567
+ # Fall through to here if stat succeeded or open raised EEXIST.
568
+ raise ExternalClashError('Name clash prevented file creation: %s' %
569
+ path)
570
+
571
+ def _refresh(self):
572
+ """Update table of contents mapping."""
573
+ # If it has been less than two seconds since the last _refresh() call,
574
+ # we have to unconditionally re-read the mailbox just in case it has
575
+ # been modified, because os.path.mtime() has a 2 sec resolution in the
576
+ # most common worst case (FAT) and a 1 sec resolution typically. This
577
+ # results in a few unnecessary re-reads when _refresh() is called
578
+ # multiple times in that interval, but once the clock ticks over, we
579
+ # will only re-read as needed. Because the filesystem might be being
580
+ # served by an independent system with its own clock, we record and
581
+ # compare with the mtimes from the filesystem. Because the other
582
+ # system's clock might be skewing relative to our clock, we add an
583
+ # extra delta to our wait. The default is one tenth second, but is an
584
+ # instance variable and so can be adjusted if dealing with a
585
+ # particularly skewed or irregular system.
586
+ if time.time() - self._last_read > 2 + self._skewfactor:
587
+ refresh = False
588
+ for subdir in self._toc_mtimes:
589
+ mtime = os.path.getmtime(self._paths[subdir])
590
+ if mtime > self._toc_mtimes[subdir]:
591
+ refresh = True
592
+ self._toc_mtimes[subdir] = mtime
593
+ if not refresh:
594
+ return
595
+ # Refresh toc
596
+ self._toc = {}
597
+ for subdir in self._toc_mtimes:
598
+ path = self._paths[subdir]
599
+ for entry in os.listdir(path):
600
+ if entry.startswith('.'):
601
+ continue
602
+ p = os.path.join(path, entry)
603
+ if os.path.isdir(p):
604
+ continue
605
+ uniq = entry.split(self.colon)[0]
606
+ self._toc[uniq] = os.path.join(subdir, entry)
607
+ self._last_read = time.time()
608
+
609
+ def _lookup(self, key):
610
+ """Use TOC to return subpath for given key, or raise a KeyError."""
611
+ try:
612
+ if os.path.exists(os.path.join(self._path, self._toc[key])):
613
+ return self._toc[key]
614
+ except KeyError:
615
+ pass
616
+ self._refresh()
617
+ try:
618
+ return self._toc[key]
619
+ except KeyError:
620
+ raise KeyError('No message with key: %s' % key) from None
621
+
622
+ # This method is for backward compatibility only.
623
+ def next(self):
624
+ """Return the next message in a one-time iteration."""
625
+ if not hasattr(self, '_onetime_keys'):
626
+ self._onetime_keys = self.iterkeys()
627
+ while True:
628
+ try:
629
+ return self[next(self._onetime_keys)]
630
+ except StopIteration:
631
+ return None
632
+ except KeyError:
633
+ continue
634
+
635
+
636
+ class _singlefileMailbox(Mailbox):
637
+ """A single-file mailbox."""
638
+
639
+ def __init__(self, path, factory=None, create=True):
640
+ """Initialize a single-file mailbox."""
641
+ Mailbox.__init__(self, path, factory, create)
642
+ try:
643
+ f = open(self._path, 'rb+')
644
+ except OSError as e:
645
+ if e.errno == errno.ENOENT:
646
+ if create:
647
+ f = open(self._path, 'wb+')
648
+ else:
649
+ raise NoSuchMailboxError(self._path)
650
+ elif e.errno in (errno.EACCES, errno.EROFS):
651
+ f = open(self._path, 'rb')
652
+ else:
653
+ raise
654
+ self._file = f
655
+ self._toc = None
656
+ self._next_key = 0
657
+ self._pending = False # No changes require rewriting the file.
658
+ self._pending_sync = False # No need to sync the file
659
+ self._locked = False
660
+ self._file_length = None # Used to record mailbox size
661
+
662
+ def add(self, message):
663
+ """Add message and return assigned key."""
664
+ self._lookup()
665
+ self._toc[self._next_key] = self._append_message(message)
666
+ self._next_key += 1
667
+ # _append_message appends the message to the mailbox file. We
668
+ # don't need a full rewrite + rename, sync is enough.
669
+ self._pending_sync = True
670
+ return self._next_key - 1
671
+
672
+ def remove(self, key):
673
+ """Remove the keyed message; raise KeyError if it doesn't exist."""
674
+ self._lookup(key)
675
+ del self._toc[key]
676
+ self._pending = True
677
+
678
+ def __setitem__(self, key, message):
679
+ """Replace the keyed message; raise KeyError if it doesn't exist."""
680
+ self._lookup(key)
681
+ self._toc[key] = self._append_message(message)
682
+ self._pending = True
683
+
684
+ def iterkeys(self):
685
+ """Return an iterator over keys."""
686
+ self._lookup()
687
+ yield from self._toc.keys()
688
+
689
+ def __contains__(self, key):
690
+ """Return True if the keyed message exists, False otherwise."""
691
+ self._lookup()
692
+ return key in self._toc
693
+
694
+ def __len__(self):
695
+ """Return a count of messages in the mailbox."""
696
+ self._lookup()
697
+ return len(self._toc)
698
+
699
+ def lock(self):
700
+ """Lock the mailbox."""
701
+ if not self._locked:
702
+ _lock_file(self._file)
703
+ self._locked = True
704
+
705
+ def unlock(self):
706
+ """Unlock the mailbox if it is locked."""
707
+ if self._locked:
708
+ _unlock_file(self._file)
709
+ self._locked = False
710
+
711
+ def flush(self):
712
+ """Write any pending changes to disk."""
713
+ if not self._pending:
714
+ if self._pending_sync:
715
+ # Messages have only been added, so syncing the file
716
+ # is enough.
717
+ _sync_flush(self._file)
718
+ self._pending_sync = False
719
+ return
720
+
721
+ # In order to be writing anything out at all, self._toc must
722
+ # already have been generated (and presumably has been modified
723
+ # by adding or deleting an item).
724
+ assert self._toc is not None
725
+
726
+ # Check length of self._file; if it's changed, some other process
727
+ # has modified the mailbox since we scanned it.
728
+ self._file.seek(0, 2)
729
+ cur_len = self._file.tell()
730
+ if cur_len != self._file_length:
731
+ raise ExternalClashError('Size of mailbox file changed '
732
+ '(expected %i, found %i)' %
733
+ (self._file_length, cur_len))
734
+
735
+ new_file = _create_temporary(self._path)
736
+ try:
737
+ new_toc = {}
738
+ self._pre_mailbox_hook(new_file)
739
+ for key in sorted(self._toc.keys()):
740
+ start, stop = self._toc[key]
741
+ self._file.seek(start)
742
+ self._pre_message_hook(new_file)
743
+ new_start = new_file.tell()
744
+ while True:
745
+ buffer = self._file.read(min(4096,
746
+ stop - self._file.tell()))
747
+ if not buffer:
748
+ break
749
+ new_file.write(buffer)
750
+ new_toc[key] = (new_start, new_file.tell())
751
+ self._post_message_hook(new_file)
752
+ self._file_length = new_file.tell()
753
+ except:
754
+ new_file.close()
755
+ os.remove(new_file.name)
756
+ raise
757
+ _sync_close(new_file)
758
+ # self._file is about to get replaced, so no need to sync.
759
+ self._file.close()
760
+ # Make sure the new file's mode and owner are the same as the old file's
761
+ info = os.stat(self._path)
762
+ os.chmod(new_file.name, info.st_mode)
763
+ try:
764
+ os.chown(new_file.name, info.st_uid, info.st_gid)
765
+ except (AttributeError, OSError):
766
+ pass
767
+ try:
768
+ os.rename(new_file.name, self._path)
769
+ except FileExistsError:
770
+ os.remove(self._path)
771
+ os.rename(new_file.name, self._path)
772
+ self._file = open(self._path, 'rb+')
773
+ self._toc = new_toc
774
+ self._pending = False
775
+ self._pending_sync = False
776
+ if self._locked:
777
+ _lock_file(self._file, dotlock=False)
778
+
779
+ def _pre_mailbox_hook(self, f):
780
+ """Called before writing the mailbox to file f."""
781
+ return
782
+
783
+ def _pre_message_hook(self, f):
784
+ """Called before writing each message to file f."""
785
+ return
786
+
787
+ def _post_message_hook(self, f):
788
+ """Called after writing each message to file f."""
789
+ return
790
+
791
+ def close(self):
792
+ """Flush and close the mailbox."""
793
+ try:
794
+ self.flush()
795
+ finally:
796
+ try:
797
+ if self._locked:
798
+ self.unlock()
799
+ finally:
800
+ self._file.close() # Sync has been done by self.flush() above.
801
+
802
+ def _lookup(self, key=None):
803
+ """Return (start, stop) or raise KeyError."""
804
+ if self._toc is None:
805
+ self._generate_toc()
806
+ if key is not None:
807
+ try:
808
+ return self._toc[key]
809
+ except KeyError:
810
+ raise KeyError('No message with key: %s' % key) from None
811
+
812
+ def _append_message(self, message):
813
+ """Append message to mailbox and return (start, stop) offsets."""
814
+ self._file.seek(0, 2)
815
+ before = self._file.tell()
816
+ if len(self._toc) == 0 and not self._pending:
817
+ # This is the first message, and the _pre_mailbox_hook
818
+ # hasn't yet been called. If self._pending is True,
819
+ # messages have been removed, so _pre_mailbox_hook must
820
+ # have been called already.
821
+ self._pre_mailbox_hook(self._file)
822
+ try:
823
+ self._pre_message_hook(self._file)
824
+ offsets = self._install_message(message)
825
+ self._post_message_hook(self._file)
826
+ except BaseException:
827
+ self._file.truncate(before)
828
+ raise
829
+ self._file.flush()
830
+ self._file_length = self._file.tell() # Record current length of mailbox
831
+ return offsets
832
+
833
+
834
+
835
+ class _mboxMMDF(_singlefileMailbox):
836
+ """An mbox or MMDF mailbox."""
837
+
838
+ _mangle_from_ = True
839
+
840
+ def get_message(self, key):
841
+ """Return a Message representation or raise a KeyError."""
842
+ start, stop = self._lookup(key)
843
+ self._file.seek(start)
844
+ from_line = self._file.readline().replace(linesep, b'').decode('ascii')
845
+ string = self._file.read(stop - self._file.tell())
846
+ msg = self._message_factory(string.replace(linesep, b'\n'))
847
+ msg.set_unixfrom(from_line)
848
+ msg.set_from(from_line[5:])
849
+ return msg
850
+
851
+ def get_string(self, key, from_=False):
852
+ """Return a string representation or raise a KeyError."""
853
+ return email.message_from_bytes(
854
+ self.get_bytes(key, from_)).as_string(unixfrom=from_)
855
+
856
+ def get_bytes(self, key, from_=False):
857
+ """Return a string representation or raise a KeyError."""
858
+ start, stop = self._lookup(key)
859
+ self._file.seek(start)
860
+ if not from_:
861
+ self._file.readline()
862
+ string = self._file.read(stop - self._file.tell())
863
+ return string.replace(linesep, b'\n')
864
+
865
+ def get_file(self, key, from_=False):
866
+ """Return a file-like representation or raise a KeyError."""
867
+ start, stop = self._lookup(key)
868
+ self._file.seek(start)
869
+ if not from_:
870
+ self._file.readline()
871
+ return _PartialFile(self._file, self._file.tell(), stop)
872
+
873
+ def _install_message(self, message):
874
+ """Format a message and blindly write to self._file."""
875
+ from_line = None
876
+ if isinstance(message, str):
877
+ message = self._string_to_bytes(message)
878
+ if isinstance(message, bytes) and message.startswith(b'From '):
879
+ newline = message.find(b'\n')
880
+ if newline != -1:
881
+ from_line = message[:newline]
882
+ message = message[newline + 1:]
883
+ else:
884
+ from_line = message
885
+ message = b''
886
+ elif isinstance(message, _mboxMMDFMessage):
887
+ author = message.get_from().encode('ascii')
888
+ from_line = b'From ' + author
889
+ elif isinstance(message, email.message.Message):
890
+ from_line = message.get_unixfrom() # May be None.
891
+ if from_line is not None:
892
+ from_line = from_line.encode('ascii')
893
+ if from_line is None:
894
+ from_line = b'From MAILER-DAEMON ' + time.asctime(time.gmtime()).encode()
895
+ start = self._file.tell()
896
+ self._file.write(from_line + linesep)
897
+ self._dump_message(message, self._file, self._mangle_from_)
898
+ stop = self._file.tell()
899
+ return (start, stop)
900
+
901
+
902
+ class mbox(_mboxMMDF):
903
+ """A classic mbox mailbox."""
904
+
905
+ _mangle_from_ = True
906
+
907
+ # All messages must end in a newline character, and
908
+ # _post_message_hooks outputs an empty line between messages.
909
+ _append_newline = True
910
+
911
+ def __init__(self, path, factory=None, create=True):
912
+ """Initialize an mbox mailbox."""
913
+ self._message_factory = mboxMessage
914
+ _mboxMMDF.__init__(self, path, factory, create)
915
+
916
+ def _post_message_hook(self, f):
917
+ """Called after writing each message to file f."""
918
+ f.write(linesep)
919
+
920
+ def _generate_toc(self):
921
+ """Generate key-to-(start, stop) table of contents."""
922
+ starts, stops = [], []
923
+ last_was_empty = False
924
+ self._file.seek(0)
925
+ while True:
926
+ line_pos = self._file.tell()
927
+ line = self._file.readline()
928
+ if line.startswith(b'From '):
929
+ if len(stops) < len(starts):
930
+ if last_was_empty:
931
+ stops.append(line_pos - len(linesep))
932
+ else:
933
+ # The last line before the "From " line wasn't
934
+ # blank, but we consider it a start of a
935
+ # message anyway.
936
+ stops.append(line_pos)
937
+ starts.append(line_pos)
938
+ last_was_empty = False
939
+ elif not line:
940
+ if last_was_empty:
941
+ stops.append(line_pos - len(linesep))
942
+ else:
943
+ stops.append(line_pos)
944
+ break
945
+ elif line == linesep:
946
+ last_was_empty = True
947
+ else:
948
+ last_was_empty = False
949
+ self._toc = dict(enumerate(zip(starts, stops)))
950
+ self._next_key = len(self._toc)
951
+ self._file_length = self._file.tell()
952
+
953
+
954
+ class MMDF(_mboxMMDF):
955
+ """An MMDF mailbox."""
956
+
957
+ def __init__(self, path, factory=None, create=True):
958
+ """Initialize an MMDF mailbox."""
959
+ self._message_factory = MMDFMessage
960
+ _mboxMMDF.__init__(self, path, factory, create)
961
+
962
+ def _pre_message_hook(self, f):
963
+ """Called before writing each message to file f."""
964
+ f.write(b'\001\001\001\001' + linesep)
965
+
966
+ def _post_message_hook(self, f):
967
+ """Called after writing each message to file f."""
968
+ f.write(linesep + b'\001\001\001\001' + linesep)
969
+
970
+ def _generate_toc(self):
971
+ """Generate key-to-(start, stop) table of contents."""
972
+ starts, stops = [], []
973
+ self._file.seek(0)
974
+ next_pos = 0
975
+ while True:
976
+ line_pos = next_pos
977
+ line = self._file.readline()
978
+ next_pos = self._file.tell()
979
+ if line.startswith(b'\001\001\001\001' + linesep):
980
+ starts.append(next_pos)
981
+ while True:
982
+ line_pos = next_pos
983
+ line = self._file.readline()
984
+ next_pos = self._file.tell()
985
+ if line == b'\001\001\001\001' + linesep:
986
+ stops.append(line_pos - len(linesep))
987
+ break
988
+ elif not line:
989
+ stops.append(line_pos)
990
+ break
991
+ elif not line:
992
+ break
993
+ self._toc = dict(enumerate(zip(starts, stops)))
994
+ self._next_key = len(self._toc)
995
+ self._file.seek(0, 2)
996
+ self._file_length = self._file.tell()
997
+
998
+
999
+ class MH(Mailbox):
1000
+ """An MH mailbox."""
1001
+
1002
+ def __init__(self, path, factory=None, create=True):
1003
+ """Initialize an MH instance."""
1004
+ Mailbox.__init__(self, path, factory, create)
1005
+ if not os.path.exists(self._path):
1006
+ if create:
1007
+ os.mkdir(self._path, 0o700)
1008
+ os.close(os.open(os.path.join(self._path, '.mh_sequences'),
1009
+ os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o600))
1010
+ else:
1011
+ raise NoSuchMailboxError(self._path)
1012
+ self._locked = False
1013
+
1014
+ def add(self, message):
1015
+ """Add message and return assigned key."""
1016
+ keys = self.keys()
1017
+ if len(keys) == 0:
1018
+ new_key = 1
1019
+ else:
1020
+ new_key = max(keys) + 1
1021
+ new_path = os.path.join(self._path, str(new_key))
1022
+ f = _create_carefully(new_path)
1023
+ closed = False
1024
+ try:
1025
+ if self._locked:
1026
+ _lock_file(f)
1027
+ try:
1028
+ try:
1029
+ self._dump_message(message, f)
1030
+ except BaseException:
1031
+ # Unlock and close so it can be deleted on Windows
1032
+ if self._locked:
1033
+ _unlock_file(f)
1034
+ _sync_close(f)
1035
+ closed = True
1036
+ os.remove(new_path)
1037
+ raise
1038
+ if isinstance(message, MHMessage):
1039
+ self._dump_sequences(message, new_key)
1040
+ finally:
1041
+ if self._locked:
1042
+ _unlock_file(f)
1043
+ finally:
1044
+ if not closed:
1045
+ _sync_close(f)
1046
+ return new_key
1047
+
1048
+ def remove(self, key):
1049
+ """Remove the keyed message; raise KeyError if it doesn't exist."""
1050
+ path = os.path.join(self._path, str(key))
1051
+ try:
1052
+ f = open(path, 'rb+')
1053
+ except OSError as e:
1054
+ if e.errno == errno.ENOENT:
1055
+ raise KeyError('No message with key: %s' % key)
1056
+ else:
1057
+ raise
1058
+ else:
1059
+ f.close()
1060
+ os.remove(path)
1061
+
1062
+ def __setitem__(self, key, message):
1063
+ """Replace the keyed message; raise KeyError if it doesn't exist."""
1064
+ path = os.path.join(self._path, str(key))
1065
+ try:
1066
+ f = open(path, 'rb+')
1067
+ except OSError as e:
1068
+ if e.errno == errno.ENOENT:
1069
+ raise KeyError('No message with key: %s' % key)
1070
+ else:
1071
+ raise
1072
+ try:
1073
+ if self._locked:
1074
+ _lock_file(f)
1075
+ try:
1076
+ os.close(os.open(path, os.O_WRONLY | os.O_TRUNC))
1077
+ self._dump_message(message, f)
1078
+ if isinstance(message, MHMessage):
1079
+ self._dump_sequences(message, key)
1080
+ finally:
1081
+ if self._locked:
1082
+ _unlock_file(f)
1083
+ finally:
1084
+ _sync_close(f)
1085
+
1086
+ def get_message(self, key):
1087
+ """Return a Message representation or raise a KeyError."""
1088
+ try:
1089
+ if self._locked:
1090
+ f = open(os.path.join(self._path, str(key)), 'rb+')
1091
+ else:
1092
+ f = open(os.path.join(self._path, str(key)), 'rb')
1093
+ except OSError as e:
1094
+ if e.errno == errno.ENOENT:
1095
+ raise KeyError('No message with key: %s' % key)
1096
+ else:
1097
+ raise
1098
+ with f:
1099
+ if self._locked:
1100
+ _lock_file(f)
1101
+ try:
1102
+ msg = MHMessage(f)
1103
+ finally:
1104
+ if self._locked:
1105
+ _unlock_file(f)
1106
+ for name, key_list in self.get_sequences().items():
1107
+ if key in key_list:
1108
+ msg.add_sequence(name)
1109
+ return msg
1110
+
1111
+ def get_bytes(self, key):
1112
+ """Return a bytes representation or raise a KeyError."""
1113
+ try:
1114
+ if self._locked:
1115
+ f = open(os.path.join(self._path, str(key)), 'rb+')
1116
+ else:
1117
+ f = open(os.path.join(self._path, str(key)), 'rb')
1118
+ except OSError as e:
1119
+ if e.errno == errno.ENOENT:
1120
+ raise KeyError('No message with key: %s' % key)
1121
+ else:
1122
+ raise
1123
+ with f:
1124
+ if self._locked:
1125
+ _lock_file(f)
1126
+ try:
1127
+ return f.read().replace(linesep, b'\n')
1128
+ finally:
1129
+ if self._locked:
1130
+ _unlock_file(f)
1131
+
1132
+ def get_file(self, key):
1133
+ """Return a file-like representation or raise a KeyError."""
1134
+ try:
1135
+ f = open(os.path.join(self._path, str(key)), 'rb')
1136
+ except OSError as e:
1137
+ if e.errno == errno.ENOENT:
1138
+ raise KeyError('No message with key: %s' % key)
1139
+ else:
1140
+ raise
1141
+ return _ProxyFile(f)
1142
+
1143
+ def iterkeys(self):
1144
+ """Return an iterator over keys."""
1145
+ return iter(sorted(int(entry) for entry in os.listdir(self._path)
1146
+ if entry.isdigit()))
1147
+
1148
+ def __contains__(self, key):
1149
+ """Return True if the keyed message exists, False otherwise."""
1150
+ return os.path.exists(os.path.join(self._path, str(key)))
1151
+
1152
+ def __len__(self):
1153
+ """Return a count of messages in the mailbox."""
1154
+ return len(list(self.iterkeys()))
1155
+
1156
+ def _open_mh_sequences_file(self, text):
1157
+ mode = '' if text else 'b'
1158
+ kwargs = {'encoding': 'ASCII'} if text else {}
1159
+ path = os.path.join(self._path, '.mh_sequences')
1160
+ while True:
1161
+ try:
1162
+ return open(path, 'r+' + mode, **kwargs)
1163
+ except FileNotFoundError:
1164
+ pass
1165
+ try:
1166
+ return open(path, 'x+' + mode, **kwargs)
1167
+ except FileExistsError:
1168
+ pass
1169
+
1170
+ def lock(self):
1171
+ """Lock the mailbox."""
1172
+ if not self._locked:
1173
+ self._file = self._open_mh_sequences_file(text=False)
1174
+ _lock_file(self._file)
1175
+ self._locked = True
1176
+
1177
+ def unlock(self):
1178
+ """Unlock the mailbox if it is locked."""
1179
+ if self._locked:
1180
+ _unlock_file(self._file)
1181
+ _sync_close(self._file)
1182
+ del self._file
1183
+ self._locked = False
1184
+
1185
+ def flush(self):
1186
+ """Write any pending changes to the disk."""
1187
+ return
1188
+
1189
+ def close(self):
1190
+ """Flush and close the mailbox."""
1191
+ if self._locked:
1192
+ self.unlock()
1193
+
1194
+ def list_folders(self):
1195
+ """Return a list of folder names."""
1196
+ result = []
1197
+ for entry in os.listdir(self._path):
1198
+ if os.path.isdir(os.path.join(self._path, entry)):
1199
+ result.append(entry)
1200
+ return result
1201
+
1202
+ def get_folder(self, folder):
1203
+ """Return an MH instance for the named folder."""
1204
+ return MH(os.path.join(self._path, folder),
1205
+ factory=self._factory, create=False)
1206
+
1207
+ def add_folder(self, folder):
1208
+ """Create a folder and return an MH instance representing it."""
1209
+ return MH(os.path.join(self._path, folder),
1210
+ factory=self._factory)
1211
+
1212
+ def remove_folder(self, folder):
1213
+ """Delete the named folder, which must be empty."""
1214
+ path = os.path.join(self._path, folder)
1215
+ entries = os.listdir(path)
1216
+ if entries == ['.mh_sequences']:
1217
+ os.remove(os.path.join(path, '.mh_sequences'))
1218
+ elif entries == []:
1219
+ pass
1220
+ else:
1221
+ raise NotEmptyError('Folder not empty: %s' % self._path)
1222
+ os.rmdir(path)
1223
+
1224
+ def get_sequences(self):
1225
+ """Return a name-to-key-list dictionary to define each sequence."""
1226
+ results = {}
1227
+ try:
1228
+ f = open(os.path.join(self._path, '.mh_sequences'), 'r', encoding='ASCII')
1229
+ except FileNotFoundError:
1230
+ return results
1231
+ with f:
1232
+ all_keys = set(self.keys())
1233
+ for line in f:
1234
+ try:
1235
+ name, contents = line.split(':')
1236
+ keys = set()
1237
+ for spec in contents.split():
1238
+ if spec.isdigit():
1239
+ keys.add(int(spec))
1240
+ else:
1241
+ start, stop = (int(x) for x in spec.split('-'))
1242
+ keys.update(range(start, stop + 1))
1243
+ results[name] = [key for key in sorted(keys) \
1244
+ if key in all_keys]
1245
+ if len(results[name]) == 0:
1246
+ del results[name]
1247
+ except ValueError:
1248
+ raise FormatError('Invalid sequence specification: %s' %
1249
+ line.rstrip())
1250
+ return results
1251
+
1252
+ def set_sequences(self, sequences):
1253
+ """Set sequences using the given name-to-key-list dictionary."""
1254
+ f = self._open_mh_sequences_file(text=True)
1255
+ try:
1256
+ os.close(os.open(f.name, os.O_WRONLY | os.O_TRUNC))
1257
+ for name, keys in sequences.items():
1258
+ if len(keys) == 0:
1259
+ continue
1260
+ f.write(name + ':')
1261
+ prev = None
1262
+ completing = False
1263
+ for key in sorted(set(keys)):
1264
+ if key - 1 == prev:
1265
+ if not completing:
1266
+ completing = True
1267
+ f.write('-')
1268
+ elif completing:
1269
+ completing = False
1270
+ f.write('%s %s' % (prev, key))
1271
+ else:
1272
+ f.write(' %s' % key)
1273
+ prev = key
1274
+ if completing:
1275
+ f.write(str(prev) + '\n')
1276
+ else:
1277
+ f.write('\n')
1278
+ finally:
1279
+ _sync_close(f)
1280
+
1281
+ def pack(self):
1282
+ """Re-name messages to eliminate numbering gaps. Invalidates keys."""
1283
+ sequences = self.get_sequences()
1284
+ prev = 0
1285
+ changes = []
1286
+ for key in self.iterkeys():
1287
+ if key - 1 != prev:
1288
+ changes.append((key, prev + 1))
1289
+ try:
1290
+ os.link(os.path.join(self._path, str(key)),
1291
+ os.path.join(self._path, str(prev + 1)))
1292
+ except (AttributeError, PermissionError):
1293
+ os.rename(os.path.join(self._path, str(key)),
1294
+ os.path.join(self._path, str(prev + 1)))
1295
+ else:
1296
+ os.unlink(os.path.join(self._path, str(key)))
1297
+ prev += 1
1298
+ self._next_key = prev + 1
1299
+ if len(changes) == 0:
1300
+ return
1301
+ for name, key_list in sequences.items():
1302
+ for old, new in changes:
1303
+ if old in key_list:
1304
+ key_list[key_list.index(old)] = new
1305
+ self.set_sequences(sequences)
1306
+
1307
+ def _dump_sequences(self, message, key):
1308
+ """Inspect a new MHMessage and update sequences appropriately."""
1309
+ pending_sequences = message.get_sequences()
1310
+ all_sequences = self.get_sequences()
1311
+ for name, key_list in all_sequences.items():
1312
+ if name in pending_sequences:
1313
+ key_list.append(key)
1314
+ elif key in key_list:
1315
+ del key_list[key_list.index(key)]
1316
+ for sequence in pending_sequences:
1317
+ if sequence not in all_sequences:
1318
+ all_sequences[sequence] = [key]
1319
+ self.set_sequences(all_sequences)
1320
+
1321
+
1322
+ class Babyl(_singlefileMailbox):
1323
+ """An Rmail-style Babyl mailbox."""
1324
+
1325
+ _special_labels = frozenset({'unseen', 'deleted', 'filed', 'answered',
1326
+ 'forwarded', 'edited', 'resent'})
1327
+
1328
+ def __init__(self, path, factory=None, create=True):
1329
+ """Initialize a Babyl mailbox."""
1330
+ _singlefileMailbox.__init__(self, path, factory, create)
1331
+ self._labels = {}
1332
+
1333
+ def add(self, message):
1334
+ """Add message and return assigned key."""
1335
+ key = _singlefileMailbox.add(self, message)
1336
+ if isinstance(message, BabylMessage):
1337
+ self._labels[key] = message.get_labels()
1338
+ return key
1339
+
1340
+ def remove(self, key):
1341
+ """Remove the keyed message; raise KeyError if it doesn't exist."""
1342
+ _singlefileMailbox.remove(self, key)
1343
+ if key in self._labels:
1344
+ del self._labels[key]
1345
+
1346
+ def __setitem__(self, key, message):
1347
+ """Replace the keyed message; raise KeyError if it doesn't exist."""
1348
+ _singlefileMailbox.__setitem__(self, key, message)
1349
+ if isinstance(message, BabylMessage):
1350
+ self._labels[key] = message.get_labels()
1351
+
1352
+ def get_message(self, key):
1353
+ """Return a Message representation or raise a KeyError."""
1354
+ start, stop = self._lookup(key)
1355
+ self._file.seek(start)
1356
+ self._file.readline() # Skip b'1,' line specifying labels.
1357
+ original_headers = io.BytesIO()
1358
+ while True:
1359
+ line = self._file.readline()
1360
+ if line == b'*** EOOH ***' + linesep or not line:
1361
+ break
1362
+ original_headers.write(line.replace(linesep, b'\n'))
1363
+ visible_headers = io.BytesIO()
1364
+ while True:
1365
+ line = self._file.readline()
1366
+ if line == linesep or not line:
1367
+ break
1368
+ visible_headers.write(line.replace(linesep, b'\n'))
1369
+ # Read up to the stop, or to the end
1370
+ n = stop - self._file.tell()
1371
+ assert n >= 0
1372
+ body = self._file.read(n)
1373
+ body = body.replace(linesep, b'\n')
1374
+ msg = BabylMessage(original_headers.getvalue() + body)
1375
+ msg.set_visible(visible_headers.getvalue())
1376
+ if key in self._labels:
1377
+ msg.set_labels(self._labels[key])
1378
+ return msg
1379
+
1380
+ def get_bytes(self, key):
1381
+ """Return a string representation or raise a KeyError."""
1382
+ start, stop = self._lookup(key)
1383
+ self._file.seek(start)
1384
+ self._file.readline() # Skip b'1,' line specifying labels.
1385
+ original_headers = io.BytesIO()
1386
+ while True:
1387
+ line = self._file.readline()
1388
+ if line == b'*** EOOH ***' + linesep or not line:
1389
+ break
1390
+ original_headers.write(line.replace(linesep, b'\n'))
1391
+ while True:
1392
+ line = self._file.readline()
1393
+ if line == linesep or not line:
1394
+ break
1395
+ headers = original_headers.getvalue()
1396
+ n = stop - self._file.tell()
1397
+ assert n >= 0
1398
+ data = self._file.read(n)
1399
+ data = data.replace(linesep, b'\n')
1400
+ return headers + data
1401
+
1402
+ def get_file(self, key):
1403
+ """Return a file-like representation or raise a KeyError."""
1404
+ return io.BytesIO(self.get_bytes(key).replace(b'\n', linesep))
1405
+
1406
+ def get_labels(self):
1407
+ """Return a list of user-defined labels in the mailbox."""
1408
+ self._lookup()
1409
+ labels = set()
1410
+ for label_list in self._labels.values():
1411
+ labels.update(label_list)
1412
+ labels.difference_update(self._special_labels)
1413
+ return list(labels)
1414
+
1415
+ def _generate_toc(self):
1416
+ """Generate key-to-(start, stop) table of contents."""
1417
+ starts, stops = [], []
1418
+ self._file.seek(0)
1419
+ next_pos = 0
1420
+ label_lists = []
1421
+ while True:
1422
+ line_pos = next_pos
1423
+ line = self._file.readline()
1424
+ next_pos = self._file.tell()
1425
+ if line == b'\037\014' + linesep:
1426
+ if len(stops) < len(starts):
1427
+ stops.append(line_pos - len(linesep))
1428
+ starts.append(next_pos)
1429
+ labels = [label.strip() for label
1430
+ in self._file.readline()[1:].split(b',')
1431
+ if label.strip()]
1432
+ label_lists.append(labels)
1433
+ elif line == b'\037' or line == b'\037' + linesep:
1434
+ if len(stops) < len(starts):
1435
+ stops.append(line_pos - len(linesep))
1436
+ elif not line:
1437
+ stops.append(line_pos - len(linesep))
1438
+ break
1439
+ self._toc = dict(enumerate(zip(starts, stops)))
1440
+ self._labels = dict(enumerate(label_lists))
1441
+ self._next_key = len(self._toc)
1442
+ self._file.seek(0, 2)
1443
+ self._file_length = self._file.tell()
1444
+
1445
+ def _pre_mailbox_hook(self, f):
1446
+ """Called before writing the mailbox to file f."""
1447
+ babyl = b'BABYL OPTIONS:' + linesep
1448
+ babyl += b'Version: 5' + linesep
1449
+ labels = self.get_labels()
1450
+ labels = (label.encode() for label in labels)
1451
+ babyl += b'Labels:' + b','.join(labels) + linesep
1452
+ babyl += b'\037'
1453
+ f.write(babyl)
1454
+
1455
+ def _pre_message_hook(self, f):
1456
+ """Called before writing each message to file f."""
1457
+ f.write(b'\014' + linesep)
1458
+
1459
+ def _post_message_hook(self, f):
1460
+ """Called after writing each message to file f."""
1461
+ f.write(linesep + b'\037')
1462
+
1463
+ def _install_message(self, message):
1464
+ """Write message contents and return (start, stop)."""
1465
+ start = self._file.tell()
1466
+ if isinstance(message, BabylMessage):
1467
+ special_labels = []
1468
+ labels = []
1469
+ for label in message.get_labels():
1470
+ if label in self._special_labels:
1471
+ special_labels.append(label)
1472
+ else:
1473
+ labels.append(label)
1474
+ self._file.write(b'1')
1475
+ for label in special_labels:
1476
+ self._file.write(b', ' + label.encode())
1477
+ self._file.write(b',,')
1478
+ for label in labels:
1479
+ self._file.write(b' ' + label.encode() + b',')
1480
+ self._file.write(linesep)
1481
+ else:
1482
+ self._file.write(b'1,,' + linesep)
1483
+ if isinstance(message, email.message.Message):
1484
+ orig_buffer = io.BytesIO()
1485
+ orig_generator = email.generator.BytesGenerator(orig_buffer, False, 0)
1486
+ orig_generator.flatten(message)
1487
+ orig_buffer.seek(0)
1488
+ while True:
1489
+ line = orig_buffer.readline()
1490
+ self._file.write(line.replace(b'\n', linesep))
1491
+ if line == b'\n' or not line:
1492
+ break
1493
+ self._file.write(b'*** EOOH ***' + linesep)
1494
+ if isinstance(message, BabylMessage):
1495
+ vis_buffer = io.BytesIO()
1496
+ vis_generator = email.generator.BytesGenerator(vis_buffer, False, 0)
1497
+ vis_generator.flatten(message.get_visible())
1498
+ vis_buffer.seek(0)
1499
+ while True:
1500
+ line = vis_buffer.readline()
1501
+ self._file.write(line.replace(b'\n', linesep))
1502
+ if line == b'\n' or not line:
1503
+ break
1504
+ else:
1505
+ orig_buffer.seek(0)
1506
+ while True:
1507
+ line = orig_buffer.readline()
1508
+ self._file.write(line.replace(b'\n', linesep))
1509
+ if line == b'\n' or not line:
1510
+ break
1511
+ while True:
1512
+ buffer = orig_buffer.read(4096) # Buffer size is arbitrary.
1513
+ if not buffer:
1514
+ break
1515
+ self._file.write(buffer.replace(b'\n', linesep))
1516
+ elif isinstance(message, (bytes, str, io.StringIO)):
1517
+ if isinstance(message, io.StringIO):
1518
+ warnings.warn("Use of StringIO input is deprecated, "
1519
+ "use BytesIO instead", DeprecationWarning, 3)
1520
+ message = message.getvalue()
1521
+ if isinstance(message, str):
1522
+ message = self._string_to_bytes(message)
1523
+ body_start = message.find(b'\n\n') + 2
1524
+ if body_start - 2 != -1:
1525
+ self._file.write(message[:body_start].replace(b'\n', linesep))
1526
+ self._file.write(b'*** EOOH ***' + linesep)
1527
+ self._file.write(message[:body_start].replace(b'\n', linesep))
1528
+ self._file.write(message[body_start:].replace(b'\n', linesep))
1529
+ else:
1530
+ self._file.write(b'*** EOOH ***' + linesep + linesep)
1531
+ self._file.write(message.replace(b'\n', linesep))
1532
+ elif hasattr(message, 'readline'):
1533
+ if hasattr(message, 'buffer'):
1534
+ warnings.warn("Use of text mode files is deprecated, "
1535
+ "use a binary mode file instead", DeprecationWarning, 3)
1536
+ message = message.buffer
1537
+ original_pos = message.tell()
1538
+ first_pass = True
1539
+ while True:
1540
+ line = message.readline()
1541
+ # Universal newline support.
1542
+ if line.endswith(b'\r\n'):
1543
+ line = line[:-2] + b'\n'
1544
+ elif line.endswith(b'\r'):
1545
+ line = line[:-1] + b'\n'
1546
+ self._file.write(line.replace(b'\n', linesep))
1547
+ if line == b'\n' or not line:
1548
+ if first_pass:
1549
+ first_pass = False
1550
+ self._file.write(b'*** EOOH ***' + linesep)
1551
+ message.seek(original_pos)
1552
+ else:
1553
+ break
1554
+ while True:
1555
+ line = message.readline()
1556
+ if not line:
1557
+ break
1558
+ # Universal newline support.
1559
+ if line.endswith(b'\r\n'):
1560
+ line = line[:-2] + linesep
1561
+ elif line.endswith(b'\r'):
1562
+ line = line[:-1] + linesep
1563
+ elif line.endswith(b'\n'):
1564
+ line = line[:-1] + linesep
1565
+ self._file.write(line)
1566
+ else:
1567
+ raise TypeError('Invalid message type: %s' % type(message))
1568
+ stop = self._file.tell()
1569
+ return (start, stop)
1570
+
1571
+
1572
+ class Message(email.message.Message):
1573
+ """Message with mailbox-format-specific properties."""
1574
+
1575
+ def __init__(self, message=None):
1576
+ """Initialize a Message instance."""
1577
+ if isinstance(message, email.message.Message):
1578
+ self._become_message(copy.deepcopy(message))
1579
+ if isinstance(message, Message):
1580
+ message._explain_to(self)
1581
+ elif isinstance(message, bytes):
1582
+ self._become_message(email.message_from_bytes(message))
1583
+ elif isinstance(message, str):
1584
+ self._become_message(email.message_from_string(message))
1585
+ elif isinstance(message, io.TextIOWrapper):
1586
+ self._become_message(email.message_from_file(message))
1587
+ elif hasattr(message, "read"):
1588
+ self._become_message(email.message_from_binary_file(message))
1589
+ elif message is None:
1590
+ email.message.Message.__init__(self)
1591
+ else:
1592
+ raise TypeError('Invalid message type: %s' % type(message))
1593
+
1594
+ def _become_message(self, message):
1595
+ """Assume the non-format-specific state of message."""
1596
+ type_specific = getattr(message, '_type_specific_attributes', [])
1597
+ for name in message.__dict__:
1598
+ if name not in type_specific:
1599
+ self.__dict__[name] = message.__dict__[name]
1600
+
1601
+ def _explain_to(self, message):
1602
+ """Copy format-specific state to message insofar as possible."""
1603
+ if isinstance(message, Message):
1604
+ return # There's nothing format-specific to explain.
1605
+ else:
1606
+ raise TypeError('Cannot convert to specified type')
1607
+
1608
+
1609
+ class MaildirMessage(Message):
1610
+ """Message with Maildir-specific properties."""
1611
+
1612
+ _type_specific_attributes = ['_subdir', '_info', '_date']
1613
+
1614
+ def __init__(self, message=None):
1615
+ """Initialize a MaildirMessage instance."""
1616
+ self._subdir = 'new'
1617
+ self._info = ''
1618
+ self._date = time.time()
1619
+ Message.__init__(self, message)
1620
+
1621
+ def get_subdir(self):
1622
+ """Return 'new' or 'cur'."""
1623
+ return self._subdir
1624
+
1625
+ def set_subdir(self, subdir):
1626
+ """Set subdir to 'new' or 'cur'."""
1627
+ if subdir == 'new' or subdir == 'cur':
1628
+ self._subdir = subdir
1629
+ else:
1630
+ raise ValueError("subdir must be 'new' or 'cur': %s" % subdir)
1631
+
1632
+ def get_flags(self):
1633
+ """Return as a string the flags that are set."""
1634
+ if self._info.startswith('2,'):
1635
+ return self._info[2:]
1636
+ else:
1637
+ return ''
1638
+
1639
+ def set_flags(self, flags):
1640
+ """Set the given flags and unset all others."""
1641
+ self._info = '2,' + ''.join(sorted(flags))
1642
+
1643
+ def add_flag(self, flag):
1644
+ """Set the given flag(s) without changing others."""
1645
+ self.set_flags(''.join(set(self.get_flags()) | set(flag)))
1646
+
1647
+ def remove_flag(self, flag):
1648
+ """Unset the given string flag(s) without changing others."""
1649
+ if self.get_flags():
1650
+ self.set_flags(''.join(set(self.get_flags()) - set(flag)))
1651
+
1652
+ def get_date(self):
1653
+ """Return delivery date of message, in seconds since the epoch."""
1654
+ return self._date
1655
+
1656
+ def set_date(self, date):
1657
+ """Set delivery date of message, in seconds since the epoch."""
1658
+ try:
1659
+ self._date = float(date)
1660
+ except ValueError:
1661
+ raise TypeError("can't convert to float: %s" % date) from None
1662
+
1663
+ def get_info(self):
1664
+ """Get the message's "info" as a string."""
1665
+ return self._info
1666
+
1667
+ def set_info(self, info):
1668
+ """Set the message's "info" string."""
1669
+ if isinstance(info, str):
1670
+ self._info = info
1671
+ else:
1672
+ raise TypeError('info must be a string: %s' % type(info))
1673
+
1674
+ def _explain_to(self, message):
1675
+ """Copy Maildir-specific state to message insofar as possible."""
1676
+ if isinstance(message, MaildirMessage):
1677
+ message.set_flags(self.get_flags())
1678
+ message.set_subdir(self.get_subdir())
1679
+ message.set_date(self.get_date())
1680
+ elif isinstance(message, _mboxMMDFMessage):
1681
+ flags = set(self.get_flags())
1682
+ if 'S' in flags:
1683
+ message.add_flag('R')
1684
+ if self.get_subdir() == 'cur':
1685
+ message.add_flag('O')
1686
+ if 'T' in flags:
1687
+ message.add_flag('D')
1688
+ if 'F' in flags:
1689
+ message.add_flag('F')
1690
+ if 'R' in flags:
1691
+ message.add_flag('A')
1692
+ message.set_from('MAILER-DAEMON', time.gmtime(self.get_date()))
1693
+ elif isinstance(message, MHMessage):
1694
+ flags = set(self.get_flags())
1695
+ if 'S' not in flags:
1696
+ message.add_sequence('unseen')
1697
+ if 'R' in flags:
1698
+ message.add_sequence('replied')
1699
+ if 'F' in flags:
1700
+ message.add_sequence('flagged')
1701
+ elif isinstance(message, BabylMessage):
1702
+ flags = set(self.get_flags())
1703
+ if 'S' not in flags:
1704
+ message.add_label('unseen')
1705
+ if 'T' in flags:
1706
+ message.add_label('deleted')
1707
+ if 'R' in flags:
1708
+ message.add_label('answered')
1709
+ if 'P' in flags:
1710
+ message.add_label('forwarded')
1711
+ elif isinstance(message, Message):
1712
+ pass
1713
+ else:
1714
+ raise TypeError('Cannot convert to specified type: %s' %
1715
+ type(message))
1716
+
1717
+
1718
+ class _mboxMMDFMessage(Message):
1719
+ """Message with mbox- or MMDF-specific properties."""
1720
+
1721
+ _type_specific_attributes = ['_from']
1722
+
1723
+ def __init__(self, message=None):
1724
+ """Initialize an mboxMMDFMessage instance."""
1725
+ self.set_from('MAILER-DAEMON', True)
1726
+ if isinstance(message, email.message.Message):
1727
+ unixfrom = message.get_unixfrom()
1728
+ if unixfrom is not None and unixfrom.startswith('From '):
1729
+ self.set_from(unixfrom[5:])
1730
+ Message.__init__(self, message)
1731
+
1732
+ def get_from(self):
1733
+ """Return contents of "From " line."""
1734
+ return self._from
1735
+
1736
+ def set_from(self, from_, time_=None):
1737
+ """Set "From " line, formatting and appending time_ if specified."""
1738
+ if time_ is not None:
1739
+ if time_ is True:
1740
+ time_ = time.gmtime()
1741
+ from_ += ' ' + time.asctime(time_)
1742
+ self._from = from_
1743
+
1744
+ def get_flags(self):
1745
+ """Return as a string the flags that are set."""
1746
+ return self.get('Status', '') + self.get('X-Status', '')
1747
+
1748
+ def set_flags(self, flags):
1749
+ """Set the given flags and unset all others."""
1750
+ flags = set(flags)
1751
+ status_flags, xstatus_flags = '', ''
1752
+ for flag in ('R', 'O'):
1753
+ if flag in flags:
1754
+ status_flags += flag
1755
+ flags.remove(flag)
1756
+ for flag in ('D', 'F', 'A'):
1757
+ if flag in flags:
1758
+ xstatus_flags += flag
1759
+ flags.remove(flag)
1760
+ xstatus_flags += ''.join(sorted(flags))
1761
+ try:
1762
+ self.replace_header('Status', status_flags)
1763
+ except KeyError:
1764
+ self.add_header('Status', status_flags)
1765
+ try:
1766
+ self.replace_header('X-Status', xstatus_flags)
1767
+ except KeyError:
1768
+ self.add_header('X-Status', xstatus_flags)
1769
+
1770
+ def add_flag(self, flag):
1771
+ """Set the given flag(s) without changing others."""
1772
+ self.set_flags(''.join(set(self.get_flags()) | set(flag)))
1773
+
1774
+ def remove_flag(self, flag):
1775
+ """Unset the given string flag(s) without changing others."""
1776
+ if 'Status' in self or 'X-Status' in self:
1777
+ self.set_flags(''.join(set(self.get_flags()) - set(flag)))
1778
+
1779
+ def _explain_to(self, message):
1780
+ """Copy mbox- or MMDF-specific state to message insofar as possible."""
1781
+ if isinstance(message, MaildirMessage):
1782
+ flags = set(self.get_flags())
1783
+ if 'O' in flags:
1784
+ message.set_subdir('cur')
1785
+ if 'F' in flags:
1786
+ message.add_flag('F')
1787
+ if 'A' in flags:
1788
+ message.add_flag('R')
1789
+ if 'R' in flags:
1790
+ message.add_flag('S')
1791
+ if 'D' in flags:
1792
+ message.add_flag('T')
1793
+ del message['status']
1794
+ del message['x-status']
1795
+ maybe_date = ' '.join(self.get_from().split()[-5:])
1796
+ try:
1797
+ message.set_date(calendar.timegm(time.strptime(maybe_date,
1798
+ '%a %b %d %H:%M:%S %Y')))
1799
+ except (ValueError, OverflowError):
1800
+ pass
1801
+ elif isinstance(message, _mboxMMDFMessage):
1802
+ message.set_flags(self.get_flags())
1803
+ message.set_from(self.get_from())
1804
+ elif isinstance(message, MHMessage):
1805
+ flags = set(self.get_flags())
1806
+ if 'R' not in flags:
1807
+ message.add_sequence('unseen')
1808
+ if 'A' in flags:
1809
+ message.add_sequence('replied')
1810
+ if 'F' in flags:
1811
+ message.add_sequence('flagged')
1812
+ del message['status']
1813
+ del message['x-status']
1814
+ elif isinstance(message, BabylMessage):
1815
+ flags = set(self.get_flags())
1816
+ if 'R' not in flags:
1817
+ message.add_label('unseen')
1818
+ if 'D' in flags:
1819
+ message.add_label('deleted')
1820
+ if 'A' in flags:
1821
+ message.add_label('answered')
1822
+ del message['status']
1823
+ del message['x-status']
1824
+ elif isinstance(message, Message):
1825
+ pass
1826
+ else:
1827
+ raise TypeError('Cannot convert to specified type: %s' %
1828
+ type(message))
1829
+
1830
+
1831
+ class mboxMessage(_mboxMMDFMessage):
1832
+ """Message with mbox-specific properties."""
1833
+
1834
+
1835
+ class MHMessage(Message):
1836
+ """Message with MH-specific properties."""
1837
+
1838
+ _type_specific_attributes = ['_sequences']
1839
+
1840
+ def __init__(self, message=None):
1841
+ """Initialize an MHMessage instance."""
1842
+ self._sequences = []
1843
+ Message.__init__(self, message)
1844
+
1845
+ def get_sequences(self):
1846
+ """Return a list of sequences that include the message."""
1847
+ return self._sequences[:]
1848
+
1849
+ def set_sequences(self, sequences):
1850
+ """Set the list of sequences that include the message."""
1851
+ self._sequences = list(sequences)
1852
+
1853
+ def add_sequence(self, sequence):
1854
+ """Add sequence to list of sequences including the message."""
1855
+ if isinstance(sequence, str):
1856
+ if not sequence in self._sequences:
1857
+ self._sequences.append(sequence)
1858
+ else:
1859
+ raise TypeError('sequence type must be str: %s' % type(sequence))
1860
+
1861
+ def remove_sequence(self, sequence):
1862
+ """Remove sequence from the list of sequences including the message."""
1863
+ try:
1864
+ self._sequences.remove(sequence)
1865
+ except ValueError:
1866
+ pass
1867
+
1868
+ def _explain_to(self, message):
1869
+ """Copy MH-specific state to message insofar as possible."""
1870
+ if isinstance(message, MaildirMessage):
1871
+ sequences = set(self.get_sequences())
1872
+ if 'unseen' in sequences:
1873
+ message.set_subdir('cur')
1874
+ else:
1875
+ message.set_subdir('cur')
1876
+ message.add_flag('S')
1877
+ if 'flagged' in sequences:
1878
+ message.add_flag('F')
1879
+ if 'replied' in sequences:
1880
+ message.add_flag('R')
1881
+ elif isinstance(message, _mboxMMDFMessage):
1882
+ sequences = set(self.get_sequences())
1883
+ if 'unseen' not in sequences:
1884
+ message.add_flag('RO')
1885
+ else:
1886
+ message.add_flag('O')
1887
+ if 'flagged' in sequences:
1888
+ message.add_flag('F')
1889
+ if 'replied' in sequences:
1890
+ message.add_flag('A')
1891
+ elif isinstance(message, MHMessage):
1892
+ for sequence in self.get_sequences():
1893
+ message.add_sequence(sequence)
1894
+ elif isinstance(message, BabylMessage):
1895
+ sequences = set(self.get_sequences())
1896
+ if 'unseen' in sequences:
1897
+ message.add_label('unseen')
1898
+ if 'replied' in sequences:
1899
+ message.add_label('answered')
1900
+ elif isinstance(message, Message):
1901
+ pass
1902
+ else:
1903
+ raise TypeError('Cannot convert to specified type: %s' %
1904
+ type(message))
1905
+
1906
+
1907
+ class BabylMessage(Message):
1908
+ """Message with Babyl-specific properties."""
1909
+
1910
+ _type_specific_attributes = ['_labels', '_visible']
1911
+
1912
+ def __init__(self, message=None):
1913
+ """Initialize a BabylMessage instance."""
1914
+ self._labels = []
1915
+ self._visible = Message()
1916
+ Message.__init__(self, message)
1917
+
1918
+ def get_labels(self):
1919
+ """Return a list of labels on the message."""
1920
+ return self._labels[:]
1921
+
1922
+ def set_labels(self, labels):
1923
+ """Set the list of labels on the message."""
1924
+ self._labels = list(labels)
1925
+
1926
+ def add_label(self, label):
1927
+ """Add label to list of labels on the message."""
1928
+ if isinstance(label, str):
1929
+ if label not in self._labels:
1930
+ self._labels.append(label)
1931
+ else:
1932
+ raise TypeError('label must be a string: %s' % type(label))
1933
+
1934
+ def remove_label(self, label):
1935
+ """Remove label from the list of labels on the message."""
1936
+ try:
1937
+ self._labels.remove(label)
1938
+ except ValueError:
1939
+ pass
1940
+
1941
+ def get_visible(self):
1942
+ """Return a Message representation of visible headers."""
1943
+ return Message(self._visible)
1944
+
1945
+ def set_visible(self, visible):
1946
+ """Set the Message representation of visible headers."""
1947
+ self._visible = Message(visible)
1948
+
1949
+ def update_visible(self):
1950
+ """Update and/or sensibly generate a set of visible headers."""
1951
+ for header in self._visible.keys():
1952
+ if header in self:
1953
+ self._visible.replace_header(header, self[header])
1954
+ else:
1955
+ del self._visible[header]
1956
+ for header in ('Date', 'From', 'Reply-To', 'To', 'CC', 'Subject'):
1957
+ if header in self and header not in self._visible:
1958
+ self._visible[header] = self[header]
1959
+
1960
+ def _explain_to(self, message):
1961
+ """Copy Babyl-specific state to message insofar as possible."""
1962
+ if isinstance(message, MaildirMessage):
1963
+ labels = set(self.get_labels())
1964
+ if 'unseen' in labels:
1965
+ message.set_subdir('cur')
1966
+ else:
1967
+ message.set_subdir('cur')
1968
+ message.add_flag('S')
1969
+ if 'forwarded' in labels or 'resent' in labels:
1970
+ message.add_flag('P')
1971
+ if 'answered' in labels:
1972
+ message.add_flag('R')
1973
+ if 'deleted' in labels:
1974
+ message.add_flag('T')
1975
+ elif isinstance(message, _mboxMMDFMessage):
1976
+ labels = set(self.get_labels())
1977
+ if 'unseen' not in labels:
1978
+ message.add_flag('RO')
1979
+ else:
1980
+ message.add_flag('O')
1981
+ if 'deleted' in labels:
1982
+ message.add_flag('D')
1983
+ if 'answered' in labels:
1984
+ message.add_flag('A')
1985
+ elif isinstance(message, MHMessage):
1986
+ labels = set(self.get_labels())
1987
+ if 'unseen' in labels:
1988
+ message.add_sequence('unseen')
1989
+ if 'answered' in labels:
1990
+ message.add_sequence('replied')
1991
+ elif isinstance(message, BabylMessage):
1992
+ message.set_visible(self.get_visible())
1993
+ for label in self.get_labels():
1994
+ message.add_label(label)
1995
+ elif isinstance(message, Message):
1996
+ pass
1997
+ else:
1998
+ raise TypeError('Cannot convert to specified type: %s' %
1999
+ type(message))
2000
+
2001
+
2002
+ class MMDFMessage(_mboxMMDFMessage):
2003
+ """Message with MMDF-specific properties."""
2004
+
2005
+
2006
+ class _ProxyFile:
2007
+ """A read-only wrapper of a file."""
2008
+
2009
+ def __init__(self, f, pos=None):
2010
+ """Initialize a _ProxyFile."""
2011
+ self._file = f
2012
+ if pos is None:
2013
+ self._pos = f.tell()
2014
+ else:
2015
+ self._pos = pos
2016
+
2017
+ def read(self, size=None):
2018
+ """Read bytes."""
2019
+ return self._read(size, self._file.read)
2020
+
2021
+ def read1(self, size=None):
2022
+ """Read bytes."""
2023
+ return self._read(size, self._file.read1)
2024
+
2025
+ def readline(self, size=None):
2026
+ """Read a line."""
2027
+ return self._read(size, self._file.readline)
2028
+
2029
+ def readlines(self, sizehint=None):
2030
+ """Read multiple lines."""
2031
+ result = []
2032
+ for line in self:
2033
+ result.append(line)
2034
+ if sizehint is not None:
2035
+ sizehint -= len(line)
2036
+ if sizehint <= 0:
2037
+ break
2038
+ return result
2039
+
2040
+ def __iter__(self):
2041
+ """Iterate over lines."""
2042
+ while line := self.readline():
2043
+ yield line
2044
+
2045
+ def tell(self):
2046
+ """Return the position."""
2047
+ return self._pos
2048
+
2049
+ def seek(self, offset, whence=0):
2050
+ """Change position."""
2051
+ if whence == 1:
2052
+ self._file.seek(self._pos)
2053
+ self._file.seek(offset, whence)
2054
+ self._pos = self._file.tell()
2055
+
2056
+ def close(self):
2057
+ """Close the file."""
2058
+ if hasattr(self, '_file'):
2059
+ try:
2060
+ if hasattr(self._file, 'close'):
2061
+ self._file.close()
2062
+ finally:
2063
+ del self._file
2064
+
2065
+ def _read(self, size, read_method):
2066
+ """Read size bytes using read_method."""
2067
+ if size is None:
2068
+ size = -1
2069
+ self._file.seek(self._pos)
2070
+ result = read_method(size)
2071
+ self._pos = self._file.tell()
2072
+ return result
2073
+
2074
+ def __enter__(self):
2075
+ """Context management protocol support."""
2076
+ return self
2077
+
2078
+ def __exit__(self, *exc):
2079
+ self.close()
2080
+
2081
+ def readable(self):
2082
+ return self._file.readable()
2083
+
2084
+ def writable(self):
2085
+ return self._file.writable()
2086
+
2087
+ def seekable(self):
2088
+ return self._file.seekable()
2089
+
2090
+ def flush(self):
2091
+ return self._file.flush()
2092
+
2093
+ @property
2094
+ def closed(self):
2095
+ if not hasattr(self, '_file'):
2096
+ return True
2097
+ if not hasattr(self._file, 'closed'):
2098
+ return False
2099
+ return self._file.closed
2100
+
2101
+
2102
+ class _PartialFile(_ProxyFile):
2103
+ """A read-only wrapper of part of a file."""
2104
+
2105
+ def __init__(self, f, start=None, stop=None):
2106
+ """Initialize a _PartialFile."""
2107
+ _ProxyFile.__init__(self, f, start)
2108
+ self._start = start
2109
+ self._stop = stop
2110
+
2111
+ def tell(self):
2112
+ """Return the position with respect to start."""
2113
+ return _ProxyFile.tell(self) - self._start
2114
+
2115
+ def seek(self, offset, whence=0):
2116
+ """Change position, possibly with respect to start or stop."""
2117
+ if whence == 0:
2118
+ self._pos = self._start
2119
+ whence = 1
2120
+ elif whence == 2:
2121
+ self._pos = self._stop
2122
+ whence = 1
2123
+ _ProxyFile.seek(self, offset, whence)
2124
+
2125
+ def _read(self, size, read_method):
2126
+ """Read size bytes using read_method, honoring start and stop."""
2127
+ remaining = self._stop - self._pos
2128
+ if remaining <= 0:
2129
+ return b''
2130
+ if size is None or size < 0 or size > remaining:
2131
+ size = remaining
2132
+ return _ProxyFile._read(self, size, read_method)
2133
+
2134
+ def close(self):
2135
+ # do *not* close the underlying file object for partial files,
2136
+ # since it's global to the mailbox object
2137
+ if hasattr(self, '_file'):
2138
+ del self._file
2139
+
2140
+
2141
+ def _lock_file(f, dotlock=True):
2142
+ """Lock file f using lockf and dot locking."""
2143
+ dotlock_done = False
2144
+ try:
2145
+ if fcntl:
2146
+ try:
2147
+ fcntl.lockf(f, fcntl.LOCK_EX | fcntl.LOCK_NB)
2148
+ except OSError as e:
2149
+ if e.errno in (errno.EAGAIN, errno.EACCES, errno.EROFS):
2150
+ raise ExternalClashError('lockf: lock unavailable: %s' %
2151
+ f.name)
2152
+ else:
2153
+ raise
2154
+ if dotlock:
2155
+ try:
2156
+ pre_lock = _create_temporary(f.name + '.lock')
2157
+ pre_lock.close()
2158
+ except OSError as e:
2159
+ if e.errno in (errno.EACCES, errno.EROFS):
2160
+ return # Without write access, just skip dotlocking.
2161
+ else:
2162
+ raise
2163
+ try:
2164
+ try:
2165
+ os.link(pre_lock.name, f.name + '.lock')
2166
+ dotlock_done = True
2167
+ except (AttributeError, PermissionError):
2168
+ os.rename(pre_lock.name, f.name + '.lock')
2169
+ dotlock_done = True
2170
+ else:
2171
+ os.unlink(pre_lock.name)
2172
+ except FileExistsError:
2173
+ os.remove(pre_lock.name)
2174
+ raise ExternalClashError('dot lock unavailable: %s' %
2175
+ f.name)
2176
+ except:
2177
+ if fcntl:
2178
+ fcntl.lockf(f, fcntl.LOCK_UN)
2179
+ if dotlock_done:
2180
+ os.remove(f.name + '.lock')
2181
+ raise
2182
+
2183
+ def _unlock_file(f):
2184
+ """Unlock file f using lockf and dot locking."""
2185
+ if fcntl:
2186
+ fcntl.lockf(f, fcntl.LOCK_UN)
2187
+ if os.path.exists(f.name + '.lock'):
2188
+ os.remove(f.name + '.lock')
2189
+
2190
+ def _create_carefully(path):
2191
+ """Create a file if it doesn't exist and open for reading and writing."""
2192
+ return open(path, 'xb+')
2193
+
2194
+ def _create_temporary(path):
2195
+ """Create a temp file based on path and open for reading and writing."""
2196
+ return _create_carefully('%s.%s.%s.%s' % (path, int(time.time()),
2197
+ socket.gethostname(),
2198
+ os.getpid()))
2199
+
2200
+ def _sync_flush(f):
2201
+ """Ensure changes to file f are physically on disk."""
2202
+ f.flush()
2203
+ if hasattr(os, 'fsync'):
2204
+ os.fsync(f.fileno())
2205
+
2206
+ def _sync_close(f):
2207
+ """Close file f, ensuring all changes are physically on disk."""
2208
+ _sync_flush(f)
2209
+ f.close()
2210
+
2211
+
2212
+ class Error(Exception):
2213
+ """Raised for module-specific errors."""
2214
+
2215
+ class NoSuchMailboxError(Error):
2216
+ """The specified mailbox does not exist and won't be created."""
2217
+
2218
+ class NotEmptyError(Error):
2219
+ """The specified mailbox is not empty and deletion was requested."""
2220
+
2221
+ class ExternalClashError(Error):
2222
+ """Another process caused an action to fail."""
2223
+
2224
+ class FormatError(Error):
2225
+ """A file appears to have an invalid format."""