@ai-ecoverse/wasix-python 3.14.2-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2512) hide show
  1. package/LICENSE +277 -0
  2. package/README.md +22 -0
  3. package/bin/python.wasm +0 -0
  4. package/include/python3.14/Python.h +155 -0
  5. package/include/python3.14/README.rst +14 -0
  6. package/include/python3.14/abstract.h +915 -0
  7. package/include/python3.14/audit.h +30 -0
  8. package/include/python3.14/bltinmodule.h +14 -0
  9. package/include/python3.14/boolobject.h +54 -0
  10. package/include/python3.14/bytearrayobject.h +44 -0
  11. package/include/python3.14/bytesobject.h +66 -0
  12. package/include/python3.14/ceval.h +145 -0
  13. package/include/python3.14/codecs.h +176 -0
  14. package/include/python3.14/compile.h +22 -0
  15. package/include/python3.14/complexobject.h +30 -0
  16. package/include/python3.14/cpython/abstract.h +104 -0
  17. package/include/python3.14/cpython/audit.h +8 -0
  18. package/include/python3.14/cpython/bytearrayobject.h +38 -0
  19. package/include/python3.14/cpython/bytesobject.h +42 -0
  20. package/include/python3.14/cpython/cellobject.h +50 -0
  21. package/include/python3.14/cpython/ceval.h +43 -0
  22. package/include/python3.14/cpython/classobject.h +71 -0
  23. package/include/python3.14/cpython/code.h +340 -0
  24. package/include/python3.14/cpython/compile.h +50 -0
  25. package/include/python3.14/cpython/complexobject.h +33 -0
  26. package/include/python3.14/cpython/context.h +107 -0
  27. package/include/python3.14/cpython/critical_section.h +154 -0
  28. package/include/python3.14/cpython/descrobject.h +62 -0
  29. package/include/python3.14/cpython/dictobject.h +105 -0
  30. package/include/python3.14/cpython/fileobject.h +16 -0
  31. package/include/python3.14/cpython/fileutils.h +16 -0
  32. package/include/python3.14/cpython/floatobject.h +27 -0
  33. package/include/python3.14/cpython/frameobject.h +35 -0
  34. package/include/python3.14/cpython/funcobject.h +185 -0
  35. package/include/python3.14/cpython/genobject.h +56 -0
  36. package/include/python3.14/cpython/import.h +30 -0
  37. package/include/python3.14/cpython/initconfig.h +334 -0
  38. package/include/python3.14/cpython/listobject.h +53 -0
  39. package/include/python3.14/cpython/lock.h +74 -0
  40. package/include/python3.14/cpython/longintrepr.h +184 -0
  41. package/include/python3.14/cpython/longobject.h +89 -0
  42. package/include/python3.14/cpython/memoryobject.h +50 -0
  43. package/include/python3.14/cpython/methodobject.h +66 -0
  44. package/include/python3.14/cpython/modsupport.h +26 -0
  45. package/include/python3.14/cpython/monitoring.h +269 -0
  46. package/include/python3.14/cpython/object.h +493 -0
  47. package/include/python3.14/cpython/objimpl.h +104 -0
  48. package/include/python3.14/cpython/odictobject.h +43 -0
  49. package/include/python3.14/cpython/picklebufobject.h +31 -0
  50. package/include/python3.14/cpython/pthread_stubs.h +105 -0
  51. package/include/python3.14/cpython/pyatomic.h +614 -0
  52. package/include/python3.14/cpython/pyatomic_gcc.h +615 -0
  53. package/include/python3.14/cpython/pyatomic_msc.h +1197 -0
  54. package/include/python3.14/cpython/pyatomic_std.h +1112 -0
  55. package/include/python3.14/cpython/pyctype.h +39 -0
  56. package/include/python3.14/cpython/pydebug.h +38 -0
  57. package/include/python3.14/cpython/pyerrors.h +132 -0
  58. package/include/python3.14/cpython/pyfpe.h +15 -0
  59. package/include/python3.14/cpython/pyframe.h +45 -0
  60. package/include/python3.14/cpython/pyhash.h +54 -0
  61. package/include/python3.14/cpython/pylifecycle.h +89 -0
  62. package/include/python3.14/cpython/pymem.h +84 -0
  63. package/include/python3.14/cpython/pystate.h +275 -0
  64. package/include/python3.14/cpython/pystats.h +194 -0
  65. package/include/python3.14/cpython/pythonrun.h +96 -0
  66. package/include/python3.14/cpython/pythread.h +43 -0
  67. package/include/python3.14/cpython/pytime.h +27 -0
  68. package/include/python3.14/cpython/setobject.h +71 -0
  69. package/include/python3.14/cpython/traceback.h +13 -0
  70. package/include/python3.14/cpython/tracemalloc.h +32 -0
  71. package/include/python3.14/cpython/tupleobject.h +40 -0
  72. package/include/python3.14/cpython/unicodeobject.h +773 -0
  73. package/include/python3.14/cpython/warnings.h +20 -0
  74. package/include/python3.14/cpython/weakrefobject.h +66 -0
  75. package/include/python3.14/critical_section.h +16 -0
  76. package/include/python3.14/datetime.h +267 -0
  77. package/include/python3.14/descrobject.h +100 -0
  78. package/include/python3.14/dictobject.h +108 -0
  79. package/include/python3.14/dynamic_annotations.h +499 -0
  80. package/include/python3.14/enumobject.h +17 -0
  81. package/include/python3.14/errcode.h +45 -0
  82. package/include/python3.14/exports.h +105 -0
  83. package/include/python3.14/fileobject.h +41 -0
  84. package/include/python3.14/fileutils.h +62 -0
  85. package/include/python3.14/floatobject.h +54 -0
  86. package/include/python3.14/frameobject.h +20 -0
  87. package/include/python3.14/genericaliasobject.h +14 -0
  88. package/include/python3.14/import.h +103 -0
  89. package/include/python3.14/internal/mimalloc/mimalloc/atomic.h +392 -0
  90. package/include/python3.14/internal/mimalloc/mimalloc/internal.h +969 -0
  91. package/include/python3.14/internal/mimalloc/mimalloc/prim.h +329 -0
  92. package/include/python3.14/internal/mimalloc/mimalloc/track.h +147 -0
  93. package/include/python3.14/internal/mimalloc/mimalloc/types.h +721 -0
  94. package/include/python3.14/internal/mimalloc/mimalloc.h +565 -0
  95. package/include/python3.14/internal/pycore_abstract.h +61 -0
  96. package/include/python3.14/internal/pycore_asdl.h +112 -0
  97. package/include/python3.14/internal/pycore_ast.h +945 -0
  98. package/include/python3.14/internal/pycore_ast_state.h +271 -0
  99. package/include/python3.14/internal/pycore_atexit.h +31 -0
  100. package/include/python3.14/internal/pycore_audit.h +35 -0
  101. package/include/python3.14/internal/pycore_backoff.h +133 -0
  102. package/include/python3.14/internal/pycore_bitutils.h +186 -0
  103. package/include/python3.14/internal/pycore_blocks_output_buffer.h +321 -0
  104. package/include/python3.14/internal/pycore_brc.h +73 -0
  105. package/include/python3.14/internal/pycore_bytes_methods.h +82 -0
  106. package/include/python3.14/internal/pycore_bytesobject.h +149 -0
  107. package/include/python3.14/internal/pycore_c_array.h +39 -0
  108. package/include/python3.14/internal/pycore_call.h +206 -0
  109. package/include/python3.14/internal/pycore_capsule.h +17 -0
  110. package/include/python3.14/internal/pycore_cell.h +75 -0
  111. package/include/python3.14/internal/pycore_ceval.h +390 -0
  112. package/include/python3.14/internal/pycore_ceval_state.h +48 -0
  113. package/include/python3.14/internal/pycore_code.h +671 -0
  114. package/include/python3.14/internal/pycore_codecs.h +76 -0
  115. package/include/python3.14/internal/pycore_compile.h +230 -0
  116. package/include/python3.14/internal/pycore_complexobject.h +34 -0
  117. package/include/python3.14/internal/pycore_condvar.h +93 -0
  118. package/include/python3.14/internal/pycore_context.h +59 -0
  119. package/include/python3.14/internal/pycore_critical_section.h +237 -0
  120. package/include/python3.14/internal/pycore_crossinterp.h +406 -0
  121. package/include/python3.14/internal/pycore_crossinterp_data_registry.h +41 -0
  122. package/include/python3.14/internal/pycore_debug_offsets.h +379 -0
  123. package/include/python3.14/internal/pycore_descrobject.h +28 -0
  124. package/include/python3.14/internal/pycore_dict.h +410 -0
  125. package/include/python3.14/internal/pycore_dict_state.h +28 -0
  126. package/include/python3.14/internal/pycore_dtoa.h +40 -0
  127. package/include/python3.14/internal/pycore_emscripten_signal.h +30 -0
  128. package/include/python3.14/internal/pycore_emscripten_trampoline.h +70 -0
  129. package/include/python3.14/internal/pycore_exceptions.h +40 -0
  130. package/include/python3.14/internal/pycore_faulthandler.h +100 -0
  131. package/include/python3.14/internal/pycore_fileutils.h +320 -0
  132. package/include/python3.14/internal/pycore_fileutils_windows.h +98 -0
  133. package/include/python3.14/internal/pycore_floatobject.h +49 -0
  134. package/include/python3.14/internal/pycore_flowgraph.h +47 -0
  135. package/include/python3.14/internal/pycore_format.h +27 -0
  136. package/include/python3.14/internal/pycore_frame.h +61 -0
  137. package/include/python3.14/internal/pycore_freelist.h +111 -0
  138. package/include/python3.14/internal/pycore_freelist_state.h +70 -0
  139. package/include/python3.14/internal/pycore_function.h +53 -0
  140. package/include/python3.14/internal/pycore_gc.h +378 -0
  141. package/include/python3.14/internal/pycore_genobject.h +43 -0
  142. package/include/python3.14/internal/pycore_getopt.h +22 -0
  143. package/include/python3.14/internal/pycore_gil.h +66 -0
  144. package/include/python3.14/internal/pycore_global_objects.h +34 -0
  145. package/include/python3.14/internal/pycore_global_objects_fini_generated.h +1592 -0
  146. package/include/python3.14/internal/pycore_global_strings.h +854 -0
  147. package/include/python3.14/internal/pycore_hamt.h +113 -0
  148. package/include/python3.14/internal/pycore_hashtable.h +150 -0
  149. package/include/python3.14/internal/pycore_import.h +141 -0
  150. package/include/python3.14/internal/pycore_importdl.h +139 -0
  151. package/include/python3.14/internal/pycore_index_pool.h +36 -0
  152. package/include/python3.14/internal/pycore_initconfig.h +197 -0
  153. package/include/python3.14/internal/pycore_instruction_sequence.h +83 -0
  154. package/include/python3.14/internal/pycore_instruments.h +127 -0
  155. package/include/python3.14/internal/pycore_interp.h +109 -0
  156. package/include/python3.14/internal/pycore_interp_structs.h +977 -0
  157. package/include/python3.14/internal/pycore_interpframe.h +401 -0
  158. package/include/python3.14/internal/pycore_interpframe_structs.h +95 -0
  159. package/include/python3.14/internal/pycore_interpolation.h +26 -0
  160. package/include/python3.14/internal/pycore_intrinsics.h +51 -0
  161. package/include/python3.14/internal/pycore_jit.h +29 -0
  162. package/include/python3.14/internal/pycore_list.h +81 -0
  163. package/include/python3.14/internal/pycore_llist.h +106 -0
  164. package/include/python3.14/internal/pycore_lock.h +236 -0
  165. package/include/python3.14/internal/pycore_long.h +319 -0
  166. package/include/python3.14/internal/pycore_magic_number.h +305 -0
  167. package/include/python3.14/internal/pycore_memoryobject.h +20 -0
  168. package/include/python3.14/internal/pycore_mimalloc.h +69 -0
  169. package/include/python3.14/internal/pycore_modsupport.h +99 -0
  170. package/include/python3.14/internal/pycore_moduleobject.h +62 -0
  171. package/include/python3.14/internal/pycore_namespace.h +21 -0
  172. package/include/python3.14/internal/pycore_object.h +1029 -0
  173. package/include/python3.14/internal/pycore_object_alloc.h +71 -0
  174. package/include/python3.14/internal/pycore_object_deferred.h +32 -0
  175. package/include/python3.14/internal/pycore_object_stack.h +95 -0
  176. package/include/python3.14/internal/pycore_object_state.h +49 -0
  177. package/include/python3.14/internal/pycore_obmalloc.h +702 -0
  178. package/include/python3.14/internal/pycore_obmalloc_init.h +66 -0
  179. package/include/python3.14/internal/pycore_opcode_metadata.h +2117 -0
  180. package/include/python3.14/internal/pycore_opcode_utils.h +90 -0
  181. package/include/python3.14/internal/pycore_optimizer.h +318 -0
  182. package/include/python3.14/internal/pycore_parking_lot.h +97 -0
  183. package/include/python3.14/internal/pycore_parser.h +78 -0
  184. package/include/python3.14/internal/pycore_pathconfig.h +26 -0
  185. package/include/python3.14/internal/pycore_pyarena.h +68 -0
  186. package/include/python3.14/internal/pycore_pyatomic_ft_wrappers.h +174 -0
  187. package/include/python3.14/internal/pycore_pybuffer.h +21 -0
  188. package/include/python3.14/internal/pycore_pyerrors.h +213 -0
  189. package/include/python3.14/internal/pycore_pyhash.h +91 -0
  190. package/include/python3.14/internal/pycore_pylifecycle.h +136 -0
  191. package/include/python3.14/internal/pycore_pymath.h +205 -0
  192. package/include/python3.14/internal/pycore_pymem.h +145 -0
  193. package/include/python3.14/internal/pycore_pymem_init.h +103 -0
  194. package/include/python3.14/internal/pycore_pystate.h +339 -0
  195. package/include/python3.14/internal/pycore_pystats.h +21 -0
  196. package/include/python3.14/internal/pycore_pythonrun.h +68 -0
  197. package/include/python3.14/internal/pycore_pythread.h +172 -0
  198. package/include/python3.14/internal/pycore_qsbr.h +172 -0
  199. package/include/python3.14/internal/pycore_range.h +21 -0
  200. package/include/python3.14/internal/pycore_runtime.h +63 -0
  201. package/include/python3.14/internal/pycore_runtime_init.h +239 -0
  202. package/include/python3.14/internal/pycore_runtime_init_generated.h +1589 -0
  203. package/include/python3.14/internal/pycore_runtime_structs.h +310 -0
  204. package/include/python3.14/internal/pycore_semaphore.h +67 -0
  205. package/include/python3.14/internal/pycore_setobject.h +41 -0
  206. package/include/python3.14/internal/pycore_signal.h +108 -0
  207. package/include/python3.14/internal/pycore_sliceobject.h +20 -0
  208. package/include/python3.14/internal/pycore_stackref.h +791 -0
  209. package/include/python3.14/internal/pycore_stats.h +97 -0
  210. package/include/python3.14/internal/pycore_strhex.h +39 -0
  211. package/include/python3.14/internal/pycore_structs.h +88 -0
  212. package/include/python3.14/internal/pycore_structseq.h +40 -0
  213. package/include/python3.14/internal/pycore_symtable.h +201 -0
  214. package/include/python3.14/internal/pycore_sysmodule.h +32 -0
  215. package/include/python3.14/internal/pycore_template.h +26 -0
  216. package/include/python3.14/internal/pycore_time.h +334 -0
  217. package/include/python3.14/internal/pycore_token.h +110 -0
  218. package/include/python3.14/internal/pycore_traceback.h +111 -0
  219. package/include/python3.14/internal/pycore_tracemalloc.h +164 -0
  220. package/include/python3.14/internal/pycore_tstate.h +88 -0
  221. package/include/python3.14/internal/pycore_tuple.h +75 -0
  222. package/include/python3.14/internal/pycore_typedefs.h +18 -0
  223. package/include/python3.14/internal/pycore_typeobject.h +155 -0
  224. package/include/python3.14/internal/pycore_typevarobject.h +28 -0
  225. package/include/python3.14/internal/pycore_ucnhash.h +36 -0
  226. package/include/python3.14/internal/pycore_unicodeobject.h +308 -0
  227. package/include/python3.14/internal/pycore_unicodeobject_generated.h +3132 -0
  228. package/include/python3.14/internal/pycore_unionobject.h +26 -0
  229. package/include/python3.14/internal/pycore_uniqueid.h +57 -0
  230. package/include/python3.14/internal/pycore_uop_ids.h +335 -0
  231. package/include/python3.14/internal/pycore_uop_metadata.h +1204 -0
  232. package/include/python3.14/internal/pycore_warnings.h +21 -0
  233. package/include/python3.14/internal/pycore_weakref.h +133 -0
  234. package/include/python3.14/intrcheck.h +23 -0
  235. package/include/python3.14/iterobject.h +24 -0
  236. package/include/python3.14/listobject.h +55 -0
  237. package/include/python3.14/lock.h +16 -0
  238. package/include/python3.14/longobject.h +178 -0
  239. package/include/python3.14/marshal.h +31 -0
  240. package/include/python3.14/memoryobject.h +34 -0
  241. package/include/python3.14/methodobject.h +146 -0
  242. package/include/python3.14/modsupport.h +146 -0
  243. package/include/python3.14/moduleobject.h +122 -0
  244. package/include/python3.14/monitoring.h +18 -0
  245. package/include/python3.14/object.h +828 -0
  246. package/include/python3.14/objimpl.h +211 -0
  247. package/include/python3.14/opcode.h +43 -0
  248. package/include/python3.14/opcode_ids.h +259 -0
  249. package/include/python3.14/osdefs.h +57 -0
  250. package/include/python3.14/osmodule.h +17 -0
  251. package/include/python3.14/patchlevel.h +49 -0
  252. package/include/python3.14/py_curses.h +117 -0
  253. package/include/python3.14/pyatomic.h +16 -0
  254. package/include/python3.14/pybuffer.h +145 -0
  255. package/include/python3.14/pycapsule.h +58 -0
  256. package/include/python3.14/pyconfig.h +2087 -0
  257. package/include/python3.14/pydtrace.d +22 -0
  258. package/include/python3.14/pydtrace.h +59 -0
  259. package/include/python3.14/pyerrors.h +335 -0
  260. package/include/python3.14/pyexpat.h +62 -0
  261. package/include/python3.14/pyframe.h +26 -0
  262. package/include/python3.14/pyhash.h +59 -0
  263. package/include/python3.14/pylifecycle.h +80 -0
  264. package/include/python3.14/pymacconfig.h +91 -0
  265. package/include/python3.14/pymacro.h +243 -0
  266. package/include/python3.14/pymath.h +65 -0
  267. package/include/python3.14/pymem.h +110 -0
  268. package/include/python3.14/pyport.h +710 -0
  269. package/include/python3.14/pystate.h +132 -0
  270. package/include/python3.14/pystats.h +28 -0
  271. package/include/python3.14/pystrcmp.h +23 -0
  272. package/include/python3.14/pystrtod.h +37 -0
  273. package/include/python3.14/pythonrun.h +42 -0
  274. package/include/python3.14/pythread.h +131 -0
  275. package/include/python3.14/pytypedefs.h +30 -0
  276. package/include/python3.14/rangeobject.h +27 -0
  277. package/include/python3.14/refcount.h +555 -0
  278. package/include/python3.14/setobject.h +49 -0
  279. package/include/python3.14/sliceobject.h +69 -0
  280. package/include/python3.14/structmember.h +56 -0
  281. package/include/python3.14/structseq.h +46 -0
  282. package/include/python3.14/sysmodule.h +27 -0
  283. package/include/python3.14/traceback.h +26 -0
  284. package/include/python3.14/tupleobject.h +46 -0
  285. package/include/python3.14/typeslots.h +96 -0
  286. package/include/python3.14/unicodeobject.h +1029 -0
  287. package/include/python3.14/warnings.h +45 -0
  288. package/include/python3.14/weakrefobject.h +46 -0
  289. package/lib/libpython3.14.a +4 -0
  290. package/lib/pkgconfig/python-3.14-embed.pc +13 -0
  291. package/lib/pkgconfig/python-3.14.pc +13 -0
  292. package/lib/python3.14/LICENSE.txt +277 -0
  293. package/lib/python3.14/__future__.py +147 -0
  294. package/lib/python3.14/__hello__.py +16 -0
  295. package/lib/python3.14/__phello__/__init__.py +7 -0
  296. package/lib/python3.14/__phello__/__pycache__/__init__.cpython-314.pyc +0 -0
  297. package/lib/python3.14/__phello__/__pycache__/spam.cpython-314.pyc +0 -0
  298. package/lib/python3.14/__phello__/spam.py +7 -0
  299. package/lib/python3.14/__pycache__/__future__.cpython-314.pyc +0 -0
  300. package/lib/python3.14/__pycache__/__hello__.cpython-314.pyc +0 -0
  301. package/lib/python3.14/__pycache__/_aix_support.cpython-314.pyc +0 -0
  302. package/lib/python3.14/__pycache__/_android_support.cpython-314.pyc +0 -0
  303. package/lib/python3.14/__pycache__/_apple_support.cpython-314.pyc +0 -0
  304. package/lib/python3.14/__pycache__/_ast_unparse.cpython-314.pyc +0 -0
  305. package/lib/python3.14/__pycache__/_collections_abc.cpython-314.pyc +0 -0
  306. package/lib/python3.14/__pycache__/_colorize.cpython-314.pyc +0 -0
  307. package/lib/python3.14/__pycache__/_compat_pickle.cpython-314.pyc +0 -0
  308. package/lib/python3.14/__pycache__/_ios_support.cpython-314.pyc +0 -0
  309. package/lib/python3.14/__pycache__/_markupbase.cpython-314.pyc +0 -0
  310. package/lib/python3.14/__pycache__/_opcode_metadata.cpython-314.pyc +0 -0
  311. package/lib/python3.14/__pycache__/_osx_support.cpython-314.pyc +0 -0
  312. package/lib/python3.14/__pycache__/_py_abc.cpython-314.pyc +0 -0
  313. package/lib/python3.14/__pycache__/_py_warnings.cpython-314.pyc +0 -0
  314. package/lib/python3.14/__pycache__/_pydatetime.cpython-314.pyc +0 -0
  315. package/lib/python3.14/__pycache__/_pydecimal.cpython-314.pyc +0 -0
  316. package/lib/python3.14/__pycache__/_pyio.cpython-314.pyc +0 -0
  317. package/lib/python3.14/__pycache__/_pylong.cpython-314.pyc +0 -0
  318. package/lib/python3.14/__pycache__/_sitebuiltins.cpython-314.pyc +0 -0
  319. package/lib/python3.14/__pycache__/_strptime.cpython-314.pyc +0 -0
  320. package/lib/python3.14/__pycache__/_sysconfigdata__wasi_wasm32-wasi-threads.cpython-314.pyc +0 -0
  321. package/lib/python3.14/__pycache__/_threading_local.cpython-314.pyc +0 -0
  322. package/lib/python3.14/__pycache__/_weakrefset.cpython-314.pyc +0 -0
  323. package/lib/python3.14/__pycache__/abc.cpython-314.pyc +0 -0
  324. package/lib/python3.14/__pycache__/annotationlib.cpython-314.pyc +0 -0
  325. package/lib/python3.14/__pycache__/antigravity.cpython-314.pyc +0 -0
  326. package/lib/python3.14/__pycache__/argparse.cpython-314.pyc +0 -0
  327. package/lib/python3.14/__pycache__/ast.cpython-314.pyc +0 -0
  328. package/lib/python3.14/__pycache__/base64.cpython-314.pyc +0 -0
  329. package/lib/python3.14/__pycache__/bdb.cpython-314.pyc +0 -0
  330. package/lib/python3.14/__pycache__/bisect.cpython-314.pyc +0 -0
  331. package/lib/python3.14/__pycache__/bz2.cpython-314.pyc +0 -0
  332. package/lib/python3.14/__pycache__/cProfile.cpython-314.pyc +0 -0
  333. package/lib/python3.14/__pycache__/calendar.cpython-314.pyc +0 -0
  334. package/lib/python3.14/__pycache__/cmd.cpython-314.pyc +0 -0
  335. package/lib/python3.14/__pycache__/code.cpython-314.pyc +0 -0
  336. package/lib/python3.14/__pycache__/codecs.cpython-314.pyc +0 -0
  337. package/lib/python3.14/__pycache__/codeop.cpython-314.pyc +0 -0
  338. package/lib/python3.14/__pycache__/colorsys.cpython-314.pyc +0 -0
  339. package/lib/python3.14/__pycache__/compileall.cpython-314.pyc +0 -0
  340. package/lib/python3.14/__pycache__/configparser.cpython-314.pyc +0 -0
  341. package/lib/python3.14/__pycache__/contextlib.cpython-314.pyc +0 -0
  342. package/lib/python3.14/__pycache__/contextvars.cpython-314.pyc +0 -0
  343. package/lib/python3.14/__pycache__/copy.cpython-314.pyc +0 -0
  344. package/lib/python3.14/__pycache__/copyreg.cpython-314.pyc +0 -0
  345. package/lib/python3.14/__pycache__/csv.cpython-314.pyc +0 -0
  346. package/lib/python3.14/__pycache__/dataclasses.cpython-314.pyc +0 -0
  347. package/lib/python3.14/__pycache__/datetime.cpython-314.pyc +0 -0
  348. package/lib/python3.14/__pycache__/decimal.cpython-314.pyc +0 -0
  349. package/lib/python3.14/__pycache__/difflib.cpython-314.pyc +0 -0
  350. package/lib/python3.14/__pycache__/dis.cpython-314.pyc +0 -0
  351. package/lib/python3.14/__pycache__/doctest.cpython-314.pyc +0 -0
  352. package/lib/python3.14/__pycache__/enum.cpython-314.pyc +0 -0
  353. package/lib/python3.14/__pycache__/filecmp.cpython-314.pyc +0 -0
  354. package/lib/python3.14/__pycache__/fileinput.cpython-314.pyc +0 -0
  355. package/lib/python3.14/__pycache__/fnmatch.cpython-314.pyc +0 -0
  356. package/lib/python3.14/__pycache__/fractions.cpython-314.pyc +0 -0
  357. package/lib/python3.14/__pycache__/ftplib.cpython-314.pyc +0 -0
  358. package/lib/python3.14/__pycache__/functools.cpython-314.pyc +0 -0
  359. package/lib/python3.14/__pycache__/genericpath.cpython-314.pyc +0 -0
  360. package/lib/python3.14/__pycache__/getopt.cpython-314.pyc +0 -0
  361. package/lib/python3.14/__pycache__/getpass.cpython-314.pyc +0 -0
  362. package/lib/python3.14/__pycache__/gettext.cpython-314.pyc +0 -0
  363. package/lib/python3.14/__pycache__/glob.cpython-314.pyc +0 -0
  364. package/lib/python3.14/__pycache__/graphlib.cpython-314.pyc +0 -0
  365. package/lib/python3.14/__pycache__/gzip.cpython-314.pyc +0 -0
  366. package/lib/python3.14/__pycache__/hashlib.cpython-314.pyc +0 -0
  367. package/lib/python3.14/__pycache__/heapq.cpython-314.pyc +0 -0
  368. package/lib/python3.14/__pycache__/hmac.cpython-314.pyc +0 -0
  369. package/lib/python3.14/__pycache__/imaplib.cpython-314.pyc +0 -0
  370. package/lib/python3.14/__pycache__/inspect.cpython-314.pyc +0 -0
  371. package/lib/python3.14/__pycache__/io.cpython-314.pyc +0 -0
  372. package/lib/python3.14/__pycache__/ipaddress.cpython-314.pyc +0 -0
  373. package/lib/python3.14/__pycache__/keyword.cpython-314.pyc +0 -0
  374. package/lib/python3.14/__pycache__/linecache.cpython-314.pyc +0 -0
  375. package/lib/python3.14/__pycache__/locale.cpython-314.pyc +0 -0
  376. package/lib/python3.14/__pycache__/lzma.cpython-314.pyc +0 -0
  377. package/lib/python3.14/__pycache__/mailbox.cpython-314.pyc +0 -0
  378. package/lib/python3.14/__pycache__/mimetypes.cpython-314.pyc +0 -0
  379. package/lib/python3.14/__pycache__/modulefinder.cpython-314.pyc +0 -0
  380. package/lib/python3.14/__pycache__/netrc.cpython-314.pyc +0 -0
  381. package/lib/python3.14/__pycache__/ntpath.cpython-314.pyc +0 -0
  382. package/lib/python3.14/__pycache__/nturl2path.cpython-314.pyc +0 -0
  383. package/lib/python3.14/__pycache__/numbers.cpython-314.pyc +0 -0
  384. package/lib/python3.14/__pycache__/opcode.cpython-314.pyc +0 -0
  385. package/lib/python3.14/__pycache__/operator.cpython-314.pyc +0 -0
  386. package/lib/python3.14/__pycache__/optparse.cpython-314.pyc +0 -0
  387. package/lib/python3.14/__pycache__/os.cpython-314.pyc +0 -0
  388. package/lib/python3.14/__pycache__/pdb.cpython-314.pyc +0 -0
  389. package/lib/python3.14/__pycache__/pickle.cpython-314.pyc +0 -0
  390. package/lib/python3.14/__pycache__/pickletools.cpython-314.pyc +0 -0
  391. package/lib/python3.14/__pycache__/pkgutil.cpython-314.pyc +0 -0
  392. package/lib/python3.14/__pycache__/platform.cpython-314.pyc +0 -0
  393. package/lib/python3.14/__pycache__/plistlib.cpython-314.pyc +0 -0
  394. package/lib/python3.14/__pycache__/poplib.cpython-314.pyc +0 -0
  395. package/lib/python3.14/__pycache__/posixpath.cpython-314.pyc +0 -0
  396. package/lib/python3.14/__pycache__/pprint.cpython-314.pyc +0 -0
  397. package/lib/python3.14/__pycache__/profile.cpython-314.pyc +0 -0
  398. package/lib/python3.14/__pycache__/pstats.cpython-314.pyc +0 -0
  399. package/lib/python3.14/__pycache__/pty.cpython-314.pyc +0 -0
  400. package/lib/python3.14/__pycache__/py_compile.cpython-314.pyc +0 -0
  401. package/lib/python3.14/__pycache__/pyclbr.cpython-314.pyc +0 -0
  402. package/lib/python3.14/__pycache__/pydoc.cpython-314.pyc +0 -0
  403. package/lib/python3.14/__pycache__/queue.cpython-314.pyc +0 -0
  404. package/lib/python3.14/__pycache__/quopri.cpython-314.pyc +0 -0
  405. package/lib/python3.14/__pycache__/random.cpython-314.pyc +0 -0
  406. package/lib/python3.14/__pycache__/reprlib.cpython-314.pyc +0 -0
  407. package/lib/python3.14/__pycache__/rlcompleter.cpython-314.pyc +0 -0
  408. package/lib/python3.14/__pycache__/runpy.cpython-314.pyc +0 -0
  409. package/lib/python3.14/__pycache__/sched.cpython-314.pyc +0 -0
  410. package/lib/python3.14/__pycache__/secrets.cpython-314.pyc +0 -0
  411. package/lib/python3.14/__pycache__/selectors.cpython-314.pyc +0 -0
  412. package/lib/python3.14/__pycache__/shelve.cpython-314.pyc +0 -0
  413. package/lib/python3.14/__pycache__/shlex.cpython-314.pyc +0 -0
  414. package/lib/python3.14/__pycache__/shutil.cpython-314.pyc +0 -0
  415. package/lib/python3.14/__pycache__/signal.cpython-314.pyc +0 -0
  416. package/lib/python3.14/__pycache__/site.cpython-314.pyc +0 -0
  417. package/lib/python3.14/__pycache__/smtplib.cpython-314.pyc +0 -0
  418. package/lib/python3.14/__pycache__/socket.cpython-314.pyc +0 -0
  419. package/lib/python3.14/__pycache__/socketserver.cpython-314.pyc +0 -0
  420. package/lib/python3.14/__pycache__/sre_compile.cpython-314.pyc +0 -0
  421. package/lib/python3.14/__pycache__/sre_constants.cpython-314.pyc +0 -0
  422. package/lib/python3.14/__pycache__/sre_parse.cpython-314.pyc +0 -0
  423. package/lib/python3.14/__pycache__/ssl.cpython-314.pyc +0 -0
  424. package/lib/python3.14/__pycache__/stat.cpython-314.pyc +0 -0
  425. package/lib/python3.14/__pycache__/statistics.cpython-314.pyc +0 -0
  426. package/lib/python3.14/__pycache__/stringprep.cpython-314.pyc +0 -0
  427. package/lib/python3.14/__pycache__/struct.cpython-314.pyc +0 -0
  428. package/lib/python3.14/__pycache__/subprocess.cpython-314.pyc +0 -0
  429. package/lib/python3.14/__pycache__/symtable.cpython-314.pyc +0 -0
  430. package/lib/python3.14/__pycache__/tabnanny.cpython-314.pyc +0 -0
  431. package/lib/python3.14/__pycache__/tarfile.cpython-314.pyc +0 -0
  432. package/lib/python3.14/__pycache__/tempfile.cpython-314.pyc +0 -0
  433. package/lib/python3.14/__pycache__/textwrap.cpython-314.pyc +0 -0
  434. package/lib/python3.14/__pycache__/this.cpython-314.pyc +0 -0
  435. package/lib/python3.14/__pycache__/threading.cpython-314.pyc +0 -0
  436. package/lib/python3.14/__pycache__/timeit.cpython-314.pyc +0 -0
  437. package/lib/python3.14/__pycache__/token.cpython-314.pyc +0 -0
  438. package/lib/python3.14/__pycache__/tokenize.cpython-314.pyc +0 -0
  439. package/lib/python3.14/__pycache__/trace.cpython-314.pyc +0 -0
  440. package/lib/python3.14/__pycache__/traceback.cpython-314.pyc +0 -0
  441. package/lib/python3.14/__pycache__/tracemalloc.cpython-314.pyc +0 -0
  442. package/lib/python3.14/__pycache__/tty.cpython-314.pyc +0 -0
  443. package/lib/python3.14/__pycache__/turtle.cpython-314.pyc +0 -0
  444. package/lib/python3.14/__pycache__/types.cpython-314.pyc +0 -0
  445. package/lib/python3.14/__pycache__/typing.cpython-314.pyc +0 -0
  446. package/lib/python3.14/__pycache__/uuid.cpython-314.pyc +0 -0
  447. package/lib/python3.14/__pycache__/warnings.cpython-314.pyc +0 -0
  448. package/lib/python3.14/__pycache__/wave.cpython-314.pyc +0 -0
  449. package/lib/python3.14/__pycache__/weakref.cpython-314.pyc +0 -0
  450. package/lib/python3.14/__pycache__/webbrowser.cpython-314.pyc +0 -0
  451. package/lib/python3.14/__pycache__/zipapp.cpython-314.pyc +0 -0
  452. package/lib/python3.14/__pycache__/zipimport.cpython-314.pyc +0 -0
  453. package/lib/python3.14/_aix_support.py +108 -0
  454. package/lib/python3.14/_android_support.py +185 -0
  455. package/lib/python3.14/_apple_support.py +66 -0
  456. package/lib/python3.14/_ast_unparse.py +1161 -0
  457. package/lib/python3.14/_collections_abc.py +1167 -0
  458. package/lib/python3.14/_colorize.py +355 -0
  459. package/lib/python3.14/_compat_pickle.py +251 -0
  460. package/lib/python3.14/_ios_support.py +71 -0
  461. package/lib/python3.14/_markupbase.py +396 -0
  462. package/lib/python3.14/_opcode_metadata.py +371 -0
  463. package/lib/python3.14/_osx_support.py +579 -0
  464. package/lib/python3.14/_py_abc.py +147 -0
  465. package/lib/python3.14/_py_warnings.py +869 -0
  466. package/lib/python3.14/_pydatetime.py +2723 -0
  467. package/lib/python3.14/_pydecimal.py +6401 -0
  468. package/lib/python3.14/_pyio.py +2752 -0
  469. package/lib/python3.14/_pylong.py +729 -0
  470. package/lib/python3.14/_pyrepl/__init__.py +19 -0
  471. package/lib/python3.14/_pyrepl/__main__.py +10 -0
  472. package/lib/python3.14/_pyrepl/__pycache__/__init__.cpython-314.pyc +0 -0
  473. package/lib/python3.14/_pyrepl/__pycache__/__main__.cpython-314.pyc +0 -0
  474. package/lib/python3.14/_pyrepl/__pycache__/_module_completer.cpython-314.pyc +0 -0
  475. package/lib/python3.14/_pyrepl/__pycache__/_threading_handler.cpython-314.pyc +0 -0
  476. package/lib/python3.14/_pyrepl/__pycache__/base_eventqueue.cpython-314.pyc +0 -0
  477. package/lib/python3.14/_pyrepl/__pycache__/commands.cpython-314.pyc +0 -0
  478. package/lib/python3.14/_pyrepl/__pycache__/completing_reader.cpython-314.pyc +0 -0
  479. package/lib/python3.14/_pyrepl/__pycache__/console.cpython-314.pyc +0 -0
  480. package/lib/python3.14/_pyrepl/__pycache__/fancy_termios.cpython-314.pyc +0 -0
  481. package/lib/python3.14/_pyrepl/__pycache__/historical_reader.cpython-314.pyc +0 -0
  482. package/lib/python3.14/_pyrepl/__pycache__/input.cpython-314.pyc +0 -0
  483. package/lib/python3.14/_pyrepl/__pycache__/keymap.cpython-314.pyc +0 -0
  484. package/lib/python3.14/_pyrepl/__pycache__/main.cpython-314.pyc +0 -0
  485. package/lib/python3.14/_pyrepl/__pycache__/pager.cpython-314.pyc +0 -0
  486. package/lib/python3.14/_pyrepl/__pycache__/reader.cpython-314.pyc +0 -0
  487. package/lib/python3.14/_pyrepl/__pycache__/readline.cpython-314.pyc +0 -0
  488. package/lib/python3.14/_pyrepl/__pycache__/simple_interact.cpython-314.pyc +0 -0
  489. package/lib/python3.14/_pyrepl/__pycache__/terminfo.cpython-314.pyc +0 -0
  490. package/lib/python3.14/_pyrepl/__pycache__/trace.cpython-314.pyc +0 -0
  491. package/lib/python3.14/_pyrepl/__pycache__/types.cpython-314.pyc +0 -0
  492. package/lib/python3.14/_pyrepl/__pycache__/unix_console.cpython-314.pyc +0 -0
  493. package/lib/python3.14/_pyrepl/__pycache__/unix_eventqueue.cpython-314.pyc +0 -0
  494. package/lib/python3.14/_pyrepl/__pycache__/utils.cpython-314.pyc +0 -0
  495. package/lib/python3.14/_pyrepl/__pycache__/windows_console.cpython-314.pyc +0 -0
  496. package/lib/python3.14/_pyrepl/__pycache__/windows_eventqueue.cpython-314.pyc +0 -0
  497. package/lib/python3.14/_pyrepl/_module_completer.py +415 -0
  498. package/lib/python3.14/_pyrepl/_threading_handler.py +74 -0
  499. package/lib/python3.14/_pyrepl/base_eventqueue.py +110 -0
  500. package/lib/python3.14/_pyrepl/commands.py +505 -0
  501. package/lib/python3.14/_pyrepl/completing_reader.py +299 -0
  502. package/lib/python3.14/_pyrepl/console.py +229 -0
  503. package/lib/python3.14/_pyrepl/fancy_termios.py +82 -0
  504. package/lib/python3.14/_pyrepl/historical_reader.py +419 -0
  505. package/lib/python3.14/_pyrepl/input.py +114 -0
  506. package/lib/python3.14/_pyrepl/keymap.py +213 -0
  507. package/lib/python3.14/_pyrepl/main.py +58 -0
  508. package/lib/python3.14/_pyrepl/mypy.ini +25 -0
  509. package/lib/python3.14/_pyrepl/pager.py +175 -0
  510. package/lib/python3.14/_pyrepl/reader.py +762 -0
  511. package/lib/python3.14/_pyrepl/readline.py +620 -0
  512. package/lib/python3.14/_pyrepl/simple_interact.py +181 -0
  513. package/lib/python3.14/_pyrepl/terminfo.py +488 -0
  514. package/lib/python3.14/_pyrepl/trace.py +34 -0
  515. package/lib/python3.14/_pyrepl/types.py +10 -0
  516. package/lib/python3.14/_pyrepl/unix_console.py +842 -0
  517. package/lib/python3.14/_pyrepl/unix_eventqueue.py +77 -0
  518. package/lib/python3.14/_pyrepl/utils.py +391 -0
  519. package/lib/python3.14/_pyrepl/windows_console.py +725 -0
  520. package/lib/python3.14/_pyrepl/windows_eventqueue.py +42 -0
  521. package/lib/python3.14/_sitebuiltins.py +103 -0
  522. package/lib/python3.14/_strptime.py +822 -0
  523. package/lib/python3.14/_sysconfig_vars__wasi_wasm32-wasi-threads.json +1097 -0
  524. package/lib/python3.14/_sysconfigdata__wasi_wasm32-wasi-threads.py +1084 -0
  525. package/lib/python3.14/_threading_local.py +120 -0
  526. package/lib/python3.14/_weakrefset.py +147 -0
  527. package/lib/python3.14/abc.py +188 -0
  528. package/lib/python3.14/annotationlib.py +1143 -0
  529. package/lib/python3.14/antigravity.py +17 -0
  530. package/lib/python3.14/argparse.py +2777 -0
  531. package/lib/python3.14/ast.py +680 -0
  532. package/lib/python3.14/asyncio/__init__.py +74 -0
  533. package/lib/python3.14/asyncio/__main__.py +239 -0
  534. package/lib/python3.14/asyncio/__pycache__/__init__.cpython-314.pyc +0 -0
  535. package/lib/python3.14/asyncio/__pycache__/__main__.cpython-314.pyc +0 -0
  536. package/lib/python3.14/asyncio/__pycache__/base_events.cpython-314.pyc +0 -0
  537. package/lib/python3.14/asyncio/__pycache__/base_futures.cpython-314.pyc +0 -0
  538. package/lib/python3.14/asyncio/__pycache__/base_subprocess.cpython-314.pyc +0 -0
  539. package/lib/python3.14/asyncio/__pycache__/base_tasks.cpython-314.pyc +0 -0
  540. package/lib/python3.14/asyncio/__pycache__/constants.cpython-314.pyc +0 -0
  541. package/lib/python3.14/asyncio/__pycache__/coroutines.cpython-314.pyc +0 -0
  542. package/lib/python3.14/asyncio/__pycache__/events.cpython-314.pyc +0 -0
  543. package/lib/python3.14/asyncio/__pycache__/exceptions.cpython-314.pyc +0 -0
  544. package/lib/python3.14/asyncio/__pycache__/format_helpers.cpython-314.pyc +0 -0
  545. package/lib/python3.14/asyncio/__pycache__/futures.cpython-314.pyc +0 -0
  546. package/lib/python3.14/asyncio/__pycache__/graph.cpython-314.pyc +0 -0
  547. package/lib/python3.14/asyncio/__pycache__/locks.cpython-314.pyc +0 -0
  548. package/lib/python3.14/asyncio/__pycache__/log.cpython-314.pyc +0 -0
  549. package/lib/python3.14/asyncio/__pycache__/mixins.cpython-314.pyc +0 -0
  550. package/lib/python3.14/asyncio/__pycache__/proactor_events.cpython-314.pyc +0 -0
  551. package/lib/python3.14/asyncio/__pycache__/protocols.cpython-314.pyc +0 -0
  552. package/lib/python3.14/asyncio/__pycache__/queues.cpython-314.pyc +0 -0
  553. package/lib/python3.14/asyncio/__pycache__/runners.cpython-314.pyc +0 -0
  554. package/lib/python3.14/asyncio/__pycache__/selector_events.cpython-314.pyc +0 -0
  555. package/lib/python3.14/asyncio/__pycache__/sslproto.cpython-314.pyc +0 -0
  556. package/lib/python3.14/asyncio/__pycache__/staggered.cpython-314.pyc +0 -0
  557. package/lib/python3.14/asyncio/__pycache__/streams.cpython-314.pyc +0 -0
  558. package/lib/python3.14/asyncio/__pycache__/subprocess.cpython-314.pyc +0 -0
  559. package/lib/python3.14/asyncio/__pycache__/taskgroups.cpython-314.pyc +0 -0
  560. package/lib/python3.14/asyncio/__pycache__/tasks.cpython-314.pyc +0 -0
  561. package/lib/python3.14/asyncio/__pycache__/threads.cpython-314.pyc +0 -0
  562. package/lib/python3.14/asyncio/__pycache__/timeouts.cpython-314.pyc +0 -0
  563. package/lib/python3.14/asyncio/__pycache__/tools.cpython-314.pyc +0 -0
  564. package/lib/python3.14/asyncio/__pycache__/transports.cpython-314.pyc +0 -0
  565. package/lib/python3.14/asyncio/__pycache__/trsock.cpython-314.pyc +0 -0
  566. package/lib/python3.14/asyncio/__pycache__/unix_events.cpython-314.pyc +0 -0
  567. package/lib/python3.14/asyncio/__pycache__/windows_events.cpython-314.pyc +0 -0
  568. package/lib/python3.14/asyncio/__pycache__/windows_utils.cpython-314.pyc +0 -0
  569. package/lib/python3.14/asyncio/base_events.py +2071 -0
  570. package/lib/python3.14/asyncio/base_futures.py +67 -0
  571. package/lib/python3.14/asyncio/base_subprocess.py +319 -0
  572. package/lib/python3.14/asyncio/base_tasks.py +94 -0
  573. package/lib/python3.14/asyncio/constants.py +41 -0
  574. package/lib/python3.14/asyncio/coroutines.py +118 -0
  575. package/lib/python3.14/asyncio/events.py +878 -0
  576. package/lib/python3.14/asyncio/exceptions.py +62 -0
  577. package/lib/python3.14/asyncio/format_helpers.py +84 -0
  578. package/lib/python3.14/asyncio/futures.py +481 -0
  579. package/lib/python3.14/asyncio/graph.py +276 -0
  580. package/lib/python3.14/asyncio/locks.py +617 -0
  581. package/lib/python3.14/asyncio/log.py +7 -0
  582. package/lib/python3.14/asyncio/mixins.py +21 -0
  583. package/lib/python3.14/asyncio/proactor_events.py +896 -0
  584. package/lib/python3.14/asyncio/protocols.py +216 -0
  585. package/lib/python3.14/asyncio/queues.py +307 -0
  586. package/lib/python3.14/asyncio/runners.py +225 -0
  587. package/lib/python3.14/asyncio/selector_events.py +1326 -0
  588. package/lib/python3.14/asyncio/sslproto.py +929 -0
  589. package/lib/python3.14/asyncio/staggered.py +179 -0
  590. package/lib/python3.14/asyncio/streams.py +787 -0
  591. package/lib/python3.14/asyncio/subprocess.py +229 -0
  592. package/lib/python3.14/asyncio/taskgroups.py +280 -0
  593. package/lib/python3.14/asyncio/tasks.py +1141 -0
  594. package/lib/python3.14/asyncio/threads.py +25 -0
  595. package/lib/python3.14/asyncio/timeouts.py +182 -0
  596. package/lib/python3.14/asyncio/tools.py +276 -0
  597. package/lib/python3.14/asyncio/transports.py +337 -0
  598. package/lib/python3.14/asyncio/trsock.py +98 -0
  599. package/lib/python3.14/asyncio/unix_events.py +972 -0
  600. package/lib/python3.14/asyncio/windows_events.py +903 -0
  601. package/lib/python3.14/asyncio/windows_utils.py +173 -0
  602. package/lib/python3.14/base64.py +618 -0
  603. package/lib/python3.14/bdb.py +1206 -0
  604. package/lib/python3.14/bisect.py +118 -0
  605. package/lib/python3.14/build-details.json +53 -0
  606. package/lib/python3.14/bz2.py +352 -0
  607. package/lib/python3.14/cProfile.py +205 -0
  608. package/lib/python3.14/calendar.py +926 -0
  609. package/lib/python3.14/cmd.py +414 -0
  610. package/lib/python3.14/code.py +396 -0
  611. package/lib/python3.14/codecs.py +1125 -0
  612. package/lib/python3.14/codeop.py +154 -0
  613. package/lib/python3.14/collections/__init__.py +1609 -0
  614. package/lib/python3.14/collections/__pycache__/__init__.cpython-314.pyc +0 -0
  615. package/lib/python3.14/colorsys.py +166 -0
  616. package/lib/python3.14/compileall.py +472 -0
  617. package/lib/python3.14/compression/__init__.py +0 -0
  618. package/lib/python3.14/compression/__pycache__/__init__.cpython-314.pyc +0 -0
  619. package/lib/python3.14/compression/__pycache__/bz2.cpython-314.pyc +0 -0
  620. package/lib/python3.14/compression/__pycache__/gzip.cpython-314.pyc +0 -0
  621. package/lib/python3.14/compression/__pycache__/lzma.cpython-314.pyc +0 -0
  622. package/lib/python3.14/compression/__pycache__/zlib.cpython-314.pyc +0 -0
  623. package/lib/python3.14/compression/_common/__init__.py +0 -0
  624. package/lib/python3.14/compression/_common/__pycache__/__init__.cpython-314.pyc +0 -0
  625. package/lib/python3.14/compression/_common/__pycache__/_streams.cpython-314.pyc +0 -0
  626. package/lib/python3.14/compression/_common/_streams.py +162 -0
  627. package/lib/python3.14/compression/bz2.py +5 -0
  628. package/lib/python3.14/compression/gzip.py +5 -0
  629. package/lib/python3.14/compression/lzma.py +5 -0
  630. package/lib/python3.14/compression/zlib.py +5 -0
  631. package/lib/python3.14/compression/zstd/__init__.py +242 -0
  632. package/lib/python3.14/compression/zstd/__pycache__/__init__.cpython-314.pyc +0 -0
  633. package/lib/python3.14/compression/zstd/__pycache__/_zstdfile.cpython-314.pyc +0 -0
  634. package/lib/python3.14/compression/zstd/_zstdfile.py +345 -0
  635. package/lib/python3.14/concurrent/__init__.py +1 -0
  636. package/lib/python3.14/concurrent/__pycache__/__init__.cpython-314.pyc +0 -0
  637. package/lib/python3.14/concurrent/futures/__init__.py +65 -0
  638. package/lib/python3.14/concurrent/futures/__pycache__/__init__.cpython-314.pyc +0 -0
  639. package/lib/python3.14/concurrent/futures/__pycache__/_base.cpython-314.pyc +0 -0
  640. package/lib/python3.14/concurrent/futures/__pycache__/interpreter.cpython-314.pyc +0 -0
  641. package/lib/python3.14/concurrent/futures/__pycache__/process.cpython-314.pyc +0 -0
  642. package/lib/python3.14/concurrent/futures/__pycache__/thread.cpython-314.pyc +0 -0
  643. package/lib/python3.14/concurrent/futures/_base.py +674 -0
  644. package/lib/python3.14/concurrent/futures/interpreter.py +123 -0
  645. package/lib/python3.14/concurrent/futures/process.py +939 -0
  646. package/lib/python3.14/concurrent/futures/thread.py +274 -0
  647. package/lib/python3.14/concurrent/interpreters/__init__.py +247 -0
  648. package/lib/python3.14/concurrent/interpreters/__pycache__/__init__.cpython-314.pyc +0 -0
  649. package/lib/python3.14/concurrent/interpreters/__pycache__/_crossinterp.cpython-314.pyc +0 -0
  650. package/lib/python3.14/concurrent/interpreters/__pycache__/_queues.cpython-314.pyc +0 -0
  651. package/lib/python3.14/concurrent/interpreters/_crossinterp.py +107 -0
  652. package/lib/python3.14/concurrent/interpreters/_queues.py +289 -0
  653. package/lib/python3.14/configparser.py +1414 -0
  654. package/lib/python3.14/contextlib.py +814 -0
  655. package/lib/python3.14/contextvars.py +8 -0
  656. package/lib/python3.14/copy.py +286 -0
  657. package/lib/python3.14/copyreg.py +222 -0
  658. package/lib/python3.14/csv.py +513 -0
  659. package/lib/python3.14/ctypes/__init__.py +681 -0
  660. package/lib/python3.14/ctypes/__pycache__/__init__.cpython-314.pyc +0 -0
  661. package/lib/python3.14/ctypes/__pycache__/_aix.cpython-314.pyc +0 -0
  662. package/lib/python3.14/ctypes/__pycache__/_endian.cpython-314.pyc +0 -0
  663. package/lib/python3.14/ctypes/__pycache__/_layout.cpython-314.pyc +0 -0
  664. package/lib/python3.14/ctypes/__pycache__/util.cpython-314.pyc +0 -0
  665. package/lib/python3.14/ctypes/__pycache__/wintypes.cpython-314.pyc +0 -0
  666. package/lib/python3.14/ctypes/_aix.py +327 -0
  667. package/lib/python3.14/ctypes/_endian.py +78 -0
  668. package/lib/python3.14/ctypes/_layout.py +330 -0
  669. package/lib/python3.14/ctypes/macholib/README.ctypes +7 -0
  670. package/lib/python3.14/ctypes/macholib/__init__.py +9 -0
  671. package/lib/python3.14/ctypes/macholib/__pycache__/__init__.cpython-314.pyc +0 -0
  672. package/lib/python3.14/ctypes/macholib/__pycache__/dyld.cpython-314.pyc +0 -0
  673. package/lib/python3.14/ctypes/macholib/__pycache__/dylib.cpython-314.pyc +0 -0
  674. package/lib/python3.14/ctypes/macholib/__pycache__/framework.cpython-314.pyc +0 -0
  675. package/lib/python3.14/ctypes/macholib/dyld.py +165 -0
  676. package/lib/python3.14/ctypes/macholib/dylib.py +42 -0
  677. package/lib/python3.14/ctypes/macholib/fetch_macholib +2 -0
  678. package/lib/python3.14/ctypes/macholib/fetch_macholib.bat +1 -0
  679. package/lib/python3.14/ctypes/macholib/framework.py +42 -0
  680. package/lib/python3.14/ctypes/util.py +538 -0
  681. package/lib/python3.14/ctypes/wintypes.py +210 -0
  682. package/lib/python3.14/curses/__init__.py +101 -0
  683. package/lib/python3.14/curses/__pycache__/__init__.cpython-314.pyc +0 -0
  684. package/lib/python3.14/curses/__pycache__/ascii.cpython-314.pyc +0 -0
  685. package/lib/python3.14/curses/__pycache__/has_key.cpython-314.pyc +0 -0
  686. package/lib/python3.14/curses/__pycache__/panel.cpython-314.pyc +0 -0
  687. package/lib/python3.14/curses/__pycache__/textpad.cpython-314.pyc +0 -0
  688. package/lib/python3.14/curses/ascii.py +99 -0
  689. package/lib/python3.14/curses/has_key.py +192 -0
  690. package/lib/python3.14/curses/panel.py +6 -0
  691. package/lib/python3.14/curses/textpad.py +204 -0
  692. package/lib/python3.14/dataclasses.py +1804 -0
  693. package/lib/python3.14/datetime.py +13 -0
  694. package/lib/python3.14/dbm/__init__.py +194 -0
  695. package/lib/python3.14/dbm/__pycache__/__init__.cpython-314.pyc +0 -0
  696. package/lib/python3.14/dbm/__pycache__/dumb.cpython-314.pyc +0 -0
  697. package/lib/python3.14/dbm/__pycache__/gnu.cpython-314.pyc +0 -0
  698. package/lib/python3.14/dbm/__pycache__/ndbm.cpython-314.pyc +0 -0
  699. package/lib/python3.14/dbm/__pycache__/sqlite3.cpython-314.pyc +0 -0
  700. package/lib/python3.14/dbm/dumb.py +319 -0
  701. package/lib/python3.14/dbm/gnu.py +3 -0
  702. package/lib/python3.14/dbm/ndbm.py +3 -0
  703. package/lib/python3.14/dbm/sqlite3.py +144 -0
  704. package/lib/python3.14/decimal.py +109 -0
  705. package/lib/python3.14/difflib.py +2064 -0
  706. package/lib/python3.14/dis.py +1157 -0
  707. package/lib/python3.14/doctest.py +2921 -0
  708. package/lib/python3.14/email/__init__.py +61 -0
  709. package/lib/python3.14/email/__pycache__/__init__.cpython-314.pyc +0 -0
  710. package/lib/python3.14/email/__pycache__/_encoded_words.cpython-314.pyc +0 -0
  711. package/lib/python3.14/email/__pycache__/_header_value_parser.cpython-314.pyc +0 -0
  712. package/lib/python3.14/email/__pycache__/_parseaddr.cpython-314.pyc +0 -0
  713. package/lib/python3.14/email/__pycache__/_policybase.cpython-314.pyc +0 -0
  714. package/lib/python3.14/email/__pycache__/base64mime.cpython-314.pyc +0 -0
  715. package/lib/python3.14/email/__pycache__/charset.cpython-314.pyc +0 -0
  716. package/lib/python3.14/email/__pycache__/contentmanager.cpython-314.pyc +0 -0
  717. package/lib/python3.14/email/__pycache__/encoders.cpython-314.pyc +0 -0
  718. package/lib/python3.14/email/__pycache__/errors.cpython-314.pyc +0 -0
  719. package/lib/python3.14/email/__pycache__/feedparser.cpython-314.pyc +0 -0
  720. package/lib/python3.14/email/__pycache__/generator.cpython-314.pyc +0 -0
  721. package/lib/python3.14/email/__pycache__/header.cpython-314.pyc +0 -0
  722. package/lib/python3.14/email/__pycache__/headerregistry.cpython-314.pyc +0 -0
  723. package/lib/python3.14/email/__pycache__/iterators.cpython-314.pyc +0 -0
  724. package/lib/python3.14/email/__pycache__/message.cpython-314.pyc +0 -0
  725. package/lib/python3.14/email/__pycache__/parser.cpython-314.pyc +0 -0
  726. package/lib/python3.14/email/__pycache__/policy.cpython-314.pyc +0 -0
  727. package/lib/python3.14/email/__pycache__/quoprimime.cpython-314.pyc +0 -0
  728. package/lib/python3.14/email/__pycache__/utils.cpython-314.pyc +0 -0
  729. package/lib/python3.14/email/_encoded_words.py +233 -0
  730. package/lib/python3.14/email/_header_value_parser.py +3097 -0
  731. package/lib/python3.14/email/_parseaddr.py +563 -0
  732. package/lib/python3.14/email/_policybase.py +392 -0
  733. package/lib/python3.14/email/architecture.rst +216 -0
  734. package/lib/python3.14/email/base64mime.py +115 -0
  735. package/lib/python3.14/email/charset.py +398 -0
  736. package/lib/python3.14/email/contentmanager.py +253 -0
  737. package/lib/python3.14/email/encoders.py +65 -0
  738. package/lib/python3.14/email/errors.py +117 -0
  739. package/lib/python3.14/email/feedparser.py +537 -0
  740. package/lib/python3.14/email/generator.py +520 -0
  741. package/lib/python3.14/email/header.py +582 -0
  742. package/lib/python3.14/email/headerregistry.py +604 -0
  743. package/lib/python3.14/email/iterators.py +68 -0
  744. package/lib/python3.14/email/message.py +1217 -0
  745. package/lib/python3.14/email/mime/__init__.py +0 -0
  746. package/lib/python3.14/email/mime/__pycache__/__init__.cpython-314.pyc +0 -0
  747. package/lib/python3.14/email/mime/__pycache__/application.cpython-314.pyc +0 -0
  748. package/lib/python3.14/email/mime/__pycache__/audio.cpython-314.pyc +0 -0
  749. package/lib/python3.14/email/mime/__pycache__/base.cpython-314.pyc +0 -0
  750. package/lib/python3.14/email/mime/__pycache__/image.cpython-314.pyc +0 -0
  751. package/lib/python3.14/email/mime/__pycache__/message.cpython-314.pyc +0 -0
  752. package/lib/python3.14/email/mime/__pycache__/multipart.cpython-314.pyc +0 -0
  753. package/lib/python3.14/email/mime/__pycache__/nonmultipart.cpython-314.pyc +0 -0
  754. package/lib/python3.14/email/mime/__pycache__/text.cpython-314.pyc +0 -0
  755. package/lib/python3.14/email/mime/application.py +37 -0
  756. package/lib/python3.14/email/mime/audio.py +97 -0
  757. package/lib/python3.14/email/mime/base.py +29 -0
  758. package/lib/python3.14/email/mime/image.py +152 -0
  759. package/lib/python3.14/email/mime/message.py +33 -0
  760. package/lib/python3.14/email/mime/multipart.py +47 -0
  761. package/lib/python3.14/email/mime/nonmultipart.py +21 -0
  762. package/lib/python3.14/email/mime/text.py +40 -0
  763. package/lib/python3.14/email/parser.py +127 -0
  764. package/lib/python3.14/email/policy.py +239 -0
  765. package/lib/python3.14/email/quoprimime.py +300 -0
  766. package/lib/python3.14/email/utils.py +486 -0
  767. package/lib/python3.14/encodings/__init__.py +177 -0
  768. package/lib/python3.14/encodings/__pycache__/__init__.cpython-314.pyc +0 -0
  769. package/lib/python3.14/encodings/__pycache__/_win_cp_codecs.cpython-314.pyc +0 -0
  770. package/lib/python3.14/encodings/__pycache__/aliases.cpython-314.pyc +0 -0
  771. package/lib/python3.14/encodings/__pycache__/ascii.cpython-314.pyc +0 -0
  772. package/lib/python3.14/encodings/__pycache__/base64_codec.cpython-314.pyc +0 -0
  773. package/lib/python3.14/encodings/__pycache__/big5.cpython-314.pyc +0 -0
  774. package/lib/python3.14/encodings/__pycache__/big5hkscs.cpython-314.pyc +0 -0
  775. package/lib/python3.14/encodings/__pycache__/bz2_codec.cpython-314.pyc +0 -0
  776. package/lib/python3.14/encodings/__pycache__/charmap.cpython-314.pyc +0 -0
  777. package/lib/python3.14/encodings/__pycache__/cp037.cpython-314.pyc +0 -0
  778. package/lib/python3.14/encodings/__pycache__/cp1006.cpython-314.pyc +0 -0
  779. package/lib/python3.14/encodings/__pycache__/cp1026.cpython-314.pyc +0 -0
  780. package/lib/python3.14/encodings/__pycache__/cp1125.cpython-314.pyc +0 -0
  781. package/lib/python3.14/encodings/__pycache__/cp1140.cpython-314.pyc +0 -0
  782. package/lib/python3.14/encodings/__pycache__/cp1250.cpython-314.pyc +0 -0
  783. package/lib/python3.14/encodings/__pycache__/cp1251.cpython-314.pyc +0 -0
  784. package/lib/python3.14/encodings/__pycache__/cp1252.cpython-314.pyc +0 -0
  785. package/lib/python3.14/encodings/__pycache__/cp1253.cpython-314.pyc +0 -0
  786. package/lib/python3.14/encodings/__pycache__/cp1254.cpython-314.pyc +0 -0
  787. package/lib/python3.14/encodings/__pycache__/cp1255.cpython-314.pyc +0 -0
  788. package/lib/python3.14/encodings/__pycache__/cp1256.cpython-314.pyc +0 -0
  789. package/lib/python3.14/encodings/__pycache__/cp1257.cpython-314.pyc +0 -0
  790. package/lib/python3.14/encodings/__pycache__/cp1258.cpython-314.pyc +0 -0
  791. package/lib/python3.14/encodings/__pycache__/cp273.cpython-314.pyc +0 -0
  792. package/lib/python3.14/encodings/__pycache__/cp424.cpython-314.pyc +0 -0
  793. package/lib/python3.14/encodings/__pycache__/cp437.cpython-314.pyc +0 -0
  794. package/lib/python3.14/encodings/__pycache__/cp500.cpython-314.pyc +0 -0
  795. package/lib/python3.14/encodings/__pycache__/cp720.cpython-314.pyc +0 -0
  796. package/lib/python3.14/encodings/__pycache__/cp737.cpython-314.pyc +0 -0
  797. package/lib/python3.14/encodings/__pycache__/cp775.cpython-314.pyc +0 -0
  798. package/lib/python3.14/encodings/__pycache__/cp850.cpython-314.pyc +0 -0
  799. package/lib/python3.14/encodings/__pycache__/cp852.cpython-314.pyc +0 -0
  800. package/lib/python3.14/encodings/__pycache__/cp855.cpython-314.pyc +0 -0
  801. package/lib/python3.14/encodings/__pycache__/cp856.cpython-314.pyc +0 -0
  802. package/lib/python3.14/encodings/__pycache__/cp857.cpython-314.pyc +0 -0
  803. package/lib/python3.14/encodings/__pycache__/cp858.cpython-314.pyc +0 -0
  804. package/lib/python3.14/encodings/__pycache__/cp860.cpython-314.pyc +0 -0
  805. package/lib/python3.14/encodings/__pycache__/cp861.cpython-314.pyc +0 -0
  806. package/lib/python3.14/encodings/__pycache__/cp862.cpython-314.pyc +0 -0
  807. package/lib/python3.14/encodings/__pycache__/cp863.cpython-314.pyc +0 -0
  808. package/lib/python3.14/encodings/__pycache__/cp864.cpython-314.pyc +0 -0
  809. package/lib/python3.14/encodings/__pycache__/cp865.cpython-314.pyc +0 -0
  810. package/lib/python3.14/encodings/__pycache__/cp866.cpython-314.pyc +0 -0
  811. package/lib/python3.14/encodings/__pycache__/cp869.cpython-314.pyc +0 -0
  812. package/lib/python3.14/encodings/__pycache__/cp874.cpython-314.pyc +0 -0
  813. package/lib/python3.14/encodings/__pycache__/cp875.cpython-314.pyc +0 -0
  814. package/lib/python3.14/encodings/__pycache__/cp932.cpython-314.pyc +0 -0
  815. package/lib/python3.14/encodings/__pycache__/cp949.cpython-314.pyc +0 -0
  816. package/lib/python3.14/encodings/__pycache__/cp950.cpython-314.pyc +0 -0
  817. package/lib/python3.14/encodings/__pycache__/euc_jis_2004.cpython-314.pyc +0 -0
  818. package/lib/python3.14/encodings/__pycache__/euc_jisx0213.cpython-314.pyc +0 -0
  819. package/lib/python3.14/encodings/__pycache__/euc_jp.cpython-314.pyc +0 -0
  820. package/lib/python3.14/encodings/__pycache__/euc_kr.cpython-314.pyc +0 -0
  821. package/lib/python3.14/encodings/__pycache__/gb18030.cpython-314.pyc +0 -0
  822. package/lib/python3.14/encodings/__pycache__/gb2312.cpython-314.pyc +0 -0
  823. package/lib/python3.14/encodings/__pycache__/gbk.cpython-314.pyc +0 -0
  824. package/lib/python3.14/encodings/__pycache__/hex_codec.cpython-314.pyc +0 -0
  825. package/lib/python3.14/encodings/__pycache__/hp_roman8.cpython-314.pyc +0 -0
  826. package/lib/python3.14/encodings/__pycache__/hz.cpython-314.pyc +0 -0
  827. package/lib/python3.14/encodings/__pycache__/idna.cpython-314.pyc +0 -0
  828. package/lib/python3.14/encodings/__pycache__/iso2022_jp.cpython-314.pyc +0 -0
  829. package/lib/python3.14/encodings/__pycache__/iso2022_jp_1.cpython-314.pyc +0 -0
  830. package/lib/python3.14/encodings/__pycache__/iso2022_jp_2.cpython-314.pyc +0 -0
  831. package/lib/python3.14/encodings/__pycache__/iso2022_jp_2004.cpython-314.pyc +0 -0
  832. package/lib/python3.14/encodings/__pycache__/iso2022_jp_3.cpython-314.pyc +0 -0
  833. package/lib/python3.14/encodings/__pycache__/iso2022_jp_ext.cpython-314.pyc +0 -0
  834. package/lib/python3.14/encodings/__pycache__/iso2022_kr.cpython-314.pyc +0 -0
  835. package/lib/python3.14/encodings/__pycache__/iso8859_1.cpython-314.pyc +0 -0
  836. package/lib/python3.14/encodings/__pycache__/iso8859_10.cpython-314.pyc +0 -0
  837. package/lib/python3.14/encodings/__pycache__/iso8859_11.cpython-314.pyc +0 -0
  838. package/lib/python3.14/encodings/__pycache__/iso8859_13.cpython-314.pyc +0 -0
  839. package/lib/python3.14/encodings/__pycache__/iso8859_14.cpython-314.pyc +0 -0
  840. package/lib/python3.14/encodings/__pycache__/iso8859_15.cpython-314.pyc +0 -0
  841. package/lib/python3.14/encodings/__pycache__/iso8859_16.cpython-314.pyc +0 -0
  842. package/lib/python3.14/encodings/__pycache__/iso8859_2.cpython-314.pyc +0 -0
  843. package/lib/python3.14/encodings/__pycache__/iso8859_3.cpython-314.pyc +0 -0
  844. package/lib/python3.14/encodings/__pycache__/iso8859_4.cpython-314.pyc +0 -0
  845. package/lib/python3.14/encodings/__pycache__/iso8859_5.cpython-314.pyc +0 -0
  846. package/lib/python3.14/encodings/__pycache__/iso8859_6.cpython-314.pyc +0 -0
  847. package/lib/python3.14/encodings/__pycache__/iso8859_7.cpython-314.pyc +0 -0
  848. package/lib/python3.14/encodings/__pycache__/iso8859_8.cpython-314.pyc +0 -0
  849. package/lib/python3.14/encodings/__pycache__/iso8859_9.cpython-314.pyc +0 -0
  850. package/lib/python3.14/encodings/__pycache__/johab.cpython-314.pyc +0 -0
  851. package/lib/python3.14/encodings/__pycache__/koi8_r.cpython-314.pyc +0 -0
  852. package/lib/python3.14/encodings/__pycache__/koi8_t.cpython-314.pyc +0 -0
  853. package/lib/python3.14/encodings/__pycache__/koi8_u.cpython-314.pyc +0 -0
  854. package/lib/python3.14/encodings/__pycache__/kz1048.cpython-314.pyc +0 -0
  855. package/lib/python3.14/encodings/__pycache__/latin_1.cpython-314.pyc +0 -0
  856. package/lib/python3.14/encodings/__pycache__/mac_arabic.cpython-314.pyc +0 -0
  857. package/lib/python3.14/encodings/__pycache__/mac_croatian.cpython-314.pyc +0 -0
  858. package/lib/python3.14/encodings/__pycache__/mac_cyrillic.cpython-314.pyc +0 -0
  859. package/lib/python3.14/encodings/__pycache__/mac_farsi.cpython-314.pyc +0 -0
  860. package/lib/python3.14/encodings/__pycache__/mac_greek.cpython-314.pyc +0 -0
  861. package/lib/python3.14/encodings/__pycache__/mac_iceland.cpython-314.pyc +0 -0
  862. package/lib/python3.14/encodings/__pycache__/mac_latin2.cpython-314.pyc +0 -0
  863. package/lib/python3.14/encodings/__pycache__/mac_roman.cpython-314.pyc +0 -0
  864. package/lib/python3.14/encodings/__pycache__/mac_romanian.cpython-314.pyc +0 -0
  865. package/lib/python3.14/encodings/__pycache__/mac_turkish.cpython-314.pyc +0 -0
  866. package/lib/python3.14/encodings/__pycache__/mbcs.cpython-314.pyc +0 -0
  867. package/lib/python3.14/encodings/__pycache__/oem.cpython-314.pyc +0 -0
  868. package/lib/python3.14/encodings/__pycache__/palmos.cpython-314.pyc +0 -0
  869. package/lib/python3.14/encodings/__pycache__/ptcp154.cpython-314.pyc +0 -0
  870. package/lib/python3.14/encodings/__pycache__/punycode.cpython-314.pyc +0 -0
  871. package/lib/python3.14/encodings/__pycache__/quopri_codec.cpython-314.pyc +0 -0
  872. package/lib/python3.14/encodings/__pycache__/raw_unicode_escape.cpython-314.pyc +0 -0
  873. package/lib/python3.14/encodings/__pycache__/rot_13.cpython-314.pyc +0 -0
  874. package/lib/python3.14/encodings/__pycache__/shift_jis.cpython-314.pyc +0 -0
  875. package/lib/python3.14/encodings/__pycache__/shift_jis_2004.cpython-314.pyc +0 -0
  876. package/lib/python3.14/encodings/__pycache__/shift_jisx0213.cpython-314.pyc +0 -0
  877. package/lib/python3.14/encodings/__pycache__/tis_620.cpython-314.pyc +0 -0
  878. package/lib/python3.14/encodings/__pycache__/undefined.cpython-314.pyc +0 -0
  879. package/lib/python3.14/encodings/__pycache__/unicode_escape.cpython-314.pyc +0 -0
  880. package/lib/python3.14/encodings/__pycache__/utf_16.cpython-314.pyc +0 -0
  881. package/lib/python3.14/encodings/__pycache__/utf_16_be.cpython-314.pyc +0 -0
  882. package/lib/python3.14/encodings/__pycache__/utf_16_le.cpython-314.pyc +0 -0
  883. package/lib/python3.14/encodings/__pycache__/utf_32.cpython-314.pyc +0 -0
  884. package/lib/python3.14/encodings/__pycache__/utf_32_be.cpython-314.pyc +0 -0
  885. package/lib/python3.14/encodings/__pycache__/utf_32_le.cpython-314.pyc +0 -0
  886. package/lib/python3.14/encodings/__pycache__/utf_7.cpython-314.pyc +0 -0
  887. package/lib/python3.14/encodings/__pycache__/utf_8.cpython-314.pyc +0 -0
  888. package/lib/python3.14/encodings/__pycache__/utf_8_sig.cpython-314.pyc +0 -0
  889. package/lib/python3.14/encodings/__pycache__/uu_codec.cpython-314.pyc +0 -0
  890. package/lib/python3.14/encodings/__pycache__/zlib_codec.cpython-314.pyc +0 -0
  891. package/lib/python3.14/encodings/_win_cp_codecs.py +36 -0
  892. package/lib/python3.14/encodings/aliases.py +560 -0
  893. package/lib/python3.14/encodings/ascii.py +50 -0
  894. package/lib/python3.14/encodings/base64_codec.py +55 -0
  895. package/lib/python3.14/encodings/big5.py +39 -0
  896. package/lib/python3.14/encodings/big5hkscs.py +39 -0
  897. package/lib/python3.14/encodings/bz2_codec.py +78 -0
  898. package/lib/python3.14/encodings/charmap.py +69 -0
  899. package/lib/python3.14/encodings/cp037.py +307 -0
  900. package/lib/python3.14/encodings/cp1006.py +307 -0
  901. package/lib/python3.14/encodings/cp1026.py +307 -0
  902. package/lib/python3.14/encodings/cp1125.py +698 -0
  903. package/lib/python3.14/encodings/cp1140.py +307 -0
  904. package/lib/python3.14/encodings/cp1250.py +307 -0
  905. package/lib/python3.14/encodings/cp1251.py +307 -0
  906. package/lib/python3.14/encodings/cp1252.py +307 -0
  907. package/lib/python3.14/encodings/cp1253.py +307 -0
  908. package/lib/python3.14/encodings/cp1254.py +307 -0
  909. package/lib/python3.14/encodings/cp1255.py +307 -0
  910. package/lib/python3.14/encodings/cp1256.py +307 -0
  911. package/lib/python3.14/encodings/cp1257.py +307 -0
  912. package/lib/python3.14/encodings/cp1258.py +307 -0
  913. package/lib/python3.14/encodings/cp273.py +307 -0
  914. package/lib/python3.14/encodings/cp424.py +307 -0
  915. package/lib/python3.14/encodings/cp437.py +698 -0
  916. package/lib/python3.14/encodings/cp500.py +307 -0
  917. package/lib/python3.14/encodings/cp720.py +309 -0
  918. package/lib/python3.14/encodings/cp737.py +698 -0
  919. package/lib/python3.14/encodings/cp775.py +697 -0
  920. package/lib/python3.14/encodings/cp850.py +698 -0
  921. package/lib/python3.14/encodings/cp852.py +698 -0
  922. package/lib/python3.14/encodings/cp855.py +698 -0
  923. package/lib/python3.14/encodings/cp856.py +307 -0
  924. package/lib/python3.14/encodings/cp857.py +694 -0
  925. package/lib/python3.14/encodings/cp858.py +698 -0
  926. package/lib/python3.14/encodings/cp860.py +698 -0
  927. package/lib/python3.14/encodings/cp861.py +698 -0
  928. package/lib/python3.14/encodings/cp862.py +698 -0
  929. package/lib/python3.14/encodings/cp863.py +698 -0
  930. package/lib/python3.14/encodings/cp864.py +690 -0
  931. package/lib/python3.14/encodings/cp865.py +698 -0
  932. package/lib/python3.14/encodings/cp866.py +698 -0
  933. package/lib/python3.14/encodings/cp869.py +689 -0
  934. package/lib/python3.14/encodings/cp874.py +307 -0
  935. package/lib/python3.14/encodings/cp875.py +307 -0
  936. package/lib/python3.14/encodings/cp932.py +39 -0
  937. package/lib/python3.14/encodings/cp949.py +39 -0
  938. package/lib/python3.14/encodings/cp950.py +39 -0
  939. package/lib/python3.14/encodings/euc_jis_2004.py +39 -0
  940. package/lib/python3.14/encodings/euc_jisx0213.py +39 -0
  941. package/lib/python3.14/encodings/euc_jp.py +39 -0
  942. package/lib/python3.14/encodings/euc_kr.py +39 -0
  943. package/lib/python3.14/encodings/gb18030.py +39 -0
  944. package/lib/python3.14/encodings/gb2312.py +39 -0
  945. package/lib/python3.14/encodings/gbk.py +39 -0
  946. package/lib/python3.14/encodings/hex_codec.py +55 -0
  947. package/lib/python3.14/encodings/hp_roman8.py +314 -0
  948. package/lib/python3.14/encodings/hz.py +39 -0
  949. package/lib/python3.14/encodings/idna.py +387 -0
  950. package/lib/python3.14/encodings/iso2022_jp.py +39 -0
  951. package/lib/python3.14/encodings/iso2022_jp_1.py +39 -0
  952. package/lib/python3.14/encodings/iso2022_jp_2.py +39 -0
  953. package/lib/python3.14/encodings/iso2022_jp_2004.py +39 -0
  954. package/lib/python3.14/encodings/iso2022_jp_3.py +39 -0
  955. package/lib/python3.14/encodings/iso2022_jp_ext.py +39 -0
  956. package/lib/python3.14/encodings/iso2022_kr.py +39 -0
  957. package/lib/python3.14/encodings/iso8859_1.py +307 -0
  958. package/lib/python3.14/encodings/iso8859_10.py +307 -0
  959. package/lib/python3.14/encodings/iso8859_11.py +307 -0
  960. package/lib/python3.14/encodings/iso8859_13.py +307 -0
  961. package/lib/python3.14/encodings/iso8859_14.py +307 -0
  962. package/lib/python3.14/encodings/iso8859_15.py +307 -0
  963. package/lib/python3.14/encodings/iso8859_16.py +307 -0
  964. package/lib/python3.14/encodings/iso8859_2.py +307 -0
  965. package/lib/python3.14/encodings/iso8859_3.py +307 -0
  966. package/lib/python3.14/encodings/iso8859_4.py +307 -0
  967. package/lib/python3.14/encodings/iso8859_5.py +307 -0
  968. package/lib/python3.14/encodings/iso8859_6.py +307 -0
  969. package/lib/python3.14/encodings/iso8859_7.py +307 -0
  970. package/lib/python3.14/encodings/iso8859_8.py +307 -0
  971. package/lib/python3.14/encodings/iso8859_9.py +307 -0
  972. package/lib/python3.14/encodings/johab.py +39 -0
  973. package/lib/python3.14/encodings/koi8_r.py +307 -0
  974. package/lib/python3.14/encodings/koi8_t.py +308 -0
  975. package/lib/python3.14/encodings/koi8_u.py +307 -0
  976. package/lib/python3.14/encodings/kz1048.py +307 -0
  977. package/lib/python3.14/encodings/latin_1.py +50 -0
  978. package/lib/python3.14/encodings/mac_arabic.py +698 -0
  979. package/lib/python3.14/encodings/mac_croatian.py +307 -0
  980. package/lib/python3.14/encodings/mac_cyrillic.py +307 -0
  981. package/lib/python3.14/encodings/mac_farsi.py +307 -0
  982. package/lib/python3.14/encodings/mac_greek.py +307 -0
  983. package/lib/python3.14/encodings/mac_iceland.py +307 -0
  984. package/lib/python3.14/encodings/mac_latin2.py +312 -0
  985. package/lib/python3.14/encodings/mac_roman.py +307 -0
  986. package/lib/python3.14/encodings/mac_romanian.py +307 -0
  987. package/lib/python3.14/encodings/mac_turkish.py +307 -0
  988. package/lib/python3.14/encodings/mbcs.py +47 -0
  989. package/lib/python3.14/encodings/oem.py +41 -0
  990. package/lib/python3.14/encodings/palmos.py +308 -0
  991. package/lib/python3.14/encodings/ptcp154.py +312 -0
  992. package/lib/python3.14/encodings/punycode.py +253 -0
  993. package/lib/python3.14/encodings/quopri_codec.py +56 -0
  994. package/lib/python3.14/encodings/raw_unicode_escape.py +46 -0
  995. package/lib/python3.14/encodings/rot_13.py +113 -0
  996. package/lib/python3.14/encodings/shift_jis.py +39 -0
  997. package/lib/python3.14/encodings/shift_jis_2004.py +39 -0
  998. package/lib/python3.14/encodings/shift_jisx0213.py +39 -0
  999. package/lib/python3.14/encodings/tis_620.py +307 -0
  1000. package/lib/python3.14/encodings/undefined.py +49 -0
  1001. package/lib/python3.14/encodings/unicode_escape.py +46 -0
  1002. package/lib/python3.14/encodings/utf_16.py +155 -0
  1003. package/lib/python3.14/encodings/utf_16_be.py +42 -0
  1004. package/lib/python3.14/encodings/utf_16_le.py +42 -0
  1005. package/lib/python3.14/encodings/utf_32.py +150 -0
  1006. package/lib/python3.14/encodings/utf_32_be.py +37 -0
  1007. package/lib/python3.14/encodings/utf_32_le.py +37 -0
  1008. package/lib/python3.14/encodings/utf_7.py +38 -0
  1009. package/lib/python3.14/encodings/utf_8.py +42 -0
  1010. package/lib/python3.14/encodings/utf_8_sig.py +130 -0
  1011. package/lib/python3.14/encodings/uu_codec.py +103 -0
  1012. package/lib/python3.14/encodings/zlib_codec.py +77 -0
  1013. package/lib/python3.14/ensurepip/__init__.py +264 -0
  1014. package/lib/python3.14/ensurepip/__main__.py +5 -0
  1015. package/lib/python3.14/ensurepip/__pycache__/__init__.cpython-314.pyc +0 -0
  1016. package/lib/python3.14/ensurepip/__pycache__/__main__.cpython-314.pyc +0 -0
  1017. package/lib/python3.14/ensurepip/__pycache__/_uninstall.cpython-314.pyc +0 -0
  1018. package/lib/python3.14/ensurepip/_bundled/pip-25.3-py3-none-any.whl +0 -0
  1019. package/lib/python3.14/ensurepip/_uninstall.py +31 -0
  1020. package/lib/python3.14/enum.py +2167 -0
  1021. package/lib/python3.14/filecmp.py +320 -0
  1022. package/lib/python3.14/fileinput.py +442 -0
  1023. package/lib/python3.14/fnmatch.py +209 -0
  1024. package/lib/python3.14/fractions.py +1078 -0
  1025. package/lib/python3.14/ftplib.py +966 -0
  1026. package/lib/python3.14/functools.py +1165 -0
  1027. package/lib/python3.14/genericpath.py +200 -0
  1028. package/lib/python3.14/getopt.py +232 -0
  1029. package/lib/python3.14/getpass.py +256 -0
  1030. package/lib/python3.14/gettext.py +657 -0
  1031. package/lib/python3.14/glob.py +553 -0
  1032. package/lib/python3.14/graphlib.py +254 -0
  1033. package/lib/python3.14/gzip.py +717 -0
  1034. package/lib/python3.14/hashlib.py +255 -0
  1035. package/lib/python3.14/heapq.py +611 -0
  1036. package/lib/python3.14/hmac.py +268 -0
  1037. package/lib/python3.14/html/__init__.py +132 -0
  1038. package/lib/python3.14/html/__pycache__/__init__.cpython-314.pyc +0 -0
  1039. package/lib/python3.14/html/__pycache__/entities.cpython-314.pyc +0 -0
  1040. package/lib/python3.14/html/__pycache__/parser.cpython-314.pyc +0 -0
  1041. package/lib/python3.14/html/entities.py +2513 -0
  1042. package/lib/python3.14/html/parser.py +553 -0
  1043. package/lib/python3.14/http/__init__.py +213 -0
  1044. package/lib/python3.14/http/__pycache__/__init__.cpython-314.pyc +0 -0
  1045. package/lib/python3.14/http/__pycache__/client.cpython-314.pyc +0 -0
  1046. package/lib/python3.14/http/__pycache__/cookiejar.cpython-314.pyc +0 -0
  1047. package/lib/python3.14/http/__pycache__/cookies.cpython-314.pyc +0 -0
  1048. package/lib/python3.14/http/__pycache__/server.cpython-314.pyc +0 -0
  1049. package/lib/python3.14/http/client.py +1570 -0
  1050. package/lib/python3.14/http/cookiejar.py +2122 -0
  1051. package/lib/python3.14/http/cookies.py +598 -0
  1052. package/lib/python3.14/http/server.py +1441 -0
  1053. package/lib/python3.14/idlelib/CREDITS.txt +48 -0
  1054. package/lib/python3.14/idlelib/ChangeLog +1591 -0
  1055. package/lib/python3.14/idlelib/HISTORY.txt +296 -0
  1056. package/lib/python3.14/idlelib/Icons/README.txt +51 -0
  1057. package/lib/python3.14/idlelib/Icons/folder.gif +0 -0
  1058. package/lib/python3.14/idlelib/Icons/idle.ico +0 -0
  1059. package/lib/python3.14/idlelib/Icons/idle_16.gif +0 -0
  1060. package/lib/python3.14/idlelib/Icons/idle_16.png +0 -0
  1061. package/lib/python3.14/idlelib/Icons/idle_256.png +0 -0
  1062. package/lib/python3.14/idlelib/Icons/idle_32.gif +0 -0
  1063. package/lib/python3.14/idlelib/Icons/idle_32.png +0 -0
  1064. package/lib/python3.14/idlelib/Icons/idle_48.gif +0 -0
  1065. package/lib/python3.14/idlelib/Icons/idle_48.png +0 -0
  1066. package/lib/python3.14/idlelib/Icons/minusnode.gif +0 -0
  1067. package/lib/python3.14/idlelib/Icons/openfolder.gif +0 -0
  1068. package/lib/python3.14/idlelib/Icons/plusnode.gif +0 -0
  1069. package/lib/python3.14/idlelib/Icons/python.gif +0 -0
  1070. package/lib/python3.14/idlelib/Icons/tk.gif +0 -0
  1071. package/lib/python3.14/idlelib/NEWS2x.txt +660 -0
  1072. package/lib/python3.14/idlelib/News3.txt +1404 -0
  1073. package/lib/python3.14/idlelib/README.txt +290 -0
  1074. package/lib/python3.14/idlelib/TODO.txt +210 -0
  1075. package/lib/python3.14/idlelib/__init__.py +10 -0
  1076. package/lib/python3.14/idlelib/__main__.py +7 -0
  1077. package/lib/python3.14/idlelib/__pycache__/__init__.cpython-314.pyc +0 -0
  1078. package/lib/python3.14/idlelib/__pycache__/__main__.cpython-314.pyc +0 -0
  1079. package/lib/python3.14/idlelib/__pycache__/autocomplete.cpython-314.pyc +0 -0
  1080. package/lib/python3.14/idlelib/__pycache__/autocomplete_w.cpython-314.pyc +0 -0
  1081. package/lib/python3.14/idlelib/__pycache__/autoexpand.cpython-314.pyc +0 -0
  1082. package/lib/python3.14/idlelib/__pycache__/browser.cpython-314.pyc +0 -0
  1083. package/lib/python3.14/idlelib/__pycache__/calltip.cpython-314.pyc +0 -0
  1084. package/lib/python3.14/idlelib/__pycache__/calltip_w.cpython-314.pyc +0 -0
  1085. package/lib/python3.14/idlelib/__pycache__/codecontext.cpython-314.pyc +0 -0
  1086. package/lib/python3.14/idlelib/__pycache__/colorizer.cpython-314.pyc +0 -0
  1087. package/lib/python3.14/idlelib/__pycache__/config.cpython-314.pyc +0 -0
  1088. package/lib/python3.14/idlelib/__pycache__/config_key.cpython-314.pyc +0 -0
  1089. package/lib/python3.14/idlelib/__pycache__/configdialog.cpython-314.pyc +0 -0
  1090. package/lib/python3.14/idlelib/__pycache__/debugger.cpython-314.pyc +0 -0
  1091. package/lib/python3.14/idlelib/__pycache__/debugger_r.cpython-314.pyc +0 -0
  1092. package/lib/python3.14/idlelib/__pycache__/debugobj.cpython-314.pyc +0 -0
  1093. package/lib/python3.14/idlelib/__pycache__/debugobj_r.cpython-314.pyc +0 -0
  1094. package/lib/python3.14/idlelib/__pycache__/delegator.cpython-314.pyc +0 -0
  1095. package/lib/python3.14/idlelib/__pycache__/dynoption.cpython-314.pyc +0 -0
  1096. package/lib/python3.14/idlelib/__pycache__/editor.cpython-314.pyc +0 -0
  1097. package/lib/python3.14/idlelib/__pycache__/filelist.cpython-314.pyc +0 -0
  1098. package/lib/python3.14/idlelib/__pycache__/format.cpython-314.pyc +0 -0
  1099. package/lib/python3.14/idlelib/__pycache__/grep.cpython-314.pyc +0 -0
  1100. package/lib/python3.14/idlelib/__pycache__/help.cpython-314.pyc +0 -0
  1101. package/lib/python3.14/idlelib/__pycache__/help_about.cpython-314.pyc +0 -0
  1102. package/lib/python3.14/idlelib/__pycache__/history.cpython-314.pyc +0 -0
  1103. package/lib/python3.14/idlelib/__pycache__/hyperparser.cpython-314.pyc +0 -0
  1104. package/lib/python3.14/idlelib/__pycache__/idle.cpython-314.pyc +0 -0
  1105. package/lib/python3.14/idlelib/__pycache__/iomenu.cpython-314.pyc +0 -0
  1106. package/lib/python3.14/idlelib/__pycache__/macosx.cpython-314.pyc +0 -0
  1107. package/lib/python3.14/idlelib/__pycache__/mainmenu.cpython-314.pyc +0 -0
  1108. package/lib/python3.14/idlelib/__pycache__/multicall.cpython-314.pyc +0 -0
  1109. package/lib/python3.14/idlelib/__pycache__/outwin.cpython-314.pyc +0 -0
  1110. package/lib/python3.14/idlelib/__pycache__/parenmatch.cpython-314.pyc +0 -0
  1111. package/lib/python3.14/idlelib/__pycache__/pathbrowser.cpython-314.pyc +0 -0
  1112. package/lib/python3.14/idlelib/__pycache__/percolator.cpython-314.pyc +0 -0
  1113. package/lib/python3.14/idlelib/__pycache__/pyparse.cpython-314.pyc +0 -0
  1114. package/lib/python3.14/idlelib/__pycache__/pyshell.cpython-314.pyc +0 -0
  1115. package/lib/python3.14/idlelib/__pycache__/query.cpython-314.pyc +0 -0
  1116. package/lib/python3.14/idlelib/__pycache__/redirector.cpython-314.pyc +0 -0
  1117. package/lib/python3.14/idlelib/__pycache__/replace.cpython-314.pyc +0 -0
  1118. package/lib/python3.14/idlelib/__pycache__/rpc.cpython-314.pyc +0 -0
  1119. package/lib/python3.14/idlelib/__pycache__/run.cpython-314.pyc +0 -0
  1120. package/lib/python3.14/idlelib/__pycache__/runscript.cpython-314.pyc +0 -0
  1121. package/lib/python3.14/idlelib/__pycache__/scrolledlist.cpython-314.pyc +0 -0
  1122. package/lib/python3.14/idlelib/__pycache__/search.cpython-314.pyc +0 -0
  1123. package/lib/python3.14/idlelib/__pycache__/searchbase.cpython-314.pyc +0 -0
  1124. package/lib/python3.14/idlelib/__pycache__/searchengine.cpython-314.pyc +0 -0
  1125. package/lib/python3.14/idlelib/__pycache__/sidebar.cpython-314.pyc +0 -0
  1126. package/lib/python3.14/idlelib/__pycache__/squeezer.cpython-314.pyc +0 -0
  1127. package/lib/python3.14/idlelib/__pycache__/stackviewer.cpython-314.pyc +0 -0
  1128. package/lib/python3.14/idlelib/__pycache__/statusbar.cpython-314.pyc +0 -0
  1129. package/lib/python3.14/idlelib/__pycache__/textview.cpython-314.pyc +0 -0
  1130. package/lib/python3.14/idlelib/__pycache__/tooltip.cpython-314.pyc +0 -0
  1131. package/lib/python3.14/idlelib/__pycache__/tree.cpython-314.pyc +0 -0
  1132. package/lib/python3.14/idlelib/__pycache__/undo.cpython-314.pyc +0 -0
  1133. package/lib/python3.14/idlelib/__pycache__/util.cpython-314.pyc +0 -0
  1134. package/lib/python3.14/idlelib/__pycache__/window.cpython-314.pyc +0 -0
  1135. package/lib/python3.14/idlelib/__pycache__/zoomheight.cpython-314.pyc +0 -0
  1136. package/lib/python3.14/idlelib/__pycache__/zzdummy.cpython-314.pyc +0 -0
  1137. package/lib/python3.14/idlelib/autocomplete.py +228 -0
  1138. package/lib/python3.14/idlelib/autocomplete_w.py +498 -0
  1139. package/lib/python3.14/idlelib/autoexpand.py +96 -0
  1140. package/lib/python3.14/idlelib/browser.py +260 -0
  1141. package/lib/python3.14/idlelib/calltip.py +205 -0
  1142. package/lib/python3.14/idlelib/calltip_w.py +202 -0
  1143. package/lib/python3.14/idlelib/codecontext.py +270 -0
  1144. package/lib/python3.14/idlelib/colorizer.py +384 -0
  1145. package/lib/python3.14/idlelib/config-extensions.def +62 -0
  1146. package/lib/python3.14/idlelib/config-highlight.def +105 -0
  1147. package/lib/python3.14/idlelib/config-keys.def +309 -0
  1148. package/lib/python3.14/idlelib/config-main.def +93 -0
  1149. package/lib/python3.14/idlelib/config.py +917 -0
  1150. package/lib/python3.14/idlelib/config_key.py +354 -0
  1151. package/lib/python3.14/idlelib/configdialog.py +2408 -0
  1152. package/lib/python3.14/idlelib/debugger.py +602 -0
  1153. package/lib/python3.14/idlelib/debugger_r.py +390 -0
  1154. package/lib/python3.14/idlelib/debugobj.py +146 -0
  1155. package/lib/python3.14/idlelib/debugobj_r.py +41 -0
  1156. package/lib/python3.14/idlelib/delegator.py +34 -0
  1157. package/lib/python3.14/idlelib/dynoption.py +57 -0
  1158. package/lib/python3.14/idlelib/editor.py +1734 -0
  1159. package/lib/python3.14/idlelib/extend.txt +83 -0
  1160. package/lib/python3.14/idlelib/filelist.py +132 -0
  1161. package/lib/python3.14/idlelib/format.py +426 -0
  1162. package/lib/python3.14/idlelib/grep.py +223 -0
  1163. package/lib/python3.14/idlelib/help.html +851 -0
  1164. package/lib/python3.14/idlelib/help.py +343 -0
  1165. package/lib/python3.14/idlelib/help_about.py +211 -0
  1166. package/lib/python3.14/idlelib/history.py +106 -0
  1167. package/lib/python3.14/idlelib/hyperparser.py +312 -0
  1168. package/lib/python3.14/idlelib/idle.bat +4 -0
  1169. package/lib/python3.14/idlelib/idle.py +14 -0
  1170. package/lib/python3.14/idlelib/idle.pyw +17 -0
  1171. package/lib/python3.14/idlelib/iomenu.py +441 -0
  1172. package/lib/python3.14/idlelib/macosx.py +278 -0
  1173. package/lib/python3.14/idlelib/mainmenu.py +126 -0
  1174. package/lib/python3.14/idlelib/multicall.py +451 -0
  1175. package/lib/python3.14/idlelib/outwin.py +188 -0
  1176. package/lib/python3.14/idlelib/parenmatch.py +183 -0
  1177. package/lib/python3.14/idlelib/pathbrowser.py +107 -0
  1178. package/lib/python3.14/idlelib/percolator.py +120 -0
  1179. package/lib/python3.14/idlelib/pyparse.py +589 -0
  1180. package/lib/python3.14/idlelib/pyshell.py +1699 -0
  1181. package/lib/python3.14/idlelib/query.py +392 -0
  1182. package/lib/python3.14/idlelib/redirector.py +174 -0
  1183. package/lib/python3.14/idlelib/replace.py +299 -0
  1184. package/lib/python3.14/idlelib/rpc.py +635 -0
  1185. package/lib/python3.14/idlelib/run.py +653 -0
  1186. package/lib/python3.14/idlelib/runscript.py +213 -0
  1187. package/lib/python3.14/idlelib/scrolledlist.py +151 -0
  1188. package/lib/python3.14/idlelib/search.py +165 -0
  1189. package/lib/python3.14/idlelib/searchbase.py +210 -0
  1190. package/lib/python3.14/idlelib/searchengine.py +234 -0
  1191. package/lib/python3.14/idlelib/sidebar.py +543 -0
  1192. package/lib/python3.14/idlelib/squeezer.py +345 -0
  1193. package/lib/python3.14/idlelib/stackviewer.py +134 -0
  1194. package/lib/python3.14/idlelib/statusbar.py +52 -0
  1195. package/lib/python3.14/idlelib/textview.py +193 -0
  1196. package/lib/python3.14/idlelib/tooltip.py +190 -0
  1197. package/lib/python3.14/idlelib/tree.py +509 -0
  1198. package/lib/python3.14/idlelib/undo.py +367 -0
  1199. package/lib/python3.14/idlelib/util.py +37 -0
  1200. package/lib/python3.14/idlelib/window.py +98 -0
  1201. package/lib/python3.14/idlelib/zoomheight.py +124 -0
  1202. package/lib/python3.14/idlelib/zzdummy.py +73 -0
  1203. package/lib/python3.14/imaplib.py +1967 -0
  1204. package/lib/python3.14/importlib/__init__.py +136 -0
  1205. package/lib/python3.14/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1206. package/lib/python3.14/importlib/__pycache__/_abc.cpython-314.pyc +0 -0
  1207. package/lib/python3.14/importlib/__pycache__/_bootstrap.cpython-314.pyc +0 -0
  1208. package/lib/python3.14/importlib/__pycache__/_bootstrap_external.cpython-314.pyc +0 -0
  1209. package/lib/python3.14/importlib/__pycache__/abc.cpython-314.pyc +0 -0
  1210. package/lib/python3.14/importlib/__pycache__/machinery.cpython-314.pyc +0 -0
  1211. package/lib/python3.14/importlib/__pycache__/readers.cpython-314.pyc +0 -0
  1212. package/lib/python3.14/importlib/__pycache__/simple.cpython-314.pyc +0 -0
  1213. package/lib/python3.14/importlib/__pycache__/util.cpython-314.pyc +0 -0
  1214. package/lib/python3.14/importlib/_abc.py +39 -0
  1215. package/lib/python3.14/importlib/_bootstrap.py +1562 -0
  1216. package/lib/python3.14/importlib/_bootstrap_external.py +1562 -0
  1217. package/lib/python3.14/importlib/abc.py +234 -0
  1218. package/lib/python3.14/importlib/machinery.py +50 -0
  1219. package/lib/python3.14/importlib/metadata/__init__.py +1093 -0
  1220. package/lib/python3.14/importlib/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
  1221. package/lib/python3.14/importlib/metadata/__pycache__/_adapters.cpython-314.pyc +0 -0
  1222. package/lib/python3.14/importlib/metadata/__pycache__/_collections.cpython-314.pyc +0 -0
  1223. package/lib/python3.14/importlib/metadata/__pycache__/_functools.cpython-314.pyc +0 -0
  1224. package/lib/python3.14/importlib/metadata/__pycache__/_itertools.cpython-314.pyc +0 -0
  1225. package/lib/python3.14/importlib/metadata/__pycache__/_meta.cpython-314.pyc +0 -0
  1226. package/lib/python3.14/importlib/metadata/__pycache__/_text.cpython-314.pyc +0 -0
  1227. package/lib/python3.14/importlib/metadata/__pycache__/diagnose.cpython-314.pyc +0 -0
  1228. package/lib/python3.14/importlib/metadata/_adapters.py +89 -0
  1229. package/lib/python3.14/importlib/metadata/_collections.py +30 -0
  1230. package/lib/python3.14/importlib/metadata/_functools.py +104 -0
  1231. package/lib/python3.14/importlib/metadata/_itertools.py +73 -0
  1232. package/lib/python3.14/importlib/metadata/_meta.py +67 -0
  1233. package/lib/python3.14/importlib/metadata/_text.py +99 -0
  1234. package/lib/python3.14/importlib/metadata/diagnose.py +21 -0
  1235. package/lib/python3.14/importlib/readers.py +12 -0
  1236. package/lib/python3.14/importlib/resources/__init__.py +43 -0
  1237. package/lib/python3.14/importlib/resources/__pycache__/__init__.cpython-314.pyc +0 -0
  1238. package/lib/python3.14/importlib/resources/__pycache__/_adapters.cpython-314.pyc +0 -0
  1239. package/lib/python3.14/importlib/resources/__pycache__/_common.cpython-314.pyc +0 -0
  1240. package/lib/python3.14/importlib/resources/__pycache__/_functional.cpython-314.pyc +0 -0
  1241. package/lib/python3.14/importlib/resources/__pycache__/_itertools.cpython-314.pyc +0 -0
  1242. package/lib/python3.14/importlib/resources/__pycache__/abc.cpython-314.pyc +0 -0
  1243. package/lib/python3.14/importlib/resources/__pycache__/readers.cpython-314.pyc +0 -0
  1244. package/lib/python3.14/importlib/resources/__pycache__/simple.cpython-314.pyc +0 -0
  1245. package/lib/python3.14/importlib/resources/_adapters.py +168 -0
  1246. package/lib/python3.14/importlib/resources/_common.py +211 -0
  1247. package/lib/python3.14/importlib/resources/_functional.py +81 -0
  1248. package/lib/python3.14/importlib/resources/_itertools.py +38 -0
  1249. package/lib/python3.14/importlib/resources/abc.py +173 -0
  1250. package/lib/python3.14/importlib/resources/readers.py +203 -0
  1251. package/lib/python3.14/importlib/resources/simple.py +106 -0
  1252. package/lib/python3.14/importlib/simple.py +14 -0
  1253. package/lib/python3.14/importlib/util.py +279 -0
  1254. package/lib/python3.14/inspect.py +3407 -0
  1255. package/lib/python3.14/io.py +150 -0
  1256. package/lib/python3.14/ipaddress.py +2417 -0
  1257. package/lib/python3.14/json/__init__.py +365 -0
  1258. package/lib/python3.14/json/__main__.py +20 -0
  1259. package/lib/python3.14/json/__pycache__/__init__.cpython-314.pyc +0 -0
  1260. package/lib/python3.14/json/__pycache__/__main__.cpython-314.pyc +0 -0
  1261. package/lib/python3.14/json/__pycache__/decoder.cpython-314.pyc +0 -0
  1262. package/lib/python3.14/json/__pycache__/encoder.cpython-314.pyc +0 -0
  1263. package/lib/python3.14/json/__pycache__/scanner.cpython-314.pyc +0 -0
  1264. package/lib/python3.14/json/__pycache__/tool.cpython-314.pyc +0 -0
  1265. package/lib/python3.14/json/decoder.py +364 -0
  1266. package/lib/python3.14/json/encoder.py +461 -0
  1267. package/lib/python3.14/json/scanner.py +73 -0
  1268. package/lib/python3.14/json/tool.py +121 -0
  1269. package/lib/python3.14/keyword.py +64 -0
  1270. package/lib/python3.14/linecache.py +251 -0
  1271. package/lib/python3.14/locale.py +1783 -0
  1272. package/lib/python3.14/logging/__init__.py +2326 -0
  1273. package/lib/python3.14/logging/__pycache__/__init__.cpython-314.pyc +0 -0
  1274. package/lib/python3.14/logging/__pycache__/config.cpython-314.pyc +0 -0
  1275. package/lib/python3.14/logging/__pycache__/handlers.cpython-314.pyc +0 -0
  1276. package/lib/python3.14/logging/config.py +1077 -0
  1277. package/lib/python3.14/logging/handlers.py +1641 -0
  1278. package/lib/python3.14/lzma.py +364 -0
  1279. package/lib/python3.14/mailbox.py +2223 -0
  1280. package/lib/python3.14/mimetypes.py +747 -0
  1281. package/lib/python3.14/modulefinder.py +671 -0
  1282. package/lib/python3.14/multiprocessing/__init__.py +37 -0
  1283. package/lib/python3.14/multiprocessing/__pycache__/__init__.cpython-314.pyc +0 -0
  1284. package/lib/python3.14/multiprocessing/__pycache__/connection.cpython-314.pyc +0 -0
  1285. package/lib/python3.14/multiprocessing/__pycache__/context.cpython-314.pyc +0 -0
  1286. package/lib/python3.14/multiprocessing/__pycache__/forkserver.cpython-314.pyc +0 -0
  1287. package/lib/python3.14/multiprocessing/__pycache__/heap.cpython-314.pyc +0 -0
  1288. package/lib/python3.14/multiprocessing/__pycache__/managers.cpython-314.pyc +0 -0
  1289. package/lib/python3.14/multiprocessing/__pycache__/pool.cpython-314.pyc +0 -0
  1290. package/lib/python3.14/multiprocessing/__pycache__/popen_fork.cpython-314.pyc +0 -0
  1291. package/lib/python3.14/multiprocessing/__pycache__/popen_forkserver.cpython-314.pyc +0 -0
  1292. package/lib/python3.14/multiprocessing/__pycache__/popen_spawn_posix.cpython-314.pyc +0 -0
  1293. package/lib/python3.14/multiprocessing/__pycache__/popen_spawn_win32.cpython-314.pyc +0 -0
  1294. package/lib/python3.14/multiprocessing/__pycache__/process.cpython-314.pyc +0 -0
  1295. package/lib/python3.14/multiprocessing/__pycache__/queues.cpython-314.pyc +0 -0
  1296. package/lib/python3.14/multiprocessing/__pycache__/reduction.cpython-314.pyc +0 -0
  1297. package/lib/python3.14/multiprocessing/__pycache__/resource_sharer.cpython-314.pyc +0 -0
  1298. package/lib/python3.14/multiprocessing/__pycache__/resource_tracker.cpython-314.pyc +0 -0
  1299. package/lib/python3.14/multiprocessing/__pycache__/shared_memory.cpython-314.pyc +0 -0
  1300. package/lib/python3.14/multiprocessing/__pycache__/sharedctypes.cpython-314.pyc +0 -0
  1301. package/lib/python3.14/multiprocessing/__pycache__/spawn.cpython-314.pyc +0 -0
  1302. package/lib/python3.14/multiprocessing/__pycache__/synchronize.cpython-314.pyc +0 -0
  1303. package/lib/python3.14/multiprocessing/__pycache__/util.cpython-314.pyc +0 -0
  1304. package/lib/python3.14/multiprocessing/connection.py +1207 -0
  1305. package/lib/python3.14/multiprocessing/context.py +377 -0
  1306. package/lib/python3.14/multiprocessing/dummy/__init__.py +126 -0
  1307. package/lib/python3.14/multiprocessing/dummy/__pycache__/__init__.cpython-314.pyc +0 -0
  1308. package/lib/python3.14/multiprocessing/dummy/__pycache__/connection.cpython-314.pyc +0 -0
  1309. package/lib/python3.14/multiprocessing/dummy/connection.py +75 -0
  1310. package/lib/python3.14/multiprocessing/forkserver.py +416 -0
  1311. package/lib/python3.14/multiprocessing/heap.py +337 -0
  1312. package/lib/python3.14/multiprocessing/managers.py +1438 -0
  1313. package/lib/python3.14/multiprocessing/pool.py +957 -0
  1314. package/lib/python3.14/multiprocessing/popen_fork.py +90 -0
  1315. package/lib/python3.14/multiprocessing/popen_forkserver.py +74 -0
  1316. package/lib/python3.14/multiprocessing/popen_spawn_posix.py +76 -0
  1317. package/lib/python3.14/multiprocessing/popen_spawn_win32.py +147 -0
  1318. package/lib/python3.14/multiprocessing/process.py +443 -0
  1319. package/lib/python3.14/multiprocessing/queues.py +399 -0
  1320. package/lib/python3.14/multiprocessing/reduction.py +281 -0
  1321. package/lib/python3.14/multiprocessing/resource_sharer.py +154 -0
  1322. package/lib/python3.14/multiprocessing/resource_tracker.py +416 -0
  1323. package/lib/python3.14/multiprocessing/shared_memory.py +544 -0
  1324. package/lib/python3.14/multiprocessing/sharedctypes.py +240 -0
  1325. package/lib/python3.14/multiprocessing/spawn.py +307 -0
  1326. package/lib/python3.14/multiprocessing/synchronize.py +411 -0
  1327. package/lib/python3.14/multiprocessing/util.py +560 -0
  1328. package/lib/python3.14/netrc.py +199 -0
  1329. package/lib/python3.14/ntpath.py +870 -0
  1330. package/lib/python3.14/nturl2path.py +74 -0
  1331. package/lib/python3.14/numbers.py +427 -0
  1332. package/lib/python3.14/opcode.py +122 -0
  1333. package/lib/python3.14/operator.py +475 -0
  1334. package/lib/python3.14/optparse.py +1671 -0
  1335. package/lib/python3.14/os.py +1191 -0
  1336. package/lib/python3.14/pathlib/__init__.py +1307 -0
  1337. package/lib/python3.14/pathlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1338. package/lib/python3.14/pathlib/__pycache__/_local.cpython-314.pyc +0 -0
  1339. package/lib/python3.14/pathlib/__pycache__/_os.cpython-314.pyc +0 -0
  1340. package/lib/python3.14/pathlib/__pycache__/types.cpython-314.pyc +0 -0
  1341. package/lib/python3.14/pathlib/_local.py +12 -0
  1342. package/lib/python3.14/pathlib/_os.py +530 -0
  1343. package/lib/python3.14/pathlib/types.py +430 -0
  1344. package/lib/python3.14/pdb.py +3660 -0
  1345. package/lib/python3.14/pickle.py +1931 -0
  1346. package/lib/python3.14/pickletools.py +2887 -0
  1347. package/lib/python3.14/pkgutil.py +474 -0
  1348. package/lib/python3.14/platform.py +1515 -0
  1349. package/lib/python3.14/plistlib.py +948 -0
  1350. package/lib/python3.14/poplib.py +477 -0
  1351. package/lib/python3.14/posixpath.py +592 -0
  1352. package/lib/python3.14/pprint.py +675 -0
  1353. package/lib/python3.14/profile.py +615 -0
  1354. package/lib/python3.14/pstats.py +777 -0
  1355. package/lib/python3.14/pty.py +182 -0
  1356. package/lib/python3.14/py_compile.py +212 -0
  1357. package/lib/python3.14/pyclbr.py +314 -0
  1358. package/lib/python3.14/pydoc.py +2876 -0
  1359. package/lib/python3.14/pydoc_data/__init__.py +0 -0
  1360. package/lib/python3.14/pydoc_data/__pycache__/__init__.cpython-314.pyc +0 -0
  1361. package/lib/python3.14/pydoc_data/__pycache__/topics.cpython-314.pyc +0 -0
  1362. package/lib/python3.14/pydoc_data/_pydoc.css +112 -0
  1363. package/lib/python3.14/pydoc_data/topics.py +14103 -0
  1364. package/lib/python3.14/queue.py +383 -0
  1365. package/lib/python3.14/quopri.py +235 -0
  1366. package/lib/python3.14/random.py +1078 -0
  1367. package/lib/python3.14/re/__init__.py +428 -0
  1368. package/lib/python3.14/re/__pycache__/__init__.cpython-314.pyc +0 -0
  1369. package/lib/python3.14/re/__pycache__/_casefix.cpython-314.pyc +0 -0
  1370. package/lib/python3.14/re/__pycache__/_compiler.cpython-314.pyc +0 -0
  1371. package/lib/python3.14/re/__pycache__/_constants.cpython-314.pyc +0 -0
  1372. package/lib/python3.14/re/__pycache__/_parser.cpython-314.pyc +0 -0
  1373. package/lib/python3.14/re/_casefix.py +106 -0
  1374. package/lib/python3.14/re/_compiler.py +782 -0
  1375. package/lib/python3.14/re/_constants.py +224 -0
  1376. package/lib/python3.14/re/_parser.py +1066 -0
  1377. package/lib/python3.14/reprlib.py +230 -0
  1378. package/lib/python3.14/rlcompleter.py +221 -0
  1379. package/lib/python3.14/runpy.py +319 -0
  1380. package/lib/python3.14/sched.py +167 -0
  1381. package/lib/python3.14/secrets.py +71 -0
  1382. package/lib/python3.14/selectors.py +603 -0
  1383. package/lib/python3.14/shelve.py +250 -0
  1384. package/lib/python3.14/shlex.py +351 -0
  1385. package/lib/python3.14/shutil.py +1667 -0
  1386. package/lib/python3.14/signal.py +94 -0
  1387. package/lib/python3.14/site-packages/README.txt +2 -0
  1388. package/lib/python3.14/site-packages/pip/__init__.py +13 -0
  1389. package/lib/python3.14/site-packages/pip/__main__.py +24 -0
  1390. package/lib/python3.14/site-packages/pip/__pip-runner__.py +50 -0
  1391. package/lib/python3.14/site-packages/pip/__pycache__/__init__.cpython-314.pyc +0 -0
  1392. package/lib/python3.14/site-packages/pip/__pycache__/__main__.cpython-314.pyc +0 -0
  1393. package/lib/python3.14/site-packages/pip/__pycache__/__pip-runner__.cpython-314.pyc +0 -0
  1394. package/lib/python3.14/site-packages/pip/_internal/__init__.py +18 -0
  1395. package/lib/python3.14/site-packages/pip/_internal/__pycache__/__init__.cpython-314.pyc +0 -0
  1396. package/lib/python3.14/site-packages/pip/_internal/__pycache__/build_env.cpython-314.pyc +0 -0
  1397. package/lib/python3.14/site-packages/pip/_internal/__pycache__/cache.cpython-314.pyc +0 -0
  1398. package/lib/python3.14/site-packages/pip/_internal/__pycache__/configuration.cpython-314.pyc +0 -0
  1399. package/lib/python3.14/site-packages/pip/_internal/__pycache__/exceptions.cpython-314.pyc +0 -0
  1400. package/lib/python3.14/site-packages/pip/_internal/__pycache__/main.cpython-314.pyc +0 -0
  1401. package/lib/python3.14/site-packages/pip/_internal/__pycache__/pyproject.cpython-314.pyc +0 -0
  1402. package/lib/python3.14/site-packages/pip/_internal/__pycache__/self_outdated_check.cpython-314.pyc +0 -0
  1403. package/lib/python3.14/site-packages/pip/_internal/__pycache__/wheel_builder.cpython-314.pyc +0 -0
  1404. package/lib/python3.14/site-packages/pip/_internal/build_env.py +417 -0
  1405. package/lib/python3.14/site-packages/pip/_internal/cache.py +291 -0
  1406. package/lib/python3.14/site-packages/pip/_internal/cli/__init__.py +3 -0
  1407. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/__init__.cpython-314.pyc +0 -0
  1408. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/autocompletion.cpython-314.pyc +0 -0
  1409. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/base_command.cpython-314.pyc +0 -0
  1410. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/cmdoptions.cpython-314.pyc +0 -0
  1411. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/command_context.cpython-314.pyc +0 -0
  1412. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/index_command.cpython-314.pyc +0 -0
  1413. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/main.cpython-314.pyc +0 -0
  1414. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/main_parser.cpython-314.pyc +0 -0
  1415. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/parser.cpython-314.pyc +0 -0
  1416. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/progress_bars.cpython-314.pyc +0 -0
  1417. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/req_command.cpython-314.pyc +0 -0
  1418. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/spinners.cpython-314.pyc +0 -0
  1419. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/status_codes.cpython-314.pyc +0 -0
  1420. package/lib/python3.14/site-packages/pip/_internal/cli/autocompletion.py +184 -0
  1421. package/lib/python3.14/site-packages/pip/_internal/cli/base_command.py +244 -0
  1422. package/lib/python3.14/site-packages/pip/_internal/cli/cmdoptions.py +1110 -0
  1423. package/lib/python3.14/site-packages/pip/_internal/cli/command_context.py +28 -0
  1424. package/lib/python3.14/site-packages/pip/_internal/cli/index_command.py +175 -0
  1425. package/lib/python3.14/site-packages/pip/_internal/cli/main.py +80 -0
  1426. package/lib/python3.14/site-packages/pip/_internal/cli/main_parser.py +134 -0
  1427. package/lib/python3.14/site-packages/pip/_internal/cli/parser.py +298 -0
  1428. package/lib/python3.14/site-packages/pip/_internal/cli/progress_bars.py +151 -0
  1429. package/lib/python3.14/site-packages/pip/_internal/cli/req_command.py +371 -0
  1430. package/lib/python3.14/site-packages/pip/_internal/cli/spinners.py +235 -0
  1431. package/lib/python3.14/site-packages/pip/_internal/cli/status_codes.py +6 -0
  1432. package/lib/python3.14/site-packages/pip/_internal/commands/__init__.py +139 -0
  1433. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/__init__.cpython-314.pyc +0 -0
  1434. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/cache.cpython-314.pyc +0 -0
  1435. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/check.cpython-314.pyc +0 -0
  1436. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/completion.cpython-314.pyc +0 -0
  1437. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/configuration.cpython-314.pyc +0 -0
  1438. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/debug.cpython-314.pyc +0 -0
  1439. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/download.cpython-314.pyc +0 -0
  1440. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/freeze.cpython-314.pyc +0 -0
  1441. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/hash.cpython-314.pyc +0 -0
  1442. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/help.cpython-314.pyc +0 -0
  1443. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/index.cpython-314.pyc +0 -0
  1444. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/inspect.cpython-314.pyc +0 -0
  1445. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/install.cpython-314.pyc +0 -0
  1446. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/list.cpython-314.pyc +0 -0
  1447. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/lock.cpython-314.pyc +0 -0
  1448. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/search.cpython-314.pyc +0 -0
  1449. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/show.cpython-314.pyc +0 -0
  1450. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/uninstall.cpython-314.pyc +0 -0
  1451. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/wheel.cpython-314.pyc +0 -0
  1452. package/lib/python3.14/site-packages/pip/_internal/commands/cache.py +231 -0
  1453. package/lib/python3.14/site-packages/pip/_internal/commands/check.py +66 -0
  1454. package/lib/python3.14/site-packages/pip/_internal/commands/completion.py +135 -0
  1455. package/lib/python3.14/site-packages/pip/_internal/commands/configuration.py +288 -0
  1456. package/lib/python3.14/site-packages/pip/_internal/commands/debug.py +203 -0
  1457. package/lib/python3.14/site-packages/pip/_internal/commands/download.py +142 -0
  1458. package/lib/python3.14/site-packages/pip/_internal/commands/freeze.py +107 -0
  1459. package/lib/python3.14/site-packages/pip/_internal/commands/hash.py +58 -0
  1460. package/lib/python3.14/site-packages/pip/_internal/commands/help.py +40 -0
  1461. package/lib/python3.14/site-packages/pip/_internal/commands/index.py +159 -0
  1462. package/lib/python3.14/site-packages/pip/_internal/commands/inspect.py +92 -0
  1463. package/lib/python3.14/site-packages/pip/_internal/commands/install.py +803 -0
  1464. package/lib/python3.14/site-packages/pip/_internal/commands/list.py +400 -0
  1465. package/lib/python3.14/site-packages/pip/_internal/commands/lock.py +167 -0
  1466. package/lib/python3.14/site-packages/pip/_internal/commands/search.py +178 -0
  1467. package/lib/python3.14/site-packages/pip/_internal/commands/show.py +231 -0
  1468. package/lib/python3.14/site-packages/pip/_internal/commands/uninstall.py +113 -0
  1469. package/lib/python3.14/site-packages/pip/_internal/commands/wheel.py +176 -0
  1470. package/lib/python3.14/site-packages/pip/_internal/configuration.py +396 -0
  1471. package/lib/python3.14/site-packages/pip/_internal/distributions/__init__.py +21 -0
  1472. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/__init__.cpython-314.pyc +0 -0
  1473. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/base.cpython-314.pyc +0 -0
  1474. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/installed.cpython-314.pyc +0 -0
  1475. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/sdist.cpython-314.pyc +0 -0
  1476. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/wheel.cpython-314.pyc +0 -0
  1477. package/lib/python3.14/site-packages/pip/_internal/distributions/base.py +55 -0
  1478. package/lib/python3.14/site-packages/pip/_internal/distributions/installed.py +33 -0
  1479. package/lib/python3.14/site-packages/pip/_internal/distributions/sdist.py +164 -0
  1480. package/lib/python3.14/site-packages/pip/_internal/distributions/wheel.py +44 -0
  1481. package/lib/python3.14/site-packages/pip/_internal/exceptions.py +898 -0
  1482. package/lib/python3.14/site-packages/pip/_internal/index/__init__.py +1 -0
  1483. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/__init__.cpython-314.pyc +0 -0
  1484. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/collector.cpython-314.pyc +0 -0
  1485. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/package_finder.cpython-314.pyc +0 -0
  1486. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/sources.cpython-314.pyc +0 -0
  1487. package/lib/python3.14/site-packages/pip/_internal/index/collector.py +489 -0
  1488. package/lib/python3.14/site-packages/pip/_internal/index/package_finder.py +1059 -0
  1489. package/lib/python3.14/site-packages/pip/_internal/index/sources.py +287 -0
  1490. package/lib/python3.14/site-packages/pip/_internal/locations/__init__.py +441 -0
  1491. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/__init__.cpython-314.pyc +0 -0
  1492. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/_distutils.cpython-314.pyc +0 -0
  1493. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/_sysconfig.cpython-314.pyc +0 -0
  1494. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/base.cpython-314.pyc +0 -0
  1495. package/lib/python3.14/site-packages/pip/_internal/locations/_distutils.py +173 -0
  1496. package/lib/python3.14/site-packages/pip/_internal/locations/_sysconfig.py +215 -0
  1497. package/lib/python3.14/site-packages/pip/_internal/locations/base.py +82 -0
  1498. package/lib/python3.14/site-packages/pip/_internal/main.py +12 -0
  1499. package/lib/python3.14/site-packages/pip/_internal/metadata/__init__.py +169 -0
  1500. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
  1501. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/_json.cpython-314.pyc +0 -0
  1502. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/base.cpython-314.pyc +0 -0
  1503. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/pkg_resources.cpython-314.pyc +0 -0
  1504. package/lib/python3.14/site-packages/pip/_internal/metadata/_json.py +87 -0
  1505. package/lib/python3.14/site-packages/pip/_internal/metadata/base.py +685 -0
  1506. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__init__.py +6 -0
  1507. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1508. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/_compat.cpython-314.pyc +0 -0
  1509. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/_dists.cpython-314.pyc +0 -0
  1510. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/_envs.cpython-314.pyc +0 -0
  1511. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/_compat.py +87 -0
  1512. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/_dists.py +229 -0
  1513. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/_envs.py +143 -0
  1514. package/lib/python3.14/site-packages/pip/_internal/metadata/pkg_resources.py +298 -0
  1515. package/lib/python3.14/site-packages/pip/_internal/models/__init__.py +1 -0
  1516. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/__init__.cpython-314.pyc +0 -0
  1517. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/candidate.cpython-314.pyc +0 -0
  1518. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/direct_url.cpython-314.pyc +0 -0
  1519. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/format_control.cpython-314.pyc +0 -0
  1520. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/index.cpython-314.pyc +0 -0
  1521. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/installation_report.cpython-314.pyc +0 -0
  1522. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/link.cpython-314.pyc +0 -0
  1523. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/pylock.cpython-314.pyc +0 -0
  1524. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/scheme.cpython-314.pyc +0 -0
  1525. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/search_scope.cpython-314.pyc +0 -0
  1526. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/selection_prefs.cpython-314.pyc +0 -0
  1527. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/target_python.cpython-314.pyc +0 -0
  1528. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/wheel.cpython-314.pyc +0 -0
  1529. package/lib/python3.14/site-packages/pip/_internal/models/candidate.py +25 -0
  1530. package/lib/python3.14/site-packages/pip/_internal/models/direct_url.py +227 -0
  1531. package/lib/python3.14/site-packages/pip/_internal/models/format_control.py +78 -0
  1532. package/lib/python3.14/site-packages/pip/_internal/models/index.py +28 -0
  1533. package/lib/python3.14/site-packages/pip/_internal/models/installation_report.py +57 -0
  1534. package/lib/python3.14/site-packages/pip/_internal/models/link.py +613 -0
  1535. package/lib/python3.14/site-packages/pip/_internal/models/pylock.py +188 -0
  1536. package/lib/python3.14/site-packages/pip/_internal/models/scheme.py +25 -0
  1537. package/lib/python3.14/site-packages/pip/_internal/models/search_scope.py +126 -0
  1538. package/lib/python3.14/site-packages/pip/_internal/models/selection_prefs.py +53 -0
  1539. package/lib/python3.14/site-packages/pip/_internal/models/target_python.py +122 -0
  1540. package/lib/python3.14/site-packages/pip/_internal/models/wheel.py +80 -0
  1541. package/lib/python3.14/site-packages/pip/_internal/network/__init__.py +1 -0
  1542. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/__init__.cpython-314.pyc +0 -0
  1543. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/auth.cpython-314.pyc +0 -0
  1544. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/cache.cpython-314.pyc +0 -0
  1545. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/download.cpython-314.pyc +0 -0
  1546. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/lazy_wheel.cpython-314.pyc +0 -0
  1547. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/session.cpython-314.pyc +0 -0
  1548. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/utils.cpython-314.pyc +0 -0
  1549. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/xmlrpc.cpython-314.pyc +0 -0
  1550. package/lib/python3.14/site-packages/pip/_internal/network/auth.py +564 -0
  1551. package/lib/python3.14/site-packages/pip/_internal/network/cache.py +128 -0
  1552. package/lib/python3.14/site-packages/pip/_internal/network/download.py +342 -0
  1553. package/lib/python3.14/site-packages/pip/_internal/network/lazy_wheel.py +215 -0
  1554. package/lib/python3.14/site-packages/pip/_internal/network/session.py +528 -0
  1555. package/lib/python3.14/site-packages/pip/_internal/network/utils.py +98 -0
  1556. package/lib/python3.14/site-packages/pip/_internal/network/xmlrpc.py +61 -0
  1557. package/lib/python3.14/site-packages/pip/_internal/operations/__init__.py +0 -0
  1558. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/__init__.cpython-314.pyc +0 -0
  1559. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/check.cpython-314.pyc +0 -0
  1560. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/freeze.cpython-314.pyc +0 -0
  1561. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/prepare.cpython-314.pyc +0 -0
  1562. package/lib/python3.14/site-packages/pip/_internal/operations/build/__init__.py +0 -0
  1563. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/__init__.cpython-314.pyc +0 -0
  1564. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/build_tracker.cpython-314.pyc +0 -0
  1565. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/metadata.cpython-314.pyc +0 -0
  1566. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/metadata_editable.cpython-314.pyc +0 -0
  1567. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/wheel.cpython-314.pyc +0 -0
  1568. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-314.pyc +0 -0
  1569. package/lib/python3.14/site-packages/pip/_internal/operations/build/build_tracker.py +140 -0
  1570. package/lib/python3.14/site-packages/pip/_internal/operations/build/metadata.py +38 -0
  1571. package/lib/python3.14/site-packages/pip/_internal/operations/build/metadata_editable.py +41 -0
  1572. package/lib/python3.14/site-packages/pip/_internal/operations/build/wheel.py +38 -0
  1573. package/lib/python3.14/site-packages/pip/_internal/operations/build/wheel_editable.py +47 -0
  1574. package/lib/python3.14/site-packages/pip/_internal/operations/check.py +175 -0
  1575. package/lib/python3.14/site-packages/pip/_internal/operations/freeze.py +259 -0
  1576. package/lib/python3.14/site-packages/pip/_internal/operations/install/__init__.py +1 -0
  1577. package/lib/python3.14/site-packages/pip/_internal/operations/install/__pycache__/__init__.cpython-314.pyc +0 -0
  1578. package/lib/python3.14/site-packages/pip/_internal/operations/install/__pycache__/wheel.cpython-314.pyc +0 -0
  1579. package/lib/python3.14/site-packages/pip/_internal/operations/install/wheel.py +746 -0
  1580. package/lib/python3.14/site-packages/pip/_internal/operations/prepare.py +748 -0
  1581. package/lib/python3.14/site-packages/pip/_internal/pyproject.py +123 -0
  1582. package/lib/python3.14/site-packages/pip/_internal/req/__init__.py +103 -0
  1583. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/__init__.cpython-314.pyc +0 -0
  1584. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/constructors.cpython-314.pyc +0 -0
  1585. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_dependency_group.cpython-314.pyc +0 -0
  1586. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_file.cpython-314.pyc +0 -0
  1587. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_install.cpython-314.pyc +0 -0
  1588. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_set.cpython-314.pyc +0 -0
  1589. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_uninstall.cpython-314.pyc +0 -0
  1590. package/lib/python3.14/site-packages/pip/_internal/req/constructors.py +566 -0
  1591. package/lib/python3.14/site-packages/pip/_internal/req/req_dependency_group.py +75 -0
  1592. package/lib/python3.14/site-packages/pip/_internal/req/req_file.py +619 -0
  1593. package/lib/python3.14/site-packages/pip/_internal/req/req_install.py +828 -0
  1594. package/lib/python3.14/site-packages/pip/_internal/req/req_set.py +81 -0
  1595. package/lib/python3.14/site-packages/pip/_internal/req/req_uninstall.py +639 -0
  1596. package/lib/python3.14/site-packages/pip/_internal/resolution/__init__.py +0 -0
  1597. package/lib/python3.14/site-packages/pip/_internal/resolution/__pycache__/__init__.cpython-314.pyc +0 -0
  1598. package/lib/python3.14/site-packages/pip/_internal/resolution/__pycache__/base.cpython-314.pyc +0 -0
  1599. package/lib/python3.14/site-packages/pip/_internal/resolution/base.py +20 -0
  1600. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
  1601. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/__pycache__/__init__.cpython-314.pyc +0 -0
  1602. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/__pycache__/resolver.cpython-314.pyc +0 -0
  1603. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/resolver.py +598 -0
  1604. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
  1605. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/__init__.cpython-314.pyc +0 -0
  1606. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/base.cpython-314.pyc +0 -0
  1607. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/candidates.cpython-314.pyc +0 -0
  1608. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/factory.cpython-314.pyc +0 -0
  1609. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/found_candidates.cpython-314.pyc +0 -0
  1610. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/provider.cpython-314.pyc +0 -0
  1611. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/reporter.cpython-314.pyc +0 -0
  1612. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/requirements.cpython-314.pyc +0 -0
  1613. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/resolver.cpython-314.pyc +0 -0
  1614. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/base.py +142 -0
  1615. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/candidates.py +591 -0
  1616. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/factory.py +845 -0
  1617. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +166 -0
  1618. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/provider.py +285 -0
  1619. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/reporter.py +98 -0
  1620. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/requirements.py +247 -0
  1621. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/resolver.py +332 -0
  1622. package/lib/python3.14/site-packages/pip/_internal/self_outdated_check.py +262 -0
  1623. package/lib/python3.14/site-packages/pip/_internal/utils/__init__.py +0 -0
  1624. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/__init__.cpython-314.pyc +0 -0
  1625. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/_jaraco_text.cpython-314.pyc +0 -0
  1626. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/_log.cpython-314.pyc +0 -0
  1627. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/appdirs.cpython-314.pyc +0 -0
  1628. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/compat.cpython-314.pyc +0 -0
  1629. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/compatibility_tags.cpython-314.pyc +0 -0
  1630. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/datetime.cpython-314.pyc +0 -0
  1631. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/deprecation.cpython-314.pyc +0 -0
  1632. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/direct_url_helpers.cpython-314.pyc +0 -0
  1633. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/egg_link.cpython-314.pyc +0 -0
  1634. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/entrypoints.cpython-314.pyc +0 -0
  1635. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/filesystem.cpython-314.pyc +0 -0
  1636. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/filetypes.cpython-314.pyc +0 -0
  1637. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/glibc.cpython-314.pyc +0 -0
  1638. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/hashes.cpython-314.pyc +0 -0
  1639. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/logging.cpython-314.pyc +0 -0
  1640. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/misc.cpython-314.pyc +0 -0
  1641. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/packaging.cpython-314.pyc +0 -0
  1642. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/retry.cpython-314.pyc +0 -0
  1643. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/subprocess.cpython-314.pyc +0 -0
  1644. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/temp_dir.cpython-314.pyc +0 -0
  1645. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/unpacking.cpython-314.pyc +0 -0
  1646. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/urls.cpython-314.pyc +0 -0
  1647. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/virtualenv.cpython-314.pyc +0 -0
  1648. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/wheel.cpython-314.pyc +0 -0
  1649. package/lib/python3.14/site-packages/pip/_internal/utils/_jaraco_text.py +109 -0
  1650. package/lib/python3.14/site-packages/pip/_internal/utils/_log.py +38 -0
  1651. package/lib/python3.14/site-packages/pip/_internal/utils/appdirs.py +52 -0
  1652. package/lib/python3.14/site-packages/pip/_internal/utils/compat.py +85 -0
  1653. package/lib/python3.14/site-packages/pip/_internal/utils/compatibility_tags.py +201 -0
  1654. package/lib/python3.14/site-packages/pip/_internal/utils/datetime.py +10 -0
  1655. package/lib/python3.14/site-packages/pip/_internal/utils/deprecation.py +126 -0
  1656. package/lib/python3.14/site-packages/pip/_internal/utils/direct_url_helpers.py +87 -0
  1657. package/lib/python3.14/site-packages/pip/_internal/utils/egg_link.py +81 -0
  1658. package/lib/python3.14/site-packages/pip/_internal/utils/entrypoints.py +88 -0
  1659. package/lib/python3.14/site-packages/pip/_internal/utils/filesystem.py +164 -0
  1660. package/lib/python3.14/site-packages/pip/_internal/utils/filetypes.py +24 -0
  1661. package/lib/python3.14/site-packages/pip/_internal/utils/glibc.py +102 -0
  1662. package/lib/python3.14/site-packages/pip/_internal/utils/hashes.py +150 -0
  1663. package/lib/python3.14/site-packages/pip/_internal/utils/logging.py +364 -0
  1664. package/lib/python3.14/site-packages/pip/_internal/utils/misc.py +765 -0
  1665. package/lib/python3.14/site-packages/pip/_internal/utils/packaging.py +44 -0
  1666. package/lib/python3.14/site-packages/pip/_internal/utils/retry.py +45 -0
  1667. package/lib/python3.14/site-packages/pip/_internal/utils/subprocess.py +248 -0
  1668. package/lib/python3.14/site-packages/pip/_internal/utils/temp_dir.py +294 -0
  1669. package/lib/python3.14/site-packages/pip/_internal/utils/unpacking.py +362 -0
  1670. package/lib/python3.14/site-packages/pip/_internal/utils/urls.py +55 -0
  1671. package/lib/python3.14/site-packages/pip/_internal/utils/virtualenv.py +105 -0
  1672. package/lib/python3.14/site-packages/pip/_internal/utils/wheel.py +132 -0
  1673. package/lib/python3.14/site-packages/pip/_internal/vcs/__init__.py +15 -0
  1674. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/__init__.cpython-314.pyc +0 -0
  1675. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/bazaar.cpython-314.pyc +0 -0
  1676. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/git.cpython-314.pyc +0 -0
  1677. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/mercurial.cpython-314.pyc +0 -0
  1678. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/subversion.cpython-314.pyc +0 -0
  1679. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/versioncontrol.cpython-314.pyc +0 -0
  1680. package/lib/python3.14/site-packages/pip/_internal/vcs/bazaar.py +130 -0
  1681. package/lib/python3.14/site-packages/pip/_internal/vcs/git.py +571 -0
  1682. package/lib/python3.14/site-packages/pip/_internal/vcs/mercurial.py +186 -0
  1683. package/lib/python3.14/site-packages/pip/_internal/vcs/subversion.py +335 -0
  1684. package/lib/python3.14/site-packages/pip/_internal/vcs/versioncontrol.py +693 -0
  1685. package/lib/python3.14/site-packages/pip/_internal/wheel_builder.py +261 -0
  1686. package/lib/python3.14/site-packages/pip/_vendor/README.rst +180 -0
  1687. package/lib/python3.14/site-packages/pip/_vendor/__init__.py +117 -0
  1688. package/lib/python3.14/site-packages/pip/_vendor/__pycache__/__init__.cpython-314.pyc +0 -0
  1689. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
  1690. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__init__.py +29 -0
  1691. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/__init__.cpython-314.pyc +0 -0
  1692. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-314.pyc +0 -0
  1693. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/adapter.cpython-314.pyc +0 -0
  1694. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-314.pyc +0 -0
  1695. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-314.pyc +0 -0
  1696. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-314.pyc +0 -0
  1697. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/heuristics.cpython-314.pyc +0 -0
  1698. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/serialize.cpython-314.pyc +0 -0
  1699. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-314.pyc +0 -0
  1700. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/_cmd.py +70 -0
  1701. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/adapter.py +168 -0
  1702. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/cache.py +75 -0
  1703. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +8 -0
  1704. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/__init__.cpython-314.pyc +0 -0
  1705. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/file_cache.cpython-314.pyc +0 -0
  1706. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/redis_cache.cpython-314.pyc +0 -0
  1707. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +145 -0
  1708. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +48 -0
  1709. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/controller.py +511 -0
  1710. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/filewrapper.py +119 -0
  1711. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/heuristics.py +157 -0
  1712. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
  1713. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/serialize.py +146 -0
  1714. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/wrapper.py +43 -0
  1715. package/lib/python3.14/site-packages/pip/_vendor/certifi/LICENSE +20 -0
  1716. package/lib/python3.14/site-packages/pip/_vendor/certifi/__init__.py +4 -0
  1717. package/lib/python3.14/site-packages/pip/_vendor/certifi/__main__.py +12 -0
  1718. package/lib/python3.14/site-packages/pip/_vendor/certifi/__pycache__/__init__.cpython-314.pyc +0 -0
  1719. package/lib/python3.14/site-packages/pip/_vendor/certifi/__pycache__/__main__.cpython-314.pyc +0 -0
  1720. package/lib/python3.14/site-packages/pip/_vendor/certifi/__pycache__/core.cpython-314.pyc +0 -0
  1721. package/lib/python3.14/site-packages/pip/_vendor/certifi/cacert.pem +4800 -0
  1722. package/lib/python3.14/site-packages/pip/_vendor/certifi/core.py +83 -0
  1723. package/lib/python3.14/site-packages/pip/_vendor/certifi/py.typed +0 -0
  1724. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/LICENSE.txt +9 -0
  1725. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__init__.py +13 -0
  1726. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__main__.py +65 -0
  1727. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/__init__.cpython-314.pyc +0 -0
  1728. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/__main__.cpython-314.pyc +0 -0
  1729. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_implementation.cpython-314.pyc +0 -0
  1730. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_lint_dependency_groups.cpython-314.pyc +0 -0
  1731. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_pip_wrapper.cpython-314.pyc +0 -0
  1732. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_toml_compat.cpython-314.pyc +0 -0
  1733. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_implementation.py +209 -0
  1734. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_lint_dependency_groups.py +59 -0
  1735. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_pip_wrapper.py +62 -0
  1736. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_toml_compat.py +9 -0
  1737. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/py.typed +0 -0
  1738. package/lib/python3.14/site-packages/pip/_vendor/distlib/LICENSE.txt +284 -0
  1739. package/lib/python3.14/site-packages/pip/_vendor/distlib/__init__.py +33 -0
  1740. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1741. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-314.pyc +0 -0
  1742. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-314.pyc +0 -0
  1743. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-314.pyc +0 -0
  1744. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-314.pyc +0 -0
  1745. package/lib/python3.14/site-packages/pip/_vendor/distlib/compat.py +1137 -0
  1746. package/lib/python3.14/site-packages/pip/_vendor/distlib/resources.py +358 -0
  1747. package/lib/python3.14/site-packages/pip/_vendor/distlib/scripts.py +447 -0
  1748. package/lib/python3.14/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  1749. package/lib/python3.14/site-packages/pip/_vendor/distlib/t64-arm.exe +0 -0
  1750. package/lib/python3.14/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  1751. package/lib/python3.14/site-packages/pip/_vendor/distlib/util.py +1984 -0
  1752. package/lib/python3.14/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  1753. package/lib/python3.14/site-packages/pip/_vendor/distlib/w64-arm.exe +0 -0
  1754. package/lib/python3.14/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  1755. package/lib/python3.14/site-packages/pip/_vendor/distro/LICENSE +202 -0
  1756. package/lib/python3.14/site-packages/pip/_vendor/distro/__init__.py +54 -0
  1757. package/lib/python3.14/site-packages/pip/_vendor/distro/__main__.py +4 -0
  1758. package/lib/python3.14/site-packages/pip/_vendor/distro/__pycache__/__init__.cpython-314.pyc +0 -0
  1759. package/lib/python3.14/site-packages/pip/_vendor/distro/__pycache__/__main__.cpython-314.pyc +0 -0
  1760. package/lib/python3.14/site-packages/pip/_vendor/distro/__pycache__/distro.cpython-314.pyc +0 -0
  1761. package/lib/python3.14/site-packages/pip/_vendor/distro/distro.py +1403 -0
  1762. package/lib/python3.14/site-packages/pip/_vendor/distro/py.typed +0 -0
  1763. package/lib/python3.14/site-packages/pip/_vendor/idna/LICENSE.md +31 -0
  1764. package/lib/python3.14/site-packages/pip/_vendor/idna/__init__.py +45 -0
  1765. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/__init__.cpython-314.pyc +0 -0
  1766. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-314.pyc +0 -0
  1767. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/compat.cpython-314.pyc +0 -0
  1768. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/core.cpython-314.pyc +0 -0
  1769. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/idnadata.cpython-314.pyc +0 -0
  1770. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/intranges.cpython-314.pyc +0 -0
  1771. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/package_data.cpython-314.pyc +0 -0
  1772. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/uts46data.cpython-314.pyc +0 -0
  1773. package/lib/python3.14/site-packages/pip/_vendor/idna/codec.py +122 -0
  1774. package/lib/python3.14/site-packages/pip/_vendor/idna/compat.py +15 -0
  1775. package/lib/python3.14/site-packages/pip/_vendor/idna/core.py +437 -0
  1776. package/lib/python3.14/site-packages/pip/_vendor/idna/idnadata.py +4243 -0
  1777. package/lib/python3.14/site-packages/pip/_vendor/idna/intranges.py +57 -0
  1778. package/lib/python3.14/site-packages/pip/_vendor/idna/package_data.py +1 -0
  1779. package/lib/python3.14/site-packages/pip/_vendor/idna/py.typed +0 -0
  1780. package/lib/python3.14/site-packages/pip/_vendor/idna/uts46data.py +8681 -0
  1781. package/lib/python3.14/site-packages/pip/_vendor/msgpack/COPYING +14 -0
  1782. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__init__.py +55 -0
  1783. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/__init__.cpython-314.pyc +0 -0
  1784. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/exceptions.cpython-314.pyc +0 -0
  1785. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/ext.cpython-314.pyc +0 -0
  1786. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/fallback.cpython-314.pyc +0 -0
  1787. package/lib/python3.14/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
  1788. package/lib/python3.14/site-packages/pip/_vendor/msgpack/ext.py +170 -0
  1789. package/lib/python3.14/site-packages/pip/_vendor/msgpack/fallback.py +929 -0
  1790. package/lib/python3.14/site-packages/pip/_vendor/packaging/LICENSE +3 -0
  1791. package/lib/python3.14/site-packages/pip/_vendor/packaging/LICENSE.APACHE +177 -0
  1792. package/lib/python3.14/site-packages/pip/_vendor/packaging/LICENSE.BSD +23 -0
  1793. package/lib/python3.14/site-packages/pip/_vendor/packaging/__init__.py +15 -0
  1794. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/__init__.cpython-314.pyc +0 -0
  1795. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_elffile.cpython-314.pyc +0 -0
  1796. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_manylinux.cpython-314.pyc +0 -0
  1797. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_musllinux.cpython-314.pyc +0 -0
  1798. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_parser.cpython-314.pyc +0 -0
  1799. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_structures.cpython-314.pyc +0 -0
  1800. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_tokenizer.cpython-314.pyc +0 -0
  1801. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/markers.cpython-314.pyc +0 -0
  1802. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/metadata.cpython-314.pyc +0 -0
  1803. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/requirements.cpython-314.pyc +0 -0
  1804. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/specifiers.cpython-314.pyc +0 -0
  1805. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/tags.cpython-314.pyc +0 -0
  1806. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/utils.cpython-314.pyc +0 -0
  1807. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/version.cpython-314.pyc +0 -0
  1808. package/lib/python3.14/site-packages/pip/_vendor/packaging/_elffile.py +109 -0
  1809. package/lib/python3.14/site-packages/pip/_vendor/packaging/_manylinux.py +262 -0
  1810. package/lib/python3.14/site-packages/pip/_vendor/packaging/_musllinux.py +85 -0
  1811. package/lib/python3.14/site-packages/pip/_vendor/packaging/_parser.py +353 -0
  1812. package/lib/python3.14/site-packages/pip/_vendor/packaging/_structures.py +61 -0
  1813. package/lib/python3.14/site-packages/pip/_vendor/packaging/_tokenizer.py +195 -0
  1814. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/__init__.py +145 -0
  1815. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/__pycache__/__init__.cpython-314.pyc +0 -0
  1816. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/__pycache__/_spdx.cpython-314.pyc +0 -0
  1817. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/_spdx.py +759 -0
  1818. package/lib/python3.14/site-packages/pip/_vendor/packaging/markers.py +362 -0
  1819. package/lib/python3.14/site-packages/pip/_vendor/packaging/metadata.py +862 -0
  1820. package/lib/python3.14/site-packages/pip/_vendor/packaging/py.typed +0 -0
  1821. package/lib/python3.14/site-packages/pip/_vendor/packaging/requirements.py +91 -0
  1822. package/lib/python3.14/site-packages/pip/_vendor/packaging/specifiers.py +1019 -0
  1823. package/lib/python3.14/site-packages/pip/_vendor/packaging/tags.py +656 -0
  1824. package/lib/python3.14/site-packages/pip/_vendor/packaging/utils.py +163 -0
  1825. package/lib/python3.14/site-packages/pip/_vendor/packaging/version.py +582 -0
  1826. package/lib/python3.14/site-packages/pip/_vendor/pkg_resources/LICENSE +17 -0
  1827. package/lib/python3.14/site-packages/pip/_vendor/pkg_resources/__init__.py +3676 -0
  1828. package/lib/python3.14/site-packages/pip/_vendor/pkg_resources/__pycache__/__init__.cpython-314.pyc +0 -0
  1829. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/LICENSE +21 -0
  1830. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__init__.py +631 -0
  1831. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__main__.py +55 -0
  1832. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/__init__.cpython-314.pyc +0 -0
  1833. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/__main__.cpython-314.pyc +0 -0
  1834. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/android.cpython-314.pyc +0 -0
  1835. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/api.cpython-314.pyc +0 -0
  1836. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/macos.cpython-314.pyc +0 -0
  1837. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/unix.cpython-314.pyc +0 -0
  1838. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/version.cpython-314.pyc +0 -0
  1839. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/windows.cpython-314.pyc +0 -0
  1840. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/android.py +249 -0
  1841. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/api.py +299 -0
  1842. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/macos.py +146 -0
  1843. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
  1844. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/unix.py +272 -0
  1845. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/version.py +34 -0
  1846. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/windows.py +272 -0
  1847. package/lib/python3.14/site-packages/pip/_vendor/pygments/LICENSE +25 -0
  1848. package/lib/python3.14/site-packages/pip/_vendor/pygments/__init__.py +82 -0
  1849. package/lib/python3.14/site-packages/pip/_vendor/pygments/__main__.py +17 -0
  1850. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/__init__.cpython-314.pyc +0 -0
  1851. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/__main__.cpython-314.pyc +0 -0
  1852. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/console.cpython-314.pyc +0 -0
  1853. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/filter.cpython-314.pyc +0 -0
  1854. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/formatter.cpython-314.pyc +0 -0
  1855. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/lexer.cpython-314.pyc +0 -0
  1856. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/modeline.cpython-314.pyc +0 -0
  1857. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/plugin.cpython-314.pyc +0 -0
  1858. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/regexopt.cpython-314.pyc +0 -0
  1859. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/scanner.cpython-314.pyc +0 -0
  1860. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/sphinxext.cpython-314.pyc +0 -0
  1861. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/style.cpython-314.pyc +0 -0
  1862. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/token.cpython-314.pyc +0 -0
  1863. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/unistring.cpython-314.pyc +0 -0
  1864. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/util.cpython-314.pyc +0 -0
  1865. package/lib/python3.14/site-packages/pip/_vendor/pygments/console.py +70 -0
  1866. package/lib/python3.14/site-packages/pip/_vendor/pygments/filter.py +70 -0
  1867. package/lib/python3.14/site-packages/pip/_vendor/pygments/filters/__init__.py +940 -0
  1868. package/lib/python3.14/site-packages/pip/_vendor/pygments/filters/__pycache__/__init__.cpython-314.pyc +0 -0
  1869. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatter.py +129 -0
  1870. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/__init__.py +157 -0
  1871. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/__pycache__/__init__.cpython-314.pyc +0 -0
  1872. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/__pycache__/_mapping.cpython-314.pyc +0 -0
  1873. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/_mapping.py +23 -0
  1874. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexer.py +963 -0
  1875. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__init__.py +362 -0
  1876. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__pycache__/__init__.cpython-314.pyc +0 -0
  1877. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__pycache__/_mapping.cpython-314.pyc +0 -0
  1878. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__pycache__/python.cpython-314.pyc +0 -0
  1879. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/_mapping.py +602 -0
  1880. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/python.py +1201 -0
  1881. package/lib/python3.14/site-packages/pip/_vendor/pygments/modeline.py +43 -0
  1882. package/lib/python3.14/site-packages/pip/_vendor/pygments/plugin.py +72 -0
  1883. package/lib/python3.14/site-packages/pip/_vendor/pygments/regexopt.py +91 -0
  1884. package/lib/python3.14/site-packages/pip/_vendor/pygments/scanner.py +104 -0
  1885. package/lib/python3.14/site-packages/pip/_vendor/pygments/sphinxext.py +247 -0
  1886. package/lib/python3.14/site-packages/pip/_vendor/pygments/style.py +203 -0
  1887. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/__init__.py +61 -0
  1888. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/__pycache__/__init__.cpython-314.pyc +0 -0
  1889. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/__pycache__/_mapping.cpython-314.pyc +0 -0
  1890. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/_mapping.py +54 -0
  1891. package/lib/python3.14/site-packages/pip/_vendor/pygments/token.py +214 -0
  1892. package/lib/python3.14/site-packages/pip/_vendor/pygments/unistring.py +153 -0
  1893. package/lib/python3.14/site-packages/pip/_vendor/pygments/util.py +324 -0
  1894. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/LICENSE +21 -0
  1895. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/__init__.py +31 -0
  1896. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  1897. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/__pycache__/_impl.cpython-314.pyc +0 -0
  1898. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_impl.py +410 -0
  1899. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/__init__.py +21 -0
  1900. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/__init__.cpython-314.pyc +0 -0
  1901. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/_in_process.cpython-314.pyc +0 -0
  1902. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +389 -0
  1903. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/py.typed +0 -0
  1904. package/lib/python3.14/site-packages/pip/_vendor/requests/LICENSE +175 -0
  1905. package/lib/python3.14/site-packages/pip/_vendor/requests/__init__.py +179 -0
  1906. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/__init__.cpython-314.pyc +0 -0
  1907. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/__version__.cpython-314.pyc +0 -0
  1908. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/_internal_utils.cpython-314.pyc +0 -0
  1909. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/adapters.cpython-314.pyc +0 -0
  1910. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/api.cpython-314.pyc +0 -0
  1911. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/auth.cpython-314.pyc +0 -0
  1912. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/certs.cpython-314.pyc +0 -0
  1913. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/compat.cpython-314.pyc +0 -0
  1914. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/cookies.cpython-314.pyc +0 -0
  1915. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/exceptions.cpython-314.pyc +0 -0
  1916. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/help.cpython-314.pyc +0 -0
  1917. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/hooks.cpython-314.pyc +0 -0
  1918. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/models.cpython-314.pyc +0 -0
  1919. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/packages.cpython-314.pyc +0 -0
  1920. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/sessions.cpython-314.pyc +0 -0
  1921. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/status_codes.cpython-314.pyc +0 -0
  1922. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/structures.cpython-314.pyc +0 -0
  1923. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/utils.cpython-314.pyc +0 -0
  1924. package/lib/python3.14/site-packages/pip/_vendor/requests/__version__.py +14 -0
  1925. package/lib/python3.14/site-packages/pip/_vendor/requests/_internal_utils.py +50 -0
  1926. package/lib/python3.14/site-packages/pip/_vendor/requests/adapters.py +696 -0
  1927. package/lib/python3.14/site-packages/pip/_vendor/requests/api.py +157 -0
  1928. package/lib/python3.14/site-packages/pip/_vendor/requests/auth.py +314 -0
  1929. package/lib/python3.14/site-packages/pip/_vendor/requests/certs.py +17 -0
  1930. package/lib/python3.14/site-packages/pip/_vendor/requests/compat.py +90 -0
  1931. package/lib/python3.14/site-packages/pip/_vendor/requests/cookies.py +561 -0
  1932. package/lib/python3.14/site-packages/pip/_vendor/requests/exceptions.py +151 -0
  1933. package/lib/python3.14/site-packages/pip/_vendor/requests/help.py +127 -0
  1934. package/lib/python3.14/site-packages/pip/_vendor/requests/hooks.py +33 -0
  1935. package/lib/python3.14/site-packages/pip/_vendor/requests/models.py +1039 -0
  1936. package/lib/python3.14/site-packages/pip/_vendor/requests/packages.py +25 -0
  1937. package/lib/python3.14/site-packages/pip/_vendor/requests/sessions.py +831 -0
  1938. package/lib/python3.14/site-packages/pip/_vendor/requests/status_codes.py +128 -0
  1939. package/lib/python3.14/site-packages/pip/_vendor/requests/structures.py +99 -0
  1940. package/lib/python3.14/site-packages/pip/_vendor/requests/utils.py +1086 -0
  1941. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/LICENSE +13 -0
  1942. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__init__.py +27 -0
  1943. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/__init__.cpython-314.pyc +0 -0
  1944. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/providers.cpython-314.pyc +0 -0
  1945. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/reporters.cpython-314.pyc +0 -0
  1946. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/structs.cpython-314.pyc +0 -0
  1947. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/providers.py +196 -0
  1948. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
  1949. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/reporters.py +55 -0
  1950. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__init__.py +27 -0
  1951. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/__init__.cpython-314.pyc +0 -0
  1952. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/abstract.cpython-314.pyc +0 -0
  1953. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/criterion.cpython-314.pyc +0 -0
  1954. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/exceptions.cpython-314.pyc +0 -0
  1955. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/resolution.cpython-314.pyc +0 -0
  1956. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/abstract.py +47 -0
  1957. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/criterion.py +48 -0
  1958. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/exceptions.py +57 -0
  1959. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/resolution.py +627 -0
  1960. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/structs.py +209 -0
  1961. package/lib/python3.14/site-packages/pip/_vendor/rich/LICENSE +19 -0
  1962. package/lib/python3.14/site-packages/pip/_vendor/rich/__init__.py +177 -0
  1963. package/lib/python3.14/site-packages/pip/_vendor/rich/__main__.py +245 -0
  1964. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/__init__.cpython-314.pyc +0 -0
  1965. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/__main__.cpython-314.pyc +0 -0
  1966. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_cell_widths.cpython-314.pyc +0 -0
  1967. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_emoji_codes.cpython-314.pyc +0 -0
  1968. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_emoji_replace.cpython-314.pyc +0 -0
  1969. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_export_format.cpython-314.pyc +0 -0
  1970. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_extension.cpython-314.pyc +0 -0
  1971. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_fileno.cpython-314.pyc +0 -0
  1972. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_inspect.cpython-314.pyc +0 -0
  1973. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_log_render.cpython-314.pyc +0 -0
  1974. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_loop.cpython-314.pyc +0 -0
  1975. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_null_file.cpython-314.pyc +0 -0
  1976. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_palettes.cpython-314.pyc +0 -0
  1977. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_pick.cpython-314.pyc +0 -0
  1978. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_ratio.cpython-314.pyc +0 -0
  1979. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_spinners.cpython-314.pyc +0 -0
  1980. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_stack.cpython-314.pyc +0 -0
  1981. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_timer.cpython-314.pyc +0 -0
  1982. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_win32_console.cpython-314.pyc +0 -0
  1983. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_windows.cpython-314.pyc +0 -0
  1984. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_windows_renderer.cpython-314.pyc +0 -0
  1985. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_wrap.cpython-314.pyc +0 -0
  1986. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/abc.cpython-314.pyc +0 -0
  1987. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/align.cpython-314.pyc +0 -0
  1988. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/ansi.cpython-314.pyc +0 -0
  1989. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/bar.cpython-314.pyc +0 -0
  1990. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/box.cpython-314.pyc +0 -0
  1991. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/cells.cpython-314.pyc +0 -0
  1992. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/color.cpython-314.pyc +0 -0
  1993. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/color_triplet.cpython-314.pyc +0 -0
  1994. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/columns.cpython-314.pyc +0 -0
  1995. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/console.cpython-314.pyc +0 -0
  1996. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/constrain.cpython-314.pyc +0 -0
  1997. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/containers.cpython-314.pyc +0 -0
  1998. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/control.cpython-314.pyc +0 -0
  1999. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/default_styles.cpython-314.pyc +0 -0
  2000. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/diagnose.cpython-314.pyc +0 -0
  2001. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/emoji.cpython-314.pyc +0 -0
  2002. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/errors.cpython-314.pyc +0 -0
  2003. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/file_proxy.cpython-314.pyc +0 -0
  2004. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/filesize.cpython-314.pyc +0 -0
  2005. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/highlighter.cpython-314.pyc +0 -0
  2006. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/json.cpython-314.pyc +0 -0
  2007. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/jupyter.cpython-314.pyc +0 -0
  2008. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/layout.cpython-314.pyc +0 -0
  2009. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/live.cpython-314.pyc +0 -0
  2010. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/live_render.cpython-314.pyc +0 -0
  2011. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/logging.cpython-314.pyc +0 -0
  2012. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/markup.cpython-314.pyc +0 -0
  2013. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/measure.cpython-314.pyc +0 -0
  2014. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/padding.cpython-314.pyc +0 -0
  2015. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/pager.cpython-314.pyc +0 -0
  2016. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/palette.cpython-314.pyc +0 -0
  2017. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/panel.cpython-314.pyc +0 -0
  2018. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/pretty.cpython-314.pyc +0 -0
  2019. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/progress.cpython-314.pyc +0 -0
  2020. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/progress_bar.cpython-314.pyc +0 -0
  2021. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/prompt.cpython-314.pyc +0 -0
  2022. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/protocol.cpython-314.pyc +0 -0
  2023. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/region.cpython-314.pyc +0 -0
  2024. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/repr.cpython-314.pyc +0 -0
  2025. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/rule.cpython-314.pyc +0 -0
  2026. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/scope.cpython-314.pyc +0 -0
  2027. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/screen.cpython-314.pyc +0 -0
  2028. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/segment.cpython-314.pyc +0 -0
  2029. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/spinner.cpython-314.pyc +0 -0
  2030. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/status.cpython-314.pyc +0 -0
  2031. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/style.cpython-314.pyc +0 -0
  2032. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/styled.cpython-314.pyc +0 -0
  2033. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/syntax.cpython-314.pyc +0 -0
  2034. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/table.cpython-314.pyc +0 -0
  2035. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/terminal_theme.cpython-314.pyc +0 -0
  2036. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/text.cpython-314.pyc +0 -0
  2037. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/theme.cpython-314.pyc +0 -0
  2038. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/themes.cpython-314.pyc +0 -0
  2039. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/traceback.cpython-314.pyc +0 -0
  2040. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/tree.cpython-314.pyc +0 -0
  2041. package/lib/python3.14/site-packages/pip/_vendor/rich/_cell_widths.py +454 -0
  2042. package/lib/python3.14/site-packages/pip/_vendor/rich/_emoji_codes.py +3610 -0
  2043. package/lib/python3.14/site-packages/pip/_vendor/rich/_emoji_replace.py +32 -0
  2044. package/lib/python3.14/site-packages/pip/_vendor/rich/_export_format.py +76 -0
  2045. package/lib/python3.14/site-packages/pip/_vendor/rich/_extension.py +10 -0
  2046. package/lib/python3.14/site-packages/pip/_vendor/rich/_fileno.py +24 -0
  2047. package/lib/python3.14/site-packages/pip/_vendor/rich/_inspect.py +268 -0
  2048. package/lib/python3.14/site-packages/pip/_vendor/rich/_log_render.py +94 -0
  2049. package/lib/python3.14/site-packages/pip/_vendor/rich/_loop.py +43 -0
  2050. package/lib/python3.14/site-packages/pip/_vendor/rich/_null_file.py +69 -0
  2051. package/lib/python3.14/site-packages/pip/_vendor/rich/_palettes.py +309 -0
  2052. package/lib/python3.14/site-packages/pip/_vendor/rich/_pick.py +17 -0
  2053. package/lib/python3.14/site-packages/pip/_vendor/rich/_ratio.py +153 -0
  2054. package/lib/python3.14/site-packages/pip/_vendor/rich/_spinners.py +482 -0
  2055. package/lib/python3.14/site-packages/pip/_vendor/rich/_stack.py +16 -0
  2056. package/lib/python3.14/site-packages/pip/_vendor/rich/_timer.py +19 -0
  2057. package/lib/python3.14/site-packages/pip/_vendor/rich/_win32_console.py +661 -0
  2058. package/lib/python3.14/site-packages/pip/_vendor/rich/_windows.py +71 -0
  2059. package/lib/python3.14/site-packages/pip/_vendor/rich/_windows_renderer.py +56 -0
  2060. package/lib/python3.14/site-packages/pip/_vendor/rich/_wrap.py +93 -0
  2061. package/lib/python3.14/site-packages/pip/_vendor/rich/abc.py +33 -0
  2062. package/lib/python3.14/site-packages/pip/_vendor/rich/align.py +306 -0
  2063. package/lib/python3.14/site-packages/pip/_vendor/rich/ansi.py +241 -0
  2064. package/lib/python3.14/site-packages/pip/_vendor/rich/bar.py +93 -0
  2065. package/lib/python3.14/site-packages/pip/_vendor/rich/box.py +474 -0
  2066. package/lib/python3.14/site-packages/pip/_vendor/rich/cells.py +174 -0
  2067. package/lib/python3.14/site-packages/pip/_vendor/rich/color.py +621 -0
  2068. package/lib/python3.14/site-packages/pip/_vendor/rich/color_triplet.py +38 -0
  2069. package/lib/python3.14/site-packages/pip/_vendor/rich/columns.py +187 -0
  2070. package/lib/python3.14/site-packages/pip/_vendor/rich/console.py +2680 -0
  2071. package/lib/python3.14/site-packages/pip/_vendor/rich/constrain.py +37 -0
  2072. package/lib/python3.14/site-packages/pip/_vendor/rich/containers.py +167 -0
  2073. package/lib/python3.14/site-packages/pip/_vendor/rich/control.py +219 -0
  2074. package/lib/python3.14/site-packages/pip/_vendor/rich/default_styles.py +193 -0
  2075. package/lib/python3.14/site-packages/pip/_vendor/rich/diagnose.py +39 -0
  2076. package/lib/python3.14/site-packages/pip/_vendor/rich/emoji.py +91 -0
  2077. package/lib/python3.14/site-packages/pip/_vendor/rich/errors.py +34 -0
  2078. package/lib/python3.14/site-packages/pip/_vendor/rich/file_proxy.py +57 -0
  2079. package/lib/python3.14/site-packages/pip/_vendor/rich/filesize.py +88 -0
  2080. package/lib/python3.14/site-packages/pip/_vendor/rich/highlighter.py +232 -0
  2081. package/lib/python3.14/site-packages/pip/_vendor/rich/json.py +139 -0
  2082. package/lib/python3.14/site-packages/pip/_vendor/rich/jupyter.py +101 -0
  2083. package/lib/python3.14/site-packages/pip/_vendor/rich/layout.py +442 -0
  2084. package/lib/python3.14/site-packages/pip/_vendor/rich/live.py +400 -0
  2085. package/lib/python3.14/site-packages/pip/_vendor/rich/live_render.py +106 -0
  2086. package/lib/python3.14/site-packages/pip/_vendor/rich/logging.py +297 -0
  2087. package/lib/python3.14/site-packages/pip/_vendor/rich/markup.py +251 -0
  2088. package/lib/python3.14/site-packages/pip/_vendor/rich/measure.py +151 -0
  2089. package/lib/python3.14/site-packages/pip/_vendor/rich/padding.py +141 -0
  2090. package/lib/python3.14/site-packages/pip/_vendor/rich/pager.py +34 -0
  2091. package/lib/python3.14/site-packages/pip/_vendor/rich/palette.py +100 -0
  2092. package/lib/python3.14/site-packages/pip/_vendor/rich/panel.py +317 -0
  2093. package/lib/python3.14/site-packages/pip/_vendor/rich/pretty.py +1016 -0
  2094. package/lib/python3.14/site-packages/pip/_vendor/rich/progress.py +1715 -0
  2095. package/lib/python3.14/site-packages/pip/_vendor/rich/progress_bar.py +223 -0
  2096. package/lib/python3.14/site-packages/pip/_vendor/rich/prompt.py +400 -0
  2097. package/lib/python3.14/site-packages/pip/_vendor/rich/protocol.py +42 -0
  2098. package/lib/python3.14/site-packages/pip/_vendor/rich/py.typed +0 -0
  2099. package/lib/python3.14/site-packages/pip/_vendor/rich/region.py +10 -0
  2100. package/lib/python3.14/site-packages/pip/_vendor/rich/repr.py +149 -0
  2101. package/lib/python3.14/site-packages/pip/_vendor/rich/rule.py +130 -0
  2102. package/lib/python3.14/site-packages/pip/_vendor/rich/scope.py +86 -0
  2103. package/lib/python3.14/site-packages/pip/_vendor/rich/screen.py +54 -0
  2104. package/lib/python3.14/site-packages/pip/_vendor/rich/segment.py +752 -0
  2105. package/lib/python3.14/site-packages/pip/_vendor/rich/spinner.py +132 -0
  2106. package/lib/python3.14/site-packages/pip/_vendor/rich/status.py +131 -0
  2107. package/lib/python3.14/site-packages/pip/_vendor/rich/style.py +792 -0
  2108. package/lib/python3.14/site-packages/pip/_vendor/rich/styled.py +42 -0
  2109. package/lib/python3.14/site-packages/pip/_vendor/rich/syntax.py +985 -0
  2110. package/lib/python3.14/site-packages/pip/_vendor/rich/table.py +1006 -0
  2111. package/lib/python3.14/site-packages/pip/_vendor/rich/terminal_theme.py +153 -0
  2112. package/lib/python3.14/site-packages/pip/_vendor/rich/text.py +1361 -0
  2113. package/lib/python3.14/site-packages/pip/_vendor/rich/theme.py +115 -0
  2114. package/lib/python3.14/site-packages/pip/_vendor/rich/themes.py +5 -0
  2115. package/lib/python3.14/site-packages/pip/_vendor/rich/traceback.py +899 -0
  2116. package/lib/python3.14/site-packages/pip/_vendor/rich/tree.py +257 -0
  2117. package/lib/python3.14/site-packages/pip/_vendor/tomli/LICENSE +21 -0
  2118. package/lib/python3.14/site-packages/pip/_vendor/tomli/__init__.py +8 -0
  2119. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/__init__.cpython-314.pyc +0 -0
  2120. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/_parser.cpython-314.pyc +0 -0
  2121. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/_re.cpython-314.pyc +0 -0
  2122. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/_types.cpython-314.pyc +0 -0
  2123. package/lib/python3.14/site-packages/pip/_vendor/tomli/_parser.py +777 -0
  2124. package/lib/python3.14/site-packages/pip/_vendor/tomli/_re.py +115 -0
  2125. package/lib/python3.14/site-packages/pip/_vendor/tomli/_types.py +10 -0
  2126. package/lib/python3.14/site-packages/pip/_vendor/tomli/py.typed +1 -0
  2127. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/LICENSE +21 -0
  2128. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/__init__.py +4 -0
  2129. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/__pycache__/__init__.cpython-314.pyc +0 -0
  2130. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/__pycache__/_writer.cpython-314.pyc +0 -0
  2131. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/_writer.py +229 -0
  2132. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/py.typed +1 -0
  2133. package/lib/python3.14/site-packages/pip/_vendor/truststore/LICENSE +21 -0
  2134. package/lib/python3.14/site-packages/pip/_vendor/truststore/__init__.py +36 -0
  2135. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/__init__.cpython-314.pyc +0 -0
  2136. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_api.cpython-314.pyc +0 -0
  2137. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_macos.cpython-314.pyc +0 -0
  2138. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_openssl.cpython-314.pyc +0 -0
  2139. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_ssl_constants.cpython-314.pyc +0 -0
  2140. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_windows.cpython-314.pyc +0 -0
  2141. package/lib/python3.14/site-packages/pip/_vendor/truststore/_api.py +341 -0
  2142. package/lib/python3.14/site-packages/pip/_vendor/truststore/_macos.py +571 -0
  2143. package/lib/python3.14/site-packages/pip/_vendor/truststore/_openssl.py +68 -0
  2144. package/lib/python3.14/site-packages/pip/_vendor/truststore/_ssl_constants.py +31 -0
  2145. package/lib/python3.14/site-packages/pip/_vendor/truststore/_windows.py +567 -0
  2146. package/lib/python3.14/site-packages/pip/_vendor/truststore/py.typed +0 -0
  2147. package/lib/python3.14/site-packages/pip/_vendor/urllib3/LICENSE.txt +21 -0
  2148. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__init__.py +102 -0
  2149. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/__init__.cpython-314.pyc +0 -0
  2150. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/_collections.cpython-314.pyc +0 -0
  2151. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/_version.cpython-314.pyc +0 -0
  2152. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/connection.cpython-314.pyc +0 -0
  2153. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/connectionpool.cpython-314.pyc +0 -0
  2154. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/exceptions.cpython-314.pyc +0 -0
  2155. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/fields.cpython-314.pyc +0 -0
  2156. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/filepost.cpython-314.pyc +0 -0
  2157. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/poolmanager.cpython-314.pyc +0 -0
  2158. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/request.cpython-314.pyc +0 -0
  2159. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/response.cpython-314.pyc +0 -0
  2160. package/lib/python3.14/site-packages/pip/_vendor/urllib3/_collections.py +355 -0
  2161. package/lib/python3.14/site-packages/pip/_vendor/urllib3/_version.py +2 -0
  2162. package/lib/python3.14/site-packages/pip/_vendor/urllib3/connection.py +572 -0
  2163. package/lib/python3.14/site-packages/pip/_vendor/urllib3/connectionpool.py +1140 -0
  2164. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  2165. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/__init__.cpython-314.pyc +0 -0
  2166. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/_appengine_environ.cpython-314.pyc +0 -0
  2167. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/appengine.cpython-314.pyc +0 -0
  2168. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/ntlmpool.cpython-314.pyc +0 -0
  2169. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/pyopenssl.cpython-314.pyc +0 -0
  2170. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/securetransport.cpython-314.pyc +0 -0
  2171. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/socks.cpython-314.pyc +0 -0
  2172. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
  2173. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  2174. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/__init__.cpython-314.pyc +0 -0
  2175. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/bindings.cpython-314.pyc +0 -0
  2176. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/low_level.cpython-314.pyc +0 -0
  2177. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
  2178. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +397 -0
  2179. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
  2180. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +130 -0
  2181. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +518 -0
  2182. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +920 -0
  2183. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
  2184. package/lib/python3.14/site-packages/pip/_vendor/urllib3/exceptions.py +323 -0
  2185. package/lib/python3.14/site-packages/pip/_vendor/urllib3/fields.py +274 -0
  2186. package/lib/python3.14/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
  2187. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
  2188. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/__pycache__/__init__.cpython-314.pyc +0 -0
  2189. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/__pycache__/six.cpython-314.pyc +0 -0
  2190. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  2191. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/__init__.cpython-314.pyc +0 -0
  2192. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/makefile.cpython-314.pyc +0 -0
  2193. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/weakref_finalize.cpython-314.pyc +0 -0
  2194. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
  2195. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py +155 -0
  2196. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/six.py +1076 -0
  2197. package/lib/python3.14/site-packages/pip/_vendor/urllib3/poolmanager.py +540 -0
  2198. package/lib/python3.14/site-packages/pip/_vendor/urllib3/request.py +191 -0
  2199. package/lib/python3.14/site-packages/pip/_vendor/urllib3/response.py +879 -0
  2200. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
  2201. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/__init__.cpython-314.pyc +0 -0
  2202. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/connection.cpython-314.pyc +0 -0
  2203. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/proxy.cpython-314.pyc +0 -0
  2204. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/queue.cpython-314.pyc +0 -0
  2205. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/request.cpython-314.pyc +0 -0
  2206. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/response.cpython-314.pyc +0 -0
  2207. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/retry.cpython-314.pyc +0 -0
  2208. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_.cpython-314.pyc +0 -0
  2209. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_match_hostname.cpython-314.pyc +0 -0
  2210. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/ssltransport.cpython-314.pyc +0 -0
  2211. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/timeout.cpython-314.pyc +0 -0
  2212. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/url.cpython-314.pyc +0 -0
  2213. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/wait.cpython-314.pyc +0 -0
  2214. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/connection.py +149 -0
  2215. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/proxy.py +57 -0
  2216. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
  2217. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/request.py +137 -0
  2218. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
  2219. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/retry.py +622 -0
  2220. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/ssl_.py +504 -0
  2221. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +159 -0
  2222. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
  2223. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/timeout.py +271 -0
  2224. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/url.py +435 -0
  2225. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/wait.py +152 -0
  2226. package/lib/python3.14/site-packages/pip/_vendor/vendor.txt +19 -0
  2227. package/lib/python3.14/site-packages/pip/py.typed +4 -0
  2228. package/lib/python3.14/site-packages/pip-25.3.dist-info/METADATA +111 -0
  2229. package/lib/python3.14/site-packages/pip-25.3.dist-info/RECORD +469 -0
  2230. package/lib/python3.14/site-packages/pip-25.3.dist-info/WHEEL +4 -0
  2231. package/lib/python3.14/site-packages/pip-25.3.dist-info/entry_points.txt +4 -0
  2232. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/AUTHORS.txt +842 -0
  2233. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/LICENSE.txt +20 -0
  2234. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
  2235. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/certifi/LICENSE +20 -0
  2236. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/dependency_groups/LICENSE.txt +9 -0
  2237. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/distlib/LICENSE.txt +284 -0
  2238. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/distro/LICENSE +202 -0
  2239. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/idna/LICENSE.md +31 -0
  2240. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/msgpack/COPYING +14 -0
  2241. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE +3 -0
  2242. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.APACHE +177 -0
  2243. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.BSD +23 -0
  2244. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/pkg_resources/LICENSE +17 -0
  2245. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/platformdirs/LICENSE +21 -0
  2246. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/pygments/LICENSE +25 -0
  2247. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/pyproject_hooks/LICENSE +21 -0
  2248. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/requests/LICENSE +175 -0
  2249. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/resolvelib/LICENSE +13 -0
  2250. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/rich/LICENSE +19 -0
  2251. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/tomli/LICENSE +21 -0
  2252. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/tomli_w/LICENSE +21 -0
  2253. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/truststore/LICENSE +21 -0
  2254. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/urllib3/LICENSE.txt +21 -0
  2255. package/lib/python3.14/site.py +787 -0
  2256. package/lib/python3.14/smtplib.py +1121 -0
  2257. package/lib/python3.14/socket.py +988 -0
  2258. package/lib/python3.14/socketserver.py +863 -0
  2259. package/lib/python3.14/sqlite3/__init__.py +57 -0
  2260. package/lib/python3.14/sqlite3/__main__.py +139 -0
  2261. package/lib/python3.14/sqlite3/__pycache__/__init__.cpython-314.pyc +0 -0
  2262. package/lib/python3.14/sqlite3/__pycache__/__main__.cpython-314.pyc +0 -0
  2263. package/lib/python3.14/sqlite3/__pycache__/dbapi2.cpython-314.pyc +0 -0
  2264. package/lib/python3.14/sqlite3/__pycache__/dump.cpython-314.pyc +0 -0
  2265. package/lib/python3.14/sqlite3/dbapi2.py +96 -0
  2266. package/lib/python3.14/sqlite3/dump.py +113 -0
  2267. package/lib/python3.14/sre_compile.py +7 -0
  2268. package/lib/python3.14/sre_constants.py +7 -0
  2269. package/lib/python3.14/sre_parse.py +7 -0
  2270. package/lib/python3.14/ssl.py +1529 -0
  2271. package/lib/python3.14/stat.py +207 -0
  2272. package/lib/python3.14/statistics.py +1879 -0
  2273. package/lib/python3.14/string/__init__.py +325 -0
  2274. package/lib/python3.14/string/__pycache__/__init__.cpython-314.pyc +0 -0
  2275. package/lib/python3.14/string/__pycache__/templatelib.cpython-314.pyc +0 -0
  2276. package/lib/python3.14/string/templatelib.py +33 -0
  2277. package/lib/python3.14/stringprep.py +272 -0
  2278. package/lib/python3.14/struct.py +15 -0
  2279. package/lib/python3.14/subprocess.py +2198 -0
  2280. package/lib/python3.14/symtable.py +451 -0
  2281. package/lib/python3.14/sysconfig/__init__.py +790 -0
  2282. package/lib/python3.14/sysconfig/__main__.py +276 -0
  2283. package/lib/python3.14/sysconfig/__pycache__/__init__.cpython-314.pyc +0 -0
  2284. package/lib/python3.14/sysconfig/__pycache__/__main__.cpython-314.pyc +0 -0
  2285. package/lib/python3.14/tabnanny.py +338 -0
  2286. package/lib/python3.14/tarfile.py +3136 -0
  2287. package/lib/python3.14/tempfile.py +977 -0
  2288. package/lib/python3.14/textwrap.py +475 -0
  2289. package/lib/python3.14/this.py +28 -0
  2290. package/lib/python3.14/threading.py +1642 -0
  2291. package/lib/python3.14/timeit.py +378 -0
  2292. package/lib/python3.14/tkinter/__init__.py +5005 -0
  2293. package/lib/python3.14/tkinter/__main__.py +7 -0
  2294. package/lib/python3.14/tkinter/__pycache__/__init__.cpython-314.pyc +0 -0
  2295. package/lib/python3.14/tkinter/__pycache__/__main__.cpython-314.pyc +0 -0
  2296. package/lib/python3.14/tkinter/__pycache__/colorchooser.cpython-314.pyc +0 -0
  2297. package/lib/python3.14/tkinter/__pycache__/commondialog.cpython-314.pyc +0 -0
  2298. package/lib/python3.14/tkinter/__pycache__/constants.cpython-314.pyc +0 -0
  2299. package/lib/python3.14/tkinter/__pycache__/dialog.cpython-314.pyc +0 -0
  2300. package/lib/python3.14/tkinter/__pycache__/dnd.cpython-314.pyc +0 -0
  2301. package/lib/python3.14/tkinter/__pycache__/filedialog.cpython-314.pyc +0 -0
  2302. package/lib/python3.14/tkinter/__pycache__/font.cpython-314.pyc +0 -0
  2303. package/lib/python3.14/tkinter/__pycache__/messagebox.cpython-314.pyc +0 -0
  2304. package/lib/python3.14/tkinter/__pycache__/scrolledtext.cpython-314.pyc +0 -0
  2305. package/lib/python3.14/tkinter/__pycache__/simpledialog.cpython-314.pyc +0 -0
  2306. package/lib/python3.14/tkinter/__pycache__/ttk.cpython-314.pyc +0 -0
  2307. package/lib/python3.14/tkinter/colorchooser.py +86 -0
  2308. package/lib/python3.14/tkinter/commondialog.py +53 -0
  2309. package/lib/python3.14/tkinter/constants.py +110 -0
  2310. package/lib/python3.14/tkinter/dialog.py +49 -0
  2311. package/lib/python3.14/tkinter/dnd.py +324 -0
  2312. package/lib/python3.14/tkinter/filedialog.py +492 -0
  2313. package/lib/python3.14/tkinter/font.py +239 -0
  2314. package/lib/python3.14/tkinter/messagebox.py +146 -0
  2315. package/lib/python3.14/tkinter/scrolledtext.py +56 -0
  2316. package/lib/python3.14/tkinter/simpledialog.py +441 -0
  2317. package/lib/python3.14/tkinter/ttk.py +1650 -0
  2318. package/lib/python3.14/token.py +144 -0
  2319. package/lib/python3.14/tokenize.py +598 -0
  2320. package/lib/python3.14/tomllib/__init__.py +10 -0
  2321. package/lib/python3.14/tomllib/__pycache__/__init__.cpython-314.pyc +0 -0
  2322. package/lib/python3.14/tomllib/__pycache__/_parser.cpython-314.pyc +0 -0
  2323. package/lib/python3.14/tomllib/__pycache__/_re.cpython-314.pyc +0 -0
  2324. package/lib/python3.14/tomllib/__pycache__/_types.cpython-314.pyc +0 -0
  2325. package/lib/python3.14/tomllib/_parser.py +753 -0
  2326. package/lib/python3.14/tomllib/_re.py +113 -0
  2327. package/lib/python3.14/tomllib/_types.py +10 -0
  2328. package/lib/python3.14/tomllib/mypy.ini +17 -0
  2329. package/lib/python3.14/trace.py +751 -0
  2330. package/lib/python3.14/traceback.py +1743 -0
  2331. package/lib/python3.14/tracemalloc.py +560 -0
  2332. package/lib/python3.14/tty.py +73 -0
  2333. package/lib/python3.14/turtle.py +4291 -0
  2334. package/lib/python3.14/turtledemo/__init__.py +14 -0
  2335. package/lib/python3.14/turtledemo/__main__.py +399 -0
  2336. package/lib/python3.14/turtledemo/__pycache__/__init__.cpython-314.pyc +0 -0
  2337. package/lib/python3.14/turtledemo/__pycache__/__main__.cpython-314.pyc +0 -0
  2338. package/lib/python3.14/turtledemo/__pycache__/bytedesign.cpython-314.pyc +0 -0
  2339. package/lib/python3.14/turtledemo/__pycache__/chaos.cpython-314.pyc +0 -0
  2340. package/lib/python3.14/turtledemo/__pycache__/clock.cpython-314.pyc +0 -0
  2341. package/lib/python3.14/turtledemo/__pycache__/colormixer.cpython-314.pyc +0 -0
  2342. package/lib/python3.14/turtledemo/__pycache__/forest.cpython-314.pyc +0 -0
  2343. package/lib/python3.14/turtledemo/__pycache__/fractalcurves.cpython-314.pyc +0 -0
  2344. package/lib/python3.14/turtledemo/__pycache__/lindenmayer.cpython-314.pyc +0 -0
  2345. package/lib/python3.14/turtledemo/__pycache__/minimal_hanoi.cpython-314.pyc +0 -0
  2346. package/lib/python3.14/turtledemo/__pycache__/nim.cpython-314.pyc +0 -0
  2347. package/lib/python3.14/turtledemo/__pycache__/paint.cpython-314.pyc +0 -0
  2348. package/lib/python3.14/turtledemo/__pycache__/peace.cpython-314.pyc +0 -0
  2349. package/lib/python3.14/turtledemo/__pycache__/penrose.cpython-314.pyc +0 -0
  2350. package/lib/python3.14/turtledemo/__pycache__/planet_and_moon.cpython-314.pyc +0 -0
  2351. package/lib/python3.14/turtledemo/__pycache__/rosette.cpython-314.pyc +0 -0
  2352. package/lib/python3.14/turtledemo/__pycache__/round_dance.cpython-314.pyc +0 -0
  2353. package/lib/python3.14/turtledemo/__pycache__/sorting_animate.cpython-314.pyc +0 -0
  2354. package/lib/python3.14/turtledemo/__pycache__/tree.cpython-314.pyc +0 -0
  2355. package/lib/python3.14/turtledemo/__pycache__/two_canvases.cpython-314.pyc +0 -0
  2356. package/lib/python3.14/turtledemo/__pycache__/yinyang.cpython-314.pyc +0 -0
  2357. package/lib/python3.14/turtledemo/bytedesign.py +158 -0
  2358. package/lib/python3.14/turtledemo/chaos.py +57 -0
  2359. package/lib/python3.14/turtledemo/clock.py +132 -0
  2360. package/lib/python3.14/turtledemo/colormixer.py +57 -0
  2361. package/lib/python3.14/turtledemo/forest.py +104 -0
  2362. package/lib/python3.14/turtledemo/fractalcurves.py +135 -0
  2363. package/lib/python3.14/turtledemo/lindenmayer.py +116 -0
  2364. package/lib/python3.14/turtledemo/minimal_hanoi.py +73 -0
  2365. package/lib/python3.14/turtledemo/nim.py +224 -0
  2366. package/lib/python3.14/turtledemo/paint.py +48 -0
  2367. package/lib/python3.14/turtledemo/peace.py +58 -0
  2368. package/lib/python3.14/turtledemo/penrose.py +172 -0
  2369. package/lib/python3.14/turtledemo/planet_and_moon.py +108 -0
  2370. package/lib/python3.14/turtledemo/rosette.py +63 -0
  2371. package/lib/python3.14/turtledemo/round_dance.py +81 -0
  2372. package/lib/python3.14/turtledemo/sorting_animate.py +198 -0
  2373. package/lib/python3.14/turtledemo/tree.py +59 -0
  2374. package/lib/python3.14/turtledemo/turtle.cfg +10 -0
  2375. package/lib/python3.14/turtledemo/two_canvases.py +54 -0
  2376. package/lib/python3.14/turtledemo/yinyang.py +46 -0
  2377. package/lib/python3.14/types.py +340 -0
  2378. package/lib/python3.14/typing.py +3854 -0
  2379. package/lib/python3.14/unittest/__init__.py +80 -0
  2380. package/lib/python3.14/unittest/__main__.py +18 -0
  2381. package/lib/python3.14/unittest/__pycache__/__init__.cpython-314.pyc +0 -0
  2382. package/lib/python3.14/unittest/__pycache__/__main__.cpython-314.pyc +0 -0
  2383. package/lib/python3.14/unittest/__pycache__/_log.cpython-314.pyc +0 -0
  2384. package/lib/python3.14/unittest/__pycache__/async_case.cpython-314.pyc +0 -0
  2385. package/lib/python3.14/unittest/__pycache__/case.cpython-314.pyc +0 -0
  2386. package/lib/python3.14/unittest/__pycache__/loader.cpython-314.pyc +0 -0
  2387. package/lib/python3.14/unittest/__pycache__/main.cpython-314.pyc +0 -0
  2388. package/lib/python3.14/unittest/__pycache__/mock.cpython-314.pyc +0 -0
  2389. package/lib/python3.14/unittest/__pycache__/result.cpython-314.pyc +0 -0
  2390. package/lib/python3.14/unittest/__pycache__/runner.cpython-314.pyc +0 -0
  2391. package/lib/python3.14/unittest/__pycache__/signals.cpython-314.pyc +0 -0
  2392. package/lib/python3.14/unittest/__pycache__/suite.cpython-314.pyc +0 -0
  2393. package/lib/python3.14/unittest/__pycache__/util.cpython-314.pyc +0 -0
  2394. package/lib/python3.14/unittest/_log.py +86 -0
  2395. package/lib/python3.14/unittest/async_case.py +158 -0
  2396. package/lib/python3.14/unittest/case.py +1628 -0
  2397. package/lib/python3.14/unittest/loader.py +484 -0
  2398. package/lib/python3.14/unittest/main.py +280 -0
  2399. package/lib/python3.14/unittest/mock.py +3197 -0
  2400. package/lib/python3.14/unittest/result.py +259 -0
  2401. package/lib/python3.14/unittest/runner.py +313 -0
  2402. package/lib/python3.14/unittest/signals.py +71 -0
  2403. package/lib/python3.14/unittest/suite.py +379 -0
  2404. package/lib/python3.14/unittest/util.py +170 -0
  2405. package/lib/python3.14/urllib/__init__.py +0 -0
  2406. package/lib/python3.14/urllib/__pycache__/__init__.cpython-314.pyc +0 -0
  2407. package/lib/python3.14/urllib/__pycache__/error.cpython-314.pyc +0 -0
  2408. package/lib/python3.14/urllib/__pycache__/parse.cpython-314.pyc +0 -0
  2409. package/lib/python3.14/urllib/__pycache__/request.cpython-314.pyc +0 -0
  2410. package/lib/python3.14/urllib/__pycache__/response.cpython-314.pyc +0 -0
  2411. package/lib/python3.14/urllib/__pycache__/robotparser.cpython-314.pyc +0 -0
  2412. package/lib/python3.14/urllib/error.py +74 -0
  2413. package/lib/python3.14/urllib/parse.py +1287 -0
  2414. package/lib/python3.14/urllib/request.py +2158 -0
  2415. package/lib/python3.14/urllib/response.py +84 -0
  2416. package/lib/python3.14/urllib/robotparser.py +288 -0
  2417. package/lib/python3.14/uuid.py +1007 -0
  2418. package/lib/python3.14/venv/__init__.py +700 -0
  2419. package/lib/python3.14/venv/__main__.py +10 -0
  2420. package/lib/python3.14/venv/__pycache__/__init__.cpython-314.pyc +0 -0
  2421. package/lib/python3.14/venv/__pycache__/__main__.cpython-314.pyc +0 -0
  2422. package/lib/python3.14/venv/scripts/common/Activate.ps1 +248 -0
  2423. package/lib/python3.14/venv/scripts/common/activate +76 -0
  2424. package/lib/python3.14/venv/scripts/common/activate.fish +69 -0
  2425. package/lib/python3.14/venv/scripts/posix/activate.csh +27 -0
  2426. package/lib/python3.14/warnings.py +99 -0
  2427. package/lib/python3.14/wave.py +665 -0
  2428. package/lib/python3.14/weakref.py +574 -0
  2429. package/lib/python3.14/webbrowser.py +749 -0
  2430. package/lib/python3.14/wsgiref/__init__.py +25 -0
  2431. package/lib/python3.14/wsgiref/__pycache__/__init__.cpython-314.pyc +0 -0
  2432. package/lib/python3.14/wsgiref/__pycache__/handlers.cpython-314.pyc +0 -0
  2433. package/lib/python3.14/wsgiref/__pycache__/headers.cpython-314.pyc +0 -0
  2434. package/lib/python3.14/wsgiref/__pycache__/simple_server.cpython-314.pyc +0 -0
  2435. package/lib/python3.14/wsgiref/__pycache__/types.cpython-314.pyc +0 -0
  2436. package/lib/python3.14/wsgiref/__pycache__/util.cpython-314.pyc +0 -0
  2437. package/lib/python3.14/wsgiref/__pycache__/validate.cpython-314.pyc +0 -0
  2438. package/lib/python3.14/wsgiref/handlers.py +573 -0
  2439. package/lib/python3.14/wsgiref/headers.py +184 -0
  2440. package/lib/python3.14/wsgiref/simple_server.py +161 -0
  2441. package/lib/python3.14/wsgiref/types.py +54 -0
  2442. package/lib/python3.14/wsgiref/util.py +159 -0
  2443. package/lib/python3.14/wsgiref/validate.py +438 -0
  2444. package/lib/python3.14/xml/__init__.py +20 -0
  2445. package/lib/python3.14/xml/__pycache__/__init__.cpython-314.pyc +0 -0
  2446. package/lib/python3.14/xml/dom/NodeFilter.py +27 -0
  2447. package/lib/python3.14/xml/dom/__init__.py +140 -0
  2448. package/lib/python3.14/xml/dom/__pycache__/NodeFilter.cpython-314.pyc +0 -0
  2449. package/lib/python3.14/xml/dom/__pycache__/__init__.cpython-314.pyc +0 -0
  2450. package/lib/python3.14/xml/dom/__pycache__/domreg.cpython-314.pyc +0 -0
  2451. package/lib/python3.14/xml/dom/__pycache__/expatbuilder.cpython-314.pyc +0 -0
  2452. package/lib/python3.14/xml/dom/__pycache__/minicompat.cpython-314.pyc +0 -0
  2453. package/lib/python3.14/xml/dom/__pycache__/minidom.cpython-314.pyc +0 -0
  2454. package/lib/python3.14/xml/dom/__pycache__/pulldom.cpython-314.pyc +0 -0
  2455. package/lib/python3.14/xml/dom/__pycache__/xmlbuilder.cpython-314.pyc +0 -0
  2456. package/lib/python3.14/xml/dom/domreg.py +99 -0
  2457. package/lib/python3.14/xml/dom/expatbuilder.py +962 -0
  2458. package/lib/python3.14/xml/dom/minicompat.py +109 -0
  2459. package/lib/python3.14/xml/dom/minidom.py +2022 -0
  2460. package/lib/python3.14/xml/dom/pulldom.py +336 -0
  2461. package/lib/python3.14/xml/dom/xmlbuilder.py +389 -0
  2462. package/lib/python3.14/xml/etree/ElementInclude.py +186 -0
  2463. package/lib/python3.14/xml/etree/ElementPath.py +423 -0
  2464. package/lib/python3.14/xml/etree/ElementTree.py +2102 -0
  2465. package/lib/python3.14/xml/etree/__init__.py +33 -0
  2466. package/lib/python3.14/xml/etree/__pycache__/ElementInclude.cpython-314.pyc +0 -0
  2467. package/lib/python3.14/xml/etree/__pycache__/ElementPath.cpython-314.pyc +0 -0
  2468. package/lib/python3.14/xml/etree/__pycache__/ElementTree.cpython-314.pyc +0 -0
  2469. package/lib/python3.14/xml/etree/__pycache__/__init__.cpython-314.pyc +0 -0
  2470. package/lib/python3.14/xml/etree/__pycache__/cElementTree.cpython-314.pyc +0 -0
  2471. package/lib/python3.14/xml/etree/cElementTree.py +3 -0
  2472. package/lib/python3.14/xml/parsers/__init__.py +8 -0
  2473. package/lib/python3.14/xml/parsers/__pycache__/__init__.cpython-314.pyc +0 -0
  2474. package/lib/python3.14/xml/parsers/__pycache__/expat.cpython-314.pyc +0 -0
  2475. package/lib/python3.14/xml/parsers/expat.py +8 -0
  2476. package/lib/python3.14/xml/sax/__init__.py +100 -0
  2477. package/lib/python3.14/xml/sax/__pycache__/__init__.cpython-314.pyc +0 -0
  2478. package/lib/python3.14/xml/sax/__pycache__/_exceptions.cpython-314.pyc +0 -0
  2479. package/lib/python3.14/xml/sax/__pycache__/expatreader.cpython-314.pyc +0 -0
  2480. package/lib/python3.14/xml/sax/__pycache__/handler.cpython-314.pyc +0 -0
  2481. package/lib/python3.14/xml/sax/__pycache__/saxutils.cpython-314.pyc +0 -0
  2482. package/lib/python3.14/xml/sax/__pycache__/xmlreader.cpython-314.pyc +0 -0
  2483. package/lib/python3.14/xml/sax/_exceptions.py +127 -0
  2484. package/lib/python3.14/xml/sax/expatreader.py +454 -0
  2485. package/lib/python3.14/xml/sax/handler.py +387 -0
  2486. package/lib/python3.14/xml/sax/saxutils.py +369 -0
  2487. package/lib/python3.14/xml/sax/xmlreader.py +378 -0
  2488. package/lib/python3.14/xmlrpc/__init__.py +1 -0
  2489. package/lib/python3.14/xmlrpc/__pycache__/__init__.cpython-314.pyc +0 -0
  2490. package/lib/python3.14/xmlrpc/__pycache__/client.cpython-314.pyc +0 -0
  2491. package/lib/python3.14/xmlrpc/__pycache__/server.cpython-314.pyc +0 -0
  2492. package/lib/python3.14/xmlrpc/client.py +1503 -0
  2493. package/lib/python3.14/xmlrpc/server.py +1003 -0
  2494. package/lib/python3.14/zipapp.py +231 -0
  2495. package/lib/python3.14/zipfile/__init__.py +2435 -0
  2496. package/lib/python3.14/zipfile/__main__.py +4 -0
  2497. package/lib/python3.14/zipfile/__pycache__/__init__.cpython-314.pyc +0 -0
  2498. package/lib/python3.14/zipfile/__pycache__/__main__.cpython-314.pyc +0 -0
  2499. package/lib/python3.14/zipfile/_path/__init__.py +452 -0
  2500. package/lib/python3.14/zipfile/_path/__pycache__/__init__.cpython-314.pyc +0 -0
  2501. package/lib/python3.14/zipfile/_path/__pycache__/glob.cpython-314.pyc +0 -0
  2502. package/lib/python3.14/zipfile/_path/glob.py +113 -0
  2503. package/lib/python3.14/zipimport.py +822 -0
  2504. package/lib/python3.14/zoneinfo/__init__.py +34 -0
  2505. package/lib/python3.14/zoneinfo/__pycache__/__init__.cpython-314.pyc +0 -0
  2506. package/lib/python3.14/zoneinfo/__pycache__/_common.cpython-314.pyc +0 -0
  2507. package/lib/python3.14/zoneinfo/__pycache__/_tzpath.cpython-314.pyc +0 -0
  2508. package/lib/python3.14/zoneinfo/__pycache__/_zoneinfo.cpython-314.pyc +0 -0
  2509. package/lib/python3.14/zoneinfo/_common.py +169 -0
  2510. package/lib/python3.14/zoneinfo/_tzpath.py +189 -0
  2511. package/lib/python3.14/zoneinfo/_zoneinfo.py +772 -0
  2512. package/package.json +62 -0
@@ -0,0 +1,3097 @@
1
+ """Header value parser implementing various email-related RFC parsing rules.
2
+
3
+ The parsing methods defined in this module implement various email related
4
+ parsing rules. Principal among them is RFC 5322, which is the followon
5
+ to RFC 2822 and primarily a clarification of the former. It also implements
6
+ RFC 2047 encoded word decoding.
7
+
8
+ RFC 5322 goes to considerable trouble to maintain backward compatibility with
9
+ RFC 822 in the parse phase, while cleaning up the structure on the generation
10
+ phase. This parser supports correct RFC 5322 generation by tagging white space
11
+ as folding white space only when folding is allowed in the non-obsolete rule
12
+ sets. Actually, the parser is even more generous when accepting input than RFC
13
+ 5322 mandates, following the spirit of Postel's Law, which RFC 5322 encourages.
14
+ Where possible deviations from the standard are annotated on the 'defects'
15
+ attribute of tokens that deviate.
16
+
17
+ The general structure of the parser follows RFC 5322, and uses its terminology
18
+ where there is a direct correspondence. Where the implementation requires a
19
+ somewhat different structure than that used by the formal grammar, new terms
20
+ that mimic the closest existing terms are used. Thus, it really helps to have
21
+ a copy of RFC 5322 handy when studying this code.
22
+
23
+ Input to the parser is a string that has already been unfolded according to
24
+ RFC 5322 rules. According to the RFC this unfolding is the very first step, and
25
+ this parser leaves the unfolding step to a higher level message parser, which
26
+ will have already detected the line breaks that need unfolding while
27
+ determining the beginning and end of each header.
28
+
29
+ The output of the parser is a TokenList object, which is a list subclass. A
30
+ TokenList is a recursive data structure. The terminal nodes of the structure
31
+ are Terminal objects, which are subclasses of str. These do not correspond
32
+ directly to terminal objects in the formal grammar, but are instead more
33
+ practical higher level combinations of true terminals.
34
+
35
+ All TokenList and Terminal objects have a 'value' attribute, which produces the
36
+ semantically meaningful value of that part of the parse subtree. The value of
37
+ all whitespace tokens (no matter how many sub-tokens they may contain) is a
38
+ single space, as per the RFC rules. This includes 'CFWS', which is herein
39
+ included in the general class of whitespace tokens. There is one exception to
40
+ the rule that whitespace tokens are collapsed into single spaces in values: in
41
+ the value of a 'bare-quoted-string' (a quoted-string with no leading or
42
+ trailing whitespace), any whitespace that appeared between the quotation marks
43
+ is preserved in the returned value. Note that in all Terminal strings quoted
44
+ pairs are turned into their unquoted values.
45
+
46
+ All TokenList and Terminal objects also have a string value, which attempts to
47
+ be a "canonical" representation of the RFC-compliant form of the substring that
48
+ produced the parsed subtree, including minimal use of quoted pair quoting.
49
+ Whitespace runs are not collapsed.
50
+
51
+ Comment tokens also have a 'content' attribute providing the string found
52
+ between the parens (including any nested comments) with whitespace preserved.
53
+
54
+ All TokenList and Terminal objects have a 'defects' attribute which is a
55
+ possibly empty list all of the defects found while creating the token. Defects
56
+ may appear on any token in the tree, and a composite list of all defects in the
57
+ subtree is available through the 'all_defects' attribute of any node. (For
58
+ Terminal notes x.defects == x.all_defects.)
59
+
60
+ Each object in a parse tree is called a 'token', and each has a 'token_type'
61
+ attribute that gives the name from the RFC 5322 grammar that it represents.
62
+ Not all RFC 5322 nodes are produced, and there is one non-RFC 5322 node that
63
+ may be produced: 'ptext'. A 'ptext' is a string of printable ascii characters.
64
+ It is returned in place of lists of (ctext/quoted-pair) and
65
+ (qtext/quoted-pair).
66
+
67
+ XXX: provide complete list of token types.
68
+ """
69
+
70
+ import re
71
+ import sys
72
+ import urllib # For urllib.parse.unquote
73
+ from string import hexdigits
74
+ from operator import itemgetter
75
+ from email import _encoded_words as _ew
76
+ from email import errors
77
+ from email import utils
78
+
79
+ #
80
+ # Useful constants and functions
81
+ #
82
+
83
+ WSP = set(' \t')
84
+ CFWS_LEADER = WSP | set('(')
85
+ SPECIALS = set(r'()<>@,:;.\"[]')
86
+ ATOM_ENDS = SPECIALS | WSP
87
+ DOT_ATOM_ENDS = ATOM_ENDS - set('.')
88
+ # '.', '"', and '(' do not end phrases in order to support obs-phrase
89
+ PHRASE_ENDS = SPECIALS - set('."(')
90
+ TSPECIALS = (SPECIALS | set('/?=')) - set('.')
91
+ TOKEN_ENDS = TSPECIALS | WSP
92
+ ASPECIALS = TSPECIALS | set("*'%")
93
+ ATTRIBUTE_ENDS = ASPECIALS | WSP
94
+ EXTENDED_ATTRIBUTE_ENDS = ATTRIBUTE_ENDS - set('%')
95
+ NLSET = {'\n', '\r'}
96
+ SPECIALSNL = SPECIALS | NLSET
97
+
98
+
99
+ def make_quoted_pairs(value):
100
+ """Escape dquote and backslash for use within a quoted-string."""
101
+ return str(value).replace('\\', '\\\\').replace('"', '\\"')
102
+
103
+
104
+ def quote_string(value):
105
+ escaped = make_quoted_pairs(value)
106
+ return f'"{escaped}"'
107
+
108
+
109
+ # Match a RFC 2047 word, looks like =?utf-8?q?someword?=
110
+ rfc2047_matcher = re.compile(r'''
111
+ =\? # literal =?
112
+ [^?]* # charset
113
+ \? # literal ?
114
+ [qQbB] # literal 'q' or 'b', case insensitive
115
+ \? # literal ?
116
+ .*? # encoded word
117
+ \?= # literal ?=
118
+ ''', re.VERBOSE | re.MULTILINE)
119
+
120
+
121
+ #
122
+ # TokenList and its subclasses
123
+ #
124
+
125
+ class TokenList(list):
126
+
127
+ token_type = None
128
+ syntactic_break = True
129
+ ew_combine_allowed = True
130
+
131
+ def __init__(self, *args, **kw):
132
+ super().__init__(*args, **kw)
133
+ self.defects = []
134
+
135
+ def __str__(self):
136
+ return ''.join(str(x) for x in self)
137
+
138
+ def __repr__(self):
139
+ return '{}({})'.format(self.__class__.__name__,
140
+ super().__repr__())
141
+
142
+ @property
143
+ def value(self):
144
+ return ''.join(x.value for x in self if x.value)
145
+
146
+ @property
147
+ def all_defects(self):
148
+ return sum((x.all_defects for x in self), self.defects)
149
+
150
+ def startswith_fws(self):
151
+ return self[0].startswith_fws()
152
+
153
+ @property
154
+ def as_ew_allowed(self):
155
+ """True if all top level tokens of this part may be RFC2047 encoded."""
156
+ return all(part.as_ew_allowed for part in self)
157
+
158
+ @property
159
+ def comments(self):
160
+ comments = []
161
+ for token in self:
162
+ comments.extend(token.comments)
163
+ return comments
164
+
165
+ def fold(self, *, policy):
166
+ return _refold_parse_tree(self, policy=policy)
167
+
168
+ def pprint(self, indent=''):
169
+ print(self.ppstr(indent=indent))
170
+
171
+ def ppstr(self, indent=''):
172
+ return '\n'.join(self._pp(indent=indent))
173
+
174
+ def _pp(self, indent=''):
175
+ yield '{}{}/{}('.format(
176
+ indent,
177
+ self.__class__.__name__,
178
+ self.token_type)
179
+ for token in self:
180
+ if not hasattr(token, '_pp'):
181
+ yield (indent + ' !! invalid element in token '
182
+ 'list: {!r}'.format(token))
183
+ else:
184
+ yield from token._pp(indent+' ')
185
+ if self.defects:
186
+ extra = ' Defects: {}'.format(self.defects)
187
+ else:
188
+ extra = ''
189
+ yield '{}){}'.format(indent, extra)
190
+
191
+
192
+ class WhiteSpaceTokenList(TokenList):
193
+
194
+ @property
195
+ def value(self):
196
+ return ' '
197
+
198
+ @property
199
+ def comments(self):
200
+ return [x.content for x in self if x.token_type=='comment']
201
+
202
+
203
+ class UnstructuredTokenList(TokenList):
204
+ token_type = 'unstructured'
205
+
206
+
207
+ class Phrase(TokenList):
208
+ token_type = 'phrase'
209
+
210
+ class Word(TokenList):
211
+ token_type = 'word'
212
+
213
+
214
+ class CFWSList(WhiteSpaceTokenList):
215
+ token_type = 'cfws'
216
+
217
+
218
+ class Atom(TokenList):
219
+ token_type = 'atom'
220
+
221
+
222
+ class Token(TokenList):
223
+ token_type = 'token'
224
+ encode_as_ew = False
225
+
226
+
227
+ class EncodedWord(TokenList):
228
+ token_type = 'encoded-word'
229
+ cte = None
230
+ charset = None
231
+ lang = None
232
+
233
+
234
+ class QuotedString(TokenList):
235
+
236
+ token_type = 'quoted-string'
237
+
238
+ @property
239
+ def content(self):
240
+ for x in self:
241
+ if x.token_type == 'bare-quoted-string':
242
+ return x.value
243
+
244
+ @property
245
+ def quoted_value(self):
246
+ res = []
247
+ for x in self:
248
+ if x.token_type == 'bare-quoted-string':
249
+ res.append(str(x))
250
+ else:
251
+ res.append(x.value)
252
+ return ''.join(res)
253
+
254
+ @property
255
+ def stripped_value(self):
256
+ for token in self:
257
+ if token.token_type == 'bare-quoted-string':
258
+ return token.value
259
+
260
+
261
+ class BareQuotedString(QuotedString):
262
+
263
+ token_type = 'bare-quoted-string'
264
+
265
+ def __str__(self):
266
+ return quote_string(''.join(str(x) for x in self))
267
+
268
+ @property
269
+ def value(self):
270
+ return ''.join(str(x) for x in self)
271
+
272
+
273
+ class Comment(WhiteSpaceTokenList):
274
+
275
+ token_type = 'comment'
276
+
277
+ def __str__(self):
278
+ return ''.join(sum([
279
+ ["("],
280
+ [self.quote(x) for x in self],
281
+ [")"],
282
+ ], []))
283
+
284
+ def quote(self, value):
285
+ if value.token_type == 'comment':
286
+ return str(value)
287
+ return str(value).replace('\\', '\\\\').replace(
288
+ '(', r'\(').replace(
289
+ ')', r'\)')
290
+
291
+ @property
292
+ def content(self):
293
+ return ''.join(str(x) for x in self)
294
+
295
+ @property
296
+ def comments(self):
297
+ return [self.content]
298
+
299
+ class AddressList(TokenList):
300
+
301
+ token_type = 'address-list'
302
+
303
+ @property
304
+ def addresses(self):
305
+ return [x for x in self if x.token_type=='address']
306
+
307
+ @property
308
+ def mailboxes(self):
309
+ return sum((x.mailboxes
310
+ for x in self if x.token_type=='address'), [])
311
+
312
+ @property
313
+ def all_mailboxes(self):
314
+ return sum((x.all_mailboxes
315
+ for x in self if x.token_type=='address'), [])
316
+
317
+
318
+ class Address(TokenList):
319
+
320
+ token_type = 'address'
321
+
322
+ @property
323
+ def display_name(self):
324
+ if self[0].token_type == 'group':
325
+ return self[0].display_name
326
+
327
+ @property
328
+ def mailboxes(self):
329
+ if self[0].token_type == 'mailbox':
330
+ return [self[0]]
331
+ elif self[0].token_type == 'invalid-mailbox':
332
+ return []
333
+ return self[0].mailboxes
334
+
335
+ @property
336
+ def all_mailboxes(self):
337
+ if self[0].token_type == 'mailbox':
338
+ return [self[0]]
339
+ elif self[0].token_type == 'invalid-mailbox':
340
+ return [self[0]]
341
+ return self[0].all_mailboxes
342
+
343
+ class MailboxList(TokenList):
344
+
345
+ token_type = 'mailbox-list'
346
+
347
+ @property
348
+ def mailboxes(self):
349
+ return [x for x in self if x.token_type=='mailbox']
350
+
351
+ @property
352
+ def all_mailboxes(self):
353
+ return [x for x in self
354
+ if x.token_type in ('mailbox', 'invalid-mailbox')]
355
+
356
+
357
+ class GroupList(TokenList):
358
+
359
+ token_type = 'group-list'
360
+
361
+ @property
362
+ def mailboxes(self):
363
+ if not self or self[0].token_type != 'mailbox-list':
364
+ return []
365
+ return self[0].mailboxes
366
+
367
+ @property
368
+ def all_mailboxes(self):
369
+ if not self or self[0].token_type != 'mailbox-list':
370
+ return []
371
+ return self[0].all_mailboxes
372
+
373
+
374
+ class Group(TokenList):
375
+
376
+ token_type = "group"
377
+
378
+ @property
379
+ def mailboxes(self):
380
+ if self[2].token_type != 'group-list':
381
+ return []
382
+ return self[2].mailboxes
383
+
384
+ @property
385
+ def all_mailboxes(self):
386
+ if self[2].token_type != 'group-list':
387
+ return []
388
+ return self[2].all_mailboxes
389
+
390
+ @property
391
+ def display_name(self):
392
+ return self[0].display_name
393
+
394
+
395
+ class NameAddr(TokenList):
396
+
397
+ token_type = 'name-addr'
398
+
399
+ @property
400
+ def display_name(self):
401
+ if len(self) == 1:
402
+ return None
403
+ return self[0].display_name
404
+
405
+ @property
406
+ def local_part(self):
407
+ return self[-1].local_part
408
+
409
+ @property
410
+ def domain(self):
411
+ return self[-1].domain
412
+
413
+ @property
414
+ def route(self):
415
+ return self[-1].route
416
+
417
+ @property
418
+ def addr_spec(self):
419
+ return self[-1].addr_spec
420
+
421
+
422
+ class AngleAddr(TokenList):
423
+
424
+ token_type = 'angle-addr'
425
+
426
+ @property
427
+ def local_part(self):
428
+ for x in self:
429
+ if x.token_type == 'addr-spec':
430
+ return x.local_part
431
+
432
+ @property
433
+ def domain(self):
434
+ for x in self:
435
+ if x.token_type == 'addr-spec':
436
+ return x.domain
437
+
438
+ @property
439
+ def route(self):
440
+ for x in self:
441
+ if x.token_type == 'obs-route':
442
+ return x.domains
443
+
444
+ @property
445
+ def addr_spec(self):
446
+ for x in self:
447
+ if x.token_type == 'addr-spec':
448
+ if x.local_part:
449
+ return x.addr_spec
450
+ else:
451
+ return quote_string(x.local_part) + x.addr_spec
452
+ else:
453
+ return '<>'
454
+
455
+
456
+ class ObsRoute(TokenList):
457
+
458
+ token_type = 'obs-route'
459
+
460
+ @property
461
+ def domains(self):
462
+ return [x.domain for x in self if x.token_type == 'domain']
463
+
464
+
465
+ class Mailbox(TokenList):
466
+
467
+ token_type = 'mailbox'
468
+
469
+ @property
470
+ def display_name(self):
471
+ if self[0].token_type == 'name-addr':
472
+ return self[0].display_name
473
+
474
+ @property
475
+ def local_part(self):
476
+ return self[0].local_part
477
+
478
+ @property
479
+ def domain(self):
480
+ return self[0].domain
481
+
482
+ @property
483
+ def route(self):
484
+ if self[0].token_type == 'name-addr':
485
+ return self[0].route
486
+
487
+ @property
488
+ def addr_spec(self):
489
+ return self[0].addr_spec
490
+
491
+
492
+ class InvalidMailbox(TokenList):
493
+
494
+ token_type = 'invalid-mailbox'
495
+
496
+ @property
497
+ def display_name(self):
498
+ return None
499
+
500
+ local_part = domain = route = addr_spec = display_name
501
+
502
+
503
+ class Domain(TokenList):
504
+
505
+ token_type = 'domain'
506
+ as_ew_allowed = False
507
+
508
+ @property
509
+ def domain(self):
510
+ return ''.join(super().value.split())
511
+
512
+
513
+ class DotAtom(TokenList):
514
+ token_type = 'dot-atom'
515
+
516
+
517
+ class DotAtomText(TokenList):
518
+ token_type = 'dot-atom-text'
519
+ as_ew_allowed = True
520
+
521
+
522
+ class NoFoldLiteral(TokenList):
523
+ token_type = 'no-fold-literal'
524
+ as_ew_allowed = False
525
+
526
+
527
+ class AddrSpec(TokenList):
528
+
529
+ token_type = 'addr-spec'
530
+ as_ew_allowed = False
531
+
532
+ @property
533
+ def local_part(self):
534
+ return self[0].local_part
535
+
536
+ @property
537
+ def domain(self):
538
+ if len(self) < 3:
539
+ return None
540
+ return self[-1].domain
541
+
542
+ @property
543
+ def value(self):
544
+ if len(self) < 3:
545
+ return self[0].value
546
+ return self[0].value.rstrip()+self[1].value+self[2].value.lstrip()
547
+
548
+ @property
549
+ def addr_spec(self):
550
+ nameset = set(self.local_part)
551
+ if len(nameset) > len(nameset-DOT_ATOM_ENDS):
552
+ lp = quote_string(self.local_part)
553
+ else:
554
+ lp = self.local_part
555
+ if self.domain is not None:
556
+ return lp + '@' + self.domain
557
+ return lp
558
+
559
+
560
+ class ObsLocalPart(TokenList):
561
+
562
+ token_type = 'obs-local-part'
563
+ as_ew_allowed = False
564
+
565
+
566
+ class DisplayName(Phrase):
567
+
568
+ token_type = 'display-name'
569
+ ew_combine_allowed = False
570
+
571
+ @property
572
+ def display_name(self):
573
+ res = TokenList(self)
574
+ if len(res) == 0:
575
+ return res.value
576
+ if res[0].token_type == 'cfws':
577
+ res.pop(0)
578
+ else:
579
+ if (isinstance(res[0], TokenList) and
580
+ res[0][0].token_type == 'cfws'):
581
+ res[0] = TokenList(res[0][1:])
582
+ if res[-1].token_type == 'cfws':
583
+ res.pop()
584
+ else:
585
+ if (isinstance(res[-1], TokenList) and
586
+ res[-1][-1].token_type == 'cfws'):
587
+ res[-1] = TokenList(res[-1][:-1])
588
+ return res.value
589
+
590
+ @property
591
+ def value(self):
592
+ quote = False
593
+ if self.defects:
594
+ quote = True
595
+ else:
596
+ for x in self:
597
+ if x.token_type == 'quoted-string':
598
+ quote = True
599
+ if len(self) != 0 and quote:
600
+ pre = post = ''
601
+ if (self[0].token_type == 'cfws' or
602
+ isinstance(self[0], TokenList) and
603
+ self[0][0].token_type == 'cfws'):
604
+ pre = ' '
605
+ if (self[-1].token_type == 'cfws' or
606
+ isinstance(self[-1], TokenList) and
607
+ self[-1][-1].token_type == 'cfws'):
608
+ post = ' '
609
+ return pre+quote_string(self.display_name)+post
610
+ else:
611
+ return super().value
612
+
613
+
614
+ class LocalPart(TokenList):
615
+
616
+ token_type = 'local-part'
617
+ as_ew_allowed = False
618
+
619
+ @property
620
+ def value(self):
621
+ if self[0].token_type == "quoted-string":
622
+ return self[0].quoted_value
623
+ else:
624
+ return self[0].value
625
+
626
+ @property
627
+ def local_part(self):
628
+ # Strip whitespace from front, back, and around dots.
629
+ res = [DOT]
630
+ last = DOT
631
+ last_is_tl = False
632
+ for tok in self[0] + [DOT]:
633
+ if tok.token_type == 'cfws':
634
+ continue
635
+ if (last_is_tl and tok.token_type == 'dot' and
636
+ last[-1].token_type == 'cfws'):
637
+ res[-1] = TokenList(last[:-1])
638
+ is_tl = isinstance(tok, TokenList)
639
+ if (is_tl and last.token_type == 'dot' and
640
+ tok[0].token_type == 'cfws'):
641
+ res.append(TokenList(tok[1:]))
642
+ else:
643
+ res.append(tok)
644
+ last = res[-1]
645
+ last_is_tl = is_tl
646
+ res = TokenList(res[1:-1])
647
+ return res.value
648
+
649
+
650
+ class DomainLiteral(TokenList):
651
+
652
+ token_type = 'domain-literal'
653
+ as_ew_allowed = False
654
+
655
+ @property
656
+ def domain(self):
657
+ return ''.join(super().value.split())
658
+
659
+ @property
660
+ def ip(self):
661
+ for x in self:
662
+ if x.token_type == 'ptext':
663
+ return x.value
664
+
665
+
666
+ class MIMEVersion(TokenList):
667
+
668
+ token_type = 'mime-version'
669
+ major = None
670
+ minor = None
671
+
672
+
673
+ class Parameter(TokenList):
674
+
675
+ token_type = 'parameter'
676
+ sectioned = False
677
+ extended = False
678
+ charset = 'us-ascii'
679
+
680
+ @property
681
+ def section_number(self):
682
+ # Because the first token, the attribute (name) eats CFWS, the second
683
+ # token is always the section if there is one.
684
+ return self[1].number if self.sectioned else 0
685
+
686
+ @property
687
+ def param_value(self):
688
+ # This is part of the "handle quoted extended parameters" hack.
689
+ for token in self:
690
+ if token.token_type == 'value':
691
+ return token.stripped_value
692
+ if token.token_type == 'quoted-string':
693
+ for token in token:
694
+ if token.token_type == 'bare-quoted-string':
695
+ for token in token:
696
+ if token.token_type == 'value':
697
+ return token.stripped_value
698
+ return ''
699
+
700
+
701
+ class InvalidParameter(Parameter):
702
+
703
+ token_type = 'invalid-parameter'
704
+
705
+
706
+ class Attribute(TokenList):
707
+
708
+ token_type = 'attribute'
709
+
710
+ @property
711
+ def stripped_value(self):
712
+ for token in self:
713
+ if token.token_type.endswith('attrtext'):
714
+ return token.value
715
+
716
+ class Section(TokenList):
717
+
718
+ token_type = 'section'
719
+ number = None
720
+
721
+
722
+ class Value(TokenList):
723
+
724
+ token_type = 'value'
725
+
726
+ @property
727
+ def stripped_value(self):
728
+ token = self[0]
729
+ if token.token_type == 'cfws':
730
+ token = self[1]
731
+ if token.token_type.endswith(
732
+ ('quoted-string', 'attribute', 'extended-attribute')):
733
+ return token.stripped_value
734
+ return self.value
735
+
736
+
737
+ class MimeParameters(TokenList):
738
+
739
+ token_type = 'mime-parameters'
740
+ syntactic_break = False
741
+
742
+ @property
743
+ def params(self):
744
+ # The RFC specifically states that the ordering of parameters is not
745
+ # guaranteed and may be reordered by the transport layer. So we have
746
+ # to assume the RFC 2231 pieces can come in any order. However, we
747
+ # output them in the order that we first see a given name, which gives
748
+ # us a stable __str__.
749
+ params = {} # Using order preserving dict from Python 3.7+
750
+ for token in self:
751
+ if not token.token_type.endswith('parameter'):
752
+ continue
753
+ if token[0].token_type != 'attribute':
754
+ continue
755
+ name = token[0].value.strip()
756
+ if name not in params:
757
+ params[name] = []
758
+ params[name].append((token.section_number, token))
759
+ for name, parts in params.items():
760
+ parts = sorted(parts, key=itemgetter(0))
761
+ first_param = parts[0][1]
762
+ charset = first_param.charset
763
+ # Our arbitrary error recovery is to ignore duplicate parameters,
764
+ # to use appearance order if there are duplicate rfc 2231 parts,
765
+ # and to ignore gaps. This mimics the error recovery of get_param.
766
+ if not first_param.extended and len(parts) > 1:
767
+ if parts[1][0] == 0:
768
+ parts[1][1].defects.append(errors.InvalidHeaderDefect(
769
+ 'duplicate parameter name; duplicate(s) ignored'))
770
+ parts = parts[:1]
771
+ # Else assume the *0* was missing...note that this is different
772
+ # from get_param, but we registered a defect for this earlier.
773
+ value_parts = []
774
+ i = 0
775
+ for section_number, param in parts:
776
+ if section_number != i:
777
+ # We could get fancier here and look for a complete
778
+ # duplicate extended parameter and ignore the second one
779
+ # seen. But we're not doing that. The old code didn't.
780
+ if not param.extended:
781
+ param.defects.append(errors.InvalidHeaderDefect(
782
+ 'duplicate parameter name; duplicate ignored'))
783
+ continue
784
+ else:
785
+ param.defects.append(errors.InvalidHeaderDefect(
786
+ "inconsistent RFC2231 parameter numbering"))
787
+ i += 1
788
+ value = param.param_value
789
+ if param.extended:
790
+ try:
791
+ value = urllib.parse.unquote_to_bytes(value)
792
+ except UnicodeEncodeError:
793
+ # source had surrogate escaped bytes. What we do now
794
+ # is a bit of an open question. I'm not sure this is
795
+ # the best choice, but it is what the old algorithm did
796
+ value = urllib.parse.unquote(value, encoding='latin-1')
797
+ else:
798
+ try:
799
+ value = value.decode(charset, 'surrogateescape')
800
+ except (LookupError, UnicodeEncodeError):
801
+ # XXX: there should really be a custom defect for
802
+ # unknown character set to make it easy to find,
803
+ # because otherwise unknown charset is a silent
804
+ # failure.
805
+ value = value.decode('us-ascii', 'surrogateescape')
806
+ if utils._has_surrogates(value):
807
+ param.defects.append(errors.UndecodableBytesDefect())
808
+ value_parts.append(value)
809
+ value = ''.join(value_parts)
810
+ yield name, value
811
+
812
+ def __str__(self):
813
+ params = []
814
+ for name, value in self.params:
815
+ if value:
816
+ params.append('{}={}'.format(name, quote_string(value)))
817
+ else:
818
+ params.append(name)
819
+ params = '; '.join(params)
820
+ return ' ' + params if params else ''
821
+
822
+
823
+ class ParameterizedHeaderValue(TokenList):
824
+
825
+ # Set this false so that the value doesn't wind up on a new line even
826
+ # if it and the parameters would fit there but not on the first line.
827
+ syntactic_break = False
828
+
829
+ @property
830
+ def params(self):
831
+ for token in reversed(self):
832
+ if token.token_type == 'mime-parameters':
833
+ return token.params
834
+ return {}
835
+
836
+
837
+ class ContentType(ParameterizedHeaderValue):
838
+ token_type = 'content-type'
839
+ as_ew_allowed = False
840
+ maintype = 'text'
841
+ subtype = 'plain'
842
+
843
+
844
+ class ContentDisposition(ParameterizedHeaderValue):
845
+ token_type = 'content-disposition'
846
+ as_ew_allowed = False
847
+ content_disposition = None
848
+
849
+
850
+ class ContentTransferEncoding(TokenList):
851
+ token_type = 'content-transfer-encoding'
852
+ as_ew_allowed = False
853
+ cte = '7bit'
854
+
855
+
856
+ class HeaderLabel(TokenList):
857
+ token_type = 'header-label'
858
+ as_ew_allowed = False
859
+
860
+
861
+ class MsgID(TokenList):
862
+ token_type = 'msg-id'
863
+ as_ew_allowed = False
864
+
865
+ def fold(self, policy):
866
+ # message-id tokens may not be folded.
867
+ return str(self) + policy.linesep
868
+
869
+
870
+ class MessageID(MsgID):
871
+ token_type = 'message-id'
872
+
873
+
874
+ class InvalidMessageID(MessageID):
875
+ token_type = 'invalid-message-id'
876
+
877
+
878
+ class Header(TokenList):
879
+ token_type = 'header'
880
+
881
+
882
+ #
883
+ # Terminal classes and instances
884
+ #
885
+
886
+ class Terminal(str):
887
+
888
+ as_ew_allowed = True
889
+ ew_combine_allowed = True
890
+ syntactic_break = True
891
+
892
+ def __new__(cls, value, token_type):
893
+ self = super().__new__(cls, value)
894
+ self.token_type = token_type
895
+ self.defects = []
896
+ return self
897
+
898
+ def __repr__(self):
899
+ return "{}({})".format(self.__class__.__name__, super().__repr__())
900
+
901
+ def pprint(self):
902
+ print(self.__class__.__name__ + '/' + self.token_type)
903
+
904
+ @property
905
+ def all_defects(self):
906
+ return list(self.defects)
907
+
908
+ def _pp(self, indent=''):
909
+ return ["{}{}/{}({}){}".format(
910
+ indent,
911
+ self.__class__.__name__,
912
+ self.token_type,
913
+ super().__repr__(),
914
+ '' if not self.defects else ' {}'.format(self.defects),
915
+ )]
916
+
917
+ def pop_trailing_ws(self):
918
+ # This terminates the recursion.
919
+ return None
920
+
921
+ @property
922
+ def comments(self):
923
+ return []
924
+
925
+ def __getnewargs__(self):
926
+ return(str(self), self.token_type)
927
+
928
+
929
+ class WhiteSpaceTerminal(Terminal):
930
+
931
+ @property
932
+ def value(self):
933
+ return ' '
934
+
935
+ def startswith_fws(self):
936
+ return True
937
+
938
+
939
+ class ValueTerminal(Terminal):
940
+
941
+ @property
942
+ def value(self):
943
+ return self
944
+
945
+ def startswith_fws(self):
946
+ return False
947
+
948
+
949
+ class EWWhiteSpaceTerminal(WhiteSpaceTerminal):
950
+
951
+ @property
952
+ def value(self):
953
+ return ''
954
+
955
+ def __str__(self):
956
+ return ''
957
+
958
+
959
+ class _InvalidEwError(errors.HeaderParseError):
960
+ """Invalid encoded word found while parsing headers."""
961
+
962
+
963
+ # XXX these need to become classes and used as instances so
964
+ # that a program can't change them in a parse tree and screw
965
+ # up other parse trees. Maybe should have tests for that, too.
966
+ DOT = ValueTerminal('.', 'dot')
967
+ ListSeparator = ValueTerminal(',', 'list-separator')
968
+ ListSeparator.as_ew_allowed = False
969
+ ListSeparator.syntactic_break = False
970
+ RouteComponentMarker = ValueTerminal('@', 'route-component-marker')
971
+
972
+ #
973
+ # Parser
974
+ #
975
+
976
+ # Parse strings according to RFC822/2047/2822/5322 rules.
977
+ #
978
+ # This is a stateless parser. Each get_XXX function accepts a string and
979
+ # returns either a Terminal or a TokenList representing the RFC object named
980
+ # by the method and a string containing the remaining unparsed characters
981
+ # from the input. Thus a parser method consumes the next syntactic construct
982
+ # of a given type and returns a token representing the construct plus the
983
+ # unparsed remainder of the input string.
984
+ #
985
+ # For example, if the first element of a structured header is a 'phrase',
986
+ # then:
987
+ #
988
+ # phrase, value = get_phrase(value)
989
+ #
990
+ # returns the complete phrase from the start of the string value, plus any
991
+ # characters left in the string after the phrase is removed.
992
+
993
+ _wsp_splitter = re.compile(r'([{}]+)'.format(''.join(WSP))).split
994
+ _non_atom_end_matcher = re.compile(r"[^{}]+".format(
995
+ re.escape(''.join(ATOM_ENDS)))).match
996
+ _non_printable_finder = re.compile(r"[\x00-\x20\x7F]").findall
997
+ _non_token_end_matcher = re.compile(r"[^{}]+".format(
998
+ re.escape(''.join(TOKEN_ENDS)))).match
999
+ _non_attribute_end_matcher = re.compile(r"[^{}]+".format(
1000
+ re.escape(''.join(ATTRIBUTE_ENDS)))).match
1001
+ _non_extended_attribute_end_matcher = re.compile(r"[^{}]+".format(
1002
+ re.escape(''.join(EXTENDED_ATTRIBUTE_ENDS)))).match
1003
+
1004
+ def _validate_xtext(xtext):
1005
+ """If input token contains ASCII non-printables, register a defect."""
1006
+
1007
+ non_printables = _non_printable_finder(xtext)
1008
+ if non_printables:
1009
+ xtext.defects.append(errors.NonPrintableDefect(non_printables))
1010
+ if utils._has_surrogates(xtext):
1011
+ xtext.defects.append(errors.UndecodableBytesDefect(
1012
+ "Non-ASCII characters found in header token"))
1013
+
1014
+ def _get_ptext_to_endchars(value, endchars):
1015
+ """Scan printables/quoted-pairs until endchars and return unquoted ptext.
1016
+
1017
+ This function turns a run of qcontent, ccontent-without-comments, or
1018
+ dtext-with-quoted-printables into a single string by unquoting any
1019
+ quoted printables. It returns the string, the remaining value, and
1020
+ a flag that is True iff there were any quoted printables decoded.
1021
+
1022
+ """
1023
+ if not value:
1024
+ return '', '', False
1025
+ fragment, *remainder = _wsp_splitter(value, 1)
1026
+ vchars = []
1027
+ escape = False
1028
+ had_qp = False
1029
+ for pos in range(len(fragment)):
1030
+ if fragment[pos] == '\\':
1031
+ if escape:
1032
+ escape = False
1033
+ had_qp = True
1034
+ else:
1035
+ escape = True
1036
+ continue
1037
+ if escape:
1038
+ escape = False
1039
+ elif fragment[pos] in endchars:
1040
+ break
1041
+ vchars.append(fragment[pos])
1042
+ else:
1043
+ pos = pos + 1
1044
+ return ''.join(vchars), ''.join([fragment[pos:]] + remainder), had_qp
1045
+
1046
+ def get_fws(value):
1047
+ """FWS = 1*WSP
1048
+
1049
+ This isn't the RFC definition. We're using fws to represent tokens where
1050
+ folding can be done, but when we are parsing the *un*folding has already
1051
+ been done so we don't need to watch out for CRLF.
1052
+
1053
+ """
1054
+ newvalue = value.lstrip()
1055
+ fws = WhiteSpaceTerminal(value[:len(value)-len(newvalue)], 'fws')
1056
+ return fws, newvalue
1057
+
1058
+ def get_encoded_word(value, terminal_type='vtext'):
1059
+ """ encoded-word = "=?" charset "?" encoding "?" encoded-text "?="
1060
+
1061
+ """
1062
+ ew = EncodedWord()
1063
+ if not value.startswith('=?'):
1064
+ raise errors.HeaderParseError(
1065
+ "expected encoded word but found {}".format(value))
1066
+ tok, *remainder = value[2:].split('?=', 1)
1067
+ if tok == value[2:]:
1068
+ raise errors.HeaderParseError(
1069
+ "expected encoded word but found {}".format(value))
1070
+ remstr = ''.join(remainder)
1071
+ if (len(remstr) > 1 and
1072
+ remstr[0] in hexdigits and
1073
+ remstr[1] in hexdigits and
1074
+ tok.count('?') < 2):
1075
+ # The ? after the CTE was followed by an encoded word escape (=XX).
1076
+ rest, *remainder = remstr.split('?=', 1)
1077
+ tok = tok + '?=' + rest
1078
+ if len(tok.split()) > 1:
1079
+ ew.defects.append(errors.InvalidHeaderDefect(
1080
+ "whitespace inside encoded word"))
1081
+ ew.cte = value
1082
+ value = ''.join(remainder)
1083
+ try:
1084
+ text, charset, lang, defects = _ew.decode('=?' + tok + '?=')
1085
+ except (ValueError, KeyError):
1086
+ raise _InvalidEwError(
1087
+ "encoded word format invalid: '{}'".format(ew.cte))
1088
+ ew.charset = charset
1089
+ ew.lang = lang
1090
+ ew.defects.extend(defects)
1091
+ while text:
1092
+ if text[0] in WSP:
1093
+ token, text = get_fws(text)
1094
+ ew.append(token)
1095
+ continue
1096
+ chars, *remainder = _wsp_splitter(text, 1)
1097
+ vtext = ValueTerminal(chars, terminal_type)
1098
+ _validate_xtext(vtext)
1099
+ ew.append(vtext)
1100
+ text = ''.join(remainder)
1101
+ # Encoded words should be followed by a WS
1102
+ if value and value[0] not in WSP:
1103
+ ew.defects.append(errors.InvalidHeaderDefect(
1104
+ "missing trailing whitespace after encoded-word"))
1105
+ return ew, value
1106
+
1107
+ def get_unstructured(value):
1108
+ """unstructured = (*([FWS] vchar) *WSP) / obs-unstruct
1109
+ obs-unstruct = *((*LF *CR *(obs-utext) *LF *CR)) / FWS)
1110
+ obs-utext = %d0 / obs-NO-WS-CTL / LF / CR
1111
+
1112
+ obs-NO-WS-CTL is control characters except WSP/CR/LF.
1113
+
1114
+ So, basically, we have printable runs, plus control characters or nulls in
1115
+ the obsolete syntax, separated by whitespace. Since RFC 2047 uses the
1116
+ obsolete syntax in its specification, but requires whitespace on either
1117
+ side of the encoded words, I can see no reason to need to separate the
1118
+ non-printable-non-whitespace from the printable runs if they occur, so we
1119
+ parse this into xtext tokens separated by WSP tokens.
1120
+
1121
+ Because an 'unstructured' value must by definition constitute the entire
1122
+ value, this 'get' routine does not return a remaining value, only the
1123
+ parsed TokenList.
1124
+
1125
+ """
1126
+ # XXX: but what about bare CR and LF? They might signal the start or
1127
+ # end of an encoded word. YAGNI for now, since our current parsers
1128
+ # will never send us strings with bare CR or LF.
1129
+
1130
+ unstructured = UnstructuredTokenList()
1131
+ while value:
1132
+ if value[0] in WSP:
1133
+ token, value = get_fws(value)
1134
+ unstructured.append(token)
1135
+ continue
1136
+ valid_ew = True
1137
+ if value.startswith('=?'):
1138
+ try:
1139
+ token, value = get_encoded_word(value, 'utext')
1140
+ except _InvalidEwError:
1141
+ valid_ew = False
1142
+ except errors.HeaderParseError:
1143
+ # XXX: Need to figure out how to register defects when
1144
+ # appropriate here.
1145
+ pass
1146
+ else:
1147
+ have_ws = True
1148
+ if len(unstructured) > 0:
1149
+ if unstructured[-1].token_type != 'fws':
1150
+ unstructured.defects.append(errors.InvalidHeaderDefect(
1151
+ "missing whitespace before encoded word"))
1152
+ have_ws = False
1153
+ if have_ws and len(unstructured) > 1:
1154
+ if unstructured[-2].token_type == 'encoded-word':
1155
+ unstructured[-1] = EWWhiteSpaceTerminal(
1156
+ unstructured[-1], 'fws')
1157
+ unstructured.append(token)
1158
+ continue
1159
+ tok, *remainder = _wsp_splitter(value, 1)
1160
+ # Split in the middle of an atom if there is a rfc2047 encoded word
1161
+ # which does not have WSP on both sides. The defect will be registered
1162
+ # the next time through the loop.
1163
+ # This needs to only be performed when the encoded word is valid;
1164
+ # otherwise, performing it on an invalid encoded word can cause
1165
+ # the parser to go in an infinite loop.
1166
+ if valid_ew and rfc2047_matcher.search(tok):
1167
+ tok, *remainder = value.partition('=?')
1168
+ vtext = ValueTerminal(tok, 'utext')
1169
+ _validate_xtext(vtext)
1170
+ unstructured.append(vtext)
1171
+ value = ''.join(remainder)
1172
+ return unstructured
1173
+
1174
+ def get_qp_ctext(value):
1175
+ r"""ctext = <printable ascii except \ ( )>
1176
+
1177
+ This is not the RFC ctext, since we are handling nested comments in comment
1178
+ and unquoting quoted-pairs here. We allow anything except the '()'
1179
+ characters, but if we find any ASCII other than the RFC defined printable
1180
+ ASCII, a NonPrintableDefect is added to the token's defects list. Since
1181
+ quoted pairs are converted to their unquoted values, what is returned is
1182
+ a 'ptext' token. In this case it is a WhiteSpaceTerminal, so it's value
1183
+ is ' '.
1184
+
1185
+ """
1186
+ ptext, value, _ = _get_ptext_to_endchars(value, '()')
1187
+ ptext = WhiteSpaceTerminal(ptext, 'ptext')
1188
+ _validate_xtext(ptext)
1189
+ return ptext, value
1190
+
1191
+ def get_qcontent(value):
1192
+ """qcontent = qtext / quoted-pair
1193
+
1194
+ We allow anything except the DQUOTE character, but if we find any ASCII
1195
+ other than the RFC defined printable ASCII, a NonPrintableDefect is
1196
+ added to the token's defects list. Any quoted pairs are converted to their
1197
+ unquoted values, so what is returned is a 'ptext' token. In this case it
1198
+ is a ValueTerminal.
1199
+
1200
+ """
1201
+ ptext, value, _ = _get_ptext_to_endchars(value, '"')
1202
+ ptext = ValueTerminal(ptext, 'ptext')
1203
+ _validate_xtext(ptext)
1204
+ return ptext, value
1205
+
1206
+ def get_atext(value):
1207
+ """atext = <matches _atext_matcher>
1208
+
1209
+ We allow any non-ATOM_ENDS in atext, but add an InvalidATextDefect to
1210
+ the token's defects list if we find non-atext characters.
1211
+ """
1212
+ m = _non_atom_end_matcher(value)
1213
+ if not m:
1214
+ raise errors.HeaderParseError(
1215
+ "expected atext but found '{}'".format(value))
1216
+ atext = m.group()
1217
+ value = value[len(atext):]
1218
+ atext = ValueTerminal(atext, 'atext')
1219
+ _validate_xtext(atext)
1220
+ return atext, value
1221
+
1222
+ def get_bare_quoted_string(value):
1223
+ """bare-quoted-string = DQUOTE *([FWS] qcontent) [FWS] DQUOTE
1224
+
1225
+ A quoted-string without the leading or trailing white space. Its
1226
+ value is the text between the quote marks, with whitespace
1227
+ preserved and quoted pairs decoded.
1228
+ """
1229
+ if not value or value[0] != '"':
1230
+ raise errors.HeaderParseError(
1231
+ "expected '\"' but found '{}'".format(value))
1232
+ bare_quoted_string = BareQuotedString()
1233
+ value = value[1:]
1234
+ if value and value[0] == '"':
1235
+ token, value = get_qcontent(value)
1236
+ bare_quoted_string.append(token)
1237
+ while value and value[0] != '"':
1238
+ if value[0] in WSP:
1239
+ token, value = get_fws(value)
1240
+ elif value[:2] == '=?':
1241
+ valid_ew = False
1242
+ try:
1243
+ token, value = get_encoded_word(value)
1244
+ bare_quoted_string.defects.append(errors.InvalidHeaderDefect(
1245
+ "encoded word inside quoted string"))
1246
+ valid_ew = True
1247
+ except errors.HeaderParseError:
1248
+ token, value = get_qcontent(value)
1249
+ # Collapse the whitespace between two encoded words that occur in a
1250
+ # bare-quoted-string.
1251
+ if valid_ew and len(bare_quoted_string) > 1:
1252
+ if (bare_quoted_string[-1].token_type == 'fws' and
1253
+ bare_quoted_string[-2].token_type == 'encoded-word'):
1254
+ bare_quoted_string[-1] = EWWhiteSpaceTerminal(
1255
+ bare_quoted_string[-1], 'fws')
1256
+ else:
1257
+ token, value = get_qcontent(value)
1258
+ bare_quoted_string.append(token)
1259
+ if not value:
1260
+ bare_quoted_string.defects.append(errors.InvalidHeaderDefect(
1261
+ "end of header inside quoted string"))
1262
+ return bare_quoted_string, value
1263
+ return bare_quoted_string, value[1:]
1264
+
1265
+ def get_comment(value):
1266
+ """comment = "(" *([FWS] ccontent) [FWS] ")"
1267
+ ccontent = ctext / quoted-pair / comment
1268
+
1269
+ We handle nested comments here, and quoted-pair in our qp-ctext routine.
1270
+ """
1271
+ if value and value[0] != '(':
1272
+ raise errors.HeaderParseError(
1273
+ "expected '(' but found '{}'".format(value))
1274
+ comment = Comment()
1275
+ value = value[1:]
1276
+ while value and value[0] != ")":
1277
+ if value[0] in WSP:
1278
+ token, value = get_fws(value)
1279
+ elif value[0] == '(':
1280
+ token, value = get_comment(value)
1281
+ else:
1282
+ token, value = get_qp_ctext(value)
1283
+ comment.append(token)
1284
+ if not value:
1285
+ comment.defects.append(errors.InvalidHeaderDefect(
1286
+ "end of header inside comment"))
1287
+ return comment, value
1288
+ return comment, value[1:]
1289
+
1290
+ def get_cfws(value):
1291
+ """CFWS = (1*([FWS] comment) [FWS]) / FWS
1292
+
1293
+ """
1294
+ cfws = CFWSList()
1295
+ while value and value[0] in CFWS_LEADER:
1296
+ if value[0] in WSP:
1297
+ token, value = get_fws(value)
1298
+ else:
1299
+ token, value = get_comment(value)
1300
+ cfws.append(token)
1301
+ return cfws, value
1302
+
1303
+ def get_quoted_string(value):
1304
+ """quoted-string = [CFWS] <bare-quoted-string> [CFWS]
1305
+
1306
+ 'bare-quoted-string' is an intermediate class defined by this
1307
+ parser and not by the RFC grammar. It is the quoted string
1308
+ without any attached CFWS.
1309
+ """
1310
+ quoted_string = QuotedString()
1311
+ if value and value[0] in CFWS_LEADER:
1312
+ token, value = get_cfws(value)
1313
+ quoted_string.append(token)
1314
+ token, value = get_bare_quoted_string(value)
1315
+ quoted_string.append(token)
1316
+ if value and value[0] in CFWS_LEADER:
1317
+ token, value = get_cfws(value)
1318
+ quoted_string.append(token)
1319
+ return quoted_string, value
1320
+
1321
+ def get_atom(value):
1322
+ """atom = [CFWS] 1*atext [CFWS]
1323
+
1324
+ An atom could be an rfc2047 encoded word.
1325
+ """
1326
+ atom = Atom()
1327
+ if value and value[0] in CFWS_LEADER:
1328
+ token, value = get_cfws(value)
1329
+ atom.append(token)
1330
+ if value and value[0] in ATOM_ENDS:
1331
+ raise errors.HeaderParseError(
1332
+ "expected atom but found '{}'".format(value))
1333
+ if value.startswith('=?'):
1334
+ try:
1335
+ token, value = get_encoded_word(value)
1336
+ except errors.HeaderParseError:
1337
+ # XXX: need to figure out how to register defects when
1338
+ # appropriate here.
1339
+ token, value = get_atext(value)
1340
+ else:
1341
+ token, value = get_atext(value)
1342
+ atom.append(token)
1343
+ if value and value[0] in CFWS_LEADER:
1344
+ token, value = get_cfws(value)
1345
+ atom.append(token)
1346
+ return atom, value
1347
+
1348
+ def get_dot_atom_text(value):
1349
+ """ dot-text = 1*atext *("." 1*atext)
1350
+
1351
+ """
1352
+ dot_atom_text = DotAtomText()
1353
+ if not value or value[0] in ATOM_ENDS:
1354
+ raise errors.HeaderParseError("expected atom at a start of "
1355
+ "dot-atom-text but found '{}'".format(value))
1356
+ while value and value[0] not in ATOM_ENDS:
1357
+ token, value = get_atext(value)
1358
+ dot_atom_text.append(token)
1359
+ if value and value[0] == '.':
1360
+ dot_atom_text.append(DOT)
1361
+ value = value[1:]
1362
+ if dot_atom_text[-1] is DOT:
1363
+ raise errors.HeaderParseError("expected atom at end of dot-atom-text "
1364
+ "but found '{}'".format('.'+value))
1365
+ return dot_atom_text, value
1366
+
1367
+ def get_dot_atom(value):
1368
+ """ dot-atom = [CFWS] dot-atom-text [CFWS]
1369
+
1370
+ Any place we can have a dot atom, we could instead have an rfc2047 encoded
1371
+ word.
1372
+ """
1373
+ dot_atom = DotAtom()
1374
+ if value[0] in CFWS_LEADER:
1375
+ token, value = get_cfws(value)
1376
+ dot_atom.append(token)
1377
+ if value.startswith('=?'):
1378
+ try:
1379
+ token, value = get_encoded_word(value)
1380
+ except errors.HeaderParseError:
1381
+ # XXX: need to figure out how to register defects when
1382
+ # appropriate here.
1383
+ token, value = get_dot_atom_text(value)
1384
+ else:
1385
+ token, value = get_dot_atom_text(value)
1386
+ dot_atom.append(token)
1387
+ if value and value[0] in CFWS_LEADER:
1388
+ token, value = get_cfws(value)
1389
+ dot_atom.append(token)
1390
+ return dot_atom, value
1391
+
1392
+ def get_word(value):
1393
+ """word = atom / quoted-string
1394
+
1395
+ Either atom or quoted-string may start with CFWS. We have to peel off this
1396
+ CFWS first to determine which type of word to parse. Afterward we splice
1397
+ the leading CFWS, if any, into the parsed sub-token.
1398
+
1399
+ If neither an atom or a quoted-string is found before the next special, a
1400
+ HeaderParseError is raised.
1401
+
1402
+ The token returned is either an Atom or a QuotedString, as appropriate.
1403
+ This means the 'word' level of the formal grammar is not represented in the
1404
+ parse tree; this is because having that extra layer when manipulating the
1405
+ parse tree is more confusing than it is helpful.
1406
+
1407
+ """
1408
+ if value[0] in CFWS_LEADER:
1409
+ leader, value = get_cfws(value)
1410
+ else:
1411
+ leader = None
1412
+ if not value:
1413
+ raise errors.HeaderParseError(
1414
+ "Expected 'atom' or 'quoted-string' but found nothing.")
1415
+ if value[0]=='"':
1416
+ token, value = get_quoted_string(value)
1417
+ elif value[0] in SPECIALS:
1418
+ raise errors.HeaderParseError("Expected 'atom' or 'quoted-string' "
1419
+ "but found '{}'".format(value))
1420
+ else:
1421
+ token, value = get_atom(value)
1422
+ if leader is not None:
1423
+ token[:0] = [leader]
1424
+ return token, value
1425
+
1426
+ def get_phrase(value):
1427
+ """ phrase = 1*word / obs-phrase
1428
+ obs-phrase = word *(word / "." / CFWS)
1429
+
1430
+ This means a phrase can be a sequence of words, periods, and CFWS in any
1431
+ order as long as it starts with at least one word. If anything other than
1432
+ words is detected, an ObsoleteHeaderDefect is added to the token's defect
1433
+ list. We also accept a phrase that starts with CFWS followed by a dot;
1434
+ this is registered as an InvalidHeaderDefect, since it is not supported by
1435
+ even the obsolete grammar.
1436
+
1437
+ """
1438
+ phrase = Phrase()
1439
+ try:
1440
+ token, value = get_word(value)
1441
+ phrase.append(token)
1442
+ except errors.HeaderParseError:
1443
+ phrase.defects.append(errors.InvalidHeaderDefect(
1444
+ "phrase does not start with word"))
1445
+ while value and value[0] not in PHRASE_ENDS:
1446
+ if value[0]=='.':
1447
+ phrase.append(DOT)
1448
+ phrase.defects.append(errors.ObsoleteHeaderDefect(
1449
+ "period in 'phrase'"))
1450
+ value = value[1:]
1451
+ else:
1452
+ try:
1453
+ token, value = get_word(value)
1454
+ except errors.HeaderParseError:
1455
+ if value[0] in CFWS_LEADER:
1456
+ token, value = get_cfws(value)
1457
+ phrase.defects.append(errors.ObsoleteHeaderDefect(
1458
+ "comment found without atom"))
1459
+ else:
1460
+ raise
1461
+ phrase.append(token)
1462
+ return phrase, value
1463
+
1464
+ def get_local_part(value):
1465
+ """ local-part = dot-atom / quoted-string / obs-local-part
1466
+
1467
+ """
1468
+ local_part = LocalPart()
1469
+ leader = None
1470
+ if value and value[0] in CFWS_LEADER:
1471
+ leader, value = get_cfws(value)
1472
+ if not value:
1473
+ raise errors.HeaderParseError(
1474
+ "expected local-part but found '{}'".format(value))
1475
+ try:
1476
+ token, value = get_dot_atom(value)
1477
+ except errors.HeaderParseError:
1478
+ try:
1479
+ token, value = get_word(value)
1480
+ except errors.HeaderParseError:
1481
+ if value[0] != '\\' and value[0] in PHRASE_ENDS:
1482
+ raise
1483
+ token = TokenList()
1484
+ if leader is not None:
1485
+ token[:0] = [leader]
1486
+ local_part.append(token)
1487
+ if value and (value[0]=='\\' or value[0] not in PHRASE_ENDS):
1488
+ obs_local_part, value = get_obs_local_part(str(local_part) + value)
1489
+ if obs_local_part.token_type == 'invalid-obs-local-part':
1490
+ local_part.defects.append(errors.InvalidHeaderDefect(
1491
+ "local-part is not dot-atom, quoted-string, or obs-local-part"))
1492
+ else:
1493
+ local_part.defects.append(errors.ObsoleteHeaderDefect(
1494
+ "local-part is not a dot-atom (contains CFWS)"))
1495
+ local_part[0] = obs_local_part
1496
+ try:
1497
+ local_part.value.encode('ascii')
1498
+ except UnicodeEncodeError:
1499
+ local_part.defects.append(errors.NonASCIILocalPartDefect(
1500
+ "local-part contains non-ASCII characters)"))
1501
+ return local_part, value
1502
+
1503
+ def get_obs_local_part(value):
1504
+ """ obs-local-part = word *("." word)
1505
+ """
1506
+ obs_local_part = ObsLocalPart()
1507
+ last_non_ws_was_dot = False
1508
+ while value and (value[0]=='\\' or value[0] not in PHRASE_ENDS):
1509
+ if value[0] == '.':
1510
+ if last_non_ws_was_dot:
1511
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1512
+ "invalid repeated '.'"))
1513
+ obs_local_part.append(DOT)
1514
+ last_non_ws_was_dot = True
1515
+ value = value[1:]
1516
+ continue
1517
+ elif value[0]=='\\':
1518
+ obs_local_part.append(ValueTerminal(value[0],
1519
+ 'misplaced-special'))
1520
+ value = value[1:]
1521
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1522
+ "'\\' character outside of quoted-string/ccontent"))
1523
+ last_non_ws_was_dot = False
1524
+ continue
1525
+ if obs_local_part and obs_local_part[-1].token_type != 'dot':
1526
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1527
+ "missing '.' between words"))
1528
+ try:
1529
+ token, value = get_word(value)
1530
+ last_non_ws_was_dot = False
1531
+ except errors.HeaderParseError:
1532
+ if value[0] not in CFWS_LEADER:
1533
+ raise
1534
+ token, value = get_cfws(value)
1535
+ obs_local_part.append(token)
1536
+ if not obs_local_part:
1537
+ raise errors.HeaderParseError(
1538
+ "expected obs-local-part but found '{}'".format(value))
1539
+ if (obs_local_part[0].token_type == 'dot' or
1540
+ obs_local_part[0].token_type=='cfws' and
1541
+ len(obs_local_part) > 1 and
1542
+ obs_local_part[1].token_type=='dot'):
1543
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1544
+ "Invalid leading '.' in local part"))
1545
+ if (obs_local_part[-1].token_type == 'dot' or
1546
+ obs_local_part[-1].token_type=='cfws' and
1547
+ len(obs_local_part) > 1 and
1548
+ obs_local_part[-2].token_type=='dot'):
1549
+ obs_local_part.defects.append(errors.InvalidHeaderDefect(
1550
+ "Invalid trailing '.' in local part"))
1551
+ if obs_local_part.defects:
1552
+ obs_local_part.token_type = 'invalid-obs-local-part'
1553
+ return obs_local_part, value
1554
+
1555
+ def get_dtext(value):
1556
+ r""" dtext = <printable ascii except \ [ ]> / obs-dtext
1557
+ obs-dtext = obs-NO-WS-CTL / quoted-pair
1558
+
1559
+ We allow anything except the excluded characters, but if we find any
1560
+ ASCII other than the RFC defined printable ASCII, a NonPrintableDefect is
1561
+ added to the token's defects list. Quoted pairs are converted to their
1562
+ unquoted values, so what is returned is a ptext token, in this case a
1563
+ ValueTerminal. If there were quoted-printables, an ObsoleteHeaderDefect is
1564
+ added to the returned token's defect list.
1565
+
1566
+ """
1567
+ ptext, value, had_qp = _get_ptext_to_endchars(value, '[]')
1568
+ ptext = ValueTerminal(ptext, 'ptext')
1569
+ if had_qp:
1570
+ ptext.defects.append(errors.ObsoleteHeaderDefect(
1571
+ "quoted printable found in domain-literal"))
1572
+ _validate_xtext(ptext)
1573
+ return ptext, value
1574
+
1575
+ def _check_for_early_dl_end(value, domain_literal):
1576
+ if value:
1577
+ return False
1578
+ domain_literal.defects.append(errors.InvalidHeaderDefect(
1579
+ "end of input inside domain-literal"))
1580
+ domain_literal.append(ValueTerminal(']', 'domain-literal-end'))
1581
+ return True
1582
+
1583
+ def get_domain_literal(value):
1584
+ """ domain-literal = [CFWS] "[" *([FWS] dtext) [FWS] "]" [CFWS]
1585
+
1586
+ """
1587
+ domain_literal = DomainLiteral()
1588
+ if value[0] in CFWS_LEADER:
1589
+ token, value = get_cfws(value)
1590
+ domain_literal.append(token)
1591
+ if not value:
1592
+ raise errors.HeaderParseError("expected domain-literal")
1593
+ if value[0] != '[':
1594
+ raise errors.HeaderParseError("expected '[' at start of domain-literal "
1595
+ "but found '{}'".format(value))
1596
+ value = value[1:]
1597
+ domain_literal.append(ValueTerminal('[', 'domain-literal-start'))
1598
+ if _check_for_early_dl_end(value, domain_literal):
1599
+ return domain_literal, value
1600
+ if value[0] in WSP:
1601
+ token, value = get_fws(value)
1602
+ domain_literal.append(token)
1603
+ token, value = get_dtext(value)
1604
+ domain_literal.append(token)
1605
+ if _check_for_early_dl_end(value, domain_literal):
1606
+ return domain_literal, value
1607
+ if value[0] in WSP:
1608
+ token, value = get_fws(value)
1609
+ domain_literal.append(token)
1610
+ if _check_for_early_dl_end(value, domain_literal):
1611
+ return domain_literal, value
1612
+ if value[0] != ']':
1613
+ raise errors.HeaderParseError("expected ']' at end of domain-literal "
1614
+ "but found '{}'".format(value))
1615
+ domain_literal.append(ValueTerminal(']', 'domain-literal-end'))
1616
+ value = value[1:]
1617
+ if value and value[0] in CFWS_LEADER:
1618
+ token, value = get_cfws(value)
1619
+ domain_literal.append(token)
1620
+ return domain_literal, value
1621
+
1622
+ def get_domain(value):
1623
+ """ domain = dot-atom / domain-literal / obs-domain
1624
+ obs-domain = atom *("." atom))
1625
+
1626
+ """
1627
+ domain = Domain()
1628
+ leader = None
1629
+ if value and value[0] in CFWS_LEADER:
1630
+ leader, value = get_cfws(value)
1631
+ if not value:
1632
+ raise errors.HeaderParseError(
1633
+ "expected domain but found '{}'".format(value))
1634
+ if value[0] == '[':
1635
+ token, value = get_domain_literal(value)
1636
+ if leader is not None:
1637
+ token[:0] = [leader]
1638
+ domain.append(token)
1639
+ return domain, value
1640
+ try:
1641
+ token, value = get_dot_atom(value)
1642
+ except errors.HeaderParseError:
1643
+ token, value = get_atom(value)
1644
+ if value and value[0] == '@':
1645
+ raise errors.HeaderParseError('Invalid Domain')
1646
+ if leader is not None:
1647
+ token[:0] = [leader]
1648
+ domain.append(token)
1649
+ if value and value[0] == '.':
1650
+ domain.defects.append(errors.ObsoleteHeaderDefect(
1651
+ "domain is not a dot-atom (contains CFWS)"))
1652
+ if domain[0].token_type == 'dot-atom':
1653
+ domain[:] = domain[0]
1654
+ while value and value[0] == '.':
1655
+ domain.append(DOT)
1656
+ token, value = get_atom(value[1:])
1657
+ domain.append(token)
1658
+ return domain, value
1659
+
1660
+ def get_addr_spec(value):
1661
+ """ addr-spec = local-part "@" domain
1662
+
1663
+ """
1664
+ addr_spec = AddrSpec()
1665
+ token, value = get_local_part(value)
1666
+ addr_spec.append(token)
1667
+ if not value or value[0] != '@':
1668
+ addr_spec.defects.append(errors.InvalidHeaderDefect(
1669
+ "addr-spec local part with no domain"))
1670
+ return addr_spec, value
1671
+ addr_spec.append(ValueTerminal('@', 'address-at-symbol'))
1672
+ token, value = get_domain(value[1:])
1673
+ addr_spec.append(token)
1674
+ return addr_spec, value
1675
+
1676
+ def get_obs_route(value):
1677
+ """ obs-route = obs-domain-list ":"
1678
+ obs-domain-list = *(CFWS / ",") "@" domain *("," [CFWS] ["@" domain])
1679
+
1680
+ Returns an obs-route token with the appropriate sub-tokens (that is,
1681
+ there is no obs-domain-list in the parse tree).
1682
+ """
1683
+ obs_route = ObsRoute()
1684
+ while value and (value[0]==',' or value[0] in CFWS_LEADER):
1685
+ if value[0] in CFWS_LEADER:
1686
+ token, value = get_cfws(value)
1687
+ obs_route.append(token)
1688
+ elif value[0] == ',':
1689
+ obs_route.append(ListSeparator)
1690
+ value = value[1:]
1691
+ if not value or value[0] != '@':
1692
+ raise errors.HeaderParseError(
1693
+ "expected obs-route domain but found '{}'".format(value))
1694
+ obs_route.append(RouteComponentMarker)
1695
+ token, value = get_domain(value[1:])
1696
+ obs_route.append(token)
1697
+ while value and value[0]==',':
1698
+ obs_route.append(ListSeparator)
1699
+ value = value[1:]
1700
+ if not value:
1701
+ break
1702
+ if value[0] in CFWS_LEADER:
1703
+ token, value = get_cfws(value)
1704
+ obs_route.append(token)
1705
+ if not value:
1706
+ break
1707
+ if value[0] == '@':
1708
+ obs_route.append(RouteComponentMarker)
1709
+ token, value = get_domain(value[1:])
1710
+ obs_route.append(token)
1711
+ if not value:
1712
+ raise errors.HeaderParseError("end of header while parsing obs-route")
1713
+ if value[0] != ':':
1714
+ raise errors.HeaderParseError( "expected ':' marking end of "
1715
+ "obs-route but found '{}'".format(value))
1716
+ obs_route.append(ValueTerminal(':', 'end-of-obs-route-marker'))
1717
+ return obs_route, value[1:]
1718
+
1719
+ def get_angle_addr(value):
1720
+ """ angle-addr = [CFWS] "<" addr-spec ">" [CFWS] / obs-angle-addr
1721
+ obs-angle-addr = [CFWS] "<" obs-route addr-spec ">" [CFWS]
1722
+
1723
+ """
1724
+ angle_addr = AngleAddr()
1725
+ if value and value[0] in CFWS_LEADER:
1726
+ token, value = get_cfws(value)
1727
+ angle_addr.append(token)
1728
+ if not value or value[0] != '<':
1729
+ raise errors.HeaderParseError(
1730
+ "expected angle-addr but found '{}'".format(value))
1731
+ angle_addr.append(ValueTerminal('<', 'angle-addr-start'))
1732
+ value = value[1:]
1733
+ # Although it is not legal per RFC5322, SMTP uses '<>' in certain
1734
+ # circumstances.
1735
+ if value and value[0] == '>':
1736
+ angle_addr.append(ValueTerminal('>', 'angle-addr-end'))
1737
+ angle_addr.defects.append(errors.InvalidHeaderDefect(
1738
+ "null addr-spec in angle-addr"))
1739
+ value = value[1:]
1740
+ return angle_addr, value
1741
+ try:
1742
+ token, value = get_addr_spec(value)
1743
+ except errors.HeaderParseError:
1744
+ try:
1745
+ token, value = get_obs_route(value)
1746
+ angle_addr.defects.append(errors.ObsoleteHeaderDefect(
1747
+ "obsolete route specification in angle-addr"))
1748
+ except errors.HeaderParseError:
1749
+ raise errors.HeaderParseError(
1750
+ "expected addr-spec or obs-route but found '{}'".format(value))
1751
+ angle_addr.append(token)
1752
+ token, value = get_addr_spec(value)
1753
+ angle_addr.append(token)
1754
+ if value and value[0] == '>':
1755
+ value = value[1:]
1756
+ else:
1757
+ angle_addr.defects.append(errors.InvalidHeaderDefect(
1758
+ "missing trailing '>' on angle-addr"))
1759
+ angle_addr.append(ValueTerminal('>', 'angle-addr-end'))
1760
+ if value and value[0] in CFWS_LEADER:
1761
+ token, value = get_cfws(value)
1762
+ angle_addr.append(token)
1763
+ return angle_addr, value
1764
+
1765
+ def get_display_name(value):
1766
+ """ display-name = phrase
1767
+
1768
+ Because this is simply a name-rule, we don't return a display-name
1769
+ token containing a phrase, but rather a display-name token with
1770
+ the content of the phrase.
1771
+
1772
+ """
1773
+ display_name = DisplayName()
1774
+ token, value = get_phrase(value)
1775
+ display_name.extend(token[:])
1776
+ display_name.defects = token.defects[:]
1777
+ return display_name, value
1778
+
1779
+
1780
+ def get_name_addr(value):
1781
+ """ name-addr = [display-name] angle-addr
1782
+
1783
+ """
1784
+ name_addr = NameAddr()
1785
+ # Both the optional display name and the angle-addr can start with cfws.
1786
+ leader = None
1787
+ if not value:
1788
+ raise errors.HeaderParseError(
1789
+ "expected name-addr but found '{}'".format(value))
1790
+ if value[0] in CFWS_LEADER:
1791
+ leader, value = get_cfws(value)
1792
+ if not value:
1793
+ raise errors.HeaderParseError(
1794
+ "expected name-addr but found '{}'".format(leader))
1795
+ if value[0] != '<':
1796
+ if value[0] in PHRASE_ENDS:
1797
+ raise errors.HeaderParseError(
1798
+ "expected name-addr but found '{}'".format(value))
1799
+ token, value = get_display_name(value)
1800
+ if not value:
1801
+ raise errors.HeaderParseError(
1802
+ "expected name-addr but found '{}'".format(token))
1803
+ if leader is not None:
1804
+ if isinstance(token[0], TokenList):
1805
+ token[0][:0] = [leader]
1806
+ else:
1807
+ token[:0] = [leader]
1808
+ leader = None
1809
+ name_addr.append(token)
1810
+ token, value = get_angle_addr(value)
1811
+ if leader is not None:
1812
+ token[:0] = [leader]
1813
+ name_addr.append(token)
1814
+ return name_addr, value
1815
+
1816
+ def get_mailbox(value):
1817
+ """ mailbox = name-addr / addr-spec
1818
+
1819
+ """
1820
+ # The only way to figure out if we are dealing with a name-addr or an
1821
+ # addr-spec is to try parsing each one.
1822
+ mailbox = Mailbox()
1823
+ try:
1824
+ token, value = get_name_addr(value)
1825
+ except errors.HeaderParseError:
1826
+ try:
1827
+ token, value = get_addr_spec(value)
1828
+ except errors.HeaderParseError:
1829
+ raise errors.HeaderParseError(
1830
+ "expected mailbox but found '{}'".format(value))
1831
+ if any(isinstance(x, errors.InvalidHeaderDefect)
1832
+ for x in token.all_defects):
1833
+ mailbox.token_type = 'invalid-mailbox'
1834
+ mailbox.append(token)
1835
+ return mailbox, value
1836
+
1837
+ def get_invalid_mailbox(value, endchars):
1838
+ """ Read everything up to one of the chars in endchars.
1839
+
1840
+ This is outside the formal grammar. The InvalidMailbox TokenList that is
1841
+ returned acts like a Mailbox, but the data attributes are None.
1842
+
1843
+ """
1844
+ invalid_mailbox = InvalidMailbox()
1845
+ while value and value[0] not in endchars:
1846
+ if value[0] in PHRASE_ENDS:
1847
+ invalid_mailbox.append(ValueTerminal(value[0],
1848
+ 'misplaced-special'))
1849
+ value = value[1:]
1850
+ else:
1851
+ token, value = get_phrase(value)
1852
+ invalid_mailbox.append(token)
1853
+ return invalid_mailbox, value
1854
+
1855
+ def get_mailbox_list(value):
1856
+ """ mailbox-list = (mailbox *("," mailbox)) / obs-mbox-list
1857
+ obs-mbox-list = *([CFWS] ",") mailbox *("," [mailbox / CFWS])
1858
+
1859
+ For this routine we go outside the formal grammar in order to improve error
1860
+ handling. We recognize the end of the mailbox list only at the end of the
1861
+ value or at a ';' (the group terminator). This is so that we can turn
1862
+ invalid mailboxes into InvalidMailbox tokens and continue parsing any
1863
+ remaining valid mailboxes. We also allow all mailbox entries to be null,
1864
+ and this condition is handled appropriately at a higher level.
1865
+
1866
+ """
1867
+ mailbox_list = MailboxList()
1868
+ while value and value[0] != ';':
1869
+ try:
1870
+ token, value = get_mailbox(value)
1871
+ mailbox_list.append(token)
1872
+ except errors.HeaderParseError:
1873
+ leader = None
1874
+ if value[0] in CFWS_LEADER:
1875
+ leader, value = get_cfws(value)
1876
+ if not value or value[0] in ',;':
1877
+ mailbox_list.append(leader)
1878
+ mailbox_list.defects.append(errors.ObsoleteHeaderDefect(
1879
+ "empty element in mailbox-list"))
1880
+ else:
1881
+ token, value = get_invalid_mailbox(value, ',;')
1882
+ if leader is not None:
1883
+ token[:0] = [leader]
1884
+ mailbox_list.append(token)
1885
+ mailbox_list.defects.append(errors.InvalidHeaderDefect(
1886
+ "invalid mailbox in mailbox-list"))
1887
+ elif value[0] == ',':
1888
+ mailbox_list.defects.append(errors.ObsoleteHeaderDefect(
1889
+ "empty element in mailbox-list"))
1890
+ else:
1891
+ token, value = get_invalid_mailbox(value, ',;')
1892
+ if leader is not None:
1893
+ token[:0] = [leader]
1894
+ mailbox_list.append(token)
1895
+ mailbox_list.defects.append(errors.InvalidHeaderDefect(
1896
+ "invalid mailbox in mailbox-list"))
1897
+ if value and value[0] not in ',;':
1898
+ # Crap after mailbox; treat it as an invalid mailbox.
1899
+ # The mailbox info will still be available.
1900
+ mailbox = mailbox_list[-1]
1901
+ mailbox.token_type = 'invalid-mailbox'
1902
+ token, value = get_invalid_mailbox(value, ',;')
1903
+ mailbox.extend(token)
1904
+ mailbox_list.defects.append(errors.InvalidHeaderDefect(
1905
+ "invalid mailbox in mailbox-list"))
1906
+ if value and value[0] == ',':
1907
+ mailbox_list.append(ListSeparator)
1908
+ value = value[1:]
1909
+ return mailbox_list, value
1910
+
1911
+
1912
+ def get_group_list(value):
1913
+ """ group-list = mailbox-list / CFWS / obs-group-list
1914
+ obs-group-list = 1*([CFWS] ",") [CFWS]
1915
+
1916
+ """
1917
+ group_list = GroupList()
1918
+ if not value:
1919
+ group_list.defects.append(errors.InvalidHeaderDefect(
1920
+ "end of header before group-list"))
1921
+ return group_list, value
1922
+ leader = None
1923
+ if value and value[0] in CFWS_LEADER:
1924
+ leader, value = get_cfws(value)
1925
+ if not value:
1926
+ # This should never happen in email parsing, since CFWS-only is a
1927
+ # legal alternative to group-list in a group, which is the only
1928
+ # place group-list appears.
1929
+ group_list.defects.append(errors.InvalidHeaderDefect(
1930
+ "end of header in group-list"))
1931
+ group_list.append(leader)
1932
+ return group_list, value
1933
+ if value[0] == ';':
1934
+ group_list.append(leader)
1935
+ return group_list, value
1936
+ token, value = get_mailbox_list(value)
1937
+ if len(token.all_mailboxes)==0:
1938
+ if leader is not None:
1939
+ group_list.append(leader)
1940
+ group_list.extend(token)
1941
+ group_list.defects.append(errors.ObsoleteHeaderDefect(
1942
+ "group-list with empty entries"))
1943
+ return group_list, value
1944
+ if leader is not None:
1945
+ token[:0] = [leader]
1946
+ group_list.append(token)
1947
+ return group_list, value
1948
+
1949
+ def get_group(value):
1950
+ """ group = display-name ":" [group-list] ";" [CFWS]
1951
+
1952
+ """
1953
+ group = Group()
1954
+ token, value = get_display_name(value)
1955
+ if not value or value[0] != ':':
1956
+ raise errors.HeaderParseError("expected ':' at end of group "
1957
+ "display name but found '{}'".format(value))
1958
+ group.append(token)
1959
+ group.append(ValueTerminal(':', 'group-display-name-terminator'))
1960
+ value = value[1:]
1961
+ if value and value[0] == ';':
1962
+ group.append(ValueTerminal(';', 'group-terminator'))
1963
+ return group, value[1:]
1964
+ token, value = get_group_list(value)
1965
+ group.append(token)
1966
+ if not value:
1967
+ group.defects.append(errors.InvalidHeaderDefect(
1968
+ "end of header in group"))
1969
+ elif value[0] != ';':
1970
+ raise errors.HeaderParseError(
1971
+ "expected ';' at end of group but found {}".format(value))
1972
+ group.append(ValueTerminal(';', 'group-terminator'))
1973
+ value = value[1:]
1974
+ if value and value[0] in CFWS_LEADER:
1975
+ token, value = get_cfws(value)
1976
+ group.append(token)
1977
+ return group, value
1978
+
1979
+ def get_address(value):
1980
+ """ address = mailbox / group
1981
+
1982
+ Note that counter-intuitively, an address can be either a single address or
1983
+ a list of addresses (a group). This is why the returned Address object has
1984
+ a 'mailboxes' attribute which treats a single address as a list of length
1985
+ one. When you need to differentiate between to two cases, extract the single
1986
+ element, which is either a mailbox or a group token.
1987
+
1988
+ """
1989
+ # The formal grammar isn't very helpful when parsing an address. mailbox
1990
+ # and group, especially when allowing for obsolete forms, start off very
1991
+ # similarly. It is only when you reach one of @, <, or : that you know
1992
+ # what you've got. So, we try each one in turn, starting with the more
1993
+ # likely of the two. We could perhaps make this more efficient by looking
1994
+ # for a phrase and then branching based on the next character, but that
1995
+ # would be a premature optimization.
1996
+ address = Address()
1997
+ try:
1998
+ token, value = get_group(value)
1999
+ except errors.HeaderParseError:
2000
+ try:
2001
+ token, value = get_mailbox(value)
2002
+ except errors.HeaderParseError:
2003
+ raise errors.HeaderParseError(
2004
+ "expected address but found '{}'".format(value))
2005
+ address.append(token)
2006
+ return address, value
2007
+
2008
+ def get_address_list(value):
2009
+ """ address_list = (address *("," address)) / obs-addr-list
2010
+ obs-addr-list = *([CFWS] ",") address *("," [address / CFWS])
2011
+
2012
+ We depart from the formal grammar here by continuing to parse until the end
2013
+ of the input, assuming the input to be entirely composed of an
2014
+ address-list. This is always true in email parsing, and allows us
2015
+ to skip invalid addresses to parse additional valid ones.
2016
+
2017
+ """
2018
+ address_list = AddressList()
2019
+ while value:
2020
+ try:
2021
+ token, value = get_address(value)
2022
+ address_list.append(token)
2023
+ except errors.HeaderParseError:
2024
+ leader = None
2025
+ if value[0] in CFWS_LEADER:
2026
+ leader, value = get_cfws(value)
2027
+ if not value or value[0] == ',':
2028
+ address_list.append(leader)
2029
+ address_list.defects.append(errors.ObsoleteHeaderDefect(
2030
+ "address-list entry with no content"))
2031
+ else:
2032
+ token, value = get_invalid_mailbox(value, ',')
2033
+ if leader is not None:
2034
+ token[:0] = [leader]
2035
+ address_list.append(Address([token]))
2036
+ address_list.defects.append(errors.InvalidHeaderDefect(
2037
+ "invalid address in address-list"))
2038
+ elif value[0] == ',':
2039
+ address_list.defects.append(errors.ObsoleteHeaderDefect(
2040
+ "empty element in address-list"))
2041
+ else:
2042
+ token, value = get_invalid_mailbox(value, ',')
2043
+ if leader is not None:
2044
+ token[:0] = [leader]
2045
+ address_list.append(Address([token]))
2046
+ address_list.defects.append(errors.InvalidHeaderDefect(
2047
+ "invalid address in address-list"))
2048
+ if value and value[0] != ',':
2049
+ # Crap after address; treat it as an invalid mailbox.
2050
+ # The mailbox info will still be available.
2051
+ mailbox = address_list[-1][0]
2052
+ mailbox.token_type = 'invalid-mailbox'
2053
+ token, value = get_invalid_mailbox(value, ',')
2054
+ mailbox.extend(token)
2055
+ address_list.defects.append(errors.InvalidHeaderDefect(
2056
+ "invalid address in address-list"))
2057
+ if value: # Must be a , at this point.
2058
+ address_list.append(ListSeparator)
2059
+ value = value[1:]
2060
+ return address_list, value
2061
+
2062
+
2063
+ def get_no_fold_literal(value):
2064
+ """ no-fold-literal = "[" *dtext "]"
2065
+ """
2066
+ no_fold_literal = NoFoldLiteral()
2067
+ if not value:
2068
+ raise errors.HeaderParseError(
2069
+ "expected no-fold-literal but found '{}'".format(value))
2070
+ if value[0] != '[':
2071
+ raise errors.HeaderParseError(
2072
+ "expected '[' at the start of no-fold-literal "
2073
+ "but found '{}'".format(value))
2074
+ no_fold_literal.append(ValueTerminal('[', 'no-fold-literal-start'))
2075
+ value = value[1:]
2076
+ token, value = get_dtext(value)
2077
+ no_fold_literal.append(token)
2078
+ if not value or value[0] != ']':
2079
+ raise errors.HeaderParseError(
2080
+ "expected ']' at the end of no-fold-literal "
2081
+ "but found '{}'".format(value))
2082
+ no_fold_literal.append(ValueTerminal(']', 'no-fold-literal-end'))
2083
+ return no_fold_literal, value[1:]
2084
+
2085
+ def get_msg_id(value):
2086
+ """msg-id = [CFWS] "<" id-left '@' id-right ">" [CFWS]
2087
+ id-left = dot-atom-text / obs-id-left
2088
+ id-right = dot-atom-text / no-fold-literal / obs-id-right
2089
+ no-fold-literal = "[" *dtext "]"
2090
+ """
2091
+ msg_id = MsgID()
2092
+ if value and value[0] in CFWS_LEADER:
2093
+ token, value = get_cfws(value)
2094
+ msg_id.append(token)
2095
+ if not value or value[0] != '<':
2096
+ raise errors.HeaderParseError(
2097
+ "expected msg-id but found '{}'".format(value))
2098
+ msg_id.append(ValueTerminal('<', 'msg-id-start'))
2099
+ value = value[1:]
2100
+ # Parse id-left.
2101
+ try:
2102
+ token, value = get_dot_atom_text(value)
2103
+ except errors.HeaderParseError:
2104
+ try:
2105
+ # obs-id-left is same as local-part of add-spec.
2106
+ token, value = get_obs_local_part(value)
2107
+ msg_id.defects.append(errors.ObsoleteHeaderDefect(
2108
+ "obsolete id-left in msg-id"))
2109
+ except errors.HeaderParseError:
2110
+ raise errors.HeaderParseError(
2111
+ "expected dot-atom-text or obs-id-left"
2112
+ " but found '{}'".format(value))
2113
+ msg_id.append(token)
2114
+ if not value or value[0] != '@':
2115
+ msg_id.defects.append(errors.InvalidHeaderDefect(
2116
+ "msg-id with no id-right"))
2117
+ # Even though there is no id-right, if the local part
2118
+ # ends with `>` let's just parse it too and return
2119
+ # along with the defect.
2120
+ if value and value[0] == '>':
2121
+ msg_id.append(ValueTerminal('>', 'msg-id-end'))
2122
+ value = value[1:]
2123
+ return msg_id, value
2124
+ msg_id.append(ValueTerminal('@', 'address-at-symbol'))
2125
+ value = value[1:]
2126
+ # Parse id-right.
2127
+ try:
2128
+ token, value = get_dot_atom_text(value)
2129
+ except errors.HeaderParseError:
2130
+ try:
2131
+ token, value = get_no_fold_literal(value)
2132
+ except errors.HeaderParseError:
2133
+ try:
2134
+ token, value = get_domain(value)
2135
+ msg_id.defects.append(errors.ObsoleteHeaderDefect(
2136
+ "obsolete id-right in msg-id"))
2137
+ except errors.HeaderParseError:
2138
+ raise errors.HeaderParseError(
2139
+ "expected dot-atom-text, no-fold-literal or obs-id-right"
2140
+ " but found '{}'".format(value))
2141
+ msg_id.append(token)
2142
+ if value and value[0] == '>':
2143
+ value = value[1:]
2144
+ else:
2145
+ msg_id.defects.append(errors.InvalidHeaderDefect(
2146
+ "missing trailing '>' on msg-id"))
2147
+ msg_id.append(ValueTerminal('>', 'msg-id-end'))
2148
+ if value and value[0] in CFWS_LEADER:
2149
+ token, value = get_cfws(value)
2150
+ msg_id.append(token)
2151
+ return msg_id, value
2152
+
2153
+
2154
+ def parse_message_id(value):
2155
+ """message-id = "Message-ID:" msg-id CRLF
2156
+ """
2157
+ message_id = MessageID()
2158
+ try:
2159
+ token, value = get_msg_id(value)
2160
+ message_id.append(token)
2161
+ except errors.HeaderParseError as ex:
2162
+ token = get_unstructured(value)
2163
+ message_id = InvalidMessageID(token)
2164
+ message_id.defects.append(
2165
+ errors.InvalidHeaderDefect("Invalid msg-id: {!r}".format(ex)))
2166
+ else:
2167
+ # Value after parsing a valid msg_id should be None.
2168
+ if value:
2169
+ message_id.defects.append(errors.InvalidHeaderDefect(
2170
+ "Unexpected {!r}".format(value)))
2171
+
2172
+ return message_id
2173
+
2174
+ #
2175
+ # XXX: As I begin to add additional header parsers, I'm realizing we probably
2176
+ # have two level of parser routines: the get_XXX methods that get a token in
2177
+ # the grammar, and parse_XXX methods that parse an entire field value. So
2178
+ # get_address_list above should really be a parse_ method, as probably should
2179
+ # be get_unstructured.
2180
+ #
2181
+
2182
+ def parse_mime_version(value):
2183
+ """ mime-version = [CFWS] 1*digit [CFWS] "." [CFWS] 1*digit [CFWS]
2184
+
2185
+ """
2186
+ # The [CFWS] is implicit in the RFC 2045 BNF.
2187
+ # XXX: This routine is a bit verbose, should factor out a get_int method.
2188
+ mime_version = MIMEVersion()
2189
+ if not value:
2190
+ mime_version.defects.append(errors.HeaderMissingRequiredValue(
2191
+ "Missing MIME version number (eg: 1.0)"))
2192
+ return mime_version
2193
+ if value[0] in CFWS_LEADER:
2194
+ token, value = get_cfws(value)
2195
+ mime_version.append(token)
2196
+ if not value:
2197
+ mime_version.defects.append(errors.HeaderMissingRequiredValue(
2198
+ "Expected MIME version number but found only CFWS"))
2199
+ digits = ''
2200
+ while value and value[0] != '.' and value[0] not in CFWS_LEADER:
2201
+ digits += value[0]
2202
+ value = value[1:]
2203
+ if not digits.isdigit():
2204
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2205
+ "Expected MIME major version number but found {!r}".format(digits)))
2206
+ mime_version.append(ValueTerminal(digits, 'xtext'))
2207
+ else:
2208
+ mime_version.major = int(digits)
2209
+ mime_version.append(ValueTerminal(digits, 'digits'))
2210
+ if value and value[0] in CFWS_LEADER:
2211
+ token, value = get_cfws(value)
2212
+ mime_version.append(token)
2213
+ if not value or value[0] != '.':
2214
+ if mime_version.major is not None:
2215
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2216
+ "Incomplete MIME version; found only major number"))
2217
+ if value:
2218
+ mime_version.append(ValueTerminal(value, 'xtext'))
2219
+ return mime_version
2220
+ mime_version.append(ValueTerminal('.', 'version-separator'))
2221
+ value = value[1:]
2222
+ if value and value[0] in CFWS_LEADER:
2223
+ token, value = get_cfws(value)
2224
+ mime_version.append(token)
2225
+ if not value:
2226
+ if mime_version.major is not None:
2227
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2228
+ "Incomplete MIME version; found only major number"))
2229
+ return mime_version
2230
+ digits = ''
2231
+ while value and value[0] not in CFWS_LEADER:
2232
+ digits += value[0]
2233
+ value = value[1:]
2234
+ if not digits.isdigit():
2235
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2236
+ "Expected MIME minor version number but found {!r}".format(digits)))
2237
+ mime_version.append(ValueTerminal(digits, 'xtext'))
2238
+ else:
2239
+ mime_version.minor = int(digits)
2240
+ mime_version.append(ValueTerminal(digits, 'digits'))
2241
+ if value and value[0] in CFWS_LEADER:
2242
+ token, value = get_cfws(value)
2243
+ mime_version.append(token)
2244
+ if value:
2245
+ mime_version.defects.append(errors.InvalidHeaderDefect(
2246
+ "Excess non-CFWS text after MIME version"))
2247
+ mime_version.append(ValueTerminal(value, 'xtext'))
2248
+ return mime_version
2249
+
2250
+ def get_invalid_parameter(value):
2251
+ """ Read everything up to the next ';'.
2252
+
2253
+ This is outside the formal grammar. The InvalidParameter TokenList that is
2254
+ returned acts like a Parameter, but the data attributes are None.
2255
+
2256
+ """
2257
+ invalid_parameter = InvalidParameter()
2258
+ while value and value[0] != ';':
2259
+ if value[0] in PHRASE_ENDS:
2260
+ invalid_parameter.append(ValueTerminal(value[0],
2261
+ 'misplaced-special'))
2262
+ value = value[1:]
2263
+ else:
2264
+ token, value = get_phrase(value)
2265
+ invalid_parameter.append(token)
2266
+ return invalid_parameter, value
2267
+
2268
+ def get_ttext(value):
2269
+ """ttext = <matches _ttext_matcher>
2270
+
2271
+ We allow any non-TOKEN_ENDS in ttext, but add defects to the token's
2272
+ defects list if we find non-ttext characters. We also register defects for
2273
+ *any* non-printables even though the RFC doesn't exclude all of them,
2274
+ because we follow the spirit of RFC 5322.
2275
+
2276
+ """
2277
+ m = _non_token_end_matcher(value)
2278
+ if not m:
2279
+ raise errors.HeaderParseError(
2280
+ "expected ttext but found '{}'".format(value))
2281
+ ttext = m.group()
2282
+ value = value[len(ttext):]
2283
+ ttext = ValueTerminal(ttext, 'ttext')
2284
+ _validate_xtext(ttext)
2285
+ return ttext, value
2286
+
2287
+ def get_token(value):
2288
+ """token = [CFWS] 1*ttext [CFWS]
2289
+
2290
+ The RFC equivalent of ttext is any US-ASCII chars except space, ctls, or
2291
+ tspecials. We also exclude tabs even though the RFC doesn't.
2292
+
2293
+ The RFC implies the CFWS but is not explicit about it in the BNF.
2294
+
2295
+ """
2296
+ mtoken = Token()
2297
+ if value and value[0] in CFWS_LEADER:
2298
+ token, value = get_cfws(value)
2299
+ mtoken.append(token)
2300
+ if value and value[0] in TOKEN_ENDS:
2301
+ raise errors.HeaderParseError(
2302
+ "expected token but found '{}'".format(value))
2303
+ token, value = get_ttext(value)
2304
+ mtoken.append(token)
2305
+ if value and value[0] in CFWS_LEADER:
2306
+ token, value = get_cfws(value)
2307
+ mtoken.append(token)
2308
+ return mtoken, value
2309
+
2310
+ def get_attrtext(value):
2311
+ """attrtext = 1*(any non-ATTRIBUTE_ENDS character)
2312
+
2313
+ We allow any non-ATTRIBUTE_ENDS in attrtext, but add defects to the
2314
+ token's defects list if we find non-attrtext characters. We also register
2315
+ defects for *any* non-printables even though the RFC doesn't exclude all of
2316
+ them, because we follow the spirit of RFC 5322.
2317
+
2318
+ """
2319
+ m = _non_attribute_end_matcher(value)
2320
+ if not m:
2321
+ raise errors.HeaderParseError(
2322
+ "expected attrtext but found {!r}".format(value))
2323
+ attrtext = m.group()
2324
+ value = value[len(attrtext):]
2325
+ attrtext = ValueTerminal(attrtext, 'attrtext')
2326
+ _validate_xtext(attrtext)
2327
+ return attrtext, value
2328
+
2329
+ def get_attribute(value):
2330
+ """ [CFWS] 1*attrtext [CFWS]
2331
+
2332
+ This version of the BNF makes the CFWS explicit, and as usual we use a
2333
+ value terminal for the actual run of characters. The RFC equivalent of
2334
+ attrtext is the token characters, with the subtraction of '*', "'", and '%'.
2335
+ We include tab in the excluded set just as we do for token.
2336
+
2337
+ """
2338
+ attribute = Attribute()
2339
+ if value and value[0] in CFWS_LEADER:
2340
+ token, value = get_cfws(value)
2341
+ attribute.append(token)
2342
+ if value and value[0] in ATTRIBUTE_ENDS:
2343
+ raise errors.HeaderParseError(
2344
+ "expected token but found '{}'".format(value))
2345
+ token, value = get_attrtext(value)
2346
+ attribute.append(token)
2347
+ if value and value[0] in CFWS_LEADER:
2348
+ token, value = get_cfws(value)
2349
+ attribute.append(token)
2350
+ return attribute, value
2351
+
2352
+ def get_extended_attrtext(value):
2353
+ """attrtext = 1*(any non-ATTRIBUTE_ENDS character plus '%')
2354
+
2355
+ This is a special parsing routine so that we get a value that
2356
+ includes % escapes as a single string (which we decode as a single
2357
+ string later).
2358
+
2359
+ """
2360
+ m = _non_extended_attribute_end_matcher(value)
2361
+ if not m:
2362
+ raise errors.HeaderParseError(
2363
+ "expected extended attrtext but found {!r}".format(value))
2364
+ attrtext = m.group()
2365
+ value = value[len(attrtext):]
2366
+ attrtext = ValueTerminal(attrtext, 'extended-attrtext')
2367
+ _validate_xtext(attrtext)
2368
+ return attrtext, value
2369
+
2370
+ def get_extended_attribute(value):
2371
+ """ [CFWS] 1*extended_attrtext [CFWS]
2372
+
2373
+ This is like the non-extended version except we allow % characters, so that
2374
+ we can pick up an encoded value as a single string.
2375
+
2376
+ """
2377
+ # XXX: should we have an ExtendedAttribute TokenList?
2378
+ attribute = Attribute()
2379
+ if value and value[0] in CFWS_LEADER:
2380
+ token, value = get_cfws(value)
2381
+ attribute.append(token)
2382
+ if value and value[0] in EXTENDED_ATTRIBUTE_ENDS:
2383
+ raise errors.HeaderParseError(
2384
+ "expected token but found '{}'".format(value))
2385
+ token, value = get_extended_attrtext(value)
2386
+ attribute.append(token)
2387
+ if value and value[0] in CFWS_LEADER:
2388
+ token, value = get_cfws(value)
2389
+ attribute.append(token)
2390
+ return attribute, value
2391
+
2392
+ def get_section(value):
2393
+ """ '*' digits
2394
+
2395
+ The formal BNF is more complicated because leading 0s are not allowed. We
2396
+ check for that and add a defect. We also assume no CFWS is allowed between
2397
+ the '*' and the digits, though the RFC is not crystal clear on that.
2398
+ The caller should already have dealt with leading CFWS.
2399
+
2400
+ """
2401
+ section = Section()
2402
+ if not value or value[0] != '*':
2403
+ raise errors.HeaderParseError("Expected section but found {}".format(
2404
+ value))
2405
+ section.append(ValueTerminal('*', 'section-marker'))
2406
+ value = value[1:]
2407
+ if not value or not value[0].isdigit():
2408
+ raise errors.HeaderParseError("Expected section number but "
2409
+ "found {}".format(value))
2410
+ digits = ''
2411
+ while value and value[0].isdigit():
2412
+ digits += value[0]
2413
+ value = value[1:]
2414
+ if digits[0] == '0' and digits != '0':
2415
+ section.defects.append(errors.InvalidHeaderDefect(
2416
+ "section number has an invalid leading 0"))
2417
+ section.number = int(digits)
2418
+ section.append(ValueTerminal(digits, 'digits'))
2419
+ return section, value
2420
+
2421
+
2422
+ def get_value(value):
2423
+ """ quoted-string / attribute
2424
+
2425
+ """
2426
+ v = Value()
2427
+ if not value:
2428
+ raise errors.HeaderParseError("Expected value but found end of string")
2429
+ leader = None
2430
+ if value[0] in CFWS_LEADER:
2431
+ leader, value = get_cfws(value)
2432
+ if not value:
2433
+ raise errors.HeaderParseError("Expected value but found "
2434
+ "only {}".format(leader))
2435
+ if value[0] == '"':
2436
+ token, value = get_quoted_string(value)
2437
+ else:
2438
+ token, value = get_extended_attribute(value)
2439
+ if leader is not None:
2440
+ token[:0] = [leader]
2441
+ v.append(token)
2442
+ return v, value
2443
+
2444
+ def get_parameter(value):
2445
+ """ attribute [section] ["*"] [CFWS] "=" value
2446
+
2447
+ The CFWS is implied by the RFC but not made explicit in the BNF. This
2448
+ simplified form of the BNF from the RFC is made to conform with the RFC BNF
2449
+ through some extra checks. We do it this way because it makes both error
2450
+ recovery and working with the resulting parse tree easier.
2451
+ """
2452
+ # It is possible CFWS would also be implicitly allowed between the section
2453
+ # and the 'extended-attribute' marker (the '*') , but we've never seen that
2454
+ # in the wild and we will therefore ignore the possibility.
2455
+ param = Parameter()
2456
+ token, value = get_attribute(value)
2457
+ param.append(token)
2458
+ if not value or value[0] == ';':
2459
+ param.defects.append(errors.InvalidHeaderDefect("Parameter contains "
2460
+ "name ({}) but no value".format(token)))
2461
+ return param, value
2462
+ if value[0] == '*':
2463
+ try:
2464
+ token, value = get_section(value)
2465
+ param.sectioned = True
2466
+ param.append(token)
2467
+ except errors.HeaderParseError:
2468
+ pass
2469
+ if not value:
2470
+ raise errors.HeaderParseError("Incomplete parameter")
2471
+ if value[0] == '*':
2472
+ param.append(ValueTerminal('*', 'extended-parameter-marker'))
2473
+ value = value[1:]
2474
+ param.extended = True
2475
+ if value[0] != '=':
2476
+ raise errors.HeaderParseError("Parameter not followed by '='")
2477
+ param.append(ValueTerminal('=', 'parameter-separator'))
2478
+ value = value[1:]
2479
+ if value and value[0] in CFWS_LEADER:
2480
+ token, value = get_cfws(value)
2481
+ param.append(token)
2482
+ remainder = None
2483
+ appendto = param
2484
+ if param.extended and value and value[0] == '"':
2485
+ # Now for some serious hackery to handle the common invalid case of
2486
+ # double quotes around an extended value. We also accept (with defect)
2487
+ # a value marked as encoded that isn't really.
2488
+ qstring, remainder = get_quoted_string(value)
2489
+ inner_value = qstring.stripped_value
2490
+ semi_valid = False
2491
+ if param.section_number == 0:
2492
+ if inner_value and inner_value[0] == "'":
2493
+ semi_valid = True
2494
+ else:
2495
+ token, rest = get_attrtext(inner_value)
2496
+ if rest and rest[0] == "'":
2497
+ semi_valid = True
2498
+ else:
2499
+ try:
2500
+ token, rest = get_extended_attrtext(inner_value)
2501
+ except:
2502
+ pass
2503
+ else:
2504
+ if not rest:
2505
+ semi_valid = True
2506
+ if semi_valid:
2507
+ param.defects.append(errors.InvalidHeaderDefect(
2508
+ "Quoted string value for extended parameter is invalid"))
2509
+ param.append(qstring)
2510
+ for t in qstring:
2511
+ if t.token_type == 'bare-quoted-string':
2512
+ t[:] = []
2513
+ appendto = t
2514
+ break
2515
+ value = inner_value
2516
+ else:
2517
+ remainder = None
2518
+ param.defects.append(errors.InvalidHeaderDefect(
2519
+ "Parameter marked as extended but appears to have a "
2520
+ "quoted string value that is non-encoded"))
2521
+ if value and value[0] == "'":
2522
+ token = None
2523
+ else:
2524
+ token, value = get_value(value)
2525
+ if not param.extended or param.section_number > 0:
2526
+ if not value or value[0] != "'":
2527
+ appendto.append(token)
2528
+ if remainder is not None:
2529
+ assert not value, value
2530
+ value = remainder
2531
+ return param, value
2532
+ param.defects.append(errors.InvalidHeaderDefect(
2533
+ "Apparent initial-extended-value but attribute "
2534
+ "was not marked as extended or was not initial section"))
2535
+ if not value:
2536
+ # Assume the charset/lang is missing and the token is the value.
2537
+ param.defects.append(errors.InvalidHeaderDefect(
2538
+ "Missing required charset/lang delimiters"))
2539
+ appendto.append(token)
2540
+ if remainder is None:
2541
+ return param, value
2542
+ else:
2543
+ if token is not None:
2544
+ for t in token:
2545
+ if t.token_type == 'extended-attrtext':
2546
+ break
2547
+ t.token_type == 'attrtext'
2548
+ appendto.append(t)
2549
+ param.charset = t.value
2550
+ if value[0] != "'":
2551
+ raise errors.HeaderParseError("Expected RFC2231 char/lang encoding "
2552
+ "delimiter, but found {!r}".format(value))
2553
+ appendto.append(ValueTerminal("'", 'RFC2231-delimiter'))
2554
+ value = value[1:]
2555
+ if value and value[0] != "'":
2556
+ token, value = get_attrtext(value)
2557
+ appendto.append(token)
2558
+ param.lang = token.value
2559
+ if not value or value[0] != "'":
2560
+ raise errors.HeaderParseError("Expected RFC2231 char/lang encoding "
2561
+ "delimiter, but found {}".format(value))
2562
+ appendto.append(ValueTerminal("'", 'RFC2231-delimiter'))
2563
+ value = value[1:]
2564
+ if remainder is not None:
2565
+ # Treat the rest of value as bare quoted string content.
2566
+ v = Value()
2567
+ while value:
2568
+ if value[0] in WSP:
2569
+ token, value = get_fws(value)
2570
+ elif value[0] == '"':
2571
+ token = ValueTerminal('"', 'DQUOTE')
2572
+ value = value[1:]
2573
+ else:
2574
+ token, value = get_qcontent(value)
2575
+ v.append(token)
2576
+ token = v
2577
+ else:
2578
+ token, value = get_value(value)
2579
+ appendto.append(token)
2580
+ if remainder is not None:
2581
+ assert not value, value
2582
+ value = remainder
2583
+ return param, value
2584
+
2585
+ def parse_mime_parameters(value):
2586
+ """ parameter *( ";" parameter )
2587
+
2588
+ That BNF is meant to indicate this routine should only be called after
2589
+ finding and handling the leading ';'. There is no corresponding rule in
2590
+ the formal RFC grammar, but it is more convenient for us for the set of
2591
+ parameters to be treated as its own TokenList.
2592
+
2593
+ This is 'parse' routine because it consumes the remaining value, but it
2594
+ would never be called to parse a full header. Instead it is called to
2595
+ parse everything after the non-parameter value of a specific MIME header.
2596
+
2597
+ """
2598
+ mime_parameters = MimeParameters()
2599
+ while value:
2600
+ try:
2601
+ token, value = get_parameter(value)
2602
+ mime_parameters.append(token)
2603
+ except errors.HeaderParseError:
2604
+ leader = None
2605
+ if value[0] in CFWS_LEADER:
2606
+ leader, value = get_cfws(value)
2607
+ if not value:
2608
+ mime_parameters.append(leader)
2609
+ return mime_parameters
2610
+ if value[0] == ';':
2611
+ if leader is not None:
2612
+ mime_parameters.append(leader)
2613
+ mime_parameters.defects.append(errors.InvalidHeaderDefect(
2614
+ "parameter entry with no content"))
2615
+ else:
2616
+ token, value = get_invalid_parameter(value)
2617
+ if leader:
2618
+ token[:0] = [leader]
2619
+ mime_parameters.append(token)
2620
+ mime_parameters.defects.append(errors.InvalidHeaderDefect(
2621
+ "invalid parameter {!r}".format(token)))
2622
+ if value and value[0] != ';':
2623
+ # Junk after the otherwise valid parameter. Mark it as
2624
+ # invalid, but it will have a value.
2625
+ param = mime_parameters[-1]
2626
+ param.token_type = 'invalid-parameter'
2627
+ token, value = get_invalid_parameter(value)
2628
+ param.extend(token)
2629
+ mime_parameters.defects.append(errors.InvalidHeaderDefect(
2630
+ "parameter with invalid trailing text {!r}".format(token)))
2631
+ if value:
2632
+ # Must be a ';' at this point.
2633
+ mime_parameters.append(ValueTerminal(';', 'parameter-separator'))
2634
+ value = value[1:]
2635
+ return mime_parameters
2636
+
2637
+ def _find_mime_parameters(tokenlist, value):
2638
+ """Do our best to find the parameters in an invalid MIME header
2639
+
2640
+ """
2641
+ while value and value[0] != ';':
2642
+ if value[0] in PHRASE_ENDS:
2643
+ tokenlist.append(ValueTerminal(value[0], 'misplaced-special'))
2644
+ value = value[1:]
2645
+ else:
2646
+ token, value = get_phrase(value)
2647
+ tokenlist.append(token)
2648
+ if not value:
2649
+ return
2650
+ tokenlist.append(ValueTerminal(';', 'parameter-separator'))
2651
+ tokenlist.append(parse_mime_parameters(value[1:]))
2652
+
2653
+ def parse_content_type_header(value):
2654
+ """ maintype "/" subtype *( ";" parameter )
2655
+
2656
+ The maintype and substype are tokens. Theoretically they could
2657
+ be checked against the official IANA list + x-token, but we
2658
+ don't do that.
2659
+ """
2660
+ ctype = ContentType()
2661
+ if not value:
2662
+ ctype.defects.append(errors.HeaderMissingRequiredValue(
2663
+ "Missing content type specification"))
2664
+ return ctype
2665
+ try:
2666
+ token, value = get_token(value)
2667
+ except errors.HeaderParseError:
2668
+ ctype.defects.append(errors.InvalidHeaderDefect(
2669
+ "Expected content maintype but found {!r}".format(value)))
2670
+ _find_mime_parameters(ctype, value)
2671
+ return ctype
2672
+ ctype.append(token)
2673
+ # XXX: If we really want to follow the formal grammar we should make
2674
+ # mantype and subtype specialized TokenLists here. Probably not worth it.
2675
+ if not value or value[0] != '/':
2676
+ ctype.defects.append(errors.InvalidHeaderDefect(
2677
+ "Invalid content type"))
2678
+ if value:
2679
+ _find_mime_parameters(ctype, value)
2680
+ return ctype
2681
+ ctype.maintype = token.value.strip().lower()
2682
+ ctype.append(ValueTerminal('/', 'content-type-separator'))
2683
+ value = value[1:]
2684
+ try:
2685
+ token, value = get_token(value)
2686
+ except errors.HeaderParseError:
2687
+ ctype.defects.append(errors.InvalidHeaderDefect(
2688
+ "Expected content subtype but found {!r}".format(value)))
2689
+ _find_mime_parameters(ctype, value)
2690
+ return ctype
2691
+ ctype.append(token)
2692
+ ctype.subtype = token.value.strip().lower()
2693
+ if not value:
2694
+ return ctype
2695
+ if value[0] != ';':
2696
+ ctype.defects.append(errors.InvalidHeaderDefect(
2697
+ "Only parameters are valid after content type, but "
2698
+ "found {!r}".format(value)))
2699
+ # The RFC requires that a syntactically invalid content-type be treated
2700
+ # as text/plain. Perhaps we should postel this, but we should probably
2701
+ # only do that if we were checking the subtype value against IANA.
2702
+ del ctype.maintype, ctype.subtype
2703
+ _find_mime_parameters(ctype, value)
2704
+ return ctype
2705
+ ctype.append(ValueTerminal(';', 'parameter-separator'))
2706
+ ctype.append(parse_mime_parameters(value[1:]))
2707
+ return ctype
2708
+
2709
+ def parse_content_disposition_header(value):
2710
+ """ disposition-type *( ";" parameter )
2711
+
2712
+ """
2713
+ disp_header = ContentDisposition()
2714
+ if not value:
2715
+ disp_header.defects.append(errors.HeaderMissingRequiredValue(
2716
+ "Missing content disposition"))
2717
+ return disp_header
2718
+ try:
2719
+ token, value = get_token(value)
2720
+ except errors.HeaderParseError:
2721
+ disp_header.defects.append(errors.InvalidHeaderDefect(
2722
+ "Expected content disposition but found {!r}".format(value)))
2723
+ _find_mime_parameters(disp_header, value)
2724
+ return disp_header
2725
+ disp_header.append(token)
2726
+ disp_header.content_disposition = token.value.strip().lower()
2727
+ if not value:
2728
+ return disp_header
2729
+ if value[0] != ';':
2730
+ disp_header.defects.append(errors.InvalidHeaderDefect(
2731
+ "Only parameters are valid after content disposition, but "
2732
+ "found {!r}".format(value)))
2733
+ _find_mime_parameters(disp_header, value)
2734
+ return disp_header
2735
+ disp_header.append(ValueTerminal(';', 'parameter-separator'))
2736
+ disp_header.append(parse_mime_parameters(value[1:]))
2737
+ return disp_header
2738
+
2739
+ def parse_content_transfer_encoding_header(value):
2740
+ """ mechanism
2741
+
2742
+ """
2743
+ # We should probably validate the values, since the list is fixed.
2744
+ cte_header = ContentTransferEncoding()
2745
+ if not value:
2746
+ cte_header.defects.append(errors.HeaderMissingRequiredValue(
2747
+ "Missing content transfer encoding"))
2748
+ return cte_header
2749
+ try:
2750
+ token, value = get_token(value)
2751
+ except errors.HeaderParseError:
2752
+ cte_header.defects.append(errors.InvalidHeaderDefect(
2753
+ "Expected content transfer encoding but found {!r}".format(value)))
2754
+ else:
2755
+ cte_header.append(token)
2756
+ cte_header.cte = token.value.strip().lower()
2757
+ if not value:
2758
+ return cte_header
2759
+ while value:
2760
+ cte_header.defects.append(errors.InvalidHeaderDefect(
2761
+ "Extra text after content transfer encoding"))
2762
+ if value[0] in PHRASE_ENDS:
2763
+ cte_header.append(ValueTerminal(value[0], 'misplaced-special'))
2764
+ value = value[1:]
2765
+ else:
2766
+ token, value = get_phrase(value)
2767
+ cte_header.append(token)
2768
+ return cte_header
2769
+
2770
+
2771
+ #
2772
+ # Header folding
2773
+ #
2774
+ # Header folding is complex, with lots of rules and corner cases. The
2775
+ # following code does its best to obey the rules and handle the corner
2776
+ # cases, but you can be sure there are few bugs:)
2777
+ #
2778
+ # This folder generally canonicalizes as it goes, preferring the stringified
2779
+ # version of each token. The tokens contain information that supports the
2780
+ # folder, including which tokens can be encoded in which ways.
2781
+ #
2782
+ # Folded text is accumulated in a simple list of strings ('lines'), each
2783
+ # one of which should be less than policy.max_line_length ('maxlen').
2784
+ #
2785
+
2786
+ def _steal_trailing_WSP_if_exists(lines):
2787
+ wsp = ''
2788
+ if lines and lines[-1] and lines[-1][-1] in WSP:
2789
+ wsp = lines[-1][-1]
2790
+ lines[-1] = lines[-1][:-1]
2791
+ return wsp
2792
+
2793
+ def _refold_parse_tree(parse_tree, *, policy):
2794
+ """Return string of contents of parse_tree folded according to RFC rules.
2795
+
2796
+ """
2797
+ # max_line_length 0/None means no limit, ie: infinitely long.
2798
+ maxlen = policy.max_line_length or sys.maxsize
2799
+ encoding = 'utf-8' if policy.utf8 else 'us-ascii'
2800
+ lines = [''] # Folded lines to be output
2801
+ leading_whitespace = '' # When we have whitespace between two encoded
2802
+ # words, we may need to encode the whitespace
2803
+ # at the beginning of the second word.
2804
+ last_ew = None # Points to the last encoded character if there's an ew on
2805
+ # the line
2806
+ last_charset = None
2807
+ wrap_as_ew_blocked = 0
2808
+ want_encoding = False # This is set to True if we need to encode this part
2809
+ end_ew_not_allowed = Terminal('', 'wrap_as_ew_blocked')
2810
+ parts = list(parse_tree)
2811
+ while parts:
2812
+ part = parts.pop(0)
2813
+ if part is end_ew_not_allowed:
2814
+ wrap_as_ew_blocked -= 1
2815
+ continue
2816
+ tstr = str(part)
2817
+ if not want_encoding:
2818
+ if part.token_type in ('ptext', 'vtext'):
2819
+ # Encode if tstr contains special characters.
2820
+ want_encoding = not SPECIALSNL.isdisjoint(tstr)
2821
+ else:
2822
+ # Encode if tstr contains newlines.
2823
+ want_encoding = not NLSET.isdisjoint(tstr)
2824
+ try:
2825
+ tstr.encode(encoding)
2826
+ charset = encoding
2827
+ except UnicodeEncodeError:
2828
+ if any(isinstance(x, errors.UndecodableBytesDefect)
2829
+ for x in part.all_defects):
2830
+ charset = 'unknown-8bit'
2831
+ else:
2832
+ # If policy.utf8 is false this should really be taken from a
2833
+ # 'charset' property on the policy.
2834
+ charset = 'utf-8'
2835
+ want_encoding = True
2836
+
2837
+ if part.token_type == 'mime-parameters':
2838
+ # Mime parameter folding (using RFC2231) is extra special.
2839
+ _fold_mime_parameters(part, lines, maxlen, encoding)
2840
+ continue
2841
+
2842
+ if want_encoding and not wrap_as_ew_blocked:
2843
+ if not part.as_ew_allowed:
2844
+ want_encoding = False
2845
+ last_ew = None
2846
+ if part.syntactic_break:
2847
+ encoded_part = part.fold(policy=policy)[:-len(policy.linesep)]
2848
+ if policy.linesep not in encoded_part:
2849
+ # It fits on a single line
2850
+ if len(encoded_part) > maxlen - len(lines[-1]):
2851
+ # But not on this one, so start a new one.
2852
+ newline = _steal_trailing_WSP_if_exists(lines)
2853
+ # XXX what if encoded_part has no leading FWS?
2854
+ lines.append(newline)
2855
+ lines[-1] += encoded_part
2856
+ continue
2857
+ # Either this is not a major syntactic break, so we don't
2858
+ # want it on a line by itself even if it fits, or it
2859
+ # doesn't fit on a line by itself. Either way, fall through
2860
+ # to unpacking the subparts and wrapping them.
2861
+ if not hasattr(part, 'encode'):
2862
+ # It's not a Terminal, do each piece individually.
2863
+ parts = list(part) + parts
2864
+ want_encoding = False
2865
+ continue
2866
+ elif part.as_ew_allowed:
2867
+ # It's a terminal, wrap it as an encoded word, possibly
2868
+ # combining it with previously encoded words if allowed.
2869
+ if (last_ew is not None and
2870
+ charset != last_charset and
2871
+ (last_charset == 'unknown-8bit' or
2872
+ last_charset == 'utf-8' and charset != 'us-ascii')):
2873
+ last_ew = None
2874
+ last_ew = _fold_as_ew(tstr, lines, maxlen, last_ew,
2875
+ part.ew_combine_allowed, charset, leading_whitespace)
2876
+ # This whitespace has been added to the lines in _fold_as_ew()
2877
+ # so clear it now.
2878
+ leading_whitespace = ''
2879
+ last_charset = charset
2880
+ want_encoding = False
2881
+ continue
2882
+ else:
2883
+ # It's a terminal which should be kept non-encoded
2884
+ # (e.g. a ListSeparator).
2885
+ last_ew = None
2886
+ want_encoding = False
2887
+ # fall through
2888
+
2889
+ if len(tstr) <= maxlen - len(lines[-1]):
2890
+ lines[-1] += tstr
2891
+ continue
2892
+
2893
+ # This part is too long to fit. The RFC wants us to break at
2894
+ # "major syntactic breaks", so unless we don't consider this
2895
+ # to be one, check if it will fit on the next line by itself.
2896
+ leading_whitespace = ''
2897
+ if (part.syntactic_break and
2898
+ len(tstr) + 1 <= maxlen):
2899
+ newline = _steal_trailing_WSP_if_exists(lines)
2900
+ if newline or part.startswith_fws():
2901
+ # We're going to fold the data onto a new line here. Due to
2902
+ # the way encoded strings handle continuation lines, we need to
2903
+ # be prepared to encode any whitespace if the next line turns
2904
+ # out to start with an encoded word.
2905
+ lines.append(newline + tstr)
2906
+
2907
+ whitespace_accumulator = []
2908
+ for char in lines[-1]:
2909
+ if char not in WSP:
2910
+ break
2911
+ whitespace_accumulator.append(char)
2912
+ leading_whitespace = ''.join(whitespace_accumulator)
2913
+ last_ew = None
2914
+ continue
2915
+ if not hasattr(part, 'encode'):
2916
+ # It's not a terminal, try folding the subparts.
2917
+ newparts = list(part)
2918
+ if part.token_type == 'bare-quoted-string':
2919
+ # To fold a quoted string we need to create a list of terminal
2920
+ # tokens that will render the leading and trailing quotes
2921
+ # and use quoted pairs in the value as appropriate.
2922
+ newparts = (
2923
+ [ValueTerminal('"', 'ptext')] +
2924
+ [ValueTerminal(make_quoted_pairs(p), 'ptext')
2925
+ for p in newparts] +
2926
+ [ValueTerminal('"', 'ptext')])
2927
+ if not part.as_ew_allowed:
2928
+ wrap_as_ew_blocked += 1
2929
+ newparts.append(end_ew_not_allowed)
2930
+ parts = newparts + parts
2931
+ continue
2932
+ if part.as_ew_allowed and not wrap_as_ew_blocked:
2933
+ # It doesn't need CTE encoding, but encode it anyway so we can
2934
+ # wrap it.
2935
+ parts.insert(0, part)
2936
+ want_encoding = True
2937
+ continue
2938
+ # We can't figure out how to wrap, it, so give up.
2939
+ newline = _steal_trailing_WSP_if_exists(lines)
2940
+ if newline or part.startswith_fws():
2941
+ lines.append(newline + tstr)
2942
+ else:
2943
+ # We can't fold it onto the next line either...
2944
+ lines[-1] += tstr
2945
+
2946
+ return policy.linesep.join(lines) + policy.linesep
2947
+
2948
+ def _fold_as_ew(to_encode, lines, maxlen, last_ew, ew_combine_allowed, charset, leading_whitespace):
2949
+ """Fold string to_encode into lines as encoded word, combining if allowed.
2950
+ Return the new value for last_ew, or None if ew_combine_allowed is False.
2951
+
2952
+ If there is already an encoded word in the last line of lines (indicated by
2953
+ a non-None value for last_ew) and ew_combine_allowed is true, decode the
2954
+ existing ew, combine it with to_encode, and re-encode. Otherwise, encode
2955
+ to_encode. In either case, split to_encode as necessary so that the
2956
+ encoded segments fit within maxlen.
2957
+
2958
+ """
2959
+ if last_ew is not None and ew_combine_allowed:
2960
+ to_encode = str(
2961
+ get_unstructured(lines[-1][last_ew:] + to_encode))
2962
+ lines[-1] = lines[-1][:last_ew]
2963
+ elif to_encode[0] in WSP:
2964
+ # We're joining this to non-encoded text, so don't encode
2965
+ # the leading blank.
2966
+ leading_wsp = to_encode[0]
2967
+ to_encode = to_encode[1:]
2968
+ if (len(lines[-1]) == maxlen):
2969
+ lines.append(_steal_trailing_WSP_if_exists(lines))
2970
+ lines[-1] += leading_wsp
2971
+
2972
+ trailing_wsp = ''
2973
+ if to_encode[-1] in WSP:
2974
+ # Likewise for the trailing space.
2975
+ trailing_wsp = to_encode[-1]
2976
+ to_encode = to_encode[:-1]
2977
+ new_last_ew = len(lines[-1]) if last_ew is None else last_ew
2978
+
2979
+ encode_as = 'utf-8' if charset == 'us-ascii' else charset
2980
+
2981
+ # The RFC2047 chrome takes up 7 characters plus the length
2982
+ # of the charset name.
2983
+ chrome_len = len(encode_as) + 7
2984
+
2985
+ if (chrome_len + 1) >= maxlen:
2986
+ raise errors.HeaderParseError(
2987
+ "max_line_length is too small to fit an encoded word")
2988
+
2989
+ while to_encode:
2990
+ remaining_space = maxlen - len(lines[-1])
2991
+ text_space = remaining_space - chrome_len - len(leading_whitespace)
2992
+ if text_space <= 0:
2993
+ lines.append(' ')
2994
+ continue
2995
+
2996
+ # If we are at the start of a continuation line, prepend whitespace
2997
+ # (we only want to do this when the line starts with an encoded word
2998
+ # but if we're folding in this helper function, then we know that we
2999
+ # are going to be writing out an encoded word.)
3000
+ if len(lines) > 1 and len(lines[-1]) == 1 and leading_whitespace:
3001
+ encoded_word = _ew.encode(leading_whitespace, charset=encode_as)
3002
+ lines[-1] += encoded_word
3003
+ leading_whitespace = ''
3004
+
3005
+ to_encode_word = to_encode[:text_space]
3006
+ encoded_word = _ew.encode(to_encode_word, charset=encode_as)
3007
+ excess = len(encoded_word) - remaining_space
3008
+ while excess > 0:
3009
+ # Since the chunk to encode is guaranteed to fit into less than 100 characters,
3010
+ # shrinking it by one at a time shouldn't take long.
3011
+ to_encode_word = to_encode_word[:-1]
3012
+ encoded_word = _ew.encode(to_encode_word, charset=encode_as)
3013
+ excess = len(encoded_word) - remaining_space
3014
+ lines[-1] += encoded_word
3015
+ to_encode = to_encode[len(to_encode_word):]
3016
+ leading_whitespace = ''
3017
+
3018
+ if to_encode:
3019
+ lines.append(' ')
3020
+ new_last_ew = len(lines[-1])
3021
+ lines[-1] += trailing_wsp
3022
+ return new_last_ew if ew_combine_allowed else None
3023
+
3024
+ def _fold_mime_parameters(part, lines, maxlen, encoding):
3025
+ """Fold TokenList 'part' into the 'lines' list as mime parameters.
3026
+
3027
+ Using the decoded list of parameters and values, format them according to
3028
+ the RFC rules, including using RFC2231 encoding if the value cannot be
3029
+ expressed in 'encoding' and/or the parameter+value is too long to fit
3030
+ within 'maxlen'.
3031
+
3032
+ """
3033
+ # Special case for RFC2231 encoding: start from decoded values and use
3034
+ # RFC2231 encoding iff needed.
3035
+ #
3036
+ # Note that the 1 and 2s being added to the length calculations are
3037
+ # accounting for the possibly-needed spaces and semicolons we'll be adding.
3038
+ #
3039
+ for name, value in part.params:
3040
+ # XXX What if this ';' puts us over maxlen the first time through the
3041
+ # loop? We should split the header value onto a newline in that case,
3042
+ # but to do that we need to recognize the need earlier or reparse the
3043
+ # header, so I'm going to ignore that bug for now. It'll only put us
3044
+ # one character over.
3045
+ if not lines[-1].rstrip().endswith(';'):
3046
+ lines[-1] += ';'
3047
+ charset = encoding
3048
+ error_handler = 'strict'
3049
+ try:
3050
+ value.encode(encoding)
3051
+ encoding_required = False
3052
+ except UnicodeEncodeError:
3053
+ encoding_required = True
3054
+ if utils._has_surrogates(value):
3055
+ charset = 'unknown-8bit'
3056
+ error_handler = 'surrogateescape'
3057
+ else:
3058
+ charset = 'utf-8'
3059
+ if encoding_required:
3060
+ encoded_value = urllib.parse.quote(
3061
+ value, safe='', errors=error_handler)
3062
+ tstr = "{}*={}''{}".format(name, charset, encoded_value)
3063
+ else:
3064
+ tstr = '{}={}'.format(name, quote_string(value))
3065
+ if len(lines[-1]) + len(tstr) + 1 < maxlen:
3066
+ lines[-1] = lines[-1] + ' ' + tstr
3067
+ continue
3068
+ elif len(tstr) + 2 <= maxlen:
3069
+ lines.append(' ' + tstr)
3070
+ continue
3071
+ # We need multiple sections. We are allowed to mix encoded and
3072
+ # non-encoded sections, but we aren't going to. We'll encode them all.
3073
+ section = 0
3074
+ extra_chrome = charset + "''"
3075
+ while value:
3076
+ chrome_len = len(name) + len(str(section)) + 3 + len(extra_chrome)
3077
+ if maxlen <= chrome_len + 3:
3078
+ # We need room for the leading blank, the trailing semicolon,
3079
+ # and at least one character of the value. If we don't
3080
+ # have that, we'd be stuck, so in that case fall back to
3081
+ # the RFC standard width.
3082
+ maxlen = 78
3083
+ splitpoint = maxchars = maxlen - chrome_len - 2
3084
+ while True:
3085
+ partial = value[:splitpoint]
3086
+ encoded_value = urllib.parse.quote(
3087
+ partial, safe='', errors=error_handler)
3088
+ if len(encoded_value) <= maxchars:
3089
+ break
3090
+ splitpoint -= 1
3091
+ lines.append(" {}*{}*={}{}".format(
3092
+ name, section, extra_chrome, encoded_value))
3093
+ extra_chrome = ''
3094
+ section += 1
3095
+ value = value[splitpoint:]
3096
+ if value:
3097
+ lines[-1] += ';'