@djlint/linux-s390x-gnu 0.0.0-stage → 1.54.0

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 (1598) hide show
  1. package/LICENSE +675 -0
  2. package/README.md +4 -2
  3. package/package.json +23 -4
  4. package/python/bin/python3 +0 -0
  5. package/python/lib/python3.14/LICENSE.txt +277 -0
  6. package/python/lib/python3.14/__future__.py +147 -0
  7. package/python/lib/python3.14/__hello__.py +16 -0
  8. package/python/lib/python3.14/__phello__/__init__.py +7 -0
  9. package/python/lib/python3.14/__phello__/__pycache__/__init__.cpython-314.pyc +0 -0
  10. package/python/lib/python3.14/__phello__/__pycache__/spam.cpython-314.pyc +0 -0
  11. package/python/lib/python3.14/__phello__/spam.py +7 -0
  12. package/python/lib/python3.14/__pycache__/__future__.cpython-314.pyc +0 -0
  13. package/python/lib/python3.14/__pycache__/__hello__.cpython-314.pyc +0 -0
  14. package/python/lib/python3.14/__pycache__/_aix_support.cpython-314.pyc +0 -0
  15. package/python/lib/python3.14/__pycache__/_android_support.cpython-314.pyc +0 -0
  16. package/python/lib/python3.14/__pycache__/_apple_support.cpython-314.pyc +0 -0
  17. package/python/lib/python3.14/__pycache__/_ast_unparse.cpython-314.pyc +0 -0
  18. package/python/lib/python3.14/__pycache__/_collections_abc.cpython-314.pyc +0 -0
  19. package/python/lib/python3.14/__pycache__/_colorize.cpython-314.pyc +0 -0
  20. package/python/lib/python3.14/__pycache__/_compat_pickle.cpython-314.pyc +0 -0
  21. package/python/lib/python3.14/__pycache__/_ios_support.cpython-314.pyc +0 -0
  22. package/python/lib/python3.14/__pycache__/_markupbase.cpython-314.pyc +0 -0
  23. package/python/lib/python3.14/__pycache__/_opcode_metadata.cpython-314.pyc +0 -0
  24. package/python/lib/python3.14/__pycache__/_osx_support.cpython-314.pyc +0 -0
  25. package/python/lib/python3.14/__pycache__/_py_abc.cpython-314.pyc +0 -0
  26. package/python/lib/python3.14/__pycache__/_py_warnings.cpython-314.pyc +0 -0
  27. package/python/lib/python3.14/__pycache__/_pydatetime.cpython-314.pyc +0 -0
  28. package/python/lib/python3.14/__pycache__/_pydecimal.cpython-314.pyc +0 -0
  29. package/python/lib/python3.14/__pycache__/_pyio.cpython-314.pyc +0 -0
  30. package/python/lib/python3.14/__pycache__/_pylong.cpython-314.pyc +0 -0
  31. package/python/lib/python3.14/__pycache__/_sitebuiltins.cpython-314.pyc +0 -0
  32. package/python/lib/python3.14/__pycache__/_strptime.cpython-314.pyc +0 -0
  33. package/python/lib/python3.14/__pycache__/_sysconfigdata__linux_s390x-linux-gnu.cpython-314.pyc +0 -0
  34. package/python/lib/python3.14/__pycache__/_threading_local.cpython-314.pyc +0 -0
  35. package/python/lib/python3.14/__pycache__/_weakrefset.cpython-314.pyc +0 -0
  36. package/python/lib/python3.14/__pycache__/abc.cpython-314.pyc +0 -0
  37. package/python/lib/python3.14/__pycache__/annotationlib.cpython-314.pyc +0 -0
  38. package/python/lib/python3.14/__pycache__/antigravity.cpython-314.pyc +0 -0
  39. package/python/lib/python3.14/__pycache__/argparse.cpython-314.pyc +0 -0
  40. package/python/lib/python3.14/__pycache__/ast.cpython-314.pyc +0 -0
  41. package/python/lib/python3.14/__pycache__/base64.cpython-314.pyc +0 -0
  42. package/python/lib/python3.14/__pycache__/bdb.cpython-314.pyc +0 -0
  43. package/python/lib/python3.14/__pycache__/bisect.cpython-314.pyc +0 -0
  44. package/python/lib/python3.14/__pycache__/bz2.cpython-314.pyc +0 -0
  45. package/python/lib/python3.14/__pycache__/cProfile.cpython-314.pyc +0 -0
  46. package/python/lib/python3.14/__pycache__/calendar.cpython-314.pyc +0 -0
  47. package/python/lib/python3.14/__pycache__/cmd.cpython-314.pyc +0 -0
  48. package/python/lib/python3.14/__pycache__/code.cpython-314.pyc +0 -0
  49. package/python/lib/python3.14/__pycache__/codecs.cpython-314.pyc +0 -0
  50. package/python/lib/python3.14/__pycache__/codeop.cpython-314.pyc +0 -0
  51. package/python/lib/python3.14/__pycache__/colorsys.cpython-314.pyc +0 -0
  52. package/python/lib/python3.14/__pycache__/compileall.cpython-314.pyc +0 -0
  53. package/python/lib/python3.14/__pycache__/configparser.cpython-314.pyc +0 -0
  54. package/python/lib/python3.14/__pycache__/contextlib.cpython-314.pyc +0 -0
  55. package/python/lib/python3.14/__pycache__/contextvars.cpython-314.pyc +0 -0
  56. package/python/lib/python3.14/__pycache__/copy.cpython-314.pyc +0 -0
  57. package/python/lib/python3.14/__pycache__/copyreg.cpython-314.pyc +0 -0
  58. package/python/lib/python3.14/__pycache__/csv.cpython-314.pyc +0 -0
  59. package/python/lib/python3.14/__pycache__/dataclasses.cpython-314.pyc +0 -0
  60. package/python/lib/python3.14/__pycache__/datetime.cpython-314.pyc +0 -0
  61. package/python/lib/python3.14/__pycache__/decimal.cpython-314.pyc +0 -0
  62. package/python/lib/python3.14/__pycache__/difflib.cpython-314.pyc +0 -0
  63. package/python/lib/python3.14/__pycache__/dis.cpython-314.pyc +0 -0
  64. package/python/lib/python3.14/__pycache__/doctest.cpython-314.pyc +0 -0
  65. package/python/lib/python3.14/__pycache__/enum.cpython-314.pyc +0 -0
  66. package/python/lib/python3.14/__pycache__/filecmp.cpython-314.pyc +0 -0
  67. package/python/lib/python3.14/__pycache__/fileinput.cpython-314.pyc +0 -0
  68. package/python/lib/python3.14/__pycache__/fnmatch.cpython-314.pyc +0 -0
  69. package/python/lib/python3.14/__pycache__/fractions.cpython-314.pyc +0 -0
  70. package/python/lib/python3.14/__pycache__/ftplib.cpython-314.pyc +0 -0
  71. package/python/lib/python3.14/__pycache__/functools.cpython-314.pyc +0 -0
  72. package/python/lib/python3.14/__pycache__/genericpath.cpython-314.pyc +0 -0
  73. package/python/lib/python3.14/__pycache__/getopt.cpython-314.pyc +0 -0
  74. package/python/lib/python3.14/__pycache__/getpass.cpython-314.pyc +0 -0
  75. package/python/lib/python3.14/__pycache__/gettext.cpython-314.pyc +0 -0
  76. package/python/lib/python3.14/__pycache__/glob.cpython-314.pyc +0 -0
  77. package/python/lib/python3.14/__pycache__/graphlib.cpython-314.pyc +0 -0
  78. package/python/lib/python3.14/__pycache__/gzip.cpython-314.pyc +0 -0
  79. package/python/lib/python3.14/__pycache__/hashlib.cpython-314.pyc +0 -0
  80. package/python/lib/python3.14/__pycache__/heapq.cpython-314.pyc +0 -0
  81. package/python/lib/python3.14/__pycache__/hmac.cpython-314.pyc +0 -0
  82. package/python/lib/python3.14/__pycache__/imaplib.cpython-314.pyc +0 -0
  83. package/python/lib/python3.14/__pycache__/inspect.cpython-314.pyc +0 -0
  84. package/python/lib/python3.14/__pycache__/io.cpython-314.pyc +0 -0
  85. package/python/lib/python3.14/__pycache__/ipaddress.cpython-314.pyc +0 -0
  86. package/python/lib/python3.14/__pycache__/keyword.cpython-314.pyc +0 -0
  87. package/python/lib/python3.14/__pycache__/linecache.cpython-314.pyc +0 -0
  88. package/python/lib/python3.14/__pycache__/locale.cpython-314.pyc +0 -0
  89. package/python/lib/python3.14/__pycache__/lzma.cpython-314.pyc +0 -0
  90. package/python/lib/python3.14/__pycache__/mailbox.cpython-314.pyc +0 -0
  91. package/python/lib/python3.14/__pycache__/mimetypes.cpython-314.pyc +0 -0
  92. package/python/lib/python3.14/__pycache__/modulefinder.cpython-314.pyc +0 -0
  93. package/python/lib/python3.14/__pycache__/netrc.cpython-314.pyc +0 -0
  94. package/python/lib/python3.14/__pycache__/ntpath.cpython-314.pyc +0 -0
  95. package/python/lib/python3.14/__pycache__/nturl2path.cpython-314.pyc +0 -0
  96. package/python/lib/python3.14/__pycache__/numbers.cpython-314.pyc +0 -0
  97. package/python/lib/python3.14/__pycache__/opcode.cpython-314.pyc +0 -0
  98. package/python/lib/python3.14/__pycache__/operator.cpython-314.pyc +0 -0
  99. package/python/lib/python3.14/__pycache__/optparse.cpython-314.pyc +0 -0
  100. package/python/lib/python3.14/__pycache__/os.cpython-314.pyc +0 -0
  101. package/python/lib/python3.14/__pycache__/pdb.cpython-314.pyc +0 -0
  102. package/python/lib/python3.14/__pycache__/pickle.cpython-314.pyc +0 -0
  103. package/python/lib/python3.14/__pycache__/pickletools.cpython-314.pyc +0 -0
  104. package/python/lib/python3.14/__pycache__/pkgutil.cpython-314.pyc +0 -0
  105. package/python/lib/python3.14/__pycache__/platform.cpython-314.pyc +0 -0
  106. package/python/lib/python3.14/__pycache__/plistlib.cpython-314.pyc +0 -0
  107. package/python/lib/python3.14/__pycache__/poplib.cpython-314.pyc +0 -0
  108. package/python/lib/python3.14/__pycache__/posixpath.cpython-314.pyc +0 -0
  109. package/python/lib/python3.14/__pycache__/pprint.cpython-314.pyc +0 -0
  110. package/python/lib/python3.14/__pycache__/profile.cpython-314.pyc +0 -0
  111. package/python/lib/python3.14/__pycache__/pstats.cpython-314.pyc +0 -0
  112. package/python/lib/python3.14/__pycache__/pty.cpython-314.pyc +0 -0
  113. package/python/lib/python3.14/__pycache__/py_compile.cpython-314.pyc +0 -0
  114. package/python/lib/python3.14/__pycache__/pyclbr.cpython-314.pyc +0 -0
  115. package/python/lib/python3.14/__pycache__/pydoc.cpython-314.pyc +0 -0
  116. package/python/lib/python3.14/__pycache__/queue.cpython-314.pyc +0 -0
  117. package/python/lib/python3.14/__pycache__/quopri.cpython-314.pyc +0 -0
  118. package/python/lib/python3.14/__pycache__/random.cpython-314.pyc +0 -0
  119. package/python/lib/python3.14/__pycache__/reprlib.cpython-314.pyc +0 -0
  120. package/python/lib/python3.14/__pycache__/rlcompleter.cpython-314.pyc +0 -0
  121. package/python/lib/python3.14/__pycache__/runpy.cpython-314.pyc +0 -0
  122. package/python/lib/python3.14/__pycache__/sched.cpython-314.pyc +0 -0
  123. package/python/lib/python3.14/__pycache__/secrets.cpython-314.pyc +0 -0
  124. package/python/lib/python3.14/__pycache__/selectors.cpython-314.pyc +0 -0
  125. package/python/lib/python3.14/__pycache__/shelve.cpython-314.pyc +0 -0
  126. package/python/lib/python3.14/__pycache__/shlex.cpython-314.pyc +0 -0
  127. package/python/lib/python3.14/__pycache__/shutil.cpython-314.pyc +0 -0
  128. package/python/lib/python3.14/__pycache__/signal.cpython-314.pyc +0 -0
  129. package/python/lib/python3.14/__pycache__/site.cpython-314.pyc +0 -0
  130. package/python/lib/python3.14/__pycache__/smtplib.cpython-314.pyc +0 -0
  131. package/python/lib/python3.14/__pycache__/socket.cpython-314.pyc +0 -0
  132. package/python/lib/python3.14/__pycache__/socketserver.cpython-314.pyc +0 -0
  133. package/python/lib/python3.14/__pycache__/sre_compile.cpython-314.pyc +0 -0
  134. package/python/lib/python3.14/__pycache__/sre_constants.cpython-314.pyc +0 -0
  135. package/python/lib/python3.14/__pycache__/sre_parse.cpython-314.pyc +0 -0
  136. package/python/lib/python3.14/__pycache__/ssl.cpython-314.pyc +0 -0
  137. package/python/lib/python3.14/__pycache__/stat.cpython-314.pyc +0 -0
  138. package/python/lib/python3.14/__pycache__/statistics.cpython-314.pyc +0 -0
  139. package/python/lib/python3.14/__pycache__/stringprep.cpython-314.pyc +0 -0
  140. package/python/lib/python3.14/__pycache__/struct.cpython-314.pyc +0 -0
  141. package/python/lib/python3.14/__pycache__/subprocess.cpython-314.pyc +0 -0
  142. package/python/lib/python3.14/__pycache__/symtable.cpython-314.pyc +0 -0
  143. package/python/lib/python3.14/__pycache__/tabnanny.cpython-314.pyc +0 -0
  144. package/python/lib/python3.14/__pycache__/tarfile.cpython-314.pyc +0 -0
  145. package/python/lib/python3.14/__pycache__/tempfile.cpython-314.pyc +0 -0
  146. package/python/lib/python3.14/__pycache__/textwrap.cpython-314.pyc +0 -0
  147. package/python/lib/python3.14/__pycache__/this.cpython-314.pyc +0 -0
  148. package/python/lib/python3.14/__pycache__/threading.cpython-314.pyc +0 -0
  149. package/python/lib/python3.14/__pycache__/timeit.cpython-314.pyc +0 -0
  150. package/python/lib/python3.14/__pycache__/token.cpython-314.pyc +0 -0
  151. package/python/lib/python3.14/__pycache__/tokenize.cpython-314.pyc +0 -0
  152. package/python/lib/python3.14/__pycache__/trace.cpython-314.pyc +0 -0
  153. package/python/lib/python3.14/__pycache__/traceback.cpython-314.pyc +0 -0
  154. package/python/lib/python3.14/__pycache__/tracemalloc.cpython-314.pyc +0 -0
  155. package/python/lib/python3.14/__pycache__/tty.cpython-314.pyc +0 -0
  156. package/python/lib/python3.14/__pycache__/types.cpython-314.pyc +0 -0
  157. package/python/lib/python3.14/__pycache__/typing.cpython-314.pyc +0 -0
  158. package/python/lib/python3.14/__pycache__/uuid.cpython-314.pyc +0 -0
  159. package/python/lib/python3.14/__pycache__/warnings.cpython-314.pyc +0 -0
  160. package/python/lib/python3.14/__pycache__/wave.cpython-314.pyc +0 -0
  161. package/python/lib/python3.14/__pycache__/weakref.cpython-314.pyc +0 -0
  162. package/python/lib/python3.14/__pycache__/webbrowser.cpython-314.pyc +0 -0
  163. package/python/lib/python3.14/__pycache__/zipapp.cpython-314.pyc +0 -0
  164. package/python/lib/python3.14/__pycache__/zipimport.cpython-314.pyc +0 -0
  165. package/python/lib/python3.14/_aix_support.py +108 -0
  166. package/python/lib/python3.14/_android_support.py +192 -0
  167. package/python/lib/python3.14/_apple_support.py +66 -0
  168. package/python/lib/python3.14/_ast_unparse.py +1161 -0
  169. package/python/lib/python3.14/_collections_abc.py +1172 -0
  170. package/python/lib/python3.14/_colorize.py +355 -0
  171. package/python/lib/python3.14/_compat_pickle.py +251 -0
  172. package/python/lib/python3.14/_ios_support.py +74 -0
  173. package/python/lib/python3.14/_markupbase.py +396 -0
  174. package/python/lib/python3.14/_opcode_metadata.py +371 -0
  175. package/python/lib/python3.14/_osx_support.py +579 -0
  176. package/python/lib/python3.14/_py_abc.py +152 -0
  177. package/python/lib/python3.14/_py_warnings.py +869 -0
  178. package/python/lib/python3.14/_pydatetime.py +2734 -0
  179. package/python/lib/python3.14/_pydecimal.py +6503 -0
  180. package/python/lib/python3.14/_pyio.py +2764 -0
  181. package/python/lib/python3.14/_pylong.py +729 -0
  182. package/python/lib/python3.14/_pyrepl/__init__.py +19 -0
  183. package/python/lib/python3.14/_pyrepl/__main__.py +10 -0
  184. package/python/lib/python3.14/_pyrepl/__pycache__/__init__.cpython-314.pyc +0 -0
  185. package/python/lib/python3.14/_pyrepl/__pycache__/__main__.cpython-314.pyc +0 -0
  186. package/python/lib/python3.14/_pyrepl/__pycache__/_module_completer.cpython-314.pyc +0 -0
  187. package/python/lib/python3.14/_pyrepl/__pycache__/_threading_handler.cpython-314.pyc +0 -0
  188. package/python/lib/python3.14/_pyrepl/__pycache__/base_eventqueue.cpython-314.pyc +0 -0
  189. package/python/lib/python3.14/_pyrepl/__pycache__/commands.cpython-314.pyc +0 -0
  190. package/python/lib/python3.14/_pyrepl/__pycache__/completing_reader.cpython-314.pyc +0 -0
  191. package/python/lib/python3.14/_pyrepl/__pycache__/console.cpython-314.pyc +0 -0
  192. package/python/lib/python3.14/_pyrepl/__pycache__/fancy_termios.cpython-314.pyc +0 -0
  193. package/python/lib/python3.14/_pyrepl/__pycache__/historical_reader.cpython-314.pyc +0 -0
  194. package/python/lib/python3.14/_pyrepl/__pycache__/input.cpython-314.pyc +0 -0
  195. package/python/lib/python3.14/_pyrepl/__pycache__/keymap.cpython-314.pyc +0 -0
  196. package/python/lib/python3.14/_pyrepl/__pycache__/main.cpython-314.pyc +0 -0
  197. package/python/lib/python3.14/_pyrepl/__pycache__/pager.cpython-314.pyc +0 -0
  198. package/python/lib/python3.14/_pyrepl/__pycache__/reader.cpython-314.pyc +0 -0
  199. package/python/lib/python3.14/_pyrepl/__pycache__/readline.cpython-314.pyc +0 -0
  200. package/python/lib/python3.14/_pyrepl/__pycache__/simple_interact.cpython-314.pyc +0 -0
  201. package/python/lib/python3.14/_pyrepl/__pycache__/terminfo.cpython-314.pyc +0 -0
  202. package/python/lib/python3.14/_pyrepl/__pycache__/trace.cpython-314.pyc +0 -0
  203. package/python/lib/python3.14/_pyrepl/__pycache__/types.cpython-314.pyc +0 -0
  204. package/python/lib/python3.14/_pyrepl/__pycache__/unix_console.cpython-314.pyc +0 -0
  205. package/python/lib/python3.14/_pyrepl/__pycache__/unix_eventqueue.cpython-314.pyc +0 -0
  206. package/python/lib/python3.14/_pyrepl/__pycache__/utils.cpython-314.pyc +0 -0
  207. package/python/lib/python3.14/_pyrepl/__pycache__/windows_console.cpython-314.pyc +0 -0
  208. package/python/lib/python3.14/_pyrepl/__pycache__/windows_eventqueue.cpython-314.pyc +0 -0
  209. package/python/lib/python3.14/_pyrepl/_module_completer.py +426 -0
  210. package/python/lib/python3.14/_pyrepl/_threading_handler.py +74 -0
  211. package/python/lib/python3.14/_pyrepl/base_eventqueue.py +110 -0
  212. package/python/lib/python3.14/_pyrepl/commands.py +505 -0
  213. package/python/lib/python3.14/_pyrepl/completing_reader.py +299 -0
  214. package/python/lib/python3.14/_pyrepl/console.py +229 -0
  215. package/python/lib/python3.14/_pyrepl/fancy_termios.py +82 -0
  216. package/python/lib/python3.14/_pyrepl/historical_reader.py +424 -0
  217. package/python/lib/python3.14/_pyrepl/input.py +114 -0
  218. package/python/lib/python3.14/_pyrepl/keymap.py +213 -0
  219. package/python/lib/python3.14/_pyrepl/main.py +58 -0
  220. package/python/lib/python3.14/_pyrepl/mypy.ini +25 -0
  221. package/python/lib/python3.14/_pyrepl/pager.py +175 -0
  222. package/python/lib/python3.14/_pyrepl/reader.py +773 -0
  223. package/python/lib/python3.14/_pyrepl/readline.py +621 -0
  224. package/python/lib/python3.14/_pyrepl/simple_interact.py +186 -0
  225. package/python/lib/python3.14/_pyrepl/terminfo.py +488 -0
  226. package/python/lib/python3.14/_pyrepl/trace.py +34 -0
  227. package/python/lib/python3.14/_pyrepl/types.py +10 -0
  228. package/python/lib/python3.14/_pyrepl/unix_console.py +860 -0
  229. package/python/lib/python3.14/_pyrepl/unix_eventqueue.py +77 -0
  230. package/python/lib/python3.14/_pyrepl/utils.py +391 -0
  231. package/python/lib/python3.14/_pyrepl/windows_console.py +735 -0
  232. package/python/lib/python3.14/_pyrepl/windows_eventqueue.py +42 -0
  233. package/python/lib/python3.14/_sitebuiltins.py +91 -0
  234. package/python/lib/python3.14/_strptime.py +822 -0
  235. package/python/lib/python3.14/_sysconfig_vars__linux_s390x-linux-gnu.json +1166 -0
  236. package/python/lib/python3.14/_sysconfigdata__linux_s390x-linux-gnu.py +1152 -0
  237. package/python/lib/python3.14/_threading_local.py +120 -0
  238. package/python/lib/python3.14/_weakrefset.py +147 -0
  239. package/python/lib/python3.14/abc.py +188 -0
  240. package/python/lib/python3.14/annotationlib.py +1205 -0
  241. package/python/lib/python3.14/antigravity.py +17 -0
  242. package/python/lib/python3.14/argparse.py +2789 -0
  243. package/python/lib/python3.14/ast.py +680 -0
  244. package/python/lib/python3.14/asyncio/__init__.py +74 -0
  245. package/python/lib/python3.14/asyncio/__main__.py +248 -0
  246. package/python/lib/python3.14/asyncio/__pycache__/__init__.cpython-314.pyc +0 -0
  247. package/python/lib/python3.14/asyncio/__pycache__/__main__.cpython-314.pyc +0 -0
  248. package/python/lib/python3.14/asyncio/__pycache__/base_events.cpython-314.pyc +0 -0
  249. package/python/lib/python3.14/asyncio/__pycache__/base_futures.cpython-314.pyc +0 -0
  250. package/python/lib/python3.14/asyncio/__pycache__/base_subprocess.cpython-314.pyc +0 -0
  251. package/python/lib/python3.14/asyncio/__pycache__/base_tasks.cpython-314.pyc +0 -0
  252. package/python/lib/python3.14/asyncio/__pycache__/constants.cpython-314.pyc +0 -0
  253. package/python/lib/python3.14/asyncio/__pycache__/coroutines.cpython-314.pyc +0 -0
  254. package/python/lib/python3.14/asyncio/__pycache__/events.cpython-314.pyc +0 -0
  255. package/python/lib/python3.14/asyncio/__pycache__/exceptions.cpython-314.pyc +0 -0
  256. package/python/lib/python3.14/asyncio/__pycache__/format_helpers.cpython-314.pyc +0 -0
  257. package/python/lib/python3.14/asyncio/__pycache__/futures.cpython-314.pyc +0 -0
  258. package/python/lib/python3.14/asyncio/__pycache__/graph.cpython-314.pyc +0 -0
  259. package/python/lib/python3.14/asyncio/__pycache__/locks.cpython-314.pyc +0 -0
  260. package/python/lib/python3.14/asyncio/__pycache__/log.cpython-314.pyc +0 -0
  261. package/python/lib/python3.14/asyncio/__pycache__/mixins.cpython-314.pyc +0 -0
  262. package/python/lib/python3.14/asyncio/__pycache__/proactor_events.cpython-314.pyc +0 -0
  263. package/python/lib/python3.14/asyncio/__pycache__/protocols.cpython-314.pyc +0 -0
  264. package/python/lib/python3.14/asyncio/__pycache__/queues.cpython-314.pyc +0 -0
  265. package/python/lib/python3.14/asyncio/__pycache__/runners.cpython-314.pyc +0 -0
  266. package/python/lib/python3.14/asyncio/__pycache__/selector_events.cpython-314.pyc +0 -0
  267. package/python/lib/python3.14/asyncio/__pycache__/sslproto.cpython-314.pyc +0 -0
  268. package/python/lib/python3.14/asyncio/__pycache__/staggered.cpython-314.pyc +0 -0
  269. package/python/lib/python3.14/asyncio/__pycache__/streams.cpython-314.pyc +0 -0
  270. package/python/lib/python3.14/asyncio/__pycache__/subprocess.cpython-314.pyc +0 -0
  271. package/python/lib/python3.14/asyncio/__pycache__/taskgroups.cpython-314.pyc +0 -0
  272. package/python/lib/python3.14/asyncio/__pycache__/tasks.cpython-314.pyc +0 -0
  273. package/python/lib/python3.14/asyncio/__pycache__/threads.cpython-314.pyc +0 -0
  274. package/python/lib/python3.14/asyncio/__pycache__/timeouts.cpython-314.pyc +0 -0
  275. package/python/lib/python3.14/asyncio/__pycache__/tools.cpython-314.pyc +0 -0
  276. package/python/lib/python3.14/asyncio/__pycache__/transports.cpython-314.pyc +0 -0
  277. package/python/lib/python3.14/asyncio/__pycache__/trsock.cpython-314.pyc +0 -0
  278. package/python/lib/python3.14/asyncio/__pycache__/unix_events.cpython-314.pyc +0 -0
  279. package/python/lib/python3.14/asyncio/__pycache__/windows_events.cpython-314.pyc +0 -0
  280. package/python/lib/python3.14/asyncio/__pycache__/windows_utils.cpython-314.pyc +0 -0
  281. package/python/lib/python3.14/asyncio/base_events.py +2089 -0
  282. package/python/lib/python3.14/asyncio/base_futures.py +67 -0
  283. package/python/lib/python3.14/asyncio/base_subprocess.py +327 -0
  284. package/python/lib/python3.14/asyncio/base_tasks.py +94 -0
  285. package/python/lib/python3.14/asyncio/constants.py +41 -0
  286. package/python/lib/python3.14/asyncio/coroutines.py +118 -0
  287. package/python/lib/python3.14/asyncio/events.py +881 -0
  288. package/python/lib/python3.14/asyncio/exceptions.py +62 -0
  289. package/python/lib/python3.14/asyncio/format_helpers.py +84 -0
  290. package/python/lib/python3.14/asyncio/futures.py +481 -0
  291. package/python/lib/python3.14/asyncio/graph.py +279 -0
  292. package/python/lib/python3.14/asyncio/locks.py +617 -0
  293. package/python/lib/python3.14/asyncio/log.py +7 -0
  294. package/python/lib/python3.14/asyncio/mixins.py +21 -0
  295. package/python/lib/python3.14/asyncio/proactor_events.py +923 -0
  296. package/python/lib/python3.14/asyncio/protocols.py +216 -0
  297. package/python/lib/python3.14/asyncio/queues.py +309 -0
  298. package/python/lib/python3.14/asyncio/runners.py +226 -0
  299. package/python/lib/python3.14/asyncio/selector_events.py +1337 -0
  300. package/python/lib/python3.14/asyncio/sslproto.py +937 -0
  301. package/python/lib/python3.14/asyncio/staggered.py +179 -0
  302. package/python/lib/python3.14/asyncio/streams.py +804 -0
  303. package/python/lib/python3.14/asyncio/subprocess.py +229 -0
  304. package/python/lib/python3.14/asyncio/taskgroups.py +280 -0
  305. package/python/lib/python3.14/asyncio/tasks.py +1145 -0
  306. package/python/lib/python3.14/asyncio/threads.py +26 -0
  307. package/python/lib/python3.14/asyncio/timeouts.py +183 -0
  308. package/python/lib/python3.14/asyncio/tools.py +278 -0
  309. package/python/lib/python3.14/asyncio/transports.py +337 -0
  310. package/python/lib/python3.14/asyncio/trsock.py +98 -0
  311. package/python/lib/python3.14/asyncio/unix_events.py +1031 -0
  312. package/python/lib/python3.14/asyncio/windows_events.py +906 -0
  313. package/python/lib/python3.14/asyncio/windows_utils.py +181 -0
  314. package/python/lib/python3.14/base64.py +625 -0
  315. package/python/lib/python3.14/bdb.py +1214 -0
  316. package/python/lib/python3.14/bisect.py +118 -0
  317. package/python/lib/python3.14/build-details.json +58 -0
  318. package/python/lib/python3.14/bz2.py +352 -0
  319. package/python/lib/python3.14/cProfile.py +207 -0
  320. package/python/lib/python3.14/calendar.py +926 -0
  321. package/python/lib/python3.14/cmd.py +414 -0
  322. package/python/lib/python3.14/code.py +396 -0
  323. package/python/lib/python3.14/codecs.py +1125 -0
  324. package/python/lib/python3.14/codeop.py +154 -0
  325. package/python/lib/python3.14/collections/__init__.py +1612 -0
  326. package/python/lib/python3.14/collections/__pycache__/__init__.cpython-314.pyc +0 -0
  327. package/python/lib/python3.14/colorsys.py +166 -0
  328. package/python/lib/python3.14/compileall.py +472 -0
  329. package/python/lib/python3.14/compression/__init__.py +0 -0
  330. package/python/lib/python3.14/compression/__pycache__/__init__.cpython-314.pyc +0 -0
  331. package/python/lib/python3.14/compression/__pycache__/bz2.cpython-314.pyc +0 -0
  332. package/python/lib/python3.14/compression/__pycache__/gzip.cpython-314.pyc +0 -0
  333. package/python/lib/python3.14/compression/__pycache__/lzma.cpython-314.pyc +0 -0
  334. package/python/lib/python3.14/compression/__pycache__/zlib.cpython-314.pyc +0 -0
  335. package/python/lib/python3.14/compression/_common/__init__.py +0 -0
  336. package/python/lib/python3.14/compression/_common/__pycache__/__init__.cpython-314.pyc +0 -0
  337. package/python/lib/python3.14/compression/_common/__pycache__/_streams.cpython-314.pyc +0 -0
  338. package/python/lib/python3.14/compression/_common/_streams.py +162 -0
  339. package/python/lib/python3.14/compression/bz2.py +5 -0
  340. package/python/lib/python3.14/compression/gzip.py +5 -0
  341. package/python/lib/python3.14/compression/lzma.py +5 -0
  342. package/python/lib/python3.14/compression/zlib.py +5 -0
  343. package/python/lib/python3.14/compression/zstd/__init__.py +244 -0
  344. package/python/lib/python3.14/compression/zstd/__pycache__/__init__.cpython-314.pyc +0 -0
  345. package/python/lib/python3.14/compression/zstd/__pycache__/_zstdfile.cpython-314.pyc +0 -0
  346. package/python/lib/python3.14/compression/zstd/_zstdfile.py +347 -0
  347. package/python/lib/python3.14/concurrent/__init__.py +1 -0
  348. package/python/lib/python3.14/concurrent/__pycache__/__init__.cpython-314.pyc +0 -0
  349. package/python/lib/python3.14/concurrent/futures/__init__.py +65 -0
  350. package/python/lib/python3.14/concurrent/futures/__pycache__/__init__.cpython-314.pyc +0 -0
  351. package/python/lib/python3.14/concurrent/futures/__pycache__/_base.cpython-314.pyc +0 -0
  352. package/python/lib/python3.14/concurrent/futures/__pycache__/interpreter.cpython-314.pyc +0 -0
  353. package/python/lib/python3.14/concurrent/futures/__pycache__/process.cpython-314.pyc +0 -0
  354. package/python/lib/python3.14/concurrent/futures/__pycache__/thread.cpython-314.pyc +0 -0
  355. package/python/lib/python3.14/concurrent/futures/_base.py +680 -0
  356. package/python/lib/python3.14/concurrent/futures/interpreter.py +123 -0
  357. package/python/lib/python3.14/concurrent/futures/process.py +1047 -0
  358. package/python/lib/python3.14/concurrent/futures/thread.py +274 -0
  359. package/python/lib/python3.14/concurrent/interpreters/__init__.py +253 -0
  360. package/python/lib/python3.14/concurrent/interpreters/__pycache__/__init__.cpython-314.pyc +0 -0
  361. package/python/lib/python3.14/concurrent/interpreters/__pycache__/_crossinterp.cpython-314.pyc +0 -0
  362. package/python/lib/python3.14/concurrent/interpreters/__pycache__/_queues.cpython-314.pyc +0 -0
  363. package/python/lib/python3.14/concurrent/interpreters/_crossinterp.py +107 -0
  364. package/python/lib/python3.14/concurrent/interpreters/_queues.py +290 -0
  365. package/python/lib/python3.14/configparser.py +1426 -0
  366. package/python/lib/python3.14/contextlib.py +814 -0
  367. package/python/lib/python3.14/contextvars.py +8 -0
  368. package/python/lib/python3.14/copy.py +286 -0
  369. package/python/lib/python3.14/copyreg.py +222 -0
  370. package/python/lib/python3.14/csv.py +527 -0
  371. package/python/lib/python3.14/ctypes/__init__.py +686 -0
  372. package/python/lib/python3.14/ctypes/__pycache__/__init__.cpython-314.pyc +0 -0
  373. package/python/lib/python3.14/ctypes/__pycache__/_aix.cpython-314.pyc +0 -0
  374. package/python/lib/python3.14/ctypes/__pycache__/_endian.cpython-314.pyc +0 -0
  375. package/python/lib/python3.14/ctypes/__pycache__/_layout.cpython-314.pyc +0 -0
  376. package/python/lib/python3.14/ctypes/__pycache__/util.cpython-314.pyc +0 -0
  377. package/python/lib/python3.14/ctypes/__pycache__/wintypes.cpython-314.pyc +0 -0
  378. package/python/lib/python3.14/ctypes/_aix.py +327 -0
  379. package/python/lib/python3.14/ctypes/_endian.py +78 -0
  380. package/python/lib/python3.14/ctypes/_layout.py +330 -0
  381. package/python/lib/python3.14/ctypes/macholib/README.ctypes +7 -0
  382. package/python/lib/python3.14/ctypes/macholib/__init__.py +9 -0
  383. package/python/lib/python3.14/ctypes/macholib/__pycache__/__init__.cpython-314.pyc +0 -0
  384. package/python/lib/python3.14/ctypes/macholib/__pycache__/dyld.cpython-314.pyc +0 -0
  385. package/python/lib/python3.14/ctypes/macholib/__pycache__/dylib.cpython-314.pyc +0 -0
  386. package/python/lib/python3.14/ctypes/macholib/__pycache__/framework.cpython-314.pyc +0 -0
  387. package/python/lib/python3.14/ctypes/macholib/dyld.py +165 -0
  388. package/python/lib/python3.14/ctypes/macholib/dylib.py +42 -0
  389. package/python/lib/python3.14/ctypes/macholib/fetch_macholib +2 -0
  390. package/python/lib/python3.14/ctypes/macholib/fetch_macholib.bat +1 -0
  391. package/python/lib/python3.14/ctypes/macholib/framework.py +42 -0
  392. package/python/lib/python3.14/ctypes/util.py +502 -0
  393. package/python/lib/python3.14/ctypes/wintypes.py +210 -0
  394. package/python/lib/python3.14/curses/__init__.py +101 -0
  395. package/python/lib/python3.14/curses/__pycache__/__init__.cpython-314.pyc +0 -0
  396. package/python/lib/python3.14/curses/__pycache__/ascii.cpython-314.pyc +0 -0
  397. package/python/lib/python3.14/curses/__pycache__/has_key.cpython-314.pyc +0 -0
  398. package/python/lib/python3.14/curses/__pycache__/panel.cpython-314.pyc +0 -0
  399. package/python/lib/python3.14/curses/__pycache__/textpad.cpython-314.pyc +0 -0
  400. package/python/lib/python3.14/curses/ascii.py +99 -0
  401. package/python/lib/python3.14/curses/has_key.py +192 -0
  402. package/python/lib/python3.14/curses/panel.py +6 -0
  403. package/python/lib/python3.14/curses/textpad.py +236 -0
  404. package/python/lib/python3.14/dataclasses.py +1813 -0
  405. package/python/lib/python3.14/datetime.py +13 -0
  406. package/python/lib/python3.14/dbm/__init__.py +194 -0
  407. package/python/lib/python3.14/dbm/__pycache__/__init__.cpython-314.pyc +0 -0
  408. package/python/lib/python3.14/dbm/__pycache__/dumb.cpython-314.pyc +0 -0
  409. package/python/lib/python3.14/dbm/__pycache__/gnu.cpython-314.pyc +0 -0
  410. package/python/lib/python3.14/dbm/__pycache__/ndbm.cpython-314.pyc +0 -0
  411. package/python/lib/python3.14/dbm/__pycache__/sqlite3.cpython-314.pyc +0 -0
  412. package/python/lib/python3.14/dbm/dumb.py +319 -0
  413. package/python/lib/python3.14/dbm/gnu.py +3 -0
  414. package/python/lib/python3.14/dbm/ndbm.py +3 -0
  415. package/python/lib/python3.14/dbm/sqlite3.py +144 -0
  416. package/python/lib/python3.14/decimal.py +109 -0
  417. package/python/lib/python3.14/difflib.py +2066 -0
  418. package/python/lib/python3.14/dis.py +1157 -0
  419. package/python/lib/python3.14/doctest.py +2922 -0
  420. package/python/lib/python3.14/email/__init__.py +61 -0
  421. package/python/lib/python3.14/email/__pycache__/__init__.cpython-314.pyc +0 -0
  422. package/python/lib/python3.14/email/__pycache__/_encoded_words.cpython-314.pyc +0 -0
  423. package/python/lib/python3.14/email/__pycache__/_header_value_parser.cpython-314.pyc +0 -0
  424. package/python/lib/python3.14/email/__pycache__/_parseaddr.cpython-314.pyc +0 -0
  425. package/python/lib/python3.14/email/__pycache__/_policybase.cpython-314.pyc +0 -0
  426. package/python/lib/python3.14/email/__pycache__/base64mime.cpython-314.pyc +0 -0
  427. package/python/lib/python3.14/email/__pycache__/charset.cpython-314.pyc +0 -0
  428. package/python/lib/python3.14/email/__pycache__/contentmanager.cpython-314.pyc +0 -0
  429. package/python/lib/python3.14/email/__pycache__/encoders.cpython-314.pyc +0 -0
  430. package/python/lib/python3.14/email/__pycache__/errors.cpython-314.pyc +0 -0
  431. package/python/lib/python3.14/email/__pycache__/feedparser.cpython-314.pyc +0 -0
  432. package/python/lib/python3.14/email/__pycache__/generator.cpython-314.pyc +0 -0
  433. package/python/lib/python3.14/email/__pycache__/header.cpython-314.pyc +0 -0
  434. package/python/lib/python3.14/email/__pycache__/headerregistry.cpython-314.pyc +0 -0
  435. package/python/lib/python3.14/email/__pycache__/iterators.cpython-314.pyc +0 -0
  436. package/python/lib/python3.14/email/__pycache__/message.cpython-314.pyc +0 -0
  437. package/python/lib/python3.14/email/__pycache__/parser.cpython-314.pyc +0 -0
  438. package/python/lib/python3.14/email/__pycache__/policy.cpython-314.pyc +0 -0
  439. package/python/lib/python3.14/email/__pycache__/quoprimime.cpython-314.pyc +0 -0
  440. package/python/lib/python3.14/email/__pycache__/utils.cpython-314.pyc +0 -0
  441. package/python/lib/python3.14/email/_encoded_words.py +233 -0
  442. package/python/lib/python3.14/email/_header_value_parser.py +3164 -0
  443. package/python/lib/python3.14/email/_parseaddr.py +563 -0
  444. package/python/lib/python3.14/email/_policybase.py +392 -0
  445. package/python/lib/python3.14/email/architecture.rst +216 -0
  446. package/python/lib/python3.14/email/base64mime.py +115 -0
  447. package/python/lib/python3.14/email/charset.py +396 -0
  448. package/python/lib/python3.14/email/contentmanager.py +254 -0
  449. package/python/lib/python3.14/email/encoders.py +65 -0
  450. package/python/lib/python3.14/email/errors.py +117 -0
  451. package/python/lib/python3.14/email/feedparser.py +536 -0
  452. package/python/lib/python3.14/email/generator.py +530 -0
  453. package/python/lib/python3.14/email/header.py +582 -0
  454. package/python/lib/python3.14/email/headerregistry.py +618 -0
  455. package/python/lib/python3.14/email/iterators.py +68 -0
  456. package/python/lib/python3.14/email/message.py +1217 -0
  457. package/python/lib/python3.14/email/mime/__init__.py +0 -0
  458. package/python/lib/python3.14/email/mime/__pycache__/__init__.cpython-314.pyc +0 -0
  459. package/python/lib/python3.14/email/mime/__pycache__/application.cpython-314.pyc +0 -0
  460. package/python/lib/python3.14/email/mime/__pycache__/audio.cpython-314.pyc +0 -0
  461. package/python/lib/python3.14/email/mime/__pycache__/base.cpython-314.pyc +0 -0
  462. package/python/lib/python3.14/email/mime/__pycache__/image.cpython-314.pyc +0 -0
  463. package/python/lib/python3.14/email/mime/__pycache__/message.cpython-314.pyc +0 -0
  464. package/python/lib/python3.14/email/mime/__pycache__/multipart.cpython-314.pyc +0 -0
  465. package/python/lib/python3.14/email/mime/__pycache__/nonmultipart.cpython-314.pyc +0 -0
  466. package/python/lib/python3.14/email/mime/__pycache__/text.cpython-314.pyc +0 -0
  467. package/python/lib/python3.14/email/mime/application.py +37 -0
  468. package/python/lib/python3.14/email/mime/audio.py +97 -0
  469. package/python/lib/python3.14/email/mime/base.py +29 -0
  470. package/python/lib/python3.14/email/mime/image.py +152 -0
  471. package/python/lib/python3.14/email/mime/message.py +33 -0
  472. package/python/lib/python3.14/email/mime/multipart.py +47 -0
  473. package/python/lib/python3.14/email/mime/nonmultipart.py +21 -0
  474. package/python/lib/python3.14/email/mime/text.py +40 -0
  475. package/python/lib/python3.14/email/parser.py +127 -0
  476. package/python/lib/python3.14/email/policy.py +239 -0
  477. package/python/lib/python3.14/email/quoprimime.py +300 -0
  478. package/python/lib/python3.14/email/utils.py +489 -0
  479. package/python/lib/python3.14/encodings/__init__.py +182 -0
  480. package/python/lib/python3.14/encodings/__pycache__/__init__.cpython-314.pyc +0 -0
  481. package/python/lib/python3.14/encodings/__pycache__/_win_cp_codecs.cpython-314.pyc +0 -0
  482. package/python/lib/python3.14/encodings/__pycache__/aliases.cpython-314.pyc +0 -0
  483. package/python/lib/python3.14/encodings/__pycache__/ascii.cpython-314.pyc +0 -0
  484. package/python/lib/python3.14/encodings/__pycache__/base64_codec.cpython-314.pyc +0 -0
  485. package/python/lib/python3.14/encodings/__pycache__/big5.cpython-314.pyc +0 -0
  486. package/python/lib/python3.14/encodings/__pycache__/big5hkscs.cpython-314.pyc +0 -0
  487. package/python/lib/python3.14/encodings/__pycache__/bz2_codec.cpython-314.pyc +0 -0
  488. package/python/lib/python3.14/encodings/__pycache__/charmap.cpython-314.pyc +0 -0
  489. package/python/lib/python3.14/encodings/__pycache__/cp037.cpython-314.pyc +0 -0
  490. package/python/lib/python3.14/encodings/__pycache__/cp1006.cpython-314.pyc +0 -0
  491. package/python/lib/python3.14/encodings/__pycache__/cp1026.cpython-314.pyc +0 -0
  492. package/python/lib/python3.14/encodings/__pycache__/cp1125.cpython-314.pyc +0 -0
  493. package/python/lib/python3.14/encodings/__pycache__/cp1140.cpython-314.pyc +0 -0
  494. package/python/lib/python3.14/encodings/__pycache__/cp1250.cpython-314.pyc +0 -0
  495. package/python/lib/python3.14/encodings/__pycache__/cp1251.cpython-314.pyc +0 -0
  496. package/python/lib/python3.14/encodings/__pycache__/cp1252.cpython-314.pyc +0 -0
  497. package/python/lib/python3.14/encodings/__pycache__/cp1253.cpython-314.pyc +0 -0
  498. package/python/lib/python3.14/encodings/__pycache__/cp1254.cpython-314.pyc +0 -0
  499. package/python/lib/python3.14/encodings/__pycache__/cp1255.cpython-314.pyc +0 -0
  500. package/python/lib/python3.14/encodings/__pycache__/cp1256.cpython-314.pyc +0 -0
  501. package/python/lib/python3.14/encodings/__pycache__/cp1257.cpython-314.pyc +0 -0
  502. package/python/lib/python3.14/encodings/__pycache__/cp1258.cpython-314.pyc +0 -0
  503. package/python/lib/python3.14/encodings/__pycache__/cp273.cpython-314.pyc +0 -0
  504. package/python/lib/python3.14/encodings/__pycache__/cp424.cpython-314.pyc +0 -0
  505. package/python/lib/python3.14/encodings/__pycache__/cp437.cpython-314.pyc +0 -0
  506. package/python/lib/python3.14/encodings/__pycache__/cp500.cpython-314.pyc +0 -0
  507. package/python/lib/python3.14/encodings/__pycache__/cp720.cpython-314.pyc +0 -0
  508. package/python/lib/python3.14/encodings/__pycache__/cp737.cpython-314.pyc +0 -0
  509. package/python/lib/python3.14/encodings/__pycache__/cp775.cpython-314.pyc +0 -0
  510. package/python/lib/python3.14/encodings/__pycache__/cp850.cpython-314.pyc +0 -0
  511. package/python/lib/python3.14/encodings/__pycache__/cp852.cpython-314.pyc +0 -0
  512. package/python/lib/python3.14/encodings/__pycache__/cp855.cpython-314.pyc +0 -0
  513. package/python/lib/python3.14/encodings/__pycache__/cp856.cpython-314.pyc +0 -0
  514. package/python/lib/python3.14/encodings/__pycache__/cp857.cpython-314.pyc +0 -0
  515. package/python/lib/python3.14/encodings/__pycache__/cp858.cpython-314.pyc +0 -0
  516. package/python/lib/python3.14/encodings/__pycache__/cp860.cpython-314.pyc +0 -0
  517. package/python/lib/python3.14/encodings/__pycache__/cp861.cpython-314.pyc +0 -0
  518. package/python/lib/python3.14/encodings/__pycache__/cp862.cpython-314.pyc +0 -0
  519. package/python/lib/python3.14/encodings/__pycache__/cp863.cpython-314.pyc +0 -0
  520. package/python/lib/python3.14/encodings/__pycache__/cp864.cpython-314.pyc +0 -0
  521. package/python/lib/python3.14/encodings/__pycache__/cp865.cpython-314.pyc +0 -0
  522. package/python/lib/python3.14/encodings/__pycache__/cp866.cpython-314.pyc +0 -0
  523. package/python/lib/python3.14/encodings/__pycache__/cp869.cpython-314.pyc +0 -0
  524. package/python/lib/python3.14/encodings/__pycache__/cp874.cpython-314.pyc +0 -0
  525. package/python/lib/python3.14/encodings/__pycache__/cp875.cpython-314.pyc +0 -0
  526. package/python/lib/python3.14/encodings/__pycache__/cp932.cpython-314.pyc +0 -0
  527. package/python/lib/python3.14/encodings/__pycache__/cp949.cpython-314.pyc +0 -0
  528. package/python/lib/python3.14/encodings/__pycache__/cp950.cpython-314.pyc +0 -0
  529. package/python/lib/python3.14/encodings/__pycache__/euc_jis_2004.cpython-314.pyc +0 -0
  530. package/python/lib/python3.14/encodings/__pycache__/euc_jisx0213.cpython-314.pyc +0 -0
  531. package/python/lib/python3.14/encodings/__pycache__/euc_jp.cpython-314.pyc +0 -0
  532. package/python/lib/python3.14/encodings/__pycache__/euc_kr.cpython-314.pyc +0 -0
  533. package/python/lib/python3.14/encodings/__pycache__/gb18030.cpython-314.pyc +0 -0
  534. package/python/lib/python3.14/encodings/__pycache__/gb2312.cpython-314.pyc +0 -0
  535. package/python/lib/python3.14/encodings/__pycache__/gbk.cpython-314.pyc +0 -0
  536. package/python/lib/python3.14/encodings/__pycache__/hex_codec.cpython-314.pyc +0 -0
  537. package/python/lib/python3.14/encodings/__pycache__/hp_roman8.cpython-314.pyc +0 -0
  538. package/python/lib/python3.14/encodings/__pycache__/hz.cpython-314.pyc +0 -0
  539. package/python/lib/python3.14/encodings/__pycache__/idna.cpython-314.pyc +0 -0
  540. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp.cpython-314.pyc +0 -0
  541. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_1.cpython-314.pyc +0 -0
  542. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_2.cpython-314.pyc +0 -0
  543. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_2004.cpython-314.pyc +0 -0
  544. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_3.cpython-314.pyc +0 -0
  545. package/python/lib/python3.14/encodings/__pycache__/iso2022_jp_ext.cpython-314.pyc +0 -0
  546. package/python/lib/python3.14/encodings/__pycache__/iso2022_kr.cpython-314.pyc +0 -0
  547. package/python/lib/python3.14/encodings/__pycache__/iso8859_1.cpython-314.pyc +0 -0
  548. package/python/lib/python3.14/encodings/__pycache__/iso8859_10.cpython-314.pyc +0 -0
  549. package/python/lib/python3.14/encodings/__pycache__/iso8859_11.cpython-314.pyc +0 -0
  550. package/python/lib/python3.14/encodings/__pycache__/iso8859_13.cpython-314.pyc +0 -0
  551. package/python/lib/python3.14/encodings/__pycache__/iso8859_14.cpython-314.pyc +0 -0
  552. package/python/lib/python3.14/encodings/__pycache__/iso8859_15.cpython-314.pyc +0 -0
  553. package/python/lib/python3.14/encodings/__pycache__/iso8859_16.cpython-314.pyc +0 -0
  554. package/python/lib/python3.14/encodings/__pycache__/iso8859_2.cpython-314.pyc +0 -0
  555. package/python/lib/python3.14/encodings/__pycache__/iso8859_3.cpython-314.pyc +0 -0
  556. package/python/lib/python3.14/encodings/__pycache__/iso8859_4.cpython-314.pyc +0 -0
  557. package/python/lib/python3.14/encodings/__pycache__/iso8859_5.cpython-314.pyc +0 -0
  558. package/python/lib/python3.14/encodings/__pycache__/iso8859_6.cpython-314.pyc +0 -0
  559. package/python/lib/python3.14/encodings/__pycache__/iso8859_7.cpython-314.pyc +0 -0
  560. package/python/lib/python3.14/encodings/__pycache__/iso8859_8.cpython-314.pyc +0 -0
  561. package/python/lib/python3.14/encodings/__pycache__/iso8859_9.cpython-314.pyc +0 -0
  562. package/python/lib/python3.14/encodings/__pycache__/johab.cpython-314.pyc +0 -0
  563. package/python/lib/python3.14/encodings/__pycache__/koi8_r.cpython-314.pyc +0 -0
  564. package/python/lib/python3.14/encodings/__pycache__/koi8_t.cpython-314.pyc +0 -0
  565. package/python/lib/python3.14/encodings/__pycache__/koi8_u.cpython-314.pyc +0 -0
  566. package/python/lib/python3.14/encodings/__pycache__/kz1048.cpython-314.pyc +0 -0
  567. package/python/lib/python3.14/encodings/__pycache__/latin_1.cpython-314.pyc +0 -0
  568. package/python/lib/python3.14/encodings/__pycache__/mac_arabic.cpython-314.pyc +0 -0
  569. package/python/lib/python3.14/encodings/__pycache__/mac_croatian.cpython-314.pyc +0 -0
  570. package/python/lib/python3.14/encodings/__pycache__/mac_cyrillic.cpython-314.pyc +0 -0
  571. package/python/lib/python3.14/encodings/__pycache__/mac_farsi.cpython-314.pyc +0 -0
  572. package/python/lib/python3.14/encodings/__pycache__/mac_greek.cpython-314.pyc +0 -0
  573. package/python/lib/python3.14/encodings/__pycache__/mac_iceland.cpython-314.pyc +0 -0
  574. package/python/lib/python3.14/encodings/__pycache__/mac_latin2.cpython-314.pyc +0 -0
  575. package/python/lib/python3.14/encodings/__pycache__/mac_roman.cpython-314.pyc +0 -0
  576. package/python/lib/python3.14/encodings/__pycache__/mac_romanian.cpython-314.pyc +0 -0
  577. package/python/lib/python3.14/encodings/__pycache__/mac_turkish.cpython-314.pyc +0 -0
  578. package/python/lib/python3.14/encodings/__pycache__/mbcs.cpython-314.pyc +0 -0
  579. package/python/lib/python3.14/encodings/__pycache__/oem.cpython-314.pyc +0 -0
  580. package/python/lib/python3.14/encodings/__pycache__/palmos.cpython-314.pyc +0 -0
  581. package/python/lib/python3.14/encodings/__pycache__/ptcp154.cpython-314.pyc +0 -0
  582. package/python/lib/python3.14/encodings/__pycache__/punycode.cpython-314.pyc +0 -0
  583. package/python/lib/python3.14/encodings/__pycache__/quopri_codec.cpython-314.pyc +0 -0
  584. package/python/lib/python3.14/encodings/__pycache__/raw_unicode_escape.cpython-314.pyc +0 -0
  585. package/python/lib/python3.14/encodings/__pycache__/rot_13.cpython-314.pyc +0 -0
  586. package/python/lib/python3.14/encodings/__pycache__/shift_jis.cpython-314.pyc +0 -0
  587. package/python/lib/python3.14/encodings/__pycache__/shift_jis_2004.cpython-314.pyc +0 -0
  588. package/python/lib/python3.14/encodings/__pycache__/shift_jisx0213.cpython-314.pyc +0 -0
  589. package/python/lib/python3.14/encodings/__pycache__/tis_620.cpython-314.pyc +0 -0
  590. package/python/lib/python3.14/encodings/__pycache__/undefined.cpython-314.pyc +0 -0
  591. package/python/lib/python3.14/encodings/__pycache__/unicode_escape.cpython-314.pyc +0 -0
  592. package/python/lib/python3.14/encodings/__pycache__/utf_16.cpython-314.pyc +0 -0
  593. package/python/lib/python3.14/encodings/__pycache__/utf_16_be.cpython-314.pyc +0 -0
  594. package/python/lib/python3.14/encodings/__pycache__/utf_16_le.cpython-314.pyc +0 -0
  595. package/python/lib/python3.14/encodings/__pycache__/utf_32.cpython-314.pyc +0 -0
  596. package/python/lib/python3.14/encodings/__pycache__/utf_32_be.cpython-314.pyc +0 -0
  597. package/python/lib/python3.14/encodings/__pycache__/utf_32_le.cpython-314.pyc +0 -0
  598. package/python/lib/python3.14/encodings/__pycache__/utf_7.cpython-314.pyc +0 -0
  599. package/python/lib/python3.14/encodings/__pycache__/utf_8.cpython-314.pyc +0 -0
  600. package/python/lib/python3.14/encodings/__pycache__/utf_8_sig.cpython-314.pyc +0 -0
  601. package/python/lib/python3.14/encodings/__pycache__/uu_codec.cpython-314.pyc +0 -0
  602. package/python/lib/python3.14/encodings/__pycache__/zlib_codec.cpython-314.pyc +0 -0
  603. package/python/lib/python3.14/encodings/_win_cp_codecs.py +36 -0
  604. package/python/lib/python3.14/encodings/aliases.py +568 -0
  605. package/python/lib/python3.14/encodings/ascii.py +50 -0
  606. package/python/lib/python3.14/encodings/base64_codec.py +55 -0
  607. package/python/lib/python3.14/encodings/big5.py +39 -0
  608. package/python/lib/python3.14/encodings/big5hkscs.py +39 -0
  609. package/python/lib/python3.14/encodings/bz2_codec.py +78 -0
  610. package/python/lib/python3.14/encodings/charmap.py +69 -0
  611. package/python/lib/python3.14/encodings/cp037.py +307 -0
  612. package/python/lib/python3.14/encodings/cp1006.py +307 -0
  613. package/python/lib/python3.14/encodings/cp1026.py +307 -0
  614. package/python/lib/python3.14/encodings/cp1125.py +698 -0
  615. package/python/lib/python3.14/encodings/cp1140.py +307 -0
  616. package/python/lib/python3.14/encodings/cp1250.py +307 -0
  617. package/python/lib/python3.14/encodings/cp1251.py +307 -0
  618. package/python/lib/python3.14/encodings/cp1252.py +307 -0
  619. package/python/lib/python3.14/encodings/cp1253.py +307 -0
  620. package/python/lib/python3.14/encodings/cp1254.py +307 -0
  621. package/python/lib/python3.14/encodings/cp1255.py +307 -0
  622. package/python/lib/python3.14/encodings/cp1256.py +307 -0
  623. package/python/lib/python3.14/encodings/cp1257.py +307 -0
  624. package/python/lib/python3.14/encodings/cp1258.py +307 -0
  625. package/python/lib/python3.14/encodings/cp273.py +307 -0
  626. package/python/lib/python3.14/encodings/cp424.py +307 -0
  627. package/python/lib/python3.14/encodings/cp437.py +698 -0
  628. package/python/lib/python3.14/encodings/cp500.py +307 -0
  629. package/python/lib/python3.14/encodings/cp720.py +309 -0
  630. package/python/lib/python3.14/encodings/cp737.py +698 -0
  631. package/python/lib/python3.14/encodings/cp775.py +697 -0
  632. package/python/lib/python3.14/encodings/cp850.py +698 -0
  633. package/python/lib/python3.14/encodings/cp852.py +698 -0
  634. package/python/lib/python3.14/encodings/cp855.py +698 -0
  635. package/python/lib/python3.14/encodings/cp856.py +307 -0
  636. package/python/lib/python3.14/encodings/cp857.py +694 -0
  637. package/python/lib/python3.14/encodings/cp858.py +698 -0
  638. package/python/lib/python3.14/encodings/cp860.py +698 -0
  639. package/python/lib/python3.14/encodings/cp861.py +698 -0
  640. package/python/lib/python3.14/encodings/cp862.py +698 -0
  641. package/python/lib/python3.14/encodings/cp863.py +698 -0
  642. package/python/lib/python3.14/encodings/cp864.py +690 -0
  643. package/python/lib/python3.14/encodings/cp865.py +698 -0
  644. package/python/lib/python3.14/encodings/cp866.py +698 -0
  645. package/python/lib/python3.14/encodings/cp869.py +689 -0
  646. package/python/lib/python3.14/encodings/cp874.py +307 -0
  647. package/python/lib/python3.14/encodings/cp875.py +307 -0
  648. package/python/lib/python3.14/encodings/cp932.py +39 -0
  649. package/python/lib/python3.14/encodings/cp949.py +39 -0
  650. package/python/lib/python3.14/encodings/cp950.py +39 -0
  651. package/python/lib/python3.14/encodings/euc_jis_2004.py +39 -0
  652. package/python/lib/python3.14/encodings/euc_jisx0213.py +39 -0
  653. package/python/lib/python3.14/encodings/euc_jp.py +39 -0
  654. package/python/lib/python3.14/encodings/euc_kr.py +39 -0
  655. package/python/lib/python3.14/encodings/gb18030.py +39 -0
  656. package/python/lib/python3.14/encodings/gb2312.py +39 -0
  657. package/python/lib/python3.14/encodings/gbk.py +39 -0
  658. package/python/lib/python3.14/encodings/hex_codec.py +55 -0
  659. package/python/lib/python3.14/encodings/hp_roman8.py +314 -0
  660. package/python/lib/python3.14/encodings/hz.py +39 -0
  661. package/python/lib/python3.14/encodings/idna.py +387 -0
  662. package/python/lib/python3.14/encodings/iso2022_jp.py +39 -0
  663. package/python/lib/python3.14/encodings/iso2022_jp_1.py +39 -0
  664. package/python/lib/python3.14/encodings/iso2022_jp_2.py +39 -0
  665. package/python/lib/python3.14/encodings/iso2022_jp_2004.py +39 -0
  666. package/python/lib/python3.14/encodings/iso2022_jp_3.py +39 -0
  667. package/python/lib/python3.14/encodings/iso2022_jp_ext.py +39 -0
  668. package/python/lib/python3.14/encodings/iso2022_kr.py +39 -0
  669. package/python/lib/python3.14/encodings/iso8859_1.py +307 -0
  670. package/python/lib/python3.14/encodings/iso8859_10.py +307 -0
  671. package/python/lib/python3.14/encodings/iso8859_11.py +307 -0
  672. package/python/lib/python3.14/encodings/iso8859_13.py +307 -0
  673. package/python/lib/python3.14/encodings/iso8859_14.py +307 -0
  674. package/python/lib/python3.14/encodings/iso8859_15.py +307 -0
  675. package/python/lib/python3.14/encodings/iso8859_16.py +307 -0
  676. package/python/lib/python3.14/encodings/iso8859_2.py +307 -0
  677. package/python/lib/python3.14/encodings/iso8859_3.py +307 -0
  678. package/python/lib/python3.14/encodings/iso8859_4.py +307 -0
  679. package/python/lib/python3.14/encodings/iso8859_5.py +307 -0
  680. package/python/lib/python3.14/encodings/iso8859_6.py +307 -0
  681. package/python/lib/python3.14/encodings/iso8859_7.py +307 -0
  682. package/python/lib/python3.14/encodings/iso8859_8.py +307 -0
  683. package/python/lib/python3.14/encodings/iso8859_9.py +307 -0
  684. package/python/lib/python3.14/encodings/johab.py +39 -0
  685. package/python/lib/python3.14/encodings/koi8_r.py +307 -0
  686. package/python/lib/python3.14/encodings/koi8_t.py +308 -0
  687. package/python/lib/python3.14/encodings/koi8_u.py +307 -0
  688. package/python/lib/python3.14/encodings/kz1048.py +307 -0
  689. package/python/lib/python3.14/encodings/latin_1.py +50 -0
  690. package/python/lib/python3.14/encodings/mac_arabic.py +698 -0
  691. package/python/lib/python3.14/encodings/mac_croatian.py +307 -0
  692. package/python/lib/python3.14/encodings/mac_cyrillic.py +307 -0
  693. package/python/lib/python3.14/encodings/mac_farsi.py +307 -0
  694. package/python/lib/python3.14/encodings/mac_greek.py +307 -0
  695. package/python/lib/python3.14/encodings/mac_iceland.py +307 -0
  696. package/python/lib/python3.14/encodings/mac_latin2.py +312 -0
  697. package/python/lib/python3.14/encodings/mac_roman.py +307 -0
  698. package/python/lib/python3.14/encodings/mac_romanian.py +307 -0
  699. package/python/lib/python3.14/encodings/mac_turkish.py +307 -0
  700. package/python/lib/python3.14/encodings/mbcs.py +47 -0
  701. package/python/lib/python3.14/encodings/oem.py +41 -0
  702. package/python/lib/python3.14/encodings/palmos.py +308 -0
  703. package/python/lib/python3.14/encodings/ptcp154.py +312 -0
  704. package/python/lib/python3.14/encodings/punycode.py +253 -0
  705. package/python/lib/python3.14/encodings/quopri_codec.py +56 -0
  706. package/python/lib/python3.14/encodings/raw_unicode_escape.py +46 -0
  707. package/python/lib/python3.14/encodings/rot_13.py +113 -0
  708. package/python/lib/python3.14/encodings/shift_jis.py +39 -0
  709. package/python/lib/python3.14/encodings/shift_jis_2004.py +39 -0
  710. package/python/lib/python3.14/encodings/shift_jisx0213.py +39 -0
  711. package/python/lib/python3.14/encodings/tis_620.py +307 -0
  712. package/python/lib/python3.14/encodings/undefined.py +49 -0
  713. package/python/lib/python3.14/encodings/unicode_escape.py +46 -0
  714. package/python/lib/python3.14/encodings/utf_16.py +155 -0
  715. package/python/lib/python3.14/encodings/utf_16_be.py +42 -0
  716. package/python/lib/python3.14/encodings/utf_16_le.py +42 -0
  717. package/python/lib/python3.14/encodings/utf_32.py +150 -0
  718. package/python/lib/python3.14/encodings/utf_32_be.py +37 -0
  719. package/python/lib/python3.14/encodings/utf_32_le.py +37 -0
  720. package/python/lib/python3.14/encodings/utf_7.py +38 -0
  721. package/python/lib/python3.14/encodings/utf_8.py +42 -0
  722. package/python/lib/python3.14/encodings/utf_8_sig.py +130 -0
  723. package/python/lib/python3.14/encodings/uu_codec.py +103 -0
  724. package/python/lib/python3.14/encodings/zlib_codec.py +77 -0
  725. package/python/lib/python3.14/enum.py +2169 -0
  726. package/python/lib/python3.14/filecmp.py +320 -0
  727. package/python/lib/python3.14/fileinput.py +442 -0
  728. package/python/lib/python3.14/fnmatch.py +209 -0
  729. package/python/lib/python3.14/fractions.py +1078 -0
  730. package/python/lib/python3.14/ftplib.py +975 -0
  731. package/python/lib/python3.14/functools.py +1165 -0
  732. package/python/lib/python3.14/genericpath.py +200 -0
  733. package/python/lib/python3.14/getopt.py +232 -0
  734. package/python/lib/python3.14/getpass.py +256 -0
  735. package/python/lib/python3.14/gettext.py +660 -0
  736. package/python/lib/python3.14/glob.py +574 -0
  737. package/python/lib/python3.14/graphlib.py +254 -0
  738. package/python/lib/python3.14/gzip.py +724 -0
  739. package/python/lib/python3.14/hashlib.py +255 -0
  740. package/python/lib/python3.14/heapq.py +611 -0
  741. package/python/lib/python3.14/hmac.py +279 -0
  742. package/python/lib/python3.14/html/__init__.py +132 -0
  743. package/python/lib/python3.14/html/__pycache__/__init__.cpython-314.pyc +0 -0
  744. package/python/lib/python3.14/html/__pycache__/entities.cpython-314.pyc +0 -0
  745. package/python/lib/python3.14/html/__pycache__/parser.cpython-314.pyc +0 -0
  746. package/python/lib/python3.14/html/entities.py +2513 -0
  747. package/python/lib/python3.14/html/parser.py +583 -0
  748. package/python/lib/python3.14/http/__init__.py +213 -0
  749. package/python/lib/python3.14/http/__pycache__/__init__.cpython-314.pyc +0 -0
  750. package/python/lib/python3.14/http/__pycache__/client.cpython-314.pyc +0 -0
  751. package/python/lib/python3.14/http/__pycache__/cookiejar.cpython-314.pyc +0 -0
  752. package/python/lib/python3.14/http/__pycache__/cookies.cpython-314.pyc +0 -0
  753. package/python/lib/python3.14/http/__pycache__/server.cpython-314.pyc +0 -0
  754. package/python/lib/python3.14/http/client.py +1598 -0
  755. package/python/lib/python3.14/http/cookiejar.py +2135 -0
  756. package/python/lib/python3.14/http/cookies.py +637 -0
  757. package/python/lib/python3.14/http/server.py +1445 -0
  758. package/python/lib/python3.14/imaplib.py +2090 -0
  759. package/python/lib/python3.14/importlib/__init__.py +136 -0
  760. package/python/lib/python3.14/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
  761. package/python/lib/python3.14/importlib/__pycache__/_abc.cpython-314.pyc +0 -0
  762. package/python/lib/python3.14/importlib/__pycache__/_bootstrap.cpython-314.pyc +0 -0
  763. package/python/lib/python3.14/importlib/__pycache__/_bootstrap_external.cpython-314.pyc +0 -0
  764. package/python/lib/python3.14/importlib/__pycache__/abc.cpython-314.pyc +0 -0
  765. package/python/lib/python3.14/importlib/__pycache__/machinery.cpython-314.pyc +0 -0
  766. package/python/lib/python3.14/importlib/__pycache__/readers.cpython-314.pyc +0 -0
  767. package/python/lib/python3.14/importlib/__pycache__/simple.cpython-314.pyc +0 -0
  768. package/python/lib/python3.14/importlib/__pycache__/util.cpython-314.pyc +0 -0
  769. package/python/lib/python3.14/importlib/_abc.py +39 -0
  770. package/python/lib/python3.14/importlib/_bootstrap.py +1570 -0
  771. package/python/lib/python3.14/importlib/_bootstrap_external.py +1566 -0
  772. package/python/lib/python3.14/importlib/abc.py +234 -0
  773. package/python/lib/python3.14/importlib/machinery.py +50 -0
  774. package/python/lib/python3.14/importlib/metadata/__init__.py +1093 -0
  775. package/python/lib/python3.14/importlib/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
  776. package/python/lib/python3.14/importlib/metadata/__pycache__/_adapters.cpython-314.pyc +0 -0
  777. package/python/lib/python3.14/importlib/metadata/__pycache__/_collections.cpython-314.pyc +0 -0
  778. package/python/lib/python3.14/importlib/metadata/__pycache__/_functools.cpython-314.pyc +0 -0
  779. package/python/lib/python3.14/importlib/metadata/__pycache__/_itertools.cpython-314.pyc +0 -0
  780. package/python/lib/python3.14/importlib/metadata/__pycache__/_meta.cpython-314.pyc +0 -0
  781. package/python/lib/python3.14/importlib/metadata/__pycache__/_text.cpython-314.pyc +0 -0
  782. package/python/lib/python3.14/importlib/metadata/__pycache__/diagnose.cpython-314.pyc +0 -0
  783. package/python/lib/python3.14/importlib/metadata/_adapters.py +89 -0
  784. package/python/lib/python3.14/importlib/metadata/_collections.py +30 -0
  785. package/python/lib/python3.14/importlib/metadata/_functools.py +104 -0
  786. package/python/lib/python3.14/importlib/metadata/_itertools.py +73 -0
  787. package/python/lib/python3.14/importlib/metadata/_meta.py +67 -0
  788. package/python/lib/python3.14/importlib/metadata/_text.py +99 -0
  789. package/python/lib/python3.14/importlib/metadata/diagnose.py +21 -0
  790. package/python/lib/python3.14/importlib/readers.py +12 -0
  791. package/python/lib/python3.14/importlib/resources/__init__.py +43 -0
  792. package/python/lib/python3.14/importlib/resources/__pycache__/__init__.cpython-314.pyc +0 -0
  793. package/python/lib/python3.14/importlib/resources/__pycache__/_adapters.cpython-314.pyc +0 -0
  794. package/python/lib/python3.14/importlib/resources/__pycache__/_common.cpython-314.pyc +0 -0
  795. package/python/lib/python3.14/importlib/resources/__pycache__/_functional.cpython-314.pyc +0 -0
  796. package/python/lib/python3.14/importlib/resources/__pycache__/_itertools.cpython-314.pyc +0 -0
  797. package/python/lib/python3.14/importlib/resources/__pycache__/abc.cpython-314.pyc +0 -0
  798. package/python/lib/python3.14/importlib/resources/__pycache__/readers.cpython-314.pyc +0 -0
  799. package/python/lib/python3.14/importlib/resources/__pycache__/simple.cpython-314.pyc +0 -0
  800. package/python/lib/python3.14/importlib/resources/_adapters.py +168 -0
  801. package/python/lib/python3.14/importlib/resources/_common.py +211 -0
  802. package/python/lib/python3.14/importlib/resources/_functional.py +81 -0
  803. package/python/lib/python3.14/importlib/resources/_itertools.py +38 -0
  804. package/python/lib/python3.14/importlib/resources/abc.py +173 -0
  805. package/python/lib/python3.14/importlib/resources/readers.py +203 -0
  806. package/python/lib/python3.14/importlib/resources/simple.py +106 -0
  807. package/python/lib/python3.14/importlib/simple.py +14 -0
  808. package/python/lib/python3.14/importlib/util.py +279 -0
  809. package/python/lib/python3.14/inspect.py +3425 -0
  810. package/python/lib/python3.14/io.py +150 -0
  811. package/python/lib/python3.14/ipaddress.py +2421 -0
  812. package/python/lib/python3.14/json/__init__.py +365 -0
  813. package/python/lib/python3.14/json/__main__.py +20 -0
  814. package/python/lib/python3.14/json/__pycache__/__init__.cpython-314.pyc +0 -0
  815. package/python/lib/python3.14/json/__pycache__/__main__.cpython-314.pyc +0 -0
  816. package/python/lib/python3.14/json/__pycache__/decoder.cpython-314.pyc +0 -0
  817. package/python/lib/python3.14/json/__pycache__/encoder.cpython-314.pyc +0 -0
  818. package/python/lib/python3.14/json/__pycache__/scanner.cpython-314.pyc +0 -0
  819. package/python/lib/python3.14/json/__pycache__/tool.cpython-314.pyc +0 -0
  820. package/python/lib/python3.14/json/decoder.py +364 -0
  821. package/python/lib/python3.14/json/encoder.py +461 -0
  822. package/python/lib/python3.14/json/scanner.py +73 -0
  823. package/python/lib/python3.14/json/tool.py +122 -0
  824. package/python/lib/python3.14/keyword.py +64 -0
  825. package/python/lib/python3.14/lib-dynload/.empty +0 -0
  826. package/python/lib/python3.14/lib-dynload/_dbm.cpython-314-s390x-linux-gnu.so +0 -0
  827. package/python/lib/python3.14/linecache.py +302 -0
  828. package/python/lib/python3.14/locale.py +1992 -0
  829. package/python/lib/python3.14/logging/__init__.py +2335 -0
  830. package/python/lib/python3.14/logging/__pycache__/__init__.cpython-314.pyc +0 -0
  831. package/python/lib/python3.14/logging/__pycache__/config.cpython-314.pyc +0 -0
  832. package/python/lib/python3.14/logging/__pycache__/handlers.cpython-314.pyc +0 -0
  833. package/python/lib/python3.14/logging/config.py +1093 -0
  834. package/python/lib/python3.14/logging/handlers.py +1654 -0
  835. package/python/lib/python3.14/lzma.py +364 -0
  836. package/python/lib/python3.14/mailbox.py +2220 -0
  837. package/python/lib/python3.14/mimetypes.py +755 -0
  838. package/python/lib/python3.14/modulefinder.py +671 -0
  839. package/python/lib/python3.14/multiprocessing/__init__.py +37 -0
  840. package/python/lib/python3.14/multiprocessing/__pycache__/__init__.cpython-314.pyc +0 -0
  841. package/python/lib/python3.14/multiprocessing/__pycache__/connection.cpython-314.pyc +0 -0
  842. package/python/lib/python3.14/multiprocessing/__pycache__/context.cpython-314.pyc +0 -0
  843. package/python/lib/python3.14/multiprocessing/__pycache__/forkserver.cpython-314.pyc +0 -0
  844. package/python/lib/python3.14/multiprocessing/__pycache__/heap.cpython-314.pyc +0 -0
  845. package/python/lib/python3.14/multiprocessing/__pycache__/managers.cpython-314.pyc +0 -0
  846. package/python/lib/python3.14/multiprocessing/__pycache__/pool.cpython-314.pyc +0 -0
  847. package/python/lib/python3.14/multiprocessing/__pycache__/popen_fork.cpython-314.pyc +0 -0
  848. package/python/lib/python3.14/multiprocessing/__pycache__/popen_forkserver.cpython-314.pyc +0 -0
  849. package/python/lib/python3.14/multiprocessing/__pycache__/popen_spawn_posix.cpython-314.pyc +0 -0
  850. package/python/lib/python3.14/multiprocessing/__pycache__/popen_spawn_win32.cpython-314.pyc +0 -0
  851. package/python/lib/python3.14/multiprocessing/__pycache__/process.cpython-314.pyc +0 -0
  852. package/python/lib/python3.14/multiprocessing/__pycache__/queues.cpython-314.pyc +0 -0
  853. package/python/lib/python3.14/multiprocessing/__pycache__/reduction.cpython-314.pyc +0 -0
  854. package/python/lib/python3.14/multiprocessing/__pycache__/resource_sharer.cpython-314.pyc +0 -0
  855. package/python/lib/python3.14/multiprocessing/__pycache__/resource_tracker.cpython-314.pyc +0 -0
  856. package/python/lib/python3.14/multiprocessing/__pycache__/shared_memory.cpython-314.pyc +0 -0
  857. package/python/lib/python3.14/multiprocessing/__pycache__/sharedctypes.cpython-314.pyc +0 -0
  858. package/python/lib/python3.14/multiprocessing/__pycache__/spawn.cpython-314.pyc +0 -0
  859. package/python/lib/python3.14/multiprocessing/__pycache__/synchronize.cpython-314.pyc +0 -0
  860. package/python/lib/python3.14/multiprocessing/__pycache__/util.cpython-314.pyc +0 -0
  861. package/python/lib/python3.14/multiprocessing/connection.py +1233 -0
  862. package/python/lib/python3.14/multiprocessing/context.py +405 -0
  863. package/python/lib/python3.14/multiprocessing/dummy/__init__.py +126 -0
  864. package/python/lib/python3.14/multiprocessing/dummy/__pycache__/__init__.cpython-314.pyc +0 -0
  865. package/python/lib/python3.14/multiprocessing/dummy/__pycache__/connection.cpython-314.pyc +0 -0
  866. package/python/lib/python3.14/multiprocessing/dummy/connection.py +75 -0
  867. package/python/lib/python3.14/multiprocessing/forkserver.py +429 -0
  868. package/python/lib/python3.14/multiprocessing/heap.py +337 -0
  869. package/python/lib/python3.14/multiprocessing/managers.py +1438 -0
  870. package/python/lib/python3.14/multiprocessing/pool.py +957 -0
  871. package/python/lib/python3.14/multiprocessing/popen_fork.py +100 -0
  872. package/python/lib/python3.14/multiprocessing/popen_forkserver.py +74 -0
  873. package/python/lib/python3.14/multiprocessing/popen_spawn_posix.py +76 -0
  874. package/python/lib/python3.14/multiprocessing/popen_spawn_win32.py +147 -0
  875. package/python/lib/python3.14/multiprocessing/process.py +443 -0
  876. package/python/lib/python3.14/multiprocessing/queues.py +399 -0
  877. package/python/lib/python3.14/multiprocessing/reduction.py +281 -0
  878. package/python/lib/python3.14/multiprocessing/resource_sharer.py +154 -0
  879. package/python/lib/python3.14/multiprocessing/resource_tracker.py +495 -0
  880. package/python/lib/python3.14/multiprocessing/shared_memory.py +544 -0
  881. package/python/lib/python3.14/multiprocessing/sharedctypes.py +240 -0
  882. package/python/lib/python3.14/multiprocessing/spawn.py +307 -0
  883. package/python/lib/python3.14/multiprocessing/synchronize.py +411 -0
  884. package/python/lib/python3.14/multiprocessing/util.py +619 -0
  885. package/python/lib/python3.14/netrc.py +200 -0
  886. package/python/lib/python3.14/ntpath.py +889 -0
  887. package/python/lib/python3.14/nturl2path.py +82 -0
  888. package/python/lib/python3.14/numbers.py +427 -0
  889. package/python/lib/python3.14/opcode.py +122 -0
  890. package/python/lib/python3.14/operator.py +475 -0
  891. package/python/lib/python3.14/optparse.py +1664 -0
  892. package/python/lib/python3.14/os.py +1191 -0
  893. package/python/lib/python3.14/pathlib/__init__.py +1307 -0
  894. package/python/lib/python3.14/pathlib/__pycache__/__init__.cpython-314.pyc +0 -0
  895. package/python/lib/python3.14/pathlib/__pycache__/_local.cpython-314.pyc +0 -0
  896. package/python/lib/python3.14/pathlib/__pycache__/_os.cpython-314.pyc +0 -0
  897. package/python/lib/python3.14/pathlib/__pycache__/types.cpython-314.pyc +0 -0
  898. package/python/lib/python3.14/pathlib/_local.py +12 -0
  899. package/python/lib/python3.14/pathlib/_os.py +530 -0
  900. package/python/lib/python3.14/pathlib/types.py +430 -0
  901. package/python/lib/python3.14/pdb.py +3682 -0
  902. package/python/lib/python3.14/pickle.py +1925 -0
  903. package/python/lib/python3.14/pickletools.py +2887 -0
  904. package/python/lib/python3.14/pkgutil.py +474 -0
  905. package/python/lib/python3.14/platform.py +1515 -0
  906. package/python/lib/python3.14/plistlib.py +956 -0
  907. package/python/lib/python3.14/poplib.py +477 -0
  908. package/python/lib/python3.14/posixpath.py +592 -0
  909. package/python/lib/python3.14/pprint.py +675 -0
  910. package/python/lib/python3.14/profile.py +615 -0
  911. package/python/lib/python3.14/pstats.py +777 -0
  912. package/python/lib/python3.14/pty.py +182 -0
  913. package/python/lib/python3.14/py_compile.py +212 -0
  914. package/python/lib/python3.14/pyclbr.py +314 -0
  915. package/python/lib/python3.14/pydoc.py +2890 -0
  916. package/python/lib/python3.14/queue.py +385 -0
  917. package/python/lib/python3.14/quopri.py +235 -0
  918. package/python/lib/python3.14/random.py +1087 -0
  919. package/python/lib/python3.14/re/__init__.py +428 -0
  920. package/python/lib/python3.14/re/__pycache__/__init__.cpython-314.pyc +0 -0
  921. package/python/lib/python3.14/re/__pycache__/_casefix.cpython-314.pyc +0 -0
  922. package/python/lib/python3.14/re/__pycache__/_compiler.cpython-314.pyc +0 -0
  923. package/python/lib/python3.14/re/__pycache__/_constants.cpython-314.pyc +0 -0
  924. package/python/lib/python3.14/re/__pycache__/_parser.cpython-314.pyc +0 -0
  925. package/python/lib/python3.14/re/_casefix.py +106 -0
  926. package/python/lib/python3.14/re/_compiler.py +782 -0
  927. package/python/lib/python3.14/re/_constants.py +224 -0
  928. package/python/lib/python3.14/re/_parser.py +1066 -0
  929. package/python/lib/python3.14/reprlib.py +230 -0
  930. package/python/lib/python3.14/rlcompleter.py +222 -0
  931. package/python/lib/python3.14/runpy.py +326 -0
  932. package/python/lib/python3.14/sched.py +167 -0
  933. package/python/lib/python3.14/secrets.py +71 -0
  934. package/python/lib/python3.14/selectors.py +603 -0
  935. package/python/lib/python3.14/shelve.py +250 -0
  936. package/python/lib/python3.14/shlex.py +351 -0
  937. package/python/lib/python3.14/shutil.py +1660 -0
  938. package/python/lib/python3.14/signal.py +94 -0
  939. package/python/lib/python3.14/site-packages/_yaml/__init__.py +33 -0
  940. package/python/lib/python3.14/site-packages/_yaml/__pycache__/__init__.cpython-314.pyc +0 -0
  941. package/python/lib/python3.14/site-packages/click/__init__.py +144 -0
  942. package/python/lib/python3.14/site-packages/click/__pycache__/__init__.cpython-314.pyc +0 -0
  943. package/python/lib/python3.14/site-packages/click/__pycache__/_compat.cpython-314.pyc +0 -0
  944. package/python/lib/python3.14/site-packages/click/__pycache__/_termui_impl.cpython-314.pyc +0 -0
  945. package/python/lib/python3.14/site-packages/click/__pycache__/_textwrap.cpython-314.pyc +0 -0
  946. package/python/lib/python3.14/site-packages/click/__pycache__/_utils.cpython-314.pyc +0 -0
  947. package/python/lib/python3.14/site-packages/click/__pycache__/_winconsole.cpython-314.pyc +0 -0
  948. package/python/lib/python3.14/site-packages/click/__pycache__/core.cpython-314.pyc +0 -0
  949. package/python/lib/python3.14/site-packages/click/__pycache__/decorators.cpython-314.pyc +0 -0
  950. package/python/lib/python3.14/site-packages/click/__pycache__/exceptions.cpython-314.pyc +0 -0
  951. package/python/lib/python3.14/site-packages/click/__pycache__/formatting.cpython-314.pyc +0 -0
  952. package/python/lib/python3.14/site-packages/click/__pycache__/globals.cpython-314.pyc +0 -0
  953. package/python/lib/python3.14/site-packages/click/__pycache__/parser.cpython-314.pyc +0 -0
  954. package/python/lib/python3.14/site-packages/click/__pycache__/shell_completion.cpython-314.pyc +0 -0
  955. package/python/lib/python3.14/site-packages/click/__pycache__/termui.cpython-314.pyc +0 -0
  956. package/python/lib/python3.14/site-packages/click/__pycache__/testing.cpython-314.pyc +0 -0
  957. package/python/lib/python3.14/site-packages/click/__pycache__/types.cpython-314.pyc +0 -0
  958. package/python/lib/python3.14/site-packages/click/__pycache__/utils.cpython-314.pyc +0 -0
  959. package/python/lib/python3.14/site-packages/click/_compat.py +590 -0
  960. package/python/lib/python3.14/site-packages/click/_termui_impl.py +970 -0
  961. package/python/lib/python3.14/site-packages/click/_textwrap.py +188 -0
  962. package/python/lib/python3.14/site-packages/click/_utils.py +45 -0
  963. package/python/lib/python3.14/site-packages/click/_winconsole.py +292 -0
  964. package/python/lib/python3.14/site-packages/click/core.py +3825 -0
  965. package/python/lib/python3.14/site-packages/click/decorators.py +625 -0
  966. package/python/lib/python3.14/site-packages/click/exceptions.py +378 -0
  967. package/python/lib/python3.14/site-packages/click/formatting.py +320 -0
  968. package/python/lib/python3.14/site-packages/click/globals.py +67 -0
  969. package/python/lib/python3.14/site-packages/click/parser.py +533 -0
  970. package/python/lib/python3.14/site-packages/click/py.typed +0 -0
  971. package/python/lib/python3.14/site-packages/click/shell_completion.py +796 -0
  972. package/python/lib/python3.14/site-packages/click/termui.py +1024 -0
  973. package/python/lib/python3.14/site-packages/click/testing.py +796 -0
  974. package/python/lib/python3.14/site-packages/click/types.py +1437 -0
  975. package/python/lib/python3.14/site-packages/click/utils.py +676 -0
  976. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/INSTALLER +1 -0
  977. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/METADATA +83 -0
  978. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/RECORD +24 -0
  979. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/REQUESTED +0 -0
  980. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/WHEEL +4 -0
  981. package/python/lib/python3.14/site-packages/click-8.5.1.dist-info/licenses/LICENSE.txt +28 -0
  982. package/python/lib/python3.14/site-packages/cssbeautifier/__init__.py +51 -0
  983. package/python/lib/python3.14/site-packages/cssbeautifier/__pycache__/__init__.cpython-314.pyc +0 -0
  984. package/python/lib/python3.14/site-packages/cssbeautifier/__pycache__/__version__.cpython-314.pyc +0 -0
  985. package/python/lib/python3.14/site-packages/cssbeautifier/__pycache__/_main.cpython-314.pyc +0 -0
  986. package/python/lib/python3.14/site-packages/cssbeautifier/__version__.py +1 -0
  987. package/python/lib/python3.14/site-packages/cssbeautifier/_main.py +208 -0
  988. package/python/lib/python3.14/site-packages/cssbeautifier/css/__init__.py +1 -0
  989. package/python/lib/python3.14/site-packages/cssbeautifier/css/__pycache__/__init__.cpython-314.pyc +0 -0
  990. package/python/lib/python3.14/site-packages/cssbeautifier/css/__pycache__/beautifier.cpython-314.pyc +0 -0
  991. package/python/lib/python3.14/site-packages/cssbeautifier/css/__pycache__/options.cpython-314.pyc +0 -0
  992. package/python/lib/python3.14/site-packages/cssbeautifier/css/beautifier.py +559 -0
  993. package/python/lib/python3.14/site-packages/cssbeautifier/css/options.py +60 -0
  994. package/python/lib/python3.14/site-packages/cssbeautifier/tests/__init__.py +1 -0
  995. package/python/lib/python3.14/site-packages/cssbeautifier/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  996. package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/__init__.py +1 -0
  997. package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/__pycache__/__init__.cpython-314.pyc +0 -0
  998. package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/__pycache__/tests.cpython-314.pyc +0 -0
  999. package/python/lib/python3.14/site-packages/cssbeautifier/tests/generated/tests.py +11333 -0
  1000. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1001. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/METADATA +19 -0
  1002. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/RECORD +51 -0
  1003. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1004. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1005. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1006. package/python/lib/python3.14/site-packages/cssbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1007. package/python/lib/python3.14/site-packages/djlint/__init__.py +27 -0
  1008. package/python/lib/python3.14/site-packages/djlint/__main__.py +8 -0
  1009. package/python/lib/python3.14/site-packages/djlint/__pycache__/__init__.cpython-314.pyc +0 -0
  1010. package/python/lib/python3.14/site-packages/djlint/__pycache__/__main__.cpython-314.pyc +0 -0
  1011. package/python/lib/python3.14/site-packages/djlint/__pycache__/_cli.cpython-314.pyc +0 -0
  1012. package/python/lib/python3.14/site-packages/djlint/__pycache__/api.cpython-314.pyc +0 -0
  1013. package/python/lib/python3.14/site-packages/djlint/__pycache__/const.cpython-314.pyc +0 -0
  1014. package/python/lib/python3.14/site-packages/djlint/__pycache__/github_output.cpython-314.pyc +0 -0
  1015. package/python/lib/python3.14/site-packages/djlint/__pycache__/helpers.cpython-314.pyc +0 -0
  1016. package/python/lib/python3.14/site-packages/djlint/__pycache__/lint.cpython-314.pyc +0 -0
  1017. package/python/lib/python3.14/site-packages/djlint/__pycache__/output.cpython-314.pyc +0 -0
  1018. package/python/lib/python3.14/site-packages/djlint/__pycache__/reformat.cpython-314.pyc +0 -0
  1019. package/python/lib/python3.14/site-packages/djlint/__pycache__/sarif_output.cpython-314.pyc +0 -0
  1020. package/python/lib/python3.14/site-packages/djlint/__pycache__/server.cpython-314.pyc +0 -0
  1021. package/python/lib/python3.14/site-packages/djlint/__pycache__/settings.cpython-314.pyc +0 -0
  1022. package/python/lib/python3.14/site-packages/djlint/__pycache__/src.cpython-314.pyc +0 -0
  1023. package/python/lib/python3.14/site-packages/djlint/_cli.py +1006 -0
  1024. package/python/lib/python3.14/site-packages/djlint/api.py +106 -0
  1025. package/python/lib/python3.14/site-packages/djlint/const.py +506 -0
  1026. package/python/lib/python3.14/site-packages/djlint/formatter/__init__.py +0 -0
  1027. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/__init__.cpython-314.pyc +0 -0
  1028. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/attribute_values.cpython-314.pyc +0 -0
  1029. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/attributes.cpython-314.pyc +0 -0
  1030. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/beautifier.cpython-314.pyc +0 -0
  1031. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/class_attributes.cpython-314.pyc +0 -0
  1032. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/compress.cpython-314.pyc +0 -0
  1033. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/condense.cpython-314.pyc +0 -0
  1034. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/css.cpython-314.pyc +0 -0
  1035. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/endblocks.cpython-314.pyc +0 -0
  1036. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/entities.cpython-314.pyc +0 -0
  1037. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/expand.cpython-314.pyc +0 -0
  1038. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/indent.cpython-314.pyc +0 -0
  1039. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/js.cpython-314.pyc +0 -0
  1040. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/load_tags.cpython-314.pyc +0 -0
  1041. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/mako.cpython-314.pyc +0 -0
  1042. package/python/lib/python3.14/site-packages/djlint/formatter/__pycache__/tokenizer.cpython-314.pyc +0 -0
  1043. package/python/lib/python3.14/site-packages/djlint/formatter/attribute_values.py +152 -0
  1044. package/python/lib/python3.14/site-packages/djlint/formatter/attributes.py +580 -0
  1045. package/python/lib/python3.14/site-packages/djlint/formatter/beautifier.py +144 -0
  1046. package/python/lib/python3.14/site-packages/djlint/formatter/class_attributes.py +318 -0
  1047. package/python/lib/python3.14/site-packages/djlint/formatter/compress.py +158 -0
  1048. package/python/lib/python3.14/site-packages/djlint/formatter/condense.py +503 -0
  1049. package/python/lib/python3.14/site-packages/djlint/formatter/css.py +28 -0
  1050. package/python/lib/python3.14/site-packages/djlint/formatter/endblocks.py +68 -0
  1051. package/python/lib/python3.14/site-packages/djlint/formatter/entities.py +39 -0
  1052. package/python/lib/python3.14/site-packages/djlint/formatter/expand.py +576 -0
  1053. package/python/lib/python3.14/site-packages/djlint/formatter/indent.py +1239 -0
  1054. package/python/lib/python3.14/site-packages/djlint/formatter/js.py +82 -0
  1055. package/python/lib/python3.14/site-packages/djlint/formatter/load_tags.py +60 -0
  1056. package/python/lib/python3.14/site-packages/djlint/formatter/mako.py +501 -0
  1057. package/python/lib/python3.14/site-packages/djlint/formatter/tokenizer.py +359 -0
  1058. package/python/lib/python3.14/site-packages/djlint/github_output.py +117 -0
  1059. package/python/lib/python3.14/site-packages/djlint/helpers.py +979 -0
  1060. package/python/lib/python3.14/site-packages/djlint/lint.py +246 -0
  1061. package/python/lib/python3.14/site-packages/djlint/output.py +250 -0
  1062. package/python/lib/python3.14/site-packages/djlint/py.typed +0 -0
  1063. package/python/lib/python3.14/site-packages/djlint/reformat.py +130 -0
  1064. package/python/lib/python3.14/site-packages/djlint/rules/D058.py +78 -0
  1065. package/python/lib/python3.14/site-packages/djlint/rules/D059.py +139 -0
  1066. package/python/lib/python3.14/site-packages/djlint/rules/H009.py +54 -0
  1067. package/python/lib/python3.14/site-packages/djlint/rules/H012.py +240 -0
  1068. package/python/lib/python3.14/site-packages/djlint/rules/H014.py +68 -0
  1069. package/python/lib/python3.14/site-packages/djlint/rules/H016.py +83 -0
  1070. package/python/lib/python3.14/site-packages/djlint/rules/H022.py +161 -0
  1071. package/python/lib/python3.14/site-packages/djlint/rules/H025.py +141 -0
  1072. package/python/lib/python3.14/site-packages/djlint/rules/H036.py +183 -0
  1073. package/python/lib/python3.14/site-packages/djlint/rules/H037.py +138 -0
  1074. package/python/lib/python3.14/site-packages/djlint/rules/H041.py +113 -0
  1075. package/python/lib/python3.14/site-packages/djlint/rules/H042.py +199 -0
  1076. package/python/lib/python3.14/site-packages/djlint/rules/H044.py +119 -0
  1077. package/python/lib/python3.14/site-packages/djlint/rules/H047.py +118 -0
  1078. package/python/lib/python3.14/site-packages/djlint/rules/H048.py +82 -0
  1079. package/python/lib/python3.14/site-packages/djlint/rules/H051.py +98 -0
  1080. package/python/lib/python3.14/site-packages/djlint/rules/H053.py +361 -0
  1081. package/python/lib/python3.14/site-packages/djlint/rules/H054.py +264 -0
  1082. package/python/lib/python3.14/site-packages/djlint/rules/H057.py +235 -0
  1083. package/python/lib/python3.14/site-packages/djlint/rules/T001.py +103 -0
  1084. package/python/lib/python3.14/site-packages/djlint/rules/T002.py +75 -0
  1085. package/python/lib/python3.14/site-packages/djlint/rules/T003.py +93 -0
  1086. package/python/lib/python3.14/site-packages/djlint/rules/T027.py +183 -0
  1087. package/python/lib/python3.14/site-packages/djlint/rules/T038.py +152 -0
  1088. package/python/lib/python3.14/site-packages/djlint/rules/T039.py +167 -0
  1089. package/python/lib/python3.14/site-packages/djlint/rules/T041.py +307 -0
  1090. package/python/lib/python3.14/site-packages/djlint/rules/T042.py +219 -0
  1091. package/python/lib/python3.14/site-packages/djlint/rules/T043.py +154 -0
  1092. package/python/lib/python3.14/site-packages/djlint/rules/T044.py +189 -0
  1093. package/python/lib/python3.14/site-packages/djlint/rules/T045.py +281 -0
  1094. package/python/lib/python3.14/site-packages/djlint/rules/__init__.py +0 -0
  1095. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/D058.cpython-314.pyc +0 -0
  1096. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/D059.cpython-314.pyc +0 -0
  1097. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H009.cpython-314.pyc +0 -0
  1098. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H012.cpython-314.pyc +0 -0
  1099. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H014.cpython-314.pyc +0 -0
  1100. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H016.cpython-314.pyc +0 -0
  1101. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H022.cpython-314.pyc +0 -0
  1102. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H025.cpython-314.pyc +0 -0
  1103. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H036.cpython-314.pyc +0 -0
  1104. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H037.cpython-314.pyc +0 -0
  1105. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H041.cpython-314.pyc +0 -0
  1106. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H042.cpython-314.pyc +0 -0
  1107. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H044.cpython-314.pyc +0 -0
  1108. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H047.cpython-314.pyc +0 -0
  1109. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H048.cpython-314.pyc +0 -0
  1110. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H051.cpython-314.pyc +0 -0
  1111. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H053.cpython-314.pyc +0 -0
  1112. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H054.cpython-314.pyc +0 -0
  1113. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/H057.cpython-314.pyc +0 -0
  1114. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T001.cpython-314.pyc +0 -0
  1115. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T002.cpython-314.pyc +0 -0
  1116. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T003.cpython-314.pyc +0 -0
  1117. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T027.cpython-314.pyc +0 -0
  1118. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T038.cpython-314.pyc +0 -0
  1119. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T039.cpython-314.pyc +0 -0
  1120. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T041.cpython-314.pyc +0 -0
  1121. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T042.cpython-314.pyc +0 -0
  1122. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T043.cpython-314.pyc +0 -0
  1123. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T044.cpython-314.pyc +0 -0
  1124. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/T045.cpython-314.pyc +0 -0
  1125. package/python/lib/python3.14/site-packages/djlint/rules/__pycache__/__init__.cpython-314.pyc +0 -0
  1126. package/python/lib/python3.14/site-packages/djlint/rules.yaml +482 -0
  1127. package/python/lib/python3.14/site-packages/djlint/sarif_output.py +171 -0
  1128. package/python/lib/python3.14/site-packages/djlint/server.py +983 -0
  1129. package/python/lib/python3.14/site-packages/djlint/settings.py +2381 -0
  1130. package/python/lib/python3.14/site-packages/djlint/src.py +192 -0
  1131. package/python/lib/python3.14/site-packages/djlint/types.pyi +20 -0
  1132. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/INSTALLER +1 -0
  1133. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/METADATA +236 -0
  1134. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/RECORD +73 -0
  1135. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/REQUESTED +0 -0
  1136. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/WHEEL +4 -0
  1137. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/entry_points.txt +2 -0
  1138. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/licenses/LICENSE +675 -0
  1139. package/python/lib/python3.14/site-packages/djlint-1.54.0.dist-info/licenses/LICENSE-THIRD-PARTY +271 -0
  1140. package/python/lib/python3.14/site-packages/editorconfig/__init__.py +20 -0
  1141. package/python/lib/python3.14/site-packages/editorconfig/__main__.py +83 -0
  1142. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/__init__.cpython-314.pyc +0 -0
  1143. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/__main__.cpython-314.pyc +0 -0
  1144. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/exceptions.cpython-314.pyc +0 -0
  1145. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/fnmatch.cpython-314.pyc +0 -0
  1146. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/handler.cpython-314.pyc +0 -0
  1147. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/ini.cpython-314.pyc +0 -0
  1148. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/version.cpython-314.pyc +0 -0
  1149. package/python/lib/python3.14/site-packages/editorconfig/__pycache__/versiontools.cpython-314.pyc +0 -0
  1150. package/python/lib/python3.14/site-packages/editorconfig/exceptions.py +24 -0
  1151. package/python/lib/python3.14/site-packages/editorconfig/fnmatch.py +224 -0
  1152. package/python/lib/python3.14/site-packages/editorconfig/handler.py +128 -0
  1153. package/python/lib/python3.14/site-packages/editorconfig/ini.py +173 -0
  1154. package/python/lib/python3.14/site-packages/editorconfig/py.typed +0 -0
  1155. package/python/lib/python3.14/site-packages/editorconfig/version.py +1 -0
  1156. package/python/lib/python3.14/site-packages/editorconfig/versiontools.py +36 -0
  1157. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/INSTALLER +1 -0
  1158. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/METADATA +116 -0
  1159. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/RECORD +20 -0
  1160. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/REQUESTED +0 -0
  1161. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/WHEEL +5 -0
  1162. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/entry_points.txt +2 -0
  1163. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/licenses/COPYING +11 -0
  1164. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.BSD +22 -0
  1165. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/licenses/LICENSE.PSF +192 -0
  1166. package/python/lib/python3.14/site-packages/editorconfig-0.17.1.dist-info/top_level.txt +1 -0
  1167. package/python/lib/python3.14/site-packages/jsbeautifier/__init__.py +309 -0
  1168. package/python/lib/python3.14/site-packages/jsbeautifier/__pycache__/__init__.cpython-314.pyc +0 -0
  1169. package/python/lib/python3.14/site-packages/jsbeautifier/__pycache__/__version__.cpython-314.pyc +0 -0
  1170. package/python/lib/python3.14/site-packages/jsbeautifier/__version__.py +1 -0
  1171. package/python/lib/python3.14/site-packages/jsbeautifier/cli/__init__.py +210 -0
  1172. package/python/lib/python3.14/site-packages/jsbeautifier/cli/__pycache__/__init__.cpython-314.pyc +0 -0
  1173. package/python/lib/python3.14/site-packages/jsbeautifier/core/__init__.py +1 -0
  1174. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/__init__.cpython-314.pyc +0 -0
  1175. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/directives.cpython-314.pyc +0 -0
  1176. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/inputscanner.cpython-314.pyc +0 -0
  1177. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/options.cpython-314.pyc +0 -0
  1178. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/output.cpython-314.pyc +0 -0
  1179. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/pattern.cpython-314.pyc +0 -0
  1180. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/templatablepattern.cpython-314.pyc +0 -0
  1181. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/token.cpython-314.pyc +0 -0
  1182. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/tokenizer.cpython-314.pyc +0 -0
  1183. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/tokenstream.cpython-314.pyc +0 -0
  1184. package/python/lib/python3.14/site-packages/jsbeautifier/core/__pycache__/whitespacepattern.cpython-314.pyc +0 -0
  1185. package/python/lib/python3.14/site-packages/jsbeautifier/core/directives.py +55 -0
  1186. package/python/lib/python3.14/site-packages/jsbeautifier/core/inputscanner.py +139 -0
  1187. package/python/lib/python3.14/site-packages/jsbeautifier/core/options.py +230 -0
  1188. package/python/lib/python3.14/site-packages/jsbeautifier/core/output.py +352 -0
  1189. package/python/lib/python3.14/site-packages/jsbeautifier/core/pattern.py +83 -0
  1190. package/python/lib/python3.14/site-packages/jsbeautifier/core/templatablepattern.py +192 -0
  1191. package/python/lib/python3.14/site-packages/jsbeautifier/core/token.py +38 -0
  1192. package/python/lib/python3.14/site-packages/jsbeautifier/core/tokenizer.py +138 -0
  1193. package/python/lib/python3.14/site-packages/jsbeautifier/core/tokenstream.py +74 -0
  1194. package/python/lib/python3.14/site-packages/jsbeautifier/core/whitespacepattern.py +73 -0
  1195. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__init__.py +1 -0
  1196. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/__init__.cpython-314.pyc +0 -0
  1197. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/acorn.cpython-314.pyc +0 -0
  1198. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/beautifier.cpython-314.pyc +0 -0
  1199. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/options.cpython-314.pyc +0 -0
  1200. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/__pycache__/tokenizer.cpython-314.pyc +0 -0
  1201. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/acorn.py +81 -0
  1202. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/beautifier.py +1647 -0
  1203. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/options.py +102 -0
  1204. package/python/lib/python3.14/site-packages/jsbeautifier/javascript/tokenizer.py +628 -0
  1205. package/python/lib/python3.14/site-packages/jsbeautifier/tests/__init__.py +1 -0
  1206. package/python/lib/python3.14/site-packages/jsbeautifier/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  1207. package/python/lib/python3.14/site-packages/jsbeautifier/tests/__pycache__/testindentation.cpython-314.pyc +0 -0
  1208. package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/__init__.py +1 -0
  1209. package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/__pycache__/__init__.cpython-314.pyc +0 -0
  1210. package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/__pycache__/tests.cpython-314.pyc +0 -0
  1211. package/python/lib/python3.14/site-packages/jsbeautifier/tests/generated/tests.py +10470 -0
  1212. package/python/lib/python3.14/site-packages/jsbeautifier/tests/testindentation.py +49 -0
  1213. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__init__.py +73 -0
  1214. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/__init__.cpython-314.pyc +0 -0
  1215. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/evalbased.cpython-314.pyc +0 -0
  1216. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/javascriptobfuscator.cpython-314.pyc +0 -0
  1217. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/myobfuscate.cpython-314.pyc +0 -0
  1218. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/packer.cpython-314.pyc +0 -0
  1219. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/__pycache__/urlencode.cpython-314.pyc +0 -0
  1220. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/evalbased.py +44 -0
  1221. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/javascriptobfuscator.py +61 -0
  1222. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/myobfuscate.py +83 -0
  1223. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/packer.py +158 -0
  1224. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__init__.py +2 -0
  1225. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  1226. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testjavascriptobfuscator.cpython-314.pyc +0 -0
  1227. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testmyobfuscate.cpython-314.pyc +0 -0
  1228. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testpacker.cpython-314.pyc +0 -0
  1229. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/__pycache__/testurlencode.cpython-314.pyc +0 -0
  1230. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +59 -0
  1231. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testmyobfuscate.py +48 -0
  1232. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testpacker.py +72 -0
  1233. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/tests/testurlencode.py +46 -0
  1234. package/python/lib/python3.14/site-packages/jsbeautifier/unpackers/urlencode.py +32 -0
  1235. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/INSTALLER +1 -0
  1236. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/METADATA +18 -0
  1237. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/RECORD +42 -0
  1238. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/REQUESTED +0 -0
  1239. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/WHEEL +5 -0
  1240. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/entry_points.txt +2 -0
  1241. package/python/lib/python3.14/site-packages/jsbeautifier-2.0.3.dist-info/top_level.txt +1 -0
  1242. package/python/lib/python3.14/site-packages/json5/__init__.py +30 -0
  1243. package/python/lib/python3.14/site-packages/json5/__main__.py +22 -0
  1244. package/python/lib/python3.14/site-packages/json5/__pycache__/__init__.cpython-314.pyc +0 -0
  1245. package/python/lib/python3.14/site-packages/json5/__pycache__/__main__.cpython-314.pyc +0 -0
  1246. package/python/lib/python3.14/site-packages/json5/__pycache__/host.cpython-314.pyc +0 -0
  1247. package/python/lib/python3.14/site-packages/json5/__pycache__/lib.cpython-314.pyc +0 -0
  1248. package/python/lib/python3.14/site-packages/json5/__pycache__/parser.cpython-314.pyc +0 -0
  1249. package/python/lib/python3.14/site-packages/json5/__pycache__/tool.cpython-314.pyc +0 -0
  1250. package/python/lib/python3.14/site-packages/json5/__pycache__/version.cpython-314.pyc +0 -0
  1251. package/python/lib/python3.14/site-packages/json5/host.py +53 -0
  1252. package/python/lib/python3.14/site-packages/json5/lib.py +1007 -0
  1253. package/python/lib/python3.14/site-packages/json5/parser.py +1376 -0
  1254. package/python/lib/python3.14/site-packages/json5/py.typed +0 -0
  1255. package/python/lib/python3.14/site-packages/json5/tool.py +198 -0
  1256. package/python/lib/python3.14/site-packages/json5/version.py +18 -0
  1257. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/INSTALLER +1 -0
  1258. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/METADATA +585 -0
  1259. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/RECORD +17 -0
  1260. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/REQUESTED +0 -0
  1261. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/WHEEL +5 -0
  1262. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/entry_points.txt +2 -0
  1263. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/licenses/LICENSE +281 -0
  1264. package/python/lib/python3.14/site-packages/json5-0.17.3.dist-info/top_level.txt +1 -0
  1265. package/python/lib/python3.14/site-packages/pathspec/__init__.py +68 -0
  1266. package/python/lib/python3.14/site-packages/pathspec/__pycache__/__init__.cpython-314.pyc +0 -0
  1267. package/python/lib/python3.14/site-packages/pathspec/__pycache__/_meta.cpython-314.pyc +0 -0
  1268. package/python/lib/python3.14/site-packages/pathspec/__pycache__/_typing.cpython-314.pyc +0 -0
  1269. package/python/lib/python3.14/site-packages/pathspec/__pycache__/_version.cpython-314.pyc +0 -0
  1270. package/python/lib/python3.14/site-packages/pathspec/__pycache__/backend.cpython-314.pyc +0 -0
  1271. package/python/lib/python3.14/site-packages/pathspec/__pycache__/gitignore.cpython-314.pyc +0 -0
  1272. package/python/lib/python3.14/site-packages/pathspec/__pycache__/pathspec.cpython-314.pyc +0 -0
  1273. package/python/lib/python3.14/site-packages/pathspec/__pycache__/pattern.cpython-314.pyc +0 -0
  1274. package/python/lib/python3.14/site-packages/pathspec/__pycache__/util.cpython-314.pyc +0 -0
  1275. package/python/lib/python3.14/site-packages/pathspec/_backends/__init__.py +4 -0
  1276. package/python/lib/python3.14/site-packages/pathspec/_backends/__pycache__/__init__.cpython-314.pyc +0 -0
  1277. package/python/lib/python3.14/site-packages/pathspec/_backends/__pycache__/_utils.cpython-314.pyc +0 -0
  1278. package/python/lib/python3.14/site-packages/pathspec/_backends/__pycache__/agg.cpython-314.pyc +0 -0
  1279. package/python/lib/python3.14/site-packages/pathspec/_backends/_utils.py +45 -0
  1280. package/python/lib/python3.14/site-packages/pathspec/_backends/agg.py +104 -0
  1281. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__init__.py +0 -0
  1282. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/__init__.cpython-314.pyc +0 -0
  1283. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/_base.cpython-314.pyc +0 -0
  1284. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/base.cpython-314.pyc +0 -0
  1285. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/gitignore.cpython-314.pyc +0 -0
  1286. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/__pycache__/pathspec.cpython-314.pyc +0 -0
  1287. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/_base.py +78 -0
  1288. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/base.py +24 -0
  1289. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/gitignore.py +250 -0
  1290. package/python/lib/python3.14/site-packages/pathspec/_backends/hyperscan/pathspec.py +257 -0
  1291. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__init__.py +0 -0
  1292. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/__init__.cpython-314.pyc +0 -0
  1293. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/_base.cpython-314.pyc +0 -0
  1294. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/base.cpython-314.pyc +0 -0
  1295. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/gitignore.cpython-314.pyc +0 -0
  1296. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/__pycache__/pathspec.cpython-314.pyc +0 -0
  1297. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/_base.py +95 -0
  1298. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/base.py +18 -0
  1299. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/gitignore.py +180 -0
  1300. package/python/lib/python3.14/site-packages/pathspec/_backends/re2/pathspec.py +189 -0
  1301. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__init__.py +0 -0
  1302. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__pycache__/__init__.cpython-314.pyc +0 -0
  1303. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__pycache__/gitignore.cpython-314.pyc +0 -0
  1304. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/__pycache__/pathspec.cpython-314.pyc +0 -0
  1305. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/gitignore.py +104 -0
  1306. package/python/lib/python3.14/site-packages/pathspec/_backends/simple/pathspec.py +76 -0
  1307. package/python/lib/python3.14/site-packages/pathspec/_meta.py +70 -0
  1308. package/python/lib/python3.14/site-packages/pathspec/_typing.py +64 -0
  1309. package/python/lib/python3.14/site-packages/pathspec/_version.py +5 -0
  1310. package/python/lib/python3.14/site-packages/pathspec/backend.py +51 -0
  1311. package/python/lib/python3.14/site-packages/pathspec/gitignore.py +172 -0
  1312. package/python/lib/python3.14/site-packages/pathspec/pathspec.py +527 -0
  1313. package/python/lib/python3.14/site-packages/pathspec/pattern.py +259 -0
  1314. package/python/lib/python3.14/site-packages/pathspec/patterns/__init__.py +12 -0
  1315. package/python/lib/python3.14/site-packages/pathspec/patterns/__pycache__/__init__.cpython-314.pyc +0 -0
  1316. package/python/lib/python3.14/site-packages/pathspec/patterns/__pycache__/gitwildmatch.cpython-314.pyc +0 -0
  1317. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__init__.py +17 -0
  1318. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/__init__.cpython-314.pyc +0 -0
  1319. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/base.cpython-314.pyc +0 -0
  1320. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/basic.cpython-314.pyc +0 -0
  1321. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/__pycache__/spec.cpython-314.pyc +0 -0
  1322. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/base.py +210 -0
  1323. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/basic.py +320 -0
  1324. package/python/lib/python3.14/site-packages/pathspec/patterns/gitignore/spec.py +344 -0
  1325. package/python/lib/python3.14/site-packages/pathspec/patterns/gitwildmatch.py +52 -0
  1326. package/python/lib/python3.14/site-packages/pathspec/py.typed +1 -0
  1327. package/python/lib/python3.14/site-packages/pathspec/util.py +864 -0
  1328. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/INSTALLER +1 -0
  1329. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/METADATA +392 -0
  1330. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/RECORD +38 -0
  1331. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/REQUESTED +0 -0
  1332. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/WHEEL +4 -0
  1333. package/python/lib/python3.14/site-packages/pathspec-1.1.1.dist-info/licenses/LICENSE +373 -0
  1334. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/INSTALLER +1 -0
  1335. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/METADATA +59 -0
  1336. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/RECORD +26 -0
  1337. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/REQUESTED +0 -0
  1338. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/WHEEL +7 -0
  1339. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/licenses/LICENSE +20 -0
  1340. package/python/lib/python3.14/site-packages/pyyaml-6.0.3.dist-info/top_level.txt +2 -0
  1341. package/python/lib/python3.14/site-packages/regex/__init__.py +3 -0
  1342. package/python/lib/python3.14/site-packages/regex/__pycache__/__init__.cpython-314.pyc +0 -0
  1343. package/python/lib/python3.14/site-packages/regex/__pycache__/_main.cpython-314.pyc +0 -0
  1344. package/python/lib/python3.14/site-packages/regex/__pycache__/_regex_core.cpython-314.pyc +0 -0
  1345. package/python/lib/python3.14/site-packages/regex/_main.py +759 -0
  1346. package/python/lib/python3.14/site-packages/regex/_regex.cpython-314-s390x-linux-gnu.so +0 -0
  1347. package/python/lib/python3.14/site-packages/regex/_regex_core.py +4689 -0
  1348. package/python/lib/python3.14/site-packages/regex/tests/__pycache__/test_regex.cpython-314.pyc +0 -0
  1349. package/python/lib/python3.14/site-packages/regex/tests/test_regex.py +4557 -0
  1350. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/INSTALLER +1 -0
  1351. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/METADATA +1060 -0
  1352. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/RECORD +12 -0
  1353. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/REQUESTED +0 -0
  1354. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/WHEEL +7 -0
  1355. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/licenses/LICENSE.txt +208 -0
  1356. package/python/lib/python3.14/site-packages/regex-2026.11.9.dist-info/top_level.txt +1 -0
  1357. package/python/lib/python3.14/site-packages/yaml/__init__.py +390 -0
  1358. package/python/lib/python3.14/site-packages/yaml/__pycache__/__init__.cpython-314.pyc +0 -0
  1359. package/python/lib/python3.14/site-packages/yaml/__pycache__/composer.cpython-314.pyc +0 -0
  1360. package/python/lib/python3.14/site-packages/yaml/__pycache__/constructor.cpython-314.pyc +0 -0
  1361. package/python/lib/python3.14/site-packages/yaml/__pycache__/cyaml.cpython-314.pyc +0 -0
  1362. package/python/lib/python3.14/site-packages/yaml/__pycache__/dumper.cpython-314.pyc +0 -0
  1363. package/python/lib/python3.14/site-packages/yaml/__pycache__/emitter.cpython-314.pyc +0 -0
  1364. package/python/lib/python3.14/site-packages/yaml/__pycache__/error.cpython-314.pyc +0 -0
  1365. package/python/lib/python3.14/site-packages/yaml/__pycache__/events.cpython-314.pyc +0 -0
  1366. package/python/lib/python3.14/site-packages/yaml/__pycache__/loader.cpython-314.pyc +0 -0
  1367. package/python/lib/python3.14/site-packages/yaml/__pycache__/nodes.cpython-314.pyc +0 -0
  1368. package/python/lib/python3.14/site-packages/yaml/__pycache__/parser.cpython-314.pyc +0 -0
  1369. package/python/lib/python3.14/site-packages/yaml/__pycache__/reader.cpython-314.pyc +0 -0
  1370. package/python/lib/python3.14/site-packages/yaml/__pycache__/representer.cpython-314.pyc +0 -0
  1371. package/python/lib/python3.14/site-packages/yaml/__pycache__/resolver.cpython-314.pyc +0 -0
  1372. package/python/lib/python3.14/site-packages/yaml/__pycache__/scanner.cpython-314.pyc +0 -0
  1373. package/python/lib/python3.14/site-packages/yaml/__pycache__/serializer.cpython-314.pyc +0 -0
  1374. package/python/lib/python3.14/site-packages/yaml/__pycache__/tokens.cpython-314.pyc +0 -0
  1375. package/python/lib/python3.14/site-packages/yaml/_yaml.cpython-314-s390x-linux-gnu.so +0 -0
  1376. package/python/lib/python3.14/site-packages/yaml/composer.py +139 -0
  1377. package/python/lib/python3.14/site-packages/yaml/constructor.py +748 -0
  1378. package/python/lib/python3.14/site-packages/yaml/cyaml.py +101 -0
  1379. package/python/lib/python3.14/site-packages/yaml/dumper.py +62 -0
  1380. package/python/lib/python3.14/site-packages/yaml/emitter.py +1137 -0
  1381. package/python/lib/python3.14/site-packages/yaml/error.py +75 -0
  1382. package/python/lib/python3.14/site-packages/yaml/events.py +86 -0
  1383. package/python/lib/python3.14/site-packages/yaml/loader.py +63 -0
  1384. package/python/lib/python3.14/site-packages/yaml/nodes.py +49 -0
  1385. package/python/lib/python3.14/site-packages/yaml/parser.py +589 -0
  1386. package/python/lib/python3.14/site-packages/yaml/reader.py +185 -0
  1387. package/python/lib/python3.14/site-packages/yaml/representer.py +389 -0
  1388. package/python/lib/python3.14/site-packages/yaml/resolver.py +227 -0
  1389. package/python/lib/python3.14/site-packages/yaml/scanner.py +1435 -0
  1390. package/python/lib/python3.14/site-packages/yaml/serializer.py +111 -0
  1391. package/python/lib/python3.14/site-packages/yaml/tokens.py +104 -0
  1392. package/python/lib/python3.14/site.py +779 -0
  1393. package/python/lib/python3.14/smtplib.py +1121 -0
  1394. package/python/lib/python3.14/socket.py +994 -0
  1395. package/python/lib/python3.14/socketserver.py +863 -0
  1396. package/python/lib/python3.14/sqlite3/__init__.py +57 -0
  1397. package/python/lib/python3.14/sqlite3/__main__.py +139 -0
  1398. package/python/lib/python3.14/sqlite3/__pycache__/__init__.cpython-314.pyc +0 -0
  1399. package/python/lib/python3.14/sqlite3/__pycache__/__main__.cpython-314.pyc +0 -0
  1400. package/python/lib/python3.14/sqlite3/__pycache__/dbapi2.cpython-314.pyc +0 -0
  1401. package/python/lib/python3.14/sqlite3/__pycache__/dump.cpython-314.pyc +0 -0
  1402. package/python/lib/python3.14/sqlite3/dbapi2.py +96 -0
  1403. package/python/lib/python3.14/sqlite3/dump.py +118 -0
  1404. package/python/lib/python3.14/sre_compile.py +7 -0
  1405. package/python/lib/python3.14/sre_constants.py +7 -0
  1406. package/python/lib/python3.14/sre_parse.py +7 -0
  1407. package/python/lib/python3.14/ssl.py +1552 -0
  1408. package/python/lib/python3.14/stat.py +212 -0
  1409. package/python/lib/python3.14/statistics.py +1879 -0
  1410. package/python/lib/python3.14/string/__init__.py +332 -0
  1411. package/python/lib/python3.14/string/__pycache__/__init__.cpython-314.pyc +0 -0
  1412. package/python/lib/python3.14/string/__pycache__/templatelib.cpython-314.pyc +0 -0
  1413. package/python/lib/python3.14/string/templatelib.py +33 -0
  1414. package/python/lib/python3.14/stringprep.py +456 -0
  1415. package/python/lib/python3.14/struct.py +15 -0
  1416. package/python/lib/python3.14/subprocess.py +2257 -0
  1417. package/python/lib/python3.14/symtable.py +451 -0
  1418. package/python/lib/python3.14/sysconfig/__init__.py +798 -0
  1419. package/python/lib/python3.14/sysconfig/__main__.py +276 -0
  1420. package/python/lib/python3.14/sysconfig/__pycache__/__init__.cpython-314.pyc +0 -0
  1421. package/python/lib/python3.14/sysconfig/__pycache__/__main__.cpython-314.pyc +0 -0
  1422. package/python/lib/python3.14/tabnanny.py +338 -0
  1423. package/python/lib/python3.14/tarfile.py +3228 -0
  1424. package/python/lib/python3.14/tempfile.py +1057 -0
  1425. package/python/lib/python3.14/textwrap.py +475 -0
  1426. package/python/lib/python3.14/this.py +28 -0
  1427. package/python/lib/python3.14/threading.py +1643 -0
  1428. package/python/lib/python3.14/timeit.py +378 -0
  1429. package/python/lib/python3.14/token.py +144 -0
  1430. package/python/lib/python3.14/tokenize.py +598 -0
  1431. package/python/lib/python3.14/tomllib/__init__.py +10 -0
  1432. package/python/lib/python3.14/tomllib/__pycache__/__init__.cpython-314.pyc +0 -0
  1433. package/python/lib/python3.14/tomllib/__pycache__/_parser.cpython-314.pyc +0 -0
  1434. package/python/lib/python3.14/tomllib/__pycache__/_re.cpython-314.pyc +0 -0
  1435. package/python/lib/python3.14/tomllib/__pycache__/_types.cpython-314.pyc +0 -0
  1436. package/python/lib/python3.14/tomllib/_parser.py +765 -0
  1437. package/python/lib/python3.14/tomllib/_re.py +113 -0
  1438. package/python/lib/python3.14/tomllib/_types.py +10 -0
  1439. package/python/lib/python3.14/tomllib/mypy.ini +15 -0
  1440. package/python/lib/python3.14/trace.py +751 -0
  1441. package/python/lib/python3.14/traceback.py +1751 -0
  1442. package/python/lib/python3.14/tracemalloc.py +560 -0
  1443. package/python/lib/python3.14/tty.py +73 -0
  1444. package/python/lib/python3.14/types.py +345 -0
  1445. package/python/lib/python3.14/typing.py +3866 -0
  1446. package/python/lib/python3.14/unittest/__init__.py +80 -0
  1447. package/python/lib/python3.14/unittest/__main__.py +18 -0
  1448. package/python/lib/python3.14/unittest/__pycache__/__init__.cpython-314.pyc +0 -0
  1449. package/python/lib/python3.14/unittest/__pycache__/__main__.cpython-314.pyc +0 -0
  1450. package/python/lib/python3.14/unittest/__pycache__/_log.cpython-314.pyc +0 -0
  1451. package/python/lib/python3.14/unittest/__pycache__/async_case.cpython-314.pyc +0 -0
  1452. package/python/lib/python3.14/unittest/__pycache__/case.cpython-314.pyc +0 -0
  1453. package/python/lib/python3.14/unittest/__pycache__/loader.cpython-314.pyc +0 -0
  1454. package/python/lib/python3.14/unittest/__pycache__/main.cpython-314.pyc +0 -0
  1455. package/python/lib/python3.14/unittest/__pycache__/mock.cpython-314.pyc +0 -0
  1456. package/python/lib/python3.14/unittest/__pycache__/result.cpython-314.pyc +0 -0
  1457. package/python/lib/python3.14/unittest/__pycache__/runner.cpython-314.pyc +0 -0
  1458. package/python/lib/python3.14/unittest/__pycache__/signals.cpython-314.pyc +0 -0
  1459. package/python/lib/python3.14/unittest/__pycache__/suite.cpython-314.pyc +0 -0
  1460. package/python/lib/python3.14/unittest/__pycache__/util.cpython-314.pyc +0 -0
  1461. package/python/lib/python3.14/unittest/_log.py +86 -0
  1462. package/python/lib/python3.14/unittest/async_case.py +158 -0
  1463. package/python/lib/python3.14/unittest/case.py +1628 -0
  1464. package/python/lib/python3.14/unittest/loader.py +491 -0
  1465. package/python/lib/python3.14/unittest/main.py +280 -0
  1466. package/python/lib/python3.14/unittest/mock.py +3208 -0
  1467. package/python/lib/python3.14/unittest/result.py +259 -0
  1468. package/python/lib/python3.14/unittest/runner.py +313 -0
  1469. package/python/lib/python3.14/unittest/signals.py +71 -0
  1470. package/python/lib/python3.14/unittest/suite.py +379 -0
  1471. package/python/lib/python3.14/unittest/util.py +170 -0
  1472. package/python/lib/python3.14/urllib/__init__.py +0 -0
  1473. package/python/lib/python3.14/urllib/__pycache__/__init__.cpython-314.pyc +0 -0
  1474. package/python/lib/python3.14/urllib/__pycache__/error.cpython-314.pyc +0 -0
  1475. package/python/lib/python3.14/urllib/__pycache__/parse.cpython-314.pyc +0 -0
  1476. package/python/lib/python3.14/urllib/__pycache__/request.cpython-314.pyc +0 -0
  1477. package/python/lib/python3.14/urllib/__pycache__/response.cpython-314.pyc +0 -0
  1478. package/python/lib/python3.14/urllib/__pycache__/robotparser.cpython-314.pyc +0 -0
  1479. package/python/lib/python3.14/urllib/error.py +74 -0
  1480. package/python/lib/python3.14/urllib/parse.py +1289 -0
  1481. package/python/lib/python3.14/urllib/request.py +2175 -0
  1482. package/python/lib/python3.14/urllib/response.py +84 -0
  1483. package/python/lib/python3.14/urllib/robotparser.py +363 -0
  1484. package/python/lib/python3.14/uuid.py +1013 -0
  1485. package/python/lib/python3.14/venv/__init__.py +700 -0
  1486. package/python/lib/python3.14/venv/__main__.py +10 -0
  1487. package/python/lib/python3.14/venv/__pycache__/__init__.cpython-314.pyc +0 -0
  1488. package/python/lib/python3.14/venv/__pycache__/__main__.cpython-314.pyc +0 -0
  1489. package/python/lib/python3.14/venv/scripts/common/Activate.ps1 +248 -0
  1490. package/python/lib/python3.14/venv/scripts/common/activate +76 -0
  1491. package/python/lib/python3.14/venv/scripts/common/activate.fish +69 -0
  1492. package/python/lib/python3.14/venv/scripts/posix/activate.csh +29 -0
  1493. package/python/lib/python3.14/warnings.py +99 -0
  1494. package/python/lib/python3.14/wave.py +665 -0
  1495. package/python/lib/python3.14/weakref.py +574 -0
  1496. package/python/lib/python3.14/webbrowser.py +763 -0
  1497. package/python/lib/python3.14/wsgiref/__init__.py +25 -0
  1498. package/python/lib/python3.14/wsgiref/__pycache__/__init__.cpython-314.pyc +0 -0
  1499. package/python/lib/python3.14/wsgiref/__pycache__/handlers.cpython-314.pyc +0 -0
  1500. package/python/lib/python3.14/wsgiref/__pycache__/headers.cpython-314.pyc +0 -0
  1501. package/python/lib/python3.14/wsgiref/__pycache__/simple_server.cpython-314.pyc +0 -0
  1502. package/python/lib/python3.14/wsgiref/__pycache__/types.cpython-314.pyc +0 -0
  1503. package/python/lib/python3.14/wsgiref/__pycache__/util.cpython-314.pyc +0 -0
  1504. package/python/lib/python3.14/wsgiref/__pycache__/validate.cpython-314.pyc +0 -0
  1505. package/python/lib/python3.14/wsgiref/handlers.py +575 -0
  1506. package/python/lib/python3.14/wsgiref/headers.py +192 -0
  1507. package/python/lib/python3.14/wsgiref/simple_server.py +161 -0
  1508. package/python/lib/python3.14/wsgiref/types.py +54 -0
  1509. package/python/lib/python3.14/wsgiref/util.py +159 -0
  1510. package/python/lib/python3.14/wsgiref/validate.py +438 -0
  1511. package/python/lib/python3.14/xml/__init__.py +20 -0
  1512. package/python/lib/python3.14/xml/__pycache__/__init__.cpython-314.pyc +0 -0
  1513. package/python/lib/python3.14/xml/dom/NodeFilter.py +27 -0
  1514. package/python/lib/python3.14/xml/dom/__init__.py +140 -0
  1515. package/python/lib/python3.14/xml/dom/__pycache__/NodeFilter.cpython-314.pyc +0 -0
  1516. package/python/lib/python3.14/xml/dom/__pycache__/__init__.cpython-314.pyc +0 -0
  1517. package/python/lib/python3.14/xml/dom/__pycache__/domreg.cpython-314.pyc +0 -0
  1518. package/python/lib/python3.14/xml/dom/__pycache__/expatbuilder.cpython-314.pyc +0 -0
  1519. package/python/lib/python3.14/xml/dom/__pycache__/minicompat.cpython-314.pyc +0 -0
  1520. package/python/lib/python3.14/xml/dom/__pycache__/minidom.cpython-314.pyc +0 -0
  1521. package/python/lib/python3.14/xml/dom/__pycache__/pulldom.cpython-314.pyc +0 -0
  1522. package/python/lib/python3.14/xml/dom/__pycache__/xmlbuilder.cpython-314.pyc +0 -0
  1523. package/python/lib/python3.14/xml/dom/domreg.py +99 -0
  1524. package/python/lib/python3.14/xml/dom/expatbuilder.py +964 -0
  1525. package/python/lib/python3.14/xml/dom/minicompat.py +109 -0
  1526. package/python/lib/python3.14/xml/dom/minidom.py +2027 -0
  1527. package/python/lib/python3.14/xml/dom/pulldom.py +350 -0
  1528. package/python/lib/python3.14/xml/dom/xmlbuilder.py +389 -0
  1529. package/python/lib/python3.14/xml/etree/ElementInclude.py +186 -0
  1530. package/python/lib/python3.14/xml/etree/ElementPath.py +430 -0
  1531. package/python/lib/python3.14/xml/etree/ElementTree.py +2093 -0
  1532. package/python/lib/python3.14/xml/etree/__init__.py +33 -0
  1533. package/python/lib/python3.14/xml/etree/__pycache__/ElementInclude.cpython-314.pyc +0 -0
  1534. package/python/lib/python3.14/xml/etree/__pycache__/ElementPath.cpython-314.pyc +0 -0
  1535. package/python/lib/python3.14/xml/etree/__pycache__/ElementTree.cpython-314.pyc +0 -0
  1536. package/python/lib/python3.14/xml/etree/__pycache__/__init__.cpython-314.pyc +0 -0
  1537. package/python/lib/python3.14/xml/etree/__pycache__/cElementTree.cpython-314.pyc +0 -0
  1538. package/python/lib/python3.14/xml/etree/cElementTree.py +3 -0
  1539. package/python/lib/python3.14/xml/parsers/__init__.py +8 -0
  1540. package/python/lib/python3.14/xml/parsers/__pycache__/__init__.cpython-314.pyc +0 -0
  1541. package/python/lib/python3.14/xml/parsers/__pycache__/expat.cpython-314.pyc +0 -0
  1542. package/python/lib/python3.14/xml/parsers/expat.py +8 -0
  1543. package/python/lib/python3.14/xml/sax/__init__.py +109 -0
  1544. package/python/lib/python3.14/xml/sax/__pycache__/__init__.cpython-314.pyc +0 -0
  1545. package/python/lib/python3.14/xml/sax/__pycache__/_exceptions.cpython-314.pyc +0 -0
  1546. package/python/lib/python3.14/xml/sax/__pycache__/expatreader.cpython-314.pyc +0 -0
  1547. package/python/lib/python3.14/xml/sax/__pycache__/handler.cpython-314.pyc +0 -0
  1548. package/python/lib/python3.14/xml/sax/__pycache__/saxutils.cpython-314.pyc +0 -0
  1549. package/python/lib/python3.14/xml/sax/__pycache__/xmlreader.cpython-314.pyc +0 -0
  1550. package/python/lib/python3.14/xml/sax/_exceptions.py +127 -0
  1551. package/python/lib/python3.14/xml/sax/expatreader.py +454 -0
  1552. package/python/lib/python3.14/xml/sax/handler.py +387 -0
  1553. package/python/lib/python3.14/xml/sax/saxutils.py +370 -0
  1554. package/python/lib/python3.14/xml/sax/xmlreader.py +379 -0
  1555. package/python/lib/python3.14/xmlrpc/__init__.py +1 -0
  1556. package/python/lib/python3.14/xmlrpc/__pycache__/__init__.cpython-314.pyc +0 -0
  1557. package/python/lib/python3.14/xmlrpc/__pycache__/client.cpython-314.pyc +0 -0
  1558. package/python/lib/python3.14/xmlrpc/__pycache__/server.cpython-314.pyc +0 -0
  1559. package/python/lib/python3.14/xmlrpc/client.py +1503 -0
  1560. package/python/lib/python3.14/xmlrpc/server.py +1003 -0
  1561. package/python/lib/python3.14/zipapp.py +231 -0
  1562. package/python/lib/python3.14/zipfile/__init__.py +2488 -0
  1563. package/python/lib/python3.14/zipfile/__main__.py +4 -0
  1564. package/python/lib/python3.14/zipfile/__pycache__/__init__.cpython-314.pyc +0 -0
  1565. package/python/lib/python3.14/zipfile/__pycache__/__main__.cpython-314.pyc +0 -0
  1566. package/python/lib/python3.14/zipfile/_path/__init__.py +455 -0
  1567. package/python/lib/python3.14/zipfile/_path/__pycache__/__init__.cpython-314.pyc +0 -0
  1568. package/python/lib/python3.14/zipfile/_path/__pycache__/glob.cpython-314.pyc +0 -0
  1569. package/python/lib/python3.14/zipfile/_path/glob.py +113 -0
  1570. package/python/lib/python3.14/zipimport.py +827 -0
  1571. package/python/lib/python3.14/zoneinfo/__init__.py +34 -0
  1572. package/python/lib/python3.14/zoneinfo/__pycache__/__init__.cpython-314.pyc +0 -0
  1573. package/python/lib/python3.14/zoneinfo/__pycache__/_common.cpython-314.pyc +0 -0
  1574. package/python/lib/python3.14/zoneinfo/__pycache__/_tzpath.cpython-314.pyc +0 -0
  1575. package/python/lib/python3.14/zoneinfo/__pycache__/_zoneinfo.cpython-314.pyc +0 -0
  1576. package/python/lib/python3.14/zoneinfo/_common.py +172 -0
  1577. package/python/lib/python3.14/zoneinfo/_tzpath.py +189 -0
  1578. package/python/lib/python3.14/zoneinfo/_zoneinfo.py +779 -0
  1579. package/python/licenses/LICENSE.bdb.txt +126 -0
  1580. package/python/licenses/LICENSE.bzip2.txt +37 -0
  1581. package/python/licenses/LICENSE.cpython.txt +771 -0
  1582. package/python/licenses/LICENSE.expat.txt +21 -0
  1583. package/python/licenses/LICENSE.libX11.txt +942 -0
  1584. package/python/licenses/LICENSE.libXau.txt +21 -0
  1585. package/python/licenses/LICENSE.libedit.txt +29 -0
  1586. package/python/licenses/LICENSE.libffi.txt +21 -0
  1587. package/python/licenses/LICENSE.liblzma.txt +13 -0
  1588. package/python/licenses/LICENSE.libuuid.txt +27 -0
  1589. package/python/licenses/LICENSE.libxcb.txt +30 -0
  1590. package/python/licenses/LICENSE.mpdecimal.txt +24 -0
  1591. package/python/licenses/LICENSE.ncurses.txt +29 -0
  1592. package/python/licenses/LICENSE.openssl-3.txt +177 -0
  1593. package/python/licenses/LICENSE.sqlite.txt +23 -0
  1594. package/python/licenses/LICENSE.tcl.txt +40 -0
  1595. package/python/licenses/LICENSE.tix.txt +54 -0
  1596. package/python/licenses/LICENSE.zlib-ng.txt +19 -0
  1597. package/python/licenses/LICENSE.zlib.txt +22 -0
  1598. package/python/licenses/LICENSE.zstd.txt +30 -0
@@ -0,0 +1,2789 @@
1
+ # Author: Steven J. Bethard <steven.bethard@gmail.com>.
2
+ # New maintainer as of 29 August 2019: Raymond Hettinger <raymond.hettinger@gmail.com>
3
+
4
+ """Command-line parsing library
5
+
6
+ This module is an optparse-inspired command-line parsing library that:
7
+
8
+ - handles both optional and positional arguments
9
+ - produces highly informative usage messages
10
+ - supports parsers that dispatch to sub-parsers
11
+
12
+ The following is a simple usage example that sums integers from the
13
+ command-line and writes the result to a file::
14
+
15
+ parser = argparse.ArgumentParser(
16
+ description='sum the integers at the command line')
17
+ parser.add_argument(
18
+ 'integers', metavar='int', nargs='+', type=int,
19
+ help='an integer to be summed')
20
+ parser.add_argument(
21
+ '--log',
22
+ help='the file where the sum should be written')
23
+ args = parser.parse_args()
24
+ with (open(args.log, 'w') if args.log is not None
25
+ else contextlib.nullcontext(sys.stdout)) as log:
26
+ log.write('%s' % sum(args.integers))
27
+
28
+ The module contains the following public classes:
29
+
30
+ - ArgumentParser -- The main entry point for command-line parsing. As the
31
+ example above shows, the add_argument() method is used to populate
32
+ the parser with actions for optional and positional arguments. Then
33
+ the parse_args() method is invoked to convert the args at the
34
+ command-line into an object with attributes.
35
+
36
+ - ArgumentError -- The exception raised by ArgumentParser objects when
37
+ there are errors with the parser's actions. Errors raised while
38
+ parsing the command-line are caught by ArgumentParser and emitted
39
+ as command-line messages.
40
+
41
+ - FileType -- A factory for defining types of files to be created. As the
42
+ example above shows, instances of FileType are typically passed as
43
+ the type= argument of add_argument() calls. Deprecated since
44
+ Python 3.14.
45
+
46
+ - Action -- The base class for parser actions. Typically actions are
47
+ selected by passing strings like 'store_true' or 'append_const' to
48
+ the action= argument of add_argument(). However, for greater
49
+ customization of ArgumentParser actions, subclasses of Action may
50
+ be defined and passed as the action= argument.
51
+
52
+ - HelpFormatter, RawDescriptionHelpFormatter, RawTextHelpFormatter,
53
+ ArgumentDefaultsHelpFormatter -- Formatter classes which
54
+ may be passed as the formatter_class= argument to the
55
+ ArgumentParser constructor. HelpFormatter is the default,
56
+ RawDescriptionHelpFormatter and RawTextHelpFormatter tell the parser
57
+ not to change the formatting for help text, and
58
+ ArgumentDefaultsHelpFormatter adds information about argument defaults
59
+ to the help.
60
+
61
+ All other classes in this module are considered implementation details.
62
+ (Also note that HelpFormatter and RawDescriptionHelpFormatter are only
63
+ considered public as object names -- the API of the formatter objects is
64
+ still considered an implementation detail.)
65
+ """
66
+
67
+ __version__ = '1.1'
68
+ __all__ = [
69
+ 'ArgumentParser',
70
+ 'ArgumentError',
71
+ 'ArgumentTypeError',
72
+ 'BooleanOptionalAction',
73
+ 'FileType',
74
+ 'HelpFormatter',
75
+ 'ArgumentDefaultsHelpFormatter',
76
+ 'RawDescriptionHelpFormatter',
77
+ 'RawTextHelpFormatter',
78
+ 'MetavarTypeHelpFormatter',
79
+ 'Namespace',
80
+ 'Action',
81
+ 'ONE_OR_MORE',
82
+ 'OPTIONAL',
83
+ 'PARSER',
84
+ 'REMAINDER',
85
+ 'SUPPRESS',
86
+ 'ZERO_OR_MORE',
87
+ ]
88
+
89
+
90
+ import os as _os
91
+ import re as _re
92
+ import sys as _sys
93
+
94
+ from gettext import gettext as _, ngettext
95
+
96
+ SUPPRESS = '==SUPPRESS=='
97
+
98
+ OPTIONAL = '?'
99
+ ZERO_OR_MORE = '*'
100
+ ONE_OR_MORE = '+'
101
+ PARSER = 'A...'
102
+ REMAINDER = '...'
103
+ _UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args'
104
+
105
+ # =============================
106
+ # Utility functions and classes
107
+ # =============================
108
+
109
+ class _AttributeHolder(object):
110
+ """Abstract base class that provides __repr__.
111
+
112
+ The __repr__ method returns a string in the format::
113
+ ClassName(attr=name, attr=name, ...)
114
+ The attributes are determined either by a class-level attribute,
115
+ '_kwarg_names', or by inspecting the instance __dict__.
116
+ """
117
+
118
+ def __repr__(self):
119
+ type_name = type(self).__name__
120
+ arg_strings = []
121
+ star_args = {}
122
+ for arg in self._get_args():
123
+ arg_strings.append(repr(arg))
124
+ for name, value in self._get_kwargs():
125
+ if name.isidentifier():
126
+ arg_strings.append('%s=%r' % (name, value))
127
+ else:
128
+ star_args[name] = value
129
+ if star_args:
130
+ arg_strings.append('**%s' % repr(star_args))
131
+ return '%s(%s)' % (type_name, ', '.join(arg_strings))
132
+
133
+ def _get_kwargs(self):
134
+ return list(self.__dict__.items())
135
+
136
+ def _get_args(self):
137
+ return []
138
+
139
+
140
+ def _copy_items(items):
141
+ if items is None:
142
+ return []
143
+ # The copy module is used only in the 'append' and 'append_const'
144
+ # actions, and it is needed only when the default value isn't a list.
145
+ # Delay its import for speeding up the common case.
146
+ if type(items) is list:
147
+ return items[:]
148
+ import copy
149
+ return copy.copy(items)
150
+
151
+
152
+ def _identity(value):
153
+ return value
154
+
155
+
156
+ # ===============
157
+ # Formatting Help
158
+ # ===============
159
+
160
+
161
+ class HelpFormatter(object):
162
+ """Formatter for generating usage messages and argument help strings.
163
+
164
+ Only the name of this class is considered a public API. All the methods
165
+ provided by the class are considered an implementation detail.
166
+ """
167
+
168
+ def __init__(
169
+ self,
170
+ prog,
171
+ indent_increment=2,
172
+ max_help_position=24,
173
+ width=None,
174
+ color=True,
175
+ ):
176
+ # default setting for width
177
+ if width is None:
178
+ import shutil
179
+ width = shutil.get_terminal_size().columns
180
+ width -= 2
181
+
182
+ self._set_color(color)
183
+ self._prog = prog
184
+ self._indent_increment = indent_increment
185
+ self._max_help_position = min(max_help_position,
186
+ max(width - 20, indent_increment * 2))
187
+ self._width = width
188
+
189
+ self._current_indent = 0
190
+ self._level = 0
191
+ self._action_max_length = 0
192
+
193
+ self._root_section = self._Section(self, None)
194
+ self._current_section = self._root_section
195
+
196
+ self._whitespace_matcher = _re.compile(r'\s+', _re.ASCII)
197
+ self._long_break_matcher = _re.compile(r'\n\n\n+')
198
+
199
+ def _set_color(self, color):
200
+ from _colorize import can_colorize, decolor, get_theme
201
+
202
+ if color and can_colorize():
203
+ self._theme = get_theme(force_color=True).argparse
204
+ self._decolor = decolor
205
+ else:
206
+ self._theme = get_theme(force_no_color=True).argparse
207
+ self._decolor = _identity
208
+
209
+ # ===============================
210
+ # Section and indentation methods
211
+ # ===============================
212
+
213
+ def _indent(self):
214
+ self._current_indent += self._indent_increment
215
+ self._level += 1
216
+
217
+ def _dedent(self):
218
+ self._current_indent -= self._indent_increment
219
+ assert self._current_indent >= 0, 'Indent decreased below 0.'
220
+ self._level -= 1
221
+
222
+ class _Section(object):
223
+
224
+ def __init__(self, formatter, parent, heading=None):
225
+ self.formatter = formatter
226
+ self.parent = parent
227
+ self.heading = heading
228
+ self.items = []
229
+
230
+ def format_help(self):
231
+ # format the indented section
232
+ if self.parent is not None:
233
+ self.formatter._indent()
234
+ join = self.formatter._join_parts
235
+ item_help = join([func(*args) for func, args in self.items])
236
+ if self.parent is not None:
237
+ self.formatter._dedent()
238
+
239
+ # return nothing if the section was empty
240
+ if not item_help:
241
+ return ''
242
+
243
+ # add the heading if the section was non-empty
244
+ if self.heading is not SUPPRESS and self.heading is not None:
245
+ current_indent = self.formatter._current_indent
246
+ heading_text = _('%(heading)s:') % dict(heading=self.heading)
247
+ t = self.formatter._theme
248
+ heading = (
249
+ f'{" " * current_indent}'
250
+ f'{t.heading}{heading_text}{t.reset}\n'
251
+ )
252
+ else:
253
+ heading = ''
254
+
255
+ # join the section-initial newline, the heading and the help
256
+ return join(['\n', heading, item_help, '\n'])
257
+
258
+ def _add_item(self, func, args):
259
+ self._current_section.items.append((func, args))
260
+
261
+ # ========================
262
+ # Message building methods
263
+ # ========================
264
+
265
+ def start_section(self, heading):
266
+ self._indent()
267
+ section = self._Section(self, self._current_section, heading)
268
+ self._add_item(section.format_help, [])
269
+ self._current_section = section
270
+
271
+ def end_section(self):
272
+ self._current_section = self._current_section.parent
273
+ self._dedent()
274
+
275
+ def add_text(self, text):
276
+ if text is not SUPPRESS and text is not None:
277
+ self._add_item(self._format_text, [text])
278
+
279
+ def add_usage(self, usage, actions, groups, prefix=None):
280
+ if usage is not SUPPRESS:
281
+ args = usage, actions, groups, prefix
282
+ self._add_item(self._format_usage, args)
283
+
284
+ def add_argument(self, action):
285
+ if action.help is not SUPPRESS:
286
+
287
+ # find all invocations
288
+ get_invocation = lambda x: self._decolor(self._format_action_invocation(x))
289
+ invocation_lengths = [len(get_invocation(action)) + self._current_indent]
290
+ for subaction in self._iter_indented_subactions(action):
291
+ invocation_lengths.append(len(get_invocation(subaction)) + self._current_indent)
292
+
293
+ # update the maximum item length
294
+ action_length = max(invocation_lengths)
295
+ self._action_max_length = max(self._action_max_length,
296
+ action_length)
297
+
298
+ # add the item to the list
299
+ self._add_item(self._format_action, [action])
300
+
301
+ def add_arguments(self, actions):
302
+ for action in actions:
303
+ self.add_argument(action)
304
+
305
+ # =======================
306
+ # Help-formatting methods
307
+ # =======================
308
+
309
+ def format_help(self):
310
+ help = self._root_section.format_help()
311
+ if help:
312
+ help = self._long_break_matcher.sub('\n\n', help)
313
+ help = help.strip('\n') + '\n'
314
+ return help
315
+
316
+ def _join_parts(self, part_strings):
317
+ return ''.join([part
318
+ for part in part_strings
319
+ if part and part is not SUPPRESS])
320
+
321
+ def _format_usage(self, usage, actions, groups, prefix):
322
+ t = self._theme
323
+
324
+ if prefix is None:
325
+ prefix = _('usage: ')
326
+
327
+ # if usage is specified, use that
328
+ if usage is not None:
329
+ usage = (
330
+ t.prog_extra
331
+ + usage
332
+ % {"prog": f"{t.prog}{self._prog}{t.reset}{t.prog_extra}"}
333
+ + t.reset
334
+ )
335
+
336
+ # if no optionals or positionals are available, usage is just prog
337
+ elif usage is None and not actions:
338
+ usage = f"{t.prog}{self._prog}{t.reset}"
339
+
340
+ # if optionals and positionals are available, calculate usage
341
+ elif usage is None:
342
+ prog = '%(prog)s' % dict(prog=self._prog)
343
+
344
+ parts, pos_start = self._get_actions_usage_parts(actions, groups)
345
+ # build full usage string
346
+ usage = ' '.join(filter(None, [prog, *parts]))
347
+
348
+ # wrap the usage parts if it's too long
349
+ text_width = self._width - self._current_indent
350
+ if len(prefix) + len(self._decolor(usage)) > text_width:
351
+
352
+ # break usage into wrappable parts
353
+ opt_parts = parts[:pos_start]
354
+ pos_parts = parts[pos_start:]
355
+
356
+ # helper for wrapping lines
357
+ def get_lines(parts, indent, prefix=None):
358
+ lines = []
359
+ line = []
360
+ indent_length = len(indent)
361
+ if prefix is not None:
362
+ line_len = len(prefix) - 1
363
+ else:
364
+ line_len = indent_length - 1
365
+ for part in parts:
366
+ part_len = len(self._decolor(part))
367
+ if line_len + 1 + part_len > text_width and line:
368
+ lines.append(indent + ' '.join(line))
369
+ line = []
370
+ line_len = indent_length - 1
371
+ line.append(part)
372
+ line_len += part_len + 1
373
+ if line:
374
+ lines.append(indent + ' '.join(line))
375
+ if prefix is not None:
376
+ lines[0] = lines[0][indent_length:]
377
+ return lines
378
+
379
+ # if prog is short, follow it with optionals or positionals
380
+ prog_len = len(self._decolor(prog))
381
+ if len(prefix) + prog_len <= 0.75 * text_width:
382
+ indent = ' ' * (len(prefix) + prog_len + 1)
383
+ if opt_parts:
384
+ lines = get_lines([prog] + opt_parts, indent, prefix)
385
+ lines.extend(get_lines(pos_parts, indent))
386
+ elif pos_parts:
387
+ lines = get_lines([prog] + pos_parts, indent, prefix)
388
+ else:
389
+ lines = [prog]
390
+
391
+ # if prog is long, put it on its own line
392
+ else:
393
+ indent = ' ' * len(prefix)
394
+ parts = opt_parts + pos_parts
395
+ lines = get_lines(parts, indent)
396
+ if len(lines) > 1:
397
+ lines = []
398
+ lines.extend(get_lines(opt_parts, indent))
399
+ lines.extend(get_lines(pos_parts, indent))
400
+ lines = [prog] + lines
401
+
402
+ # join lines into usage
403
+ usage = '\n'.join(lines)
404
+
405
+ usage = usage.removeprefix(prog)
406
+ usage = f"{t.prog}{prog}{t.reset}{usage}"
407
+
408
+ # prefix with 'usage:'
409
+ return f'{t.usage}{prefix}{t.reset}{usage}\n\n'
410
+
411
+ def _is_long_option(self, string):
412
+ return len(string) > 2
413
+
414
+ def _get_actions_usage_parts(self, actions, groups):
415
+ """Get usage parts with split index for optionals/positionals.
416
+
417
+ Returns (parts, pos_start) where pos_start is the index in parts
418
+ where positionals begin.
419
+ This preserves mutually exclusive group formatting across the
420
+ optionals/positionals boundary (gh-75949).
421
+ """
422
+ actions = [action for action in actions if action.help is not SUPPRESS]
423
+ # group actions by mutually exclusive groups
424
+ action_groups = dict.fromkeys(actions)
425
+ for group in groups:
426
+ for action in group._group_actions:
427
+ if action in action_groups:
428
+ action_groups[action] = group
429
+ # positional arguments keep their position
430
+ positionals = []
431
+ for action in actions:
432
+ if not action.option_strings:
433
+ group = action_groups.pop(action)
434
+ if group:
435
+ group_actions = [
436
+ action2 for action2 in group._group_actions
437
+ if action2.option_strings and
438
+ action_groups.pop(action2, None)
439
+ ] + [action]
440
+ positionals.append((group.required, group_actions))
441
+ else:
442
+ positionals.append((None, [action]))
443
+ # the remaining optional arguments are sorted by the position of
444
+ # the first option in the group
445
+ optionals = []
446
+ for action in actions:
447
+ if action.option_strings and action in action_groups:
448
+ group = action_groups.pop(action)
449
+ if group:
450
+ group_actions = [action] + [
451
+ action2 for action2 in group._group_actions
452
+ if action2.option_strings and
453
+ action_groups.pop(action2, None)
454
+ ]
455
+ optionals.append((group.required, group_actions))
456
+ else:
457
+ optionals.append((None, [action]))
458
+
459
+ # collect all actions format strings
460
+ parts = []
461
+ t = self._theme
462
+ pos_start = None
463
+ for i, (required, group) in enumerate(optionals + positionals):
464
+ start = len(parts)
465
+ if i == len(optionals):
466
+ pos_start = start
467
+ in_group = len(group) > 1
468
+ for action in group:
469
+ # produce all arg strings
470
+ if not action.option_strings:
471
+ default = self._get_default_metavar_for_positional(action)
472
+ part = self._format_args(action, default)
473
+ # if it's in a group, strip the outer []
474
+ if in_group:
475
+ if part[0] == '[' and part[-1] == ']':
476
+ part = part[1:-1]
477
+ part = t.summary_action + part + t.reset
478
+
479
+ # produce the first way to invoke the option in brackets
480
+ else:
481
+ option_string = action.option_strings[0]
482
+ if self._is_long_option(option_string):
483
+ option_color = t.summary_long_option
484
+ else:
485
+ option_color = t.summary_short_option
486
+
487
+ # if the Optional doesn't take a value, format is:
488
+ # -s or --long
489
+ if action.nargs == 0:
490
+ part = action.format_usage()
491
+ part = f"{option_color}{part}{t.reset}"
492
+
493
+ # if the Optional takes a value, format is:
494
+ # -s ARGS or --long ARGS
495
+ else:
496
+ default = self._get_default_metavar_for_optional(action)
497
+ args_string = self._format_args(action, default)
498
+ part = (
499
+ f"{option_color}{option_string} "
500
+ f"{t.summary_label}{args_string}{t.reset}"
501
+ )
502
+
503
+ # make it look optional if it's not required or in a group
504
+ if not (action.required or required or in_group):
505
+ part = '[%s]' % part
506
+
507
+ # add the action string to the list
508
+ parts.append(part)
509
+
510
+ if in_group:
511
+ parts[start] = ('(' if required else '[') + parts[start]
512
+ for i in range(start, len(parts) - 1):
513
+ parts[i] += ' |'
514
+ parts[-1] += ')' if required else ']'
515
+
516
+ if pos_start is None:
517
+ pos_start = len(parts)
518
+ return parts, pos_start
519
+
520
+ def _format_text(self, text):
521
+ if '%(prog)' in text:
522
+ text = text % dict(prog=self._prog)
523
+ text_width = max(self._width - self._current_indent, 11)
524
+ indent = ' ' * self._current_indent
525
+ return self._fill_text(text, text_width, indent) + '\n\n'
526
+
527
+ def _format_action(self, action):
528
+ # determine the required width and the entry label
529
+ help_position = min(self._action_max_length + 2,
530
+ self._max_help_position)
531
+ help_width = max(self._width - help_position, 11)
532
+ action_width = help_position - self._current_indent - 2
533
+ action_header = self._format_action_invocation(action)
534
+ action_header_no_color = self._decolor(action_header)
535
+
536
+ # no help; start on same line and add a final newline
537
+ if not action.help:
538
+ tup = self._current_indent, '', action_header
539
+ action_header = '%*s%s\n' % tup
540
+
541
+ # short action name; start on the same line and pad two spaces
542
+ elif len(action_header_no_color) <= action_width:
543
+ # calculate widths without color codes
544
+ action_header_color = action_header
545
+ tup = self._current_indent, '', action_width, action_header_no_color
546
+ action_header = '%*s%-*s ' % tup
547
+ # swap in the colored header
548
+ action_header = action_header.replace(
549
+ action_header_no_color, action_header_color
550
+ )
551
+ indent_first = 0
552
+
553
+ # long action name; start on the next line
554
+ else:
555
+ tup = self._current_indent, '', action_header
556
+ action_header = '%*s%s\n' % tup
557
+ indent_first = help_position
558
+
559
+ # collect the pieces of the action help
560
+ parts = [action_header]
561
+
562
+ # if there was help for the action, add lines of help text
563
+ if action.help and action.help.strip():
564
+ help_text = self._expand_help(action)
565
+ if help_text:
566
+ help_lines = self._split_lines(help_text, help_width)
567
+ parts.append('%*s%s\n' % (indent_first, '', help_lines[0]))
568
+ for line in help_lines[1:]:
569
+ parts.append('%*s%s\n' % (help_position, '', line))
570
+
571
+ # or add a newline if the description doesn't end with one
572
+ elif not action_header.endswith('\n'):
573
+ parts.append('\n')
574
+
575
+ # if there are any sub-actions, add their help as well
576
+ for subaction in self._iter_indented_subactions(action):
577
+ parts.append(self._format_action(subaction))
578
+
579
+ # return a single string
580
+ return self._join_parts(parts)
581
+
582
+ def _format_action_invocation(self, action):
583
+ t = self._theme
584
+
585
+ if not action.option_strings:
586
+ default = self._get_default_metavar_for_positional(action)
587
+ return (
588
+ t.action
589
+ + ' '.join(self._metavar_formatter(action, default)(1))
590
+ + t.reset
591
+ )
592
+
593
+ else:
594
+
595
+ def color_option_strings(strings):
596
+ parts = []
597
+ for s in strings:
598
+ if self._is_long_option(s):
599
+ parts.append(f"{t.long_option}{s}{t.reset}")
600
+ else:
601
+ parts.append(f"{t.short_option}{s}{t.reset}")
602
+ return parts
603
+
604
+ # if the Optional doesn't take a value, format is:
605
+ # -s, --long
606
+ if action.nargs == 0:
607
+ option_strings = color_option_strings(action.option_strings)
608
+ return ', '.join(option_strings)
609
+
610
+ # if the Optional takes a value, format is:
611
+ # -s, --long ARGS
612
+ else:
613
+ default = self._get_default_metavar_for_optional(action)
614
+ option_strings = color_option_strings(action.option_strings)
615
+ args_string = (
616
+ f"{t.label}{self._format_args(action, default)}{t.reset}"
617
+ )
618
+ return ', '.join(option_strings) + ' ' + args_string
619
+
620
+ def _metavar_formatter(self, action, default_metavar):
621
+ if action.metavar is not None:
622
+ result = action.metavar
623
+ elif action.choices is not None:
624
+ result = '{%s}' % ','.join(map(str, action.choices))
625
+ else:
626
+ result = default_metavar
627
+
628
+ def format(tuple_size):
629
+ if isinstance(result, tuple):
630
+ return result
631
+ else:
632
+ return (result, ) * tuple_size
633
+ return format
634
+
635
+ def _format_args(self, action, default_metavar):
636
+ get_metavar = self._metavar_formatter(action, default_metavar)
637
+ if action.nargs is None:
638
+ result = '%s' % get_metavar(1)
639
+ elif action.nargs == OPTIONAL:
640
+ result = '[%s]' % get_metavar(1)
641
+ elif action.nargs == ZERO_OR_MORE:
642
+ metavar = get_metavar(1)
643
+ if len(metavar) == 2:
644
+ result = '[%s [%s ...]]' % metavar
645
+ else:
646
+ result = '[%s ...]' % metavar
647
+ elif action.nargs == ONE_OR_MORE:
648
+ result = '%s [%s ...]' % get_metavar(2)
649
+ elif action.nargs == REMAINDER:
650
+ result = '...'
651
+ elif action.nargs == PARSER:
652
+ result = '%s ...' % get_metavar(1)
653
+ elif action.nargs == SUPPRESS:
654
+ result = ''
655
+ else:
656
+ try:
657
+ formats = ['%s' for _ in range(action.nargs)]
658
+ except TypeError:
659
+ raise ValueError("invalid nargs value") from None
660
+ result = ' '.join(formats) % get_metavar(action.nargs)
661
+ return result
662
+
663
+ def _expand_help(self, action):
664
+ help_string = self._get_help_string(action)
665
+ if '%' not in help_string:
666
+ return help_string
667
+ params = dict(vars(action), prog=self._prog)
668
+ for name in list(params):
669
+ value = params[name]
670
+ if value is SUPPRESS:
671
+ del params[name]
672
+ elif hasattr(value, '__name__'):
673
+ params[name] = value.__name__
674
+ if params.get('choices') is not None:
675
+ params['choices'] = ', '.join(map(str, params['choices']))
676
+ return help_string % params
677
+
678
+ def _iter_indented_subactions(self, action):
679
+ try:
680
+ get_subactions = action._get_subactions
681
+ except AttributeError:
682
+ pass
683
+ else:
684
+ self._indent()
685
+ yield from get_subactions()
686
+ self._dedent()
687
+
688
+ def _split_lines(self, text, width):
689
+ text = self._whitespace_matcher.sub(' ', text).strip()
690
+ # The textwrap module is used only for formatting help.
691
+ # Delay its import for speeding up the common usage of argparse.
692
+ import textwrap
693
+ return textwrap.wrap(text, width)
694
+
695
+ def _fill_text(self, text, width, indent):
696
+ text = self._whitespace_matcher.sub(' ', text).strip()
697
+ import textwrap
698
+ return textwrap.fill(text, width,
699
+ initial_indent=indent,
700
+ subsequent_indent=indent)
701
+
702
+ def _get_help_string(self, action):
703
+ return action.help
704
+
705
+ def _get_default_metavar_for_optional(self, action):
706
+ return action.dest.upper()
707
+
708
+ def _get_default_metavar_for_positional(self, action):
709
+ return action.dest
710
+
711
+
712
+ class RawDescriptionHelpFormatter(HelpFormatter):
713
+ """Help message formatter which retains any formatting in descriptions.
714
+
715
+ Only the name of this class is considered a public API. All the methods
716
+ provided by the class are considered an implementation detail.
717
+ """
718
+
719
+ def _fill_text(self, text, width, indent):
720
+ return ''.join(indent + line for line in text.splitlines(keepends=True))
721
+
722
+
723
+ class RawTextHelpFormatter(RawDescriptionHelpFormatter):
724
+ """Help message formatter which retains formatting of all help text.
725
+
726
+ Only the name of this class is considered a public API. All the methods
727
+ provided by the class are considered an implementation detail.
728
+ """
729
+
730
+ def _split_lines(self, text, width):
731
+ return text.splitlines()
732
+
733
+
734
+ class ArgumentDefaultsHelpFormatter(HelpFormatter):
735
+ """Help message formatter which adds default values to argument help.
736
+
737
+ Only the name of this class is considered a public API. All the methods
738
+ provided by the class are considered an implementation detail.
739
+ """
740
+
741
+ def _get_help_string(self, action):
742
+ help = action.help
743
+ if help is None:
744
+ help = ''
745
+
746
+ if (
747
+ '%(default)' not in help
748
+ and action.default is not SUPPRESS
749
+ and not action.required
750
+ ):
751
+ defaulting_nargs = (OPTIONAL, ZERO_OR_MORE)
752
+ if action.option_strings or action.nargs in defaulting_nargs:
753
+ help += _(' (default: %(default)s)')
754
+ return help
755
+
756
+
757
+
758
+ class MetavarTypeHelpFormatter(HelpFormatter):
759
+ """Help message formatter which uses the argument 'type' as the default
760
+ metavar value (instead of the argument 'dest')
761
+
762
+ Only the name of this class is considered a public API. All the methods
763
+ provided by the class are considered an implementation detail.
764
+ """
765
+
766
+ def _get_default_metavar_for_optional(self, action):
767
+ return action.type.__name__
768
+
769
+ def _get_default_metavar_for_positional(self, action):
770
+ return action.type.__name__
771
+
772
+
773
+ # =====================
774
+ # Options and Arguments
775
+ # =====================
776
+
777
+ def _get_action_name(argument):
778
+ if argument is None:
779
+ return None
780
+ elif argument.option_strings:
781
+ return '/'.join(argument.option_strings)
782
+ elif argument.metavar not in (None, SUPPRESS):
783
+ metavar = argument.metavar
784
+ if not isinstance(metavar, tuple):
785
+ return metavar
786
+ if argument.nargs == ZERO_OR_MORE and len(metavar) == 2:
787
+ return '%s[, %s]' % metavar
788
+ elif argument.nargs == ONE_OR_MORE:
789
+ return '%s[, %s]' % metavar
790
+ else:
791
+ return ', '.join(metavar)
792
+ elif argument.dest not in (None, SUPPRESS):
793
+ return argument.dest
794
+ elif argument.choices:
795
+ return '{%s}' % ','.join(map(str, argument.choices))
796
+ else:
797
+ return None
798
+
799
+
800
+ class ArgumentError(Exception):
801
+ """An error from creating or using an argument (optional or positional).
802
+
803
+ The string value of this exception is the message, augmented with
804
+ information about the argument that caused it.
805
+ """
806
+
807
+ def __init__(self, argument, message):
808
+ self.argument_name = _get_action_name(argument)
809
+ self.message = message
810
+
811
+ def __str__(self):
812
+ if self.argument_name is None:
813
+ format = '%(message)s'
814
+ else:
815
+ format = _('argument %(argument_name)s: %(message)s')
816
+ return format % dict(message=self.message,
817
+ argument_name=self.argument_name)
818
+
819
+
820
+ class ArgumentTypeError(Exception):
821
+ """An error from trying to convert a command line string to a type."""
822
+ pass
823
+
824
+
825
+ # ==============
826
+ # Action classes
827
+ # ==============
828
+
829
+ class Action(_AttributeHolder):
830
+ """Information about how to convert command line strings to Python objects.
831
+
832
+ Action objects are used by an ArgumentParser to represent the information
833
+ needed to parse a single argument from one or more strings from the
834
+ command line. The keyword arguments to the Action constructor are also
835
+ all attributes of Action instances.
836
+
837
+ Keyword Arguments:
838
+
839
+ - option_strings -- A list of command-line option strings which
840
+ should be associated with this action.
841
+
842
+ - dest -- The name of the attribute to hold the created object(s)
843
+
844
+ - nargs -- The number of command-line arguments that should be
845
+ consumed. By default, one argument will be consumed and a single
846
+ value will be produced. Other values include:
847
+ - N (an integer) consumes N arguments (and produces a list)
848
+ - '?' consumes zero or one arguments
849
+ - '*' consumes zero or more arguments (and produces a list)
850
+ - '+' consumes one or more arguments (and produces a list)
851
+ Note that the difference between the default and nargs=1 is that
852
+ with the default, a single value will be produced, while with
853
+ nargs=1, a list containing a single value will be produced.
854
+
855
+ - const -- The value to be produced if the option is specified and the
856
+ option uses an action that takes no values.
857
+
858
+ - default -- The value to be produced if the option is not specified.
859
+
860
+ - type -- A callable that accepts a single string argument, and
861
+ returns the converted value. The standard Python types str, int,
862
+ float, and complex are useful examples of such callables. If None,
863
+ str is used.
864
+
865
+ - choices -- A container of values that should be allowed. If not None,
866
+ after a command-line argument has been converted to the appropriate
867
+ type, an exception will be raised if it is not a member of this
868
+ collection.
869
+
870
+ - required -- True if the action must always be specified at the
871
+ command line. This is only meaningful for optional command-line
872
+ arguments.
873
+
874
+ - help -- The help string describing the argument.
875
+
876
+ - metavar -- The name to be used for the option's argument with the
877
+ help string. If None, the 'dest' value will be used as the name.
878
+ """
879
+
880
+ def __init__(self,
881
+ option_strings,
882
+ dest,
883
+ nargs=None,
884
+ const=None,
885
+ default=None,
886
+ type=None,
887
+ choices=None,
888
+ required=False,
889
+ help=None,
890
+ metavar=None,
891
+ deprecated=False):
892
+ self.option_strings = option_strings
893
+ self.dest = dest
894
+ self.nargs = nargs
895
+ self.const = const
896
+ self.default = default
897
+ self.type = type
898
+ self.choices = choices
899
+ self.required = required
900
+ self.help = help
901
+ self.metavar = metavar
902
+ self.deprecated = deprecated
903
+
904
+ def _get_kwargs(self):
905
+ names = [
906
+ 'option_strings',
907
+ 'dest',
908
+ 'nargs',
909
+ 'const',
910
+ 'default',
911
+ 'type',
912
+ 'choices',
913
+ 'required',
914
+ 'help',
915
+ 'metavar',
916
+ 'deprecated',
917
+ ]
918
+ return [(name, getattr(self, name)) for name in names]
919
+
920
+ def format_usage(self):
921
+ return self.option_strings[0]
922
+
923
+ def __call__(self, parser, namespace, values, option_string=None):
924
+ raise NotImplementedError('.__call__() not defined')
925
+
926
+
927
+ class BooleanOptionalAction(Action):
928
+ def __init__(self,
929
+ option_strings,
930
+ dest,
931
+ default=None,
932
+ required=False,
933
+ help=None,
934
+ deprecated=False):
935
+
936
+ _option_strings = []
937
+ for option_string in option_strings:
938
+ _option_strings.append(option_string)
939
+
940
+ if option_string.startswith('--'):
941
+ if option_string.startswith('--no-'):
942
+ raise ValueError(f'invalid option name {option_string!r} '
943
+ f'for BooleanOptionalAction')
944
+ option_string = '--no-' + option_string[2:]
945
+ _option_strings.append(option_string)
946
+
947
+ super().__init__(
948
+ option_strings=_option_strings,
949
+ dest=dest,
950
+ nargs=0,
951
+ default=default,
952
+ required=required,
953
+ help=help,
954
+ deprecated=deprecated)
955
+
956
+
957
+ def __call__(self, parser, namespace, values, option_string=None):
958
+ if option_string in self.option_strings:
959
+ setattr(namespace, self.dest, not option_string.startswith('--no-'))
960
+
961
+ def format_usage(self):
962
+ return ' | '.join(self.option_strings)
963
+
964
+
965
+ class _StoreAction(Action):
966
+
967
+ def __init__(self,
968
+ option_strings,
969
+ dest,
970
+ nargs=None,
971
+ const=None,
972
+ default=None,
973
+ type=None,
974
+ choices=None,
975
+ required=False,
976
+ help=None,
977
+ metavar=None,
978
+ deprecated=False):
979
+ if nargs == 0:
980
+ raise ValueError('nargs for store actions must be != 0; if you '
981
+ 'have nothing to store, actions such as store '
982
+ 'true or store const may be more appropriate')
983
+ if const is not None and nargs != OPTIONAL:
984
+ raise ValueError('nargs must be %r to supply const' % OPTIONAL)
985
+ super(_StoreAction, self).__init__(
986
+ option_strings=option_strings,
987
+ dest=dest,
988
+ nargs=nargs,
989
+ const=const,
990
+ default=default,
991
+ type=type,
992
+ choices=choices,
993
+ required=required,
994
+ help=help,
995
+ metavar=metavar,
996
+ deprecated=deprecated)
997
+
998
+ def __call__(self, parser, namespace, values, option_string=None):
999
+ setattr(namespace, self.dest, values)
1000
+
1001
+
1002
+ class _StoreConstAction(Action):
1003
+
1004
+ def __init__(self,
1005
+ option_strings,
1006
+ dest,
1007
+ const=None,
1008
+ default=None,
1009
+ required=False,
1010
+ help=None,
1011
+ metavar=None,
1012
+ deprecated=False):
1013
+ super(_StoreConstAction, self).__init__(
1014
+ option_strings=option_strings,
1015
+ dest=dest,
1016
+ nargs=0,
1017
+ const=const,
1018
+ default=default,
1019
+ required=required,
1020
+ help=help,
1021
+ deprecated=deprecated)
1022
+
1023
+ def __call__(self, parser, namespace, values, option_string=None):
1024
+ setattr(namespace, self.dest, self.const)
1025
+
1026
+
1027
+ class _StoreTrueAction(_StoreConstAction):
1028
+
1029
+ def __init__(self,
1030
+ option_strings,
1031
+ dest,
1032
+ default=False,
1033
+ required=False,
1034
+ help=None,
1035
+ deprecated=False):
1036
+ super(_StoreTrueAction, self).__init__(
1037
+ option_strings=option_strings,
1038
+ dest=dest,
1039
+ const=True,
1040
+ deprecated=deprecated,
1041
+ required=required,
1042
+ help=help,
1043
+ default=default)
1044
+
1045
+
1046
+ class _StoreFalseAction(_StoreConstAction):
1047
+
1048
+ def __init__(self,
1049
+ option_strings,
1050
+ dest,
1051
+ default=True,
1052
+ required=False,
1053
+ help=None,
1054
+ deprecated=False):
1055
+ super(_StoreFalseAction, self).__init__(
1056
+ option_strings=option_strings,
1057
+ dest=dest,
1058
+ const=False,
1059
+ default=default,
1060
+ required=required,
1061
+ help=help,
1062
+ deprecated=deprecated)
1063
+
1064
+
1065
+ class _AppendAction(Action):
1066
+
1067
+ def __init__(self,
1068
+ option_strings,
1069
+ dest,
1070
+ nargs=None,
1071
+ const=None,
1072
+ default=None,
1073
+ type=None,
1074
+ choices=None,
1075
+ required=False,
1076
+ help=None,
1077
+ metavar=None,
1078
+ deprecated=False):
1079
+ if nargs == 0:
1080
+ raise ValueError('nargs for append actions must be != 0; if arg '
1081
+ 'strings are not supplying the value to append, '
1082
+ 'the append const action may be more appropriate')
1083
+ if const is not None and nargs != OPTIONAL:
1084
+ raise ValueError('nargs must be %r to supply const' % OPTIONAL)
1085
+ super(_AppendAction, self).__init__(
1086
+ option_strings=option_strings,
1087
+ dest=dest,
1088
+ nargs=nargs,
1089
+ const=const,
1090
+ default=default,
1091
+ type=type,
1092
+ choices=choices,
1093
+ required=required,
1094
+ help=help,
1095
+ metavar=metavar,
1096
+ deprecated=deprecated)
1097
+
1098
+ def __call__(self, parser, namespace, values, option_string=None):
1099
+ items = getattr(namespace, self.dest, None)
1100
+ items = _copy_items(items)
1101
+ items.append(values)
1102
+ setattr(namespace, self.dest, items)
1103
+
1104
+
1105
+ class _AppendConstAction(Action):
1106
+
1107
+ def __init__(self,
1108
+ option_strings,
1109
+ dest,
1110
+ const=None,
1111
+ default=None,
1112
+ required=False,
1113
+ help=None,
1114
+ metavar=None,
1115
+ deprecated=False):
1116
+ super(_AppendConstAction, self).__init__(
1117
+ option_strings=option_strings,
1118
+ dest=dest,
1119
+ nargs=0,
1120
+ const=const,
1121
+ default=default,
1122
+ required=required,
1123
+ help=help,
1124
+ metavar=metavar,
1125
+ deprecated=deprecated)
1126
+
1127
+ def __call__(self, parser, namespace, values, option_string=None):
1128
+ items = getattr(namespace, self.dest, None)
1129
+ items = _copy_items(items)
1130
+ items.append(self.const)
1131
+ setattr(namespace, self.dest, items)
1132
+
1133
+
1134
+ class _CountAction(Action):
1135
+
1136
+ def __init__(self,
1137
+ option_strings,
1138
+ dest,
1139
+ default=None,
1140
+ required=False,
1141
+ help=None,
1142
+ deprecated=False):
1143
+ super(_CountAction, self).__init__(
1144
+ option_strings=option_strings,
1145
+ dest=dest,
1146
+ nargs=0,
1147
+ default=default,
1148
+ required=required,
1149
+ help=help,
1150
+ deprecated=deprecated)
1151
+
1152
+ def __call__(self, parser, namespace, values, option_string=None):
1153
+ count = getattr(namespace, self.dest, None)
1154
+ if count is None:
1155
+ count = 0
1156
+ setattr(namespace, self.dest, count + 1)
1157
+
1158
+
1159
+ class _HelpAction(Action):
1160
+
1161
+ def __init__(self,
1162
+ option_strings,
1163
+ dest=SUPPRESS,
1164
+ default=SUPPRESS,
1165
+ help=None,
1166
+ deprecated=False):
1167
+ super(_HelpAction, self).__init__(
1168
+ option_strings=option_strings,
1169
+ dest=dest,
1170
+ default=default,
1171
+ nargs=0,
1172
+ help=help,
1173
+ deprecated=deprecated)
1174
+
1175
+ def __call__(self, parser, namespace, values, option_string=None):
1176
+ parser.print_help()
1177
+ parser.exit()
1178
+
1179
+
1180
+ class _VersionAction(Action):
1181
+
1182
+ def __init__(self,
1183
+ option_strings,
1184
+ version=None,
1185
+ dest=SUPPRESS,
1186
+ default=SUPPRESS,
1187
+ help=None,
1188
+ deprecated=False):
1189
+ if help is None:
1190
+ help = _("show program's version number and exit")
1191
+ super(_VersionAction, self).__init__(
1192
+ option_strings=option_strings,
1193
+ dest=dest,
1194
+ default=default,
1195
+ nargs=0,
1196
+ help=help)
1197
+ self.version = version
1198
+
1199
+ def __call__(self, parser, namespace, values, option_string=None):
1200
+ version = self.version
1201
+ if version is None:
1202
+ version = parser.version
1203
+ formatter = parser._get_formatter()
1204
+ formatter.add_text(version)
1205
+ parser._print_message(formatter.format_help(), _sys.stdout)
1206
+ parser.exit()
1207
+
1208
+
1209
+ class _SubParsersAction(Action):
1210
+
1211
+ class _ChoicesPseudoAction(Action):
1212
+
1213
+ def __init__(self, name, aliases, help):
1214
+ metavar = dest = name
1215
+ if aliases:
1216
+ metavar += ' (%s)' % ', '.join(aliases)
1217
+ sup = super(_SubParsersAction._ChoicesPseudoAction, self)
1218
+ sup.__init__(option_strings=[], dest=dest, help=help,
1219
+ metavar=metavar)
1220
+
1221
+ def __init__(self,
1222
+ option_strings,
1223
+ prog,
1224
+ parser_class,
1225
+ dest=SUPPRESS,
1226
+ required=False,
1227
+ help=None,
1228
+ metavar=None):
1229
+
1230
+ self._prog_prefix = prog
1231
+ self._parser_class = parser_class
1232
+ self._name_parser_map = {}
1233
+ self._choices_actions = []
1234
+ self._deprecated = set()
1235
+ self._color = True
1236
+
1237
+ super(_SubParsersAction, self).__init__(
1238
+ option_strings=option_strings,
1239
+ dest=dest,
1240
+ nargs=PARSER,
1241
+ choices=self._name_parser_map,
1242
+ required=required,
1243
+ help=help,
1244
+ metavar=metavar)
1245
+
1246
+ def add_parser(self, name, *, deprecated=False, **kwargs):
1247
+ # set prog from the existing prefix
1248
+ if kwargs.get('prog') is None:
1249
+ kwargs['prog'] = '%s %s' % (self._prog_prefix, name)
1250
+
1251
+ # set color
1252
+ if kwargs.get('color') is None:
1253
+ kwargs['color'] = self._color
1254
+
1255
+ aliases = kwargs.pop('aliases', ())
1256
+
1257
+ if name in self._name_parser_map:
1258
+ raise ValueError(f'conflicting subparser: {name}')
1259
+ for alias in aliases:
1260
+ if alias in self._name_parser_map:
1261
+ raise ValueError(f'conflicting subparser alias: {alias}')
1262
+
1263
+ # create a pseudo-action to hold the choice help
1264
+ if 'help' in kwargs:
1265
+ help = kwargs.pop('help')
1266
+ choice_action = self._ChoicesPseudoAction(name, aliases, help)
1267
+ self._choices_actions.append(choice_action)
1268
+ else:
1269
+ choice_action = None
1270
+
1271
+ # create the parser and add it to the map
1272
+ parser = self._parser_class(**kwargs)
1273
+ if choice_action is not None:
1274
+ parser._check_help(choice_action)
1275
+ self._name_parser_map[name] = parser
1276
+
1277
+ # make parser available under aliases also
1278
+ for alias in aliases:
1279
+ self._name_parser_map[alias] = parser
1280
+
1281
+ if deprecated:
1282
+ self._deprecated.add(name)
1283
+ self._deprecated.update(aliases)
1284
+
1285
+ return parser
1286
+
1287
+ def _get_subactions(self):
1288
+ return self._choices_actions
1289
+
1290
+ def __call__(self, parser, namespace, values, option_string=None):
1291
+ parser_name = values[0]
1292
+ arg_strings = values[1:]
1293
+
1294
+ # set the parser name if requested
1295
+ if self.dest is not SUPPRESS:
1296
+ setattr(namespace, self.dest, parser_name)
1297
+
1298
+ # select the parser
1299
+ try:
1300
+ subparser = self._name_parser_map[parser_name]
1301
+ except KeyError:
1302
+ args = {'parser_name': parser_name,
1303
+ 'choices': ', '.join(self._name_parser_map)}
1304
+ msg = _('unknown parser %(parser_name)r (choices: %(choices)s)') % args
1305
+ raise ArgumentError(self, msg)
1306
+
1307
+ if parser_name in self._deprecated:
1308
+ parser._warning(_("command '%(parser_name)s' is deprecated") %
1309
+ {'parser_name': parser_name})
1310
+
1311
+ # parse all the remaining options into the namespace
1312
+ # store any unrecognized options on the object, so that the top
1313
+ # level parser can decide what to do with them
1314
+
1315
+ # In case this subparser defines new defaults, we parse them
1316
+ # in a new namespace object and then update the original
1317
+ # namespace for the relevant parts.
1318
+ subnamespace, arg_strings = subparser.parse_known_args(arg_strings, None)
1319
+ for key, value in vars(subnamespace).items():
1320
+ setattr(namespace, key, value)
1321
+
1322
+ if arg_strings:
1323
+ if not hasattr(namespace, _UNRECOGNIZED_ARGS_ATTR):
1324
+ setattr(namespace, _UNRECOGNIZED_ARGS_ATTR, [])
1325
+ getattr(namespace, _UNRECOGNIZED_ARGS_ATTR).extend(arg_strings)
1326
+
1327
+ class _ExtendAction(_AppendAction):
1328
+ def __call__(self, parser, namespace, values, option_string=None):
1329
+ items = getattr(namespace, self.dest, None)
1330
+ items = _copy_items(items)
1331
+ items.extend(values)
1332
+ setattr(namespace, self.dest, items)
1333
+
1334
+ # ==============
1335
+ # Type classes
1336
+ # ==============
1337
+
1338
+ class FileType(object):
1339
+ """Deprecated factory for creating file object types
1340
+
1341
+ Instances of FileType are typically passed as type= arguments to the
1342
+ ArgumentParser add_argument() method.
1343
+
1344
+ Keyword Arguments:
1345
+ - mode -- A string indicating how the file is to be opened. Accepts the
1346
+ same values as the builtin open() function.
1347
+ - bufsize -- The file's desired buffer size. Accepts the same values as
1348
+ the builtin open() function.
1349
+ - encoding -- The file's encoding. Accepts the same values as the
1350
+ builtin open() function.
1351
+ - errors -- A string indicating how encoding and decoding errors are to
1352
+ be handled. Accepts the same value as the builtin open() function.
1353
+ """
1354
+
1355
+ def __init__(self, mode='r', bufsize=-1, encoding=None, errors=None):
1356
+ import warnings
1357
+ warnings.warn(
1358
+ "FileType is deprecated. Simply open files after parsing arguments.",
1359
+ category=PendingDeprecationWarning,
1360
+ stacklevel=2
1361
+ )
1362
+ self._mode = mode
1363
+ self._bufsize = bufsize
1364
+ self._encoding = encoding
1365
+ self._errors = errors
1366
+
1367
+ def __call__(self, string):
1368
+ # the special argument "-" means sys.std{in,out}
1369
+ if string == '-':
1370
+ if 'r' in self._mode:
1371
+ return _sys.stdin.buffer if 'b' in self._mode else _sys.stdin
1372
+ elif any(c in self._mode for c in 'wax'):
1373
+ return _sys.stdout.buffer if 'b' in self._mode else _sys.stdout
1374
+ else:
1375
+ msg = _('argument "-" with mode %r') % self._mode
1376
+ raise ValueError(msg)
1377
+
1378
+ # all other arguments are used as file names
1379
+ try:
1380
+ return open(string, self._mode, self._bufsize, self._encoding,
1381
+ self._errors)
1382
+ except OSError as e:
1383
+ args = {'filename': string, 'error': e}
1384
+ message = _("can't open '%(filename)s': %(error)s")
1385
+ raise ArgumentTypeError(message % args)
1386
+
1387
+ def __repr__(self):
1388
+ args = self._mode, self._bufsize
1389
+ kwargs = [('encoding', self._encoding), ('errors', self._errors)]
1390
+ args_str = ', '.join([repr(arg) for arg in args if arg != -1] +
1391
+ ['%s=%r' % (kw, arg) for kw, arg in kwargs
1392
+ if arg is not None])
1393
+ return '%s(%s)' % (type(self).__name__, args_str)
1394
+
1395
+ # ===========================
1396
+ # Optional and Positional Parsing
1397
+ # ===========================
1398
+
1399
+ class Namespace(_AttributeHolder):
1400
+ """Simple object for storing attributes.
1401
+
1402
+ Implements equality by attribute names and values, and provides a simple
1403
+ string representation.
1404
+ """
1405
+
1406
+ def __init__(self, **kwargs):
1407
+ for name in kwargs:
1408
+ setattr(self, name, kwargs[name])
1409
+
1410
+ def __eq__(self, other):
1411
+ if not isinstance(other, Namespace):
1412
+ return NotImplemented
1413
+ return vars(self) == vars(other)
1414
+
1415
+ def __contains__(self, key):
1416
+ return key in self.__dict__
1417
+
1418
+
1419
+ class _ActionsContainer(object):
1420
+
1421
+ def __init__(self,
1422
+ description,
1423
+ prefix_chars,
1424
+ argument_default,
1425
+ conflict_handler):
1426
+ super(_ActionsContainer, self).__init__()
1427
+
1428
+ self.description = description
1429
+ self.argument_default = argument_default
1430
+ self.prefix_chars = prefix_chars
1431
+ self.conflict_handler = conflict_handler
1432
+
1433
+ # set up registries
1434
+ self._registries = {}
1435
+
1436
+ # register actions
1437
+ self.register('action', None, _StoreAction)
1438
+ self.register('action', 'store', _StoreAction)
1439
+ self.register('action', 'store_const', _StoreConstAction)
1440
+ self.register('action', 'store_true', _StoreTrueAction)
1441
+ self.register('action', 'store_false', _StoreFalseAction)
1442
+ self.register('action', 'append', _AppendAction)
1443
+ self.register('action', 'append_const', _AppendConstAction)
1444
+ self.register('action', 'count', _CountAction)
1445
+ self.register('action', 'help', _HelpAction)
1446
+ self.register('action', 'version', _VersionAction)
1447
+ self.register('action', 'parsers', _SubParsersAction)
1448
+ self.register('action', 'extend', _ExtendAction)
1449
+
1450
+ # raise an exception if the conflict handler is invalid
1451
+ self._get_handler()
1452
+
1453
+ # action storage
1454
+ self._actions = []
1455
+ self._option_string_actions = {}
1456
+
1457
+ # groups
1458
+ self._action_groups = []
1459
+ self._mutually_exclusive_groups = []
1460
+
1461
+ # defaults storage
1462
+ self._defaults = {}
1463
+
1464
+ # determines whether an "option" looks like a negative number
1465
+ self._negative_number_matcher = _re.compile(r'-\.?\d')
1466
+
1467
+ # whether or not there are any optionals that look like negative
1468
+ # numbers -- uses a list so it can be shared and edited
1469
+ self._has_negative_number_optionals = []
1470
+
1471
+ # ====================
1472
+ # Registration methods
1473
+ # ====================
1474
+
1475
+ def register(self, registry_name, value, object):
1476
+ registry = self._registries.setdefault(registry_name, {})
1477
+ registry[value] = object
1478
+
1479
+ def _registry_get(self, registry_name, value, default=None):
1480
+ return self._registries[registry_name].get(value, default)
1481
+
1482
+ # ==================================
1483
+ # Namespace default accessor methods
1484
+ # ==================================
1485
+
1486
+ def set_defaults(self, **kwargs):
1487
+ self._defaults.update(kwargs)
1488
+
1489
+ # if these defaults match any existing arguments, replace
1490
+ # the previous default on the object with the new one
1491
+ for action in self._actions:
1492
+ if action.dest in kwargs:
1493
+ action.default = kwargs[action.dest]
1494
+
1495
+ def get_default(self, dest):
1496
+ for action in self._actions:
1497
+ if action.dest == dest and action.default is not None:
1498
+ return action.default
1499
+ return self._defaults.get(dest, None)
1500
+
1501
+
1502
+ # =======================
1503
+ # Adding argument actions
1504
+ # =======================
1505
+
1506
+ def add_argument(self, *args, **kwargs):
1507
+ """
1508
+ add_argument(dest, ..., name=value, ...)
1509
+ add_argument(option_string, option_string, ..., name=value, ...)
1510
+ """
1511
+
1512
+ # if no positional args are supplied or only one is supplied and
1513
+ # it doesn't look like an option string, parse a positional
1514
+ # argument
1515
+ chars = self.prefix_chars
1516
+ if not args or len(args) == 1 and args[0][0] not in chars:
1517
+ if args and 'dest' in kwargs:
1518
+ raise TypeError('dest supplied twice for positional argument,'
1519
+ ' did you mean metavar?')
1520
+ kwargs = self._get_positional_kwargs(*args, **kwargs)
1521
+
1522
+ # otherwise, we're adding an optional argument
1523
+ else:
1524
+ kwargs = self._get_optional_kwargs(*args, **kwargs)
1525
+
1526
+ # if no default was supplied, use the parser-level default
1527
+ if 'default' not in kwargs:
1528
+ dest = kwargs['dest']
1529
+ if dest in self._defaults:
1530
+ kwargs['default'] = self._defaults[dest]
1531
+ elif self.argument_default is not None:
1532
+ kwargs['default'] = self.argument_default
1533
+
1534
+ # create the action object, and add it to the parser
1535
+ action_name = kwargs.get('action')
1536
+ action_class = self._pop_action_class(kwargs)
1537
+ if not callable(action_class):
1538
+ raise ValueError(f'unknown action {action_class!r}')
1539
+ action = action_class(**kwargs)
1540
+
1541
+ # raise an error if action for positional argument does not
1542
+ # consume arguments
1543
+ if not action.option_strings and action.nargs == 0:
1544
+ raise ValueError(f'action {action_name!r} is not valid for positional arguments')
1545
+
1546
+ # raise an error if the action type is not callable
1547
+ type_func = self._registry_get('type', action.type, action.type)
1548
+ if not callable(type_func):
1549
+ raise TypeError(f'{type_func!r} is not callable')
1550
+
1551
+ if type_func is FileType:
1552
+ raise TypeError(f'{type_func!r} is a FileType class object, '
1553
+ f'instance of it must be passed')
1554
+
1555
+ # raise an error if the metavar does not match the type
1556
+ if hasattr(self, "_get_validation_formatter"):
1557
+ formatter = self._get_validation_formatter()
1558
+ try:
1559
+ formatter._format_args(action, None)
1560
+ except TypeError:
1561
+ raise ValueError("length of metavar tuple does not match nargs")
1562
+ self._check_help(action)
1563
+ return self._add_action(action)
1564
+
1565
+ def add_argument_group(self, *args, **kwargs):
1566
+ group = _ArgumentGroup(self, *args, **kwargs)
1567
+ self._action_groups.append(group)
1568
+ return group
1569
+
1570
+ def add_mutually_exclusive_group(self, **kwargs):
1571
+ group = _MutuallyExclusiveGroup(self, **kwargs)
1572
+ self._mutually_exclusive_groups.append(group)
1573
+ return group
1574
+
1575
+ def _add_action(self, action):
1576
+ # resolve any conflicts
1577
+ self._check_conflict(action)
1578
+
1579
+ # add to actions list
1580
+ self._actions.append(action)
1581
+ action.container = self
1582
+
1583
+ # index the action by any option strings it has
1584
+ for option_string in action.option_strings:
1585
+ self._option_string_actions[option_string] = action
1586
+
1587
+ # set the flag if any option strings look like negative numbers
1588
+ for option_string in action.option_strings:
1589
+ if self._negative_number_matcher.match(option_string):
1590
+ if not self._has_negative_number_optionals:
1591
+ self._has_negative_number_optionals.append(True)
1592
+
1593
+ # return the created action
1594
+ return action
1595
+
1596
+ def _remove_action(self, action):
1597
+ self._actions.remove(action)
1598
+
1599
+ def _add_container_actions(self, container):
1600
+ # collect groups by titles
1601
+ title_group_map = {}
1602
+ for group in self._action_groups:
1603
+ if group.title in title_group_map:
1604
+ # This branch could happen if a derived class added
1605
+ # groups with duplicated titles in __init__
1606
+ msg = f'cannot merge actions - two groups are named {group.title!r}'
1607
+ raise ValueError(msg)
1608
+ title_group_map[group.title] = group
1609
+
1610
+ # map each action to its group
1611
+ group_map = {}
1612
+ for group in container._action_groups:
1613
+
1614
+ # if a group with the title exists, use that, otherwise
1615
+ # create a new group matching the container's group
1616
+ if group.title not in title_group_map:
1617
+ title_group_map[group.title] = self.add_argument_group(
1618
+ title=group.title,
1619
+ description=group.description,
1620
+ conflict_handler=group.conflict_handler)
1621
+
1622
+ # map the actions to their new group
1623
+ for action in group._group_actions:
1624
+ group_map[action] = title_group_map[group.title]
1625
+
1626
+ # add container's mutually exclusive groups
1627
+ # NOTE: if add_mutually_exclusive_group ever gains title= and
1628
+ # description= then this code will need to be expanded as above
1629
+ for group in container._mutually_exclusive_groups:
1630
+ if group._container is container:
1631
+ cont = self
1632
+ else:
1633
+ cont = title_group_map[group._container.title]
1634
+ mutex_group = cont.add_mutually_exclusive_group(
1635
+ required=group.required)
1636
+
1637
+ # map the actions to their new mutex group
1638
+ for action in group._group_actions:
1639
+ group_map[action] = mutex_group
1640
+
1641
+ # add all actions to this container or their group
1642
+ for action in container._actions:
1643
+ group_map.get(action, self)._add_action(action)
1644
+
1645
+ def _get_positional_kwargs(self, dest, **kwargs):
1646
+ # make sure required is not specified
1647
+ if 'required' in kwargs:
1648
+ msg = "'required' is an invalid argument for positionals"
1649
+ raise TypeError(msg)
1650
+
1651
+ # mark positional arguments as required if at least one is
1652
+ # always required
1653
+ nargs = kwargs.get('nargs')
1654
+ if nargs == 0:
1655
+ raise ValueError('nargs for positionals must be != 0')
1656
+ if nargs not in [OPTIONAL, ZERO_OR_MORE, REMAINDER, SUPPRESS]:
1657
+ kwargs['required'] = True
1658
+
1659
+ # return the keyword arguments with no option strings
1660
+ return dict(kwargs, dest=dest, option_strings=[])
1661
+
1662
+ def _get_optional_kwargs(self, *args, **kwargs):
1663
+ # determine short and long option strings
1664
+ option_strings = []
1665
+ long_option_strings = []
1666
+ for option_string in args:
1667
+ # error on strings that don't start with an appropriate prefix
1668
+ if not option_string[0] in self.prefix_chars:
1669
+ raise ValueError(
1670
+ f'invalid option string {option_string!r}: '
1671
+ f'must start with a character {self.prefix_chars!r}')
1672
+
1673
+ # strings starting with two prefix characters are long options
1674
+ option_strings.append(option_string)
1675
+ if len(option_string) > 1 and option_string[1] in self.prefix_chars:
1676
+ long_option_strings.append(option_string)
1677
+
1678
+ # infer destination, '--foo-bar' -> 'foo_bar' and '-x' -> 'x'
1679
+ dest = kwargs.pop('dest', None)
1680
+ if dest is None:
1681
+ if long_option_strings:
1682
+ dest_option_string = long_option_strings[0]
1683
+ else:
1684
+ dest_option_string = option_strings[0]
1685
+ dest = dest_option_string.lstrip(self.prefix_chars)
1686
+ if not dest:
1687
+ msg = f'dest= is required for options like {option_string!r}'
1688
+ raise TypeError(msg)
1689
+ dest = dest.replace('-', '_')
1690
+
1691
+ # return the updated keyword arguments
1692
+ return dict(kwargs, dest=dest, option_strings=option_strings)
1693
+
1694
+ def _pop_action_class(self, kwargs, default=None):
1695
+ action = kwargs.pop('action', default)
1696
+ return self._registry_get('action', action, action)
1697
+
1698
+ def _get_handler(self):
1699
+ # determine function from conflict handler string
1700
+ handler_func_name = '_handle_conflict_%s' % self.conflict_handler
1701
+ try:
1702
+ return getattr(self, handler_func_name)
1703
+ except AttributeError:
1704
+ msg = f'invalid conflict_resolution value: {self.conflict_handler!r}'
1705
+ raise ValueError(msg)
1706
+
1707
+ def _check_conflict(self, action):
1708
+
1709
+ # find all options that conflict with this option
1710
+ confl_optionals = []
1711
+ for option_string in action.option_strings:
1712
+ if option_string in self._option_string_actions:
1713
+ confl_optional = self._option_string_actions[option_string]
1714
+ confl_optionals.append((option_string, confl_optional))
1715
+
1716
+ # resolve any conflicts
1717
+ if confl_optionals:
1718
+ conflict_handler = self._get_handler()
1719
+ conflict_handler(action, confl_optionals)
1720
+
1721
+ def _handle_conflict_error(self, action, conflicting_actions):
1722
+ message = ngettext('conflicting option string: %s',
1723
+ 'conflicting option strings: %s',
1724
+ len(conflicting_actions))
1725
+ conflict_string = ', '.join([option_string
1726
+ for option_string, action
1727
+ in conflicting_actions])
1728
+ raise ArgumentError(action, message % conflict_string)
1729
+
1730
+ def _handle_conflict_resolve(self, action, conflicting_actions):
1731
+
1732
+ # remove all conflicting options
1733
+ for option_string, action in conflicting_actions:
1734
+
1735
+ # remove the conflicting option
1736
+ action.option_strings.remove(option_string)
1737
+ self._option_string_actions.pop(option_string, None)
1738
+
1739
+ # if the option now has no option string, remove it from the
1740
+ # container holding it
1741
+ if not action.option_strings:
1742
+ action.container._remove_action(action)
1743
+
1744
+ def _check_help(self, action):
1745
+ if action.help and hasattr(self, "_get_validation_formatter"):
1746
+ formatter = self._get_validation_formatter()
1747
+ try:
1748
+ formatter._expand_help(action)
1749
+ except (ValueError, TypeError, KeyError) as exc:
1750
+ raise ValueError('badly formed help string') from exc
1751
+
1752
+
1753
+ class _ArgumentGroup(_ActionsContainer):
1754
+
1755
+ def __init__(self, container, title=None, description=None, **kwargs):
1756
+ if 'prefix_chars' in kwargs:
1757
+ import warnings
1758
+ depr_msg = (
1759
+ "The use of the undocumented 'prefix_chars' parameter in "
1760
+ "ArgumentParser.add_argument_group() is deprecated."
1761
+ )
1762
+ warnings.warn(depr_msg, DeprecationWarning, stacklevel=3)
1763
+
1764
+ # add any missing keyword arguments by checking the container
1765
+ update = kwargs.setdefault
1766
+ update('conflict_handler', container.conflict_handler)
1767
+ update('prefix_chars', container.prefix_chars)
1768
+ update('argument_default', container.argument_default)
1769
+ super_init = super(_ArgumentGroup, self).__init__
1770
+ super_init(description=description, **kwargs)
1771
+
1772
+ # group attributes
1773
+ self.title = title
1774
+ self._group_actions = []
1775
+
1776
+ # share most attributes with the container
1777
+ self._registries = container._registries
1778
+ self._actions = container._actions
1779
+ self._option_string_actions = container._option_string_actions
1780
+ self._defaults = container._defaults
1781
+ self._has_negative_number_optionals = \
1782
+ container._has_negative_number_optionals
1783
+ self._mutually_exclusive_groups = container._mutually_exclusive_groups
1784
+
1785
+ def _add_action(self, action):
1786
+ action = super(_ArgumentGroup, self)._add_action(action)
1787
+ self._group_actions.append(action)
1788
+ return action
1789
+
1790
+ def _remove_action(self, action):
1791
+ super(_ArgumentGroup, self)._remove_action(action)
1792
+ self._group_actions.remove(action)
1793
+
1794
+ def add_argument_group(self, *args, **kwargs):
1795
+ raise ValueError('argument groups cannot be nested')
1796
+
1797
+ class _MutuallyExclusiveGroup(_ArgumentGroup):
1798
+
1799
+ def __init__(self, container, required=False):
1800
+ super(_MutuallyExclusiveGroup, self).__init__(container)
1801
+ self.required = required
1802
+ self._container = container
1803
+
1804
+ def _add_action(self, action):
1805
+ if action.required:
1806
+ msg = 'mutually exclusive arguments must be optional'
1807
+ raise ValueError(msg)
1808
+ action = self._container._add_action(action)
1809
+ self._group_actions.append(action)
1810
+ return action
1811
+
1812
+ def _remove_action(self, action):
1813
+ self._container._remove_action(action)
1814
+ self._group_actions.remove(action)
1815
+
1816
+ def add_mutually_exclusive_group(self, **kwargs):
1817
+ raise ValueError('mutually exclusive groups cannot be nested')
1818
+
1819
+ def _prog_name(prog=None):
1820
+ if prog is not None:
1821
+ return prog
1822
+ arg0 = _sys.argv[0]
1823
+ try:
1824
+ modspec = _sys.modules['__main__'].__spec__
1825
+ except (KeyError, AttributeError):
1826
+ # possibly PYTHONSTARTUP or -X presite or other weird edge case
1827
+ # no good answer here, so fall back to the default
1828
+ modspec = None
1829
+ if modspec is None:
1830
+ # simple script
1831
+ return _os.path.basename(arg0)
1832
+ if modspec.name != '__main__' and arg0 != modspec.origin:
1833
+ # named module executed as main without altering sys.argv[0]
1834
+ return _os.path.basename(arg0)
1835
+ py = _os.path.basename(_sys.executable)
1836
+ if modspec.name != '__main__':
1837
+ # imported module or package
1838
+ modname = modspec.name.removesuffix('.__main__')
1839
+ return f'{py} -m {modname}'
1840
+ # directory or ZIP file
1841
+ return f'{py} {arg0}'
1842
+
1843
+
1844
+ class ArgumentParser(_AttributeHolder, _ActionsContainer):
1845
+ """Object for parsing command line strings into Python objects.
1846
+
1847
+ Keyword Arguments:
1848
+ - prog -- The name of the program (default:
1849
+ ``os.path.basename(sys.argv[0])``)
1850
+ - usage -- A usage message (default: auto-generated from arguments)
1851
+ - description -- A description of what the program does
1852
+ - epilog -- Text following the argument descriptions
1853
+ - parents -- Parsers whose arguments should be copied into this one
1854
+ - formatter_class -- HelpFormatter class for printing help messages
1855
+ - prefix_chars -- Characters that prefix optional arguments
1856
+ - fromfile_prefix_chars -- Characters that prefix files containing
1857
+ additional arguments
1858
+ - argument_default -- The default value for all arguments
1859
+ - conflict_handler -- String indicating how to handle conflicts
1860
+ - add_help -- Add a -h/-help option
1861
+ - allow_abbrev -- Allow long options to be abbreviated unambiguously
1862
+ - exit_on_error -- Determines whether or not ArgumentParser exits with
1863
+ error info when an error occurs
1864
+ - suggest_on_error - Enables suggestions for mistyped argument choices
1865
+ and subparser names (default: ``False``)
1866
+ - color - Allow color output in help messages (default: ``False``)
1867
+ """
1868
+
1869
+ def __init__(self,
1870
+ prog=None,
1871
+ usage=None,
1872
+ description=None,
1873
+ epilog=None,
1874
+ parents=[],
1875
+ formatter_class=HelpFormatter,
1876
+ prefix_chars='-',
1877
+ fromfile_prefix_chars=None,
1878
+ argument_default=None,
1879
+ conflict_handler='error',
1880
+ add_help=True,
1881
+ allow_abbrev=True,
1882
+ exit_on_error=True,
1883
+ *,
1884
+ suggest_on_error=False,
1885
+ color=True,
1886
+ ):
1887
+ superinit = super(ArgumentParser, self).__init__
1888
+ superinit(description=description,
1889
+ prefix_chars=prefix_chars,
1890
+ argument_default=argument_default,
1891
+ conflict_handler=conflict_handler)
1892
+
1893
+ self.prog = _prog_name(prog)
1894
+ self.usage = usage
1895
+ self.epilog = epilog
1896
+ self.formatter_class = formatter_class
1897
+ self.fromfile_prefix_chars = fromfile_prefix_chars
1898
+ self.add_help = add_help
1899
+ self.allow_abbrev = allow_abbrev
1900
+ self.exit_on_error = exit_on_error
1901
+ self.suggest_on_error = suggest_on_error
1902
+ self.color = color
1903
+
1904
+ # Cached formatter for validation (avoids repeated _set_color calls)
1905
+ self._cached_formatter = None
1906
+
1907
+ add_group = self.add_argument_group
1908
+ self._positionals = add_group(_('positional arguments'))
1909
+ self._optionals = add_group(_('options'))
1910
+ self._subparsers = None
1911
+
1912
+ # register types
1913
+ self.register('type', None, _identity)
1914
+
1915
+ # add help argument if necessary
1916
+ # (using explicit default to override global argument_default)
1917
+ default_prefix = '-' if '-' in prefix_chars else prefix_chars[0]
1918
+ if self.add_help:
1919
+ self.add_argument(
1920
+ default_prefix+'h', default_prefix*2+'help',
1921
+ action='help', default=SUPPRESS,
1922
+ help=_('show this help message and exit'))
1923
+
1924
+ # add parent arguments and defaults
1925
+ for parent in parents:
1926
+ if not isinstance(parent, ArgumentParser):
1927
+ raise TypeError('parents must be a list of ArgumentParser')
1928
+ self._add_container_actions(parent)
1929
+ defaults = parent._defaults
1930
+ self._defaults.update(defaults)
1931
+
1932
+ # =======================
1933
+ # Pretty __repr__ methods
1934
+ # =======================
1935
+
1936
+ def _get_kwargs(self):
1937
+ names = [
1938
+ 'prog',
1939
+ 'usage',
1940
+ 'description',
1941
+ 'formatter_class',
1942
+ 'conflict_handler',
1943
+ 'add_help',
1944
+ ]
1945
+ return [(name, getattr(self, name)) for name in names]
1946
+
1947
+ # ==================================
1948
+ # Optional/Positional adding methods
1949
+ # ==================================
1950
+
1951
+ def add_subparsers(self, **kwargs):
1952
+ if self._subparsers is not None:
1953
+ raise ValueError('cannot have multiple subparser arguments')
1954
+
1955
+ # add the parser class to the arguments if it's not present
1956
+ kwargs.setdefault('parser_class', type(self))
1957
+
1958
+ if 'title' in kwargs or 'description' in kwargs:
1959
+ title = kwargs.pop('title', _('subcommands'))
1960
+ description = kwargs.pop('description', None)
1961
+ self._subparsers = self.add_argument_group(title, description)
1962
+ else:
1963
+ self._subparsers = self._positionals
1964
+
1965
+ # prog defaults to the usage message of this parser, skipping
1966
+ # optional arguments and with no "usage:" prefix
1967
+ if kwargs.get('prog') is None:
1968
+ # Create formatter without color to avoid storing ANSI codes in prog
1969
+ formatter = self.formatter_class(prog=self.prog)
1970
+ formatter._set_color(False)
1971
+ positionals = self._get_positional_actions()
1972
+ groups = self._mutually_exclusive_groups
1973
+ formatter.add_usage(None, positionals, groups, '')
1974
+ kwargs['prog'] = formatter.format_help().strip()
1975
+
1976
+ # create the parsers action and add it to the positionals list
1977
+ parsers_class = self._pop_action_class(kwargs, 'parsers')
1978
+ action = parsers_class(option_strings=[], **kwargs)
1979
+ action._color = self.color
1980
+ self._check_help(action)
1981
+ self._subparsers._add_action(action)
1982
+
1983
+ # return the created parsers action
1984
+ return action
1985
+
1986
+ def _add_action(self, action):
1987
+ if action.option_strings:
1988
+ self._optionals._add_action(action)
1989
+ else:
1990
+ self._positionals._add_action(action)
1991
+ return action
1992
+
1993
+ def _get_optional_actions(self):
1994
+ return [action
1995
+ for action in self._actions
1996
+ if action.option_strings]
1997
+
1998
+ def _get_positional_actions(self):
1999
+ return [action
2000
+ for action in self._actions
2001
+ if not action.option_strings]
2002
+
2003
+ # =====================================
2004
+ # Command line argument parsing methods
2005
+ # =====================================
2006
+
2007
+ def parse_args(self, args=None, namespace=None):
2008
+ args, argv = self.parse_known_args(args, namespace)
2009
+ if argv:
2010
+ msg = _('unrecognized arguments: %s') % ' '.join(argv)
2011
+ if self.exit_on_error:
2012
+ self.error(msg)
2013
+ else:
2014
+ raise ArgumentError(None, msg)
2015
+ return args
2016
+
2017
+ def parse_known_args(self, args=None, namespace=None):
2018
+ return self._parse_known_args2(args, namespace, intermixed=False)
2019
+
2020
+ def _parse_known_args2(self, args, namespace, intermixed):
2021
+ if args is None:
2022
+ # args default to the system args
2023
+ args = _sys.argv[1:]
2024
+ else:
2025
+ # make sure that args are mutable
2026
+ args = list(args)
2027
+
2028
+ # default Namespace built from parser defaults
2029
+ if namespace is None:
2030
+ namespace = Namespace()
2031
+
2032
+ # add any action defaults that aren't present
2033
+ for action in self._actions:
2034
+ if action.dest is not SUPPRESS:
2035
+ if not hasattr(namespace, action.dest):
2036
+ if action.default is not SUPPRESS:
2037
+ setattr(namespace, action.dest, action.default)
2038
+
2039
+ # add any parser defaults that aren't present
2040
+ for dest in self._defaults:
2041
+ if not hasattr(namespace, dest):
2042
+ setattr(namespace, dest, self._defaults[dest])
2043
+
2044
+ # parse the arguments and exit if there are any errors
2045
+ if self.exit_on_error:
2046
+ try:
2047
+ namespace, args = self._parse_known_args(args, namespace, intermixed)
2048
+ except ArgumentError as err:
2049
+ self.error(str(err))
2050
+ else:
2051
+ namespace, args = self._parse_known_args(args, namespace, intermixed)
2052
+
2053
+ if hasattr(namespace, _UNRECOGNIZED_ARGS_ATTR):
2054
+ args.extend(getattr(namespace, _UNRECOGNIZED_ARGS_ATTR))
2055
+ delattr(namespace, _UNRECOGNIZED_ARGS_ATTR)
2056
+ return namespace, args
2057
+
2058
+ def _parse_known_args(self, arg_strings, namespace, intermixed):
2059
+ # replace arg strings that are file references
2060
+ if self.fromfile_prefix_chars is not None:
2061
+ arg_strings = self._read_args_from_files(arg_strings)
2062
+
2063
+ # map all mutually exclusive arguments to the other arguments
2064
+ # they can't occur with
2065
+ action_conflicts = {}
2066
+ for mutex_group in self._mutually_exclusive_groups:
2067
+ group_actions = mutex_group._group_actions
2068
+ for i, mutex_action in enumerate(mutex_group._group_actions):
2069
+ conflicts = action_conflicts.setdefault(mutex_action, [])
2070
+ conflicts.extend(group_actions[:i])
2071
+ conflicts.extend(group_actions[i + 1:])
2072
+
2073
+ # find all option indices, and determine the arg_string_pattern
2074
+ # which has an 'O' if there is an option at an index,
2075
+ # an 'A' if there is an argument, or a '-' if there is a '--'
2076
+ option_string_indices = {}
2077
+ arg_string_pattern_parts = []
2078
+ arg_strings_iter = iter(arg_strings)
2079
+ for i, arg_string in enumerate(arg_strings_iter):
2080
+
2081
+ # all args after -- are non-options
2082
+ if arg_string == '--':
2083
+ arg_string_pattern_parts.append('-')
2084
+ for arg_string in arg_strings_iter:
2085
+ arg_string_pattern_parts.append('A')
2086
+
2087
+ # otherwise, add the arg to the arg strings
2088
+ # and note the index if it was an option
2089
+ else:
2090
+ option_tuples = self._parse_optional(arg_string)
2091
+ if option_tuples is None:
2092
+ pattern = 'A'
2093
+ else:
2094
+ option_string_indices[i] = option_tuples
2095
+ pattern = 'O'
2096
+ arg_string_pattern_parts.append(pattern)
2097
+
2098
+ # join the pieces together to form the pattern
2099
+ arg_strings_pattern = ''.join(arg_string_pattern_parts)
2100
+
2101
+ # converts arg strings to the appropriate and then takes the action
2102
+ seen_actions = set()
2103
+ seen_non_default_actions = set()
2104
+ warned = set()
2105
+
2106
+ def take_action(action, argument_strings, option_string=None):
2107
+ seen_actions.add(action)
2108
+ argument_values = self._get_values(action, argument_strings)
2109
+
2110
+ # error if this argument is not allowed with other previously
2111
+ # seen arguments
2112
+ if action.option_strings or argument_strings:
2113
+ seen_non_default_actions.add(action)
2114
+ for conflict_action in action_conflicts.get(action, []):
2115
+ if conflict_action in seen_non_default_actions:
2116
+ msg = _('not allowed with argument %s')
2117
+ action_name = _get_action_name(conflict_action)
2118
+ raise ArgumentError(action, msg % action_name)
2119
+
2120
+ # take the action if we didn't receive a SUPPRESS value
2121
+ # (e.g. from a default)
2122
+ if argument_values is not SUPPRESS:
2123
+ action(self, namespace, argument_values, option_string)
2124
+
2125
+ # function to convert arg_strings into an optional action
2126
+ def consume_optional(start_index):
2127
+
2128
+ # get the optional identified at this index
2129
+ option_tuples = option_string_indices[start_index]
2130
+ # if multiple actions match, the option string was ambiguous
2131
+ if len(option_tuples) > 1:
2132
+ options = ', '.join([option_string
2133
+ for action, option_string, sep, explicit_arg in option_tuples])
2134
+ args = {'option': arg_strings[start_index], 'matches': options}
2135
+ msg = _('ambiguous option: %(option)s could match %(matches)s')
2136
+ raise ArgumentError(None, msg % args)
2137
+
2138
+ action, option_string, sep, explicit_arg = option_tuples[0]
2139
+
2140
+ # identify additional optionals in the same arg string
2141
+ # (e.g. -xyz is the same as -x -y -z if no args are required)
2142
+ match_argument = self._match_argument
2143
+ action_tuples = []
2144
+ while True:
2145
+
2146
+ # if we found no optional action, skip it
2147
+ if action is None:
2148
+ extras.append(arg_strings[start_index])
2149
+ extras_pattern.append('O')
2150
+ return start_index + 1
2151
+
2152
+ # if there is an explicit argument, try to match the
2153
+ # optional's string arguments to only this
2154
+ if explicit_arg is not None:
2155
+ arg_count = match_argument(action, 'A')
2156
+
2157
+ # if the action is a single-dash option and takes no
2158
+ # arguments, try to parse more single-dash options out
2159
+ # of the tail of the option string
2160
+ chars = self.prefix_chars
2161
+ if (
2162
+ arg_count == 0
2163
+ and option_string[1] not in chars
2164
+ and explicit_arg != ''
2165
+ ):
2166
+ if sep or explicit_arg[0] in chars:
2167
+ msg = _('ignored explicit argument %r')
2168
+ raise ArgumentError(action, msg % explicit_arg)
2169
+ action_tuples.append((action, [], option_string))
2170
+ char = option_string[0]
2171
+ option_string = char + explicit_arg[0]
2172
+ optionals_map = self._option_string_actions
2173
+ if option_string in optionals_map:
2174
+ action = optionals_map[option_string]
2175
+ explicit_arg = explicit_arg[1:]
2176
+ if not explicit_arg:
2177
+ sep = explicit_arg = None
2178
+ elif explicit_arg[0] == '=':
2179
+ sep = '='
2180
+ explicit_arg = explicit_arg[1:]
2181
+ else:
2182
+ sep = ''
2183
+ else:
2184
+ extras.append(char + explicit_arg)
2185
+ extras_pattern.append('O')
2186
+ stop = start_index + 1
2187
+ break
2188
+ # if the action expect exactly one argument, we've
2189
+ # successfully matched the option; exit the loop
2190
+ elif arg_count == 1:
2191
+ stop = start_index + 1
2192
+ args = [explicit_arg]
2193
+ action_tuples.append((action, args, option_string))
2194
+ break
2195
+
2196
+ # error if a double-dash option did not use the
2197
+ # explicit argument
2198
+ else:
2199
+ msg = _('ignored explicit argument %r')
2200
+ raise ArgumentError(action, msg % explicit_arg)
2201
+
2202
+ # if there is no explicit argument, try to match the
2203
+ # optional's string arguments with the following strings
2204
+ # if successful, exit the loop
2205
+ else:
2206
+ start = start_index + 1
2207
+ selected_patterns = arg_strings_pattern[start:]
2208
+ arg_count = match_argument(action, selected_patterns)
2209
+ stop = start + arg_count
2210
+ args = arg_strings[start:stop]
2211
+ action_tuples.append((action, args, option_string))
2212
+ break
2213
+
2214
+ # add the Optional to the list and return the index at which
2215
+ # the Optional's string args stopped
2216
+ assert action_tuples
2217
+ for action, args, option_string in action_tuples:
2218
+ if action.deprecated and option_string not in warned:
2219
+ self._warning(_("option '%(option)s' is deprecated") %
2220
+ {'option': option_string})
2221
+ warned.add(option_string)
2222
+ take_action(action, args, option_string)
2223
+ return stop
2224
+
2225
+ # the list of Positionals left to be parsed; this is modified
2226
+ # by consume_positionals()
2227
+ positionals = self._get_positional_actions()
2228
+
2229
+ # function to convert arg_strings into positional actions
2230
+ def consume_positionals(start_index):
2231
+ # match as many Positionals as possible
2232
+ match_partial = self._match_arguments_partial
2233
+ selected_pattern = arg_strings_pattern[start_index:]
2234
+ arg_counts = match_partial(positionals, selected_pattern)
2235
+
2236
+ # slice off the appropriate arg strings for each Positional
2237
+ # and add the Positional and its args to the list
2238
+ for action, arg_count in zip(positionals, arg_counts):
2239
+ args = arg_strings[start_index: start_index + arg_count]
2240
+ # Strip out the first '--' if it is not in REMAINDER arg.
2241
+ if action.nargs == PARSER:
2242
+ if arg_strings_pattern[start_index] == '-':
2243
+ assert args[0] == '--'
2244
+ args.remove('--')
2245
+ elif action.nargs != REMAINDER:
2246
+ if (arg_strings_pattern.find('-', start_index,
2247
+ start_index + arg_count) >= 0):
2248
+ args.remove('--')
2249
+ start_index += arg_count
2250
+ if args and action.deprecated and action.dest not in warned:
2251
+ self._warning(_("argument '%(argument_name)s' is deprecated") %
2252
+ {'argument_name': action.dest})
2253
+ warned.add(action.dest)
2254
+ take_action(action, args)
2255
+
2256
+ # slice off the Positionals that we just parsed and return the
2257
+ # index at which the Positionals' string args stopped
2258
+ positionals[:] = positionals[len(arg_counts):]
2259
+ return start_index
2260
+
2261
+ # consume Positionals and Optionals alternately, until we have
2262
+ # passed the last option string
2263
+ extras = []
2264
+ extras_pattern = []
2265
+ start_index = 0
2266
+ if option_string_indices:
2267
+ max_option_string_index = max(option_string_indices)
2268
+ else:
2269
+ max_option_string_index = -1
2270
+ while start_index <= max_option_string_index:
2271
+
2272
+ # consume any Positionals preceding the next option
2273
+ next_option_string_index = start_index
2274
+ while next_option_string_index <= max_option_string_index:
2275
+ if next_option_string_index in option_string_indices:
2276
+ break
2277
+ next_option_string_index += 1
2278
+ if not intermixed and start_index != next_option_string_index:
2279
+ positionals_end_index = consume_positionals(start_index)
2280
+
2281
+ # only try to parse the next optional if we didn't consume
2282
+ # the option string during the positionals parsing
2283
+ if positionals_end_index > start_index:
2284
+ start_index = positionals_end_index
2285
+ continue
2286
+ else:
2287
+ start_index = positionals_end_index
2288
+
2289
+ # if we consumed all the positionals we could and we're not
2290
+ # at the index of an option string, there were extra arguments
2291
+ if start_index not in option_string_indices:
2292
+ strings = arg_strings[start_index:next_option_string_index]
2293
+ extras.extend(strings)
2294
+ extras_pattern.extend(arg_strings_pattern[start_index:next_option_string_index])
2295
+ start_index = next_option_string_index
2296
+
2297
+ # consume the next optional and any arguments for it
2298
+ start_index = consume_optional(start_index)
2299
+
2300
+ if not intermixed:
2301
+ # consume any positionals following the last Optional
2302
+ stop_index = consume_positionals(start_index)
2303
+
2304
+ # if we didn't consume all the argument strings, there were extras
2305
+ extras.extend(arg_strings[stop_index:])
2306
+ else:
2307
+ extras.extend(arg_strings[start_index:])
2308
+ extras_pattern.extend(arg_strings_pattern[start_index:])
2309
+ extras_pattern = ''.join(extras_pattern)
2310
+ assert len(extras_pattern) == len(extras)
2311
+ # consume all positionals
2312
+ arg_strings = [s for s, c in zip(extras, extras_pattern) if c != 'O']
2313
+ arg_strings_pattern = extras_pattern.replace('O', '')
2314
+ stop_index = consume_positionals(0)
2315
+ # leave unknown optionals and non-consumed positionals in extras
2316
+ for i, c in enumerate(extras_pattern):
2317
+ if not stop_index:
2318
+ break
2319
+ if c != 'O':
2320
+ stop_index -= 1
2321
+ extras[i] = None
2322
+ extras = [s for s in extras if s is not None]
2323
+
2324
+ # make sure all required actions were present and also convert
2325
+ # action defaults which were not given as arguments
2326
+ required_actions = []
2327
+ for action in self._actions:
2328
+ if action not in seen_actions:
2329
+ if action.required:
2330
+ required_actions.append(_get_action_name(action))
2331
+ else:
2332
+ # Convert action default now instead of doing it before
2333
+ # parsing arguments to avoid calling convert functions
2334
+ # twice (which may fail) if the argument was given, but
2335
+ # only if it was defined already in the namespace
2336
+ if (action.default is not None and
2337
+ isinstance(action.default, str) and
2338
+ hasattr(namespace, action.dest) and
2339
+ action.default is getattr(namespace, action.dest)):
2340
+ setattr(namespace, action.dest,
2341
+ self._get_value(action, action.default))
2342
+
2343
+ if required_actions:
2344
+ raise ArgumentError(None, _('the following arguments are required: %s') %
2345
+ ', '.join(required_actions))
2346
+
2347
+ # make sure all required groups had one option present
2348
+ for group in self._mutually_exclusive_groups:
2349
+ if group.required:
2350
+ for action in group._group_actions:
2351
+ if action in seen_non_default_actions:
2352
+ break
2353
+
2354
+ # if no actions were used, report the error
2355
+ else:
2356
+ names = [_get_action_name(action)
2357
+ for action in group._group_actions
2358
+ if action.help is not SUPPRESS]
2359
+ msg = _('one of the arguments %s is required')
2360
+ raise ArgumentError(None, msg % ' '.join(names))
2361
+
2362
+ # return the updated namespace and the extra arguments
2363
+ return namespace, extras
2364
+
2365
+ def _read_args_from_files(self, arg_strings):
2366
+ # expand arguments referencing files
2367
+ new_arg_strings = []
2368
+ for arg_string in arg_strings:
2369
+
2370
+ # for regular arguments, just add them back into the list
2371
+ if not arg_string or arg_string[0] not in self.fromfile_prefix_chars:
2372
+ new_arg_strings.append(arg_string)
2373
+
2374
+ # replace arguments referencing files with the file content
2375
+ else:
2376
+ try:
2377
+ with open(arg_string[1:],
2378
+ encoding=_sys.getfilesystemencoding(),
2379
+ errors=_sys.getfilesystemencodeerrors()) as args_file:
2380
+ arg_strings = []
2381
+ for arg_line in args_file.read().splitlines():
2382
+ for arg in self.convert_arg_line_to_args(arg_line):
2383
+ arg_strings.append(arg)
2384
+ arg_strings = self._read_args_from_files(arg_strings)
2385
+ new_arg_strings.extend(arg_strings)
2386
+ except OSError as err:
2387
+ raise ArgumentError(None, str(err))
2388
+
2389
+ # return the modified argument list
2390
+ return new_arg_strings
2391
+
2392
+ def convert_arg_line_to_args(self, arg_line):
2393
+ return [arg_line]
2394
+
2395
+ def _match_argument(self, action, arg_strings_pattern):
2396
+ # match the pattern for this action to the arg strings
2397
+ nargs_pattern = self._get_nargs_pattern(action)
2398
+ match = _re.match(nargs_pattern, arg_strings_pattern)
2399
+
2400
+ # raise an exception if we weren't able to find a match
2401
+ if match is None:
2402
+ nargs_errors = {
2403
+ None: _('expected one argument'),
2404
+ OPTIONAL: _('expected at most one argument'),
2405
+ ONE_OR_MORE: _('expected at least one argument'),
2406
+ }
2407
+ msg = nargs_errors.get(action.nargs)
2408
+ if msg is None:
2409
+ msg = ngettext('expected %s argument',
2410
+ 'expected %s arguments',
2411
+ action.nargs) % action.nargs
2412
+ raise ArgumentError(action, msg)
2413
+
2414
+ # return the number of arguments matched
2415
+ return len(match.group(1))
2416
+
2417
+ def _match_arguments_partial(self, actions, arg_strings_pattern):
2418
+ # progressively shorten the actions list by slicing off the
2419
+ # final actions until we find a match
2420
+ for i in range(len(actions), 0, -1):
2421
+ actions_slice = actions[:i]
2422
+ pattern = ''.join([self._get_nargs_pattern(action)
2423
+ for action in actions_slice])
2424
+ match = _re.match(pattern, arg_strings_pattern)
2425
+ if match is not None:
2426
+ result = [len(string) for string in match.groups()]
2427
+ if (match.end() < len(arg_strings_pattern)
2428
+ and arg_strings_pattern[match.end()] == 'O'):
2429
+ while result and not result[-1]:
2430
+ del result[-1]
2431
+ return result
2432
+ return []
2433
+
2434
+ def _parse_optional(self, arg_string):
2435
+ # if it's an empty string, it was meant to be a positional
2436
+ if not arg_string:
2437
+ return None
2438
+
2439
+ # if it doesn't start with a prefix, it was meant to be positional
2440
+ if not arg_string[0] in self.prefix_chars:
2441
+ return None
2442
+
2443
+ # if the option string is present in the parser, return the action
2444
+ if arg_string in self._option_string_actions:
2445
+ action = self._option_string_actions[arg_string]
2446
+ return [(action, arg_string, None, None)]
2447
+
2448
+ # if it's just a single character, it was meant to be positional
2449
+ if len(arg_string) == 1:
2450
+ return None
2451
+
2452
+ # if the option string before the "=" is present, return the action
2453
+ option_string, sep, explicit_arg = arg_string.partition('=')
2454
+ if sep and option_string in self._option_string_actions:
2455
+ action = self._option_string_actions[option_string]
2456
+ return [(action, option_string, sep, explicit_arg)]
2457
+
2458
+ # search through all possible prefixes of the option string
2459
+ # and all actions in the parser for possible interpretations
2460
+ option_tuples = self._get_option_tuples(arg_string)
2461
+
2462
+ if option_tuples:
2463
+ return option_tuples
2464
+
2465
+ # if it was not found as an option, but it looks like a negative
2466
+ # number, it was meant to be positional
2467
+ # unless there are negative-number-like options
2468
+ if self._negative_number_matcher.match(arg_string):
2469
+ if not self._has_negative_number_optionals:
2470
+ return None
2471
+
2472
+ # if it contains a space, it was meant to be a positional
2473
+ if ' ' in arg_string:
2474
+ return None
2475
+
2476
+ # it was meant to be an optional but there is no such option
2477
+ # in this parser (though it might be a valid option in a subparser)
2478
+ return [(None, arg_string, None, None)]
2479
+
2480
+ def _get_option_tuples(self, option_string):
2481
+ result = []
2482
+
2483
+ # option strings starting with two prefix characters are only
2484
+ # split at the '='
2485
+ chars = self.prefix_chars
2486
+ if option_string[0] in chars and option_string[1] in chars:
2487
+ if self.allow_abbrev:
2488
+ option_prefix, sep, explicit_arg = option_string.partition('=')
2489
+ if not sep:
2490
+ sep = explicit_arg = None
2491
+ for option_string in self._option_string_actions:
2492
+ if option_string.startswith(option_prefix):
2493
+ action = self._option_string_actions[option_string]
2494
+ tup = action, option_string, sep, explicit_arg
2495
+ result.append(tup)
2496
+
2497
+ # single character options can be concatenated with their arguments
2498
+ # but multiple character options always have to have their argument
2499
+ # separate
2500
+ elif option_string[0] in chars and option_string[1] not in chars:
2501
+ option_prefix, sep, explicit_arg = option_string.partition('=')
2502
+ if not sep:
2503
+ sep = explicit_arg = None
2504
+ short_option_prefix = option_string[:2]
2505
+ short_explicit_arg = option_string[2:]
2506
+
2507
+ for option_string in self._option_string_actions:
2508
+ if option_string == short_option_prefix:
2509
+ action = self._option_string_actions[option_string]
2510
+ tup = action, option_string, '', short_explicit_arg
2511
+ result.append(tup)
2512
+ elif self.allow_abbrev and option_string.startswith(option_prefix):
2513
+ action = self._option_string_actions[option_string]
2514
+ tup = action, option_string, sep, explicit_arg
2515
+ result.append(tup)
2516
+
2517
+ # shouldn't ever get here
2518
+ else:
2519
+ raise ArgumentError(None, _('unexpected option string: %s') % option_string)
2520
+
2521
+ # return the collected option tuples
2522
+ return result
2523
+
2524
+ def _get_nargs_pattern(self, action):
2525
+ # in all examples below, we have to allow for '--' args
2526
+ # which are represented as '-' in the pattern
2527
+ nargs = action.nargs
2528
+ # if this is an optional action, -- is not allowed
2529
+ option = action.option_strings
2530
+
2531
+ # the default (None) is assumed to be a single argument
2532
+ if nargs is None:
2533
+ nargs_pattern = '([A])' if option else '(-*A-*)'
2534
+
2535
+ # allow zero or one arguments
2536
+ elif nargs == OPTIONAL:
2537
+ nargs_pattern = '(A?)' if option else '(-*A?-*)'
2538
+
2539
+ # allow zero or more arguments
2540
+ elif nargs == ZERO_OR_MORE:
2541
+ nargs_pattern = '(A*)' if option else '(-*[A-]*)'
2542
+
2543
+ # allow one or more arguments
2544
+ elif nargs == ONE_OR_MORE:
2545
+ nargs_pattern = '(A+)' if option else '(-*A[A-]*)'
2546
+
2547
+ # allow any number of options or arguments
2548
+ elif nargs == REMAINDER:
2549
+ nargs_pattern = '([AO]*)' if option else '(.*)'
2550
+
2551
+ # allow one argument followed by any number of options or arguments
2552
+ elif nargs == PARSER:
2553
+ nargs_pattern = '(A[AO]*)' if option else '(-*A[-AO]*)'
2554
+
2555
+ # suppress action, like nargs=0
2556
+ elif nargs == SUPPRESS:
2557
+ nargs_pattern = '()' if option else '(-*)'
2558
+
2559
+ # all others should be integers
2560
+ else:
2561
+ nargs_pattern = '([AO]{%d})' % nargs if option else '((?:-*A){%d}-*)' % nargs
2562
+
2563
+ # return the pattern
2564
+ return nargs_pattern
2565
+
2566
+ # ========================
2567
+ # Alt command line argument parsing, allowing free intermix
2568
+ # ========================
2569
+
2570
+ def parse_intermixed_args(self, args=None, namespace=None):
2571
+ args, argv = self.parse_known_intermixed_args(args, namespace)
2572
+ if argv:
2573
+ msg = _('unrecognized arguments: %s') % ' '.join(argv)
2574
+ if self.exit_on_error:
2575
+ self.error(msg)
2576
+ else:
2577
+ raise ArgumentError(None, msg)
2578
+ return args
2579
+
2580
+ def parse_known_intermixed_args(self, args=None, namespace=None):
2581
+ # returns a namespace and list of extras
2582
+ #
2583
+ # positional can be freely intermixed with optionals. optionals are
2584
+ # first parsed with all positional arguments deactivated. The 'extras'
2585
+ # are then parsed. If the parser definition is incompatible with the
2586
+ # intermixed assumptions (e.g. use of REMAINDER, subparsers) a
2587
+ # TypeError is raised.
2588
+
2589
+ positionals = self._get_positional_actions()
2590
+ a = [action for action in positionals
2591
+ if action.nargs in [PARSER, REMAINDER]]
2592
+ if a:
2593
+ raise TypeError('parse_intermixed_args: positional arg'
2594
+ ' with nargs=%s'%a[0].nargs)
2595
+
2596
+ return self._parse_known_args2(args, namespace, intermixed=True)
2597
+
2598
+ # ========================
2599
+ # Value conversion methods
2600
+ # ========================
2601
+
2602
+ def _get_values(self, action, arg_strings):
2603
+ # optional argument produces a default when not present
2604
+ if not arg_strings and action.nargs == OPTIONAL:
2605
+ if action.option_strings:
2606
+ value = action.const
2607
+ else:
2608
+ value = action.default
2609
+ if isinstance(value, str) and value is not SUPPRESS:
2610
+ value = self._get_value(action, value)
2611
+
2612
+ # when nargs='*' on a positional, if there were no command-line
2613
+ # args, use the default if it is anything other than None
2614
+ elif (not arg_strings and action.nargs == ZERO_OR_MORE and
2615
+ not action.option_strings):
2616
+ if action.default is not None:
2617
+ value = action.default
2618
+ else:
2619
+ value = []
2620
+
2621
+ # single argument or optional argument produces a single value
2622
+ elif len(arg_strings) == 1 and action.nargs in [None, OPTIONAL]:
2623
+ arg_string, = arg_strings
2624
+ value = self._get_value(action, arg_string)
2625
+ self._check_value(action, value)
2626
+
2627
+ # REMAINDER arguments convert all values, checking none
2628
+ elif action.nargs == REMAINDER:
2629
+ value = [self._get_value(action, v) for v in arg_strings]
2630
+
2631
+ # PARSER arguments convert all values, but check only the first
2632
+ elif action.nargs == PARSER:
2633
+ value = [self._get_value(action, v) for v in arg_strings]
2634
+ self._check_value(action, value[0])
2635
+
2636
+ # SUPPRESS argument does not put anything in the namespace
2637
+ elif action.nargs == SUPPRESS:
2638
+ value = SUPPRESS
2639
+
2640
+ # all other types of nargs produce a list
2641
+ else:
2642
+ value = [self._get_value(action, v) for v in arg_strings]
2643
+ for v in value:
2644
+ self._check_value(action, v)
2645
+
2646
+ # return the converted value
2647
+ return value
2648
+
2649
+ def _get_value(self, action, arg_string):
2650
+ type_func = self._registry_get('type', action.type, action.type)
2651
+ if not callable(type_func):
2652
+ raise TypeError(f'{type_func!r} is not callable')
2653
+
2654
+ # convert the value to the appropriate type
2655
+ try:
2656
+ result = type_func(arg_string)
2657
+
2658
+ # ArgumentTypeErrors indicate errors
2659
+ except ArgumentTypeError as err:
2660
+ msg = str(err)
2661
+ raise ArgumentError(action, msg)
2662
+
2663
+ # TypeErrors or ValueErrors also indicate errors
2664
+ except (TypeError, ValueError):
2665
+ name = getattr(action.type, '__name__', repr(action.type))
2666
+ args = {'type': name, 'value': arg_string}
2667
+ msg = _('invalid %(type)s value: %(value)r')
2668
+ raise ArgumentError(action, msg % args)
2669
+
2670
+ # return the converted value
2671
+ return result
2672
+
2673
+ def _check_value(self, action, value):
2674
+ # converted value must be one of the choices (if specified)
2675
+ choices = action.choices
2676
+ if choices is None:
2677
+ return
2678
+
2679
+ if isinstance(choices, str):
2680
+ choices = iter(choices)
2681
+
2682
+ if value not in choices:
2683
+ args = {'value': str(value),
2684
+ 'choices': ', '.join(repr(str(choice)) for choice in action.choices)}
2685
+ msg = _('invalid choice: %(value)r (choose from %(choices)s)')
2686
+
2687
+ if self.suggest_on_error and isinstance(value, str):
2688
+ if all(isinstance(choice, str) for choice in action.choices):
2689
+ import difflib
2690
+ suggestions = difflib.get_close_matches(value, action.choices, 1)
2691
+ if suggestions:
2692
+ args['closest'] = suggestions[0]
2693
+ msg = _('invalid choice: %(value)r, maybe you meant %(closest)r? '
2694
+ '(choose from %(choices)s)')
2695
+
2696
+ raise ArgumentError(action, msg % args)
2697
+
2698
+ # =======================
2699
+ # Help-formatting methods
2700
+ # =======================
2701
+
2702
+ def format_usage(self):
2703
+ formatter = self._get_formatter()
2704
+ formatter.add_usage(self.usage, self._actions,
2705
+ self._mutually_exclusive_groups)
2706
+ return formatter.format_help()
2707
+
2708
+ def format_help(self):
2709
+ formatter = self._get_formatter()
2710
+
2711
+ # usage
2712
+ formatter.add_usage(self.usage, self._actions,
2713
+ self._mutually_exclusive_groups)
2714
+
2715
+ # description
2716
+ formatter.add_text(self.description)
2717
+
2718
+ # positionals, optionals and user-defined groups
2719
+ for action_group in self._action_groups:
2720
+ formatter.start_section(action_group.title)
2721
+ formatter.add_text(action_group.description)
2722
+ formatter.add_arguments(action_group._group_actions)
2723
+ formatter.end_section()
2724
+
2725
+ # epilog
2726
+ formatter.add_text(self.epilog)
2727
+
2728
+ # determine help from format above
2729
+ return formatter.format_help()
2730
+
2731
+ def _get_formatter(self):
2732
+ formatter = self.formatter_class(prog=self.prog)
2733
+ formatter._set_color(self.color)
2734
+ return formatter
2735
+
2736
+ def _get_validation_formatter(self):
2737
+ # Return cached formatter for read-only validation operations
2738
+ # (_expand_help and _format_args). Avoids repeated slow _set_color calls.
2739
+ if self._cached_formatter is None:
2740
+ self._cached_formatter = self._get_formatter()
2741
+ return self._cached_formatter
2742
+
2743
+ # =====================
2744
+ # Help-printing methods
2745
+ # =====================
2746
+
2747
+ def print_usage(self, file=None):
2748
+ if file is None:
2749
+ file = _sys.stdout
2750
+ self._print_message(self.format_usage(), file)
2751
+
2752
+ def print_help(self, file=None):
2753
+ if file is None:
2754
+ file = _sys.stdout
2755
+ self._print_message(self.format_help(), file)
2756
+
2757
+ def _print_message(self, message, file=None):
2758
+ if message:
2759
+ file = file or _sys.stderr
2760
+ try:
2761
+ file.write(message)
2762
+ except (AttributeError, OSError):
2763
+ pass
2764
+
2765
+ # ===============
2766
+ # Exiting methods
2767
+ # ===============
2768
+
2769
+ def exit(self, status=0, message=None):
2770
+ if message:
2771
+ self._print_message(message, _sys.stderr)
2772
+ _sys.exit(status)
2773
+
2774
+ def error(self, message):
2775
+ """error(message: string)
2776
+
2777
+ Prints a usage message incorporating the message to stderr and
2778
+ exits.
2779
+
2780
+ If you override this in a subclass, it should not return -- it
2781
+ should either exit or raise an exception.
2782
+ """
2783
+ self.print_usage(_sys.stderr)
2784
+ args = {'prog': self.prog, 'message': message}
2785
+ self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
2786
+
2787
+ def _warning(self, message):
2788
+ args = {'prog': self.prog, 'message': message}
2789
+ self._print_message(_('%(prog)s: warning: %(message)s\n') % args, _sys.stderr)