matplotlib-rs 0.0.8__cp313-cp313-win_amd64.whl

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 (352) hide show
  1. docs/releases/0.0.1.md +268 -0
  2. docs/releases/0.0.2.md +69 -0
  3. docs/releases/0.0.3.md +80 -0
  4. docs/releases/0.0.4.md +73 -0
  5. docs/releases/0.0.5.md +24 -0
  6. docs/releases/0.0.6.md +24 -0
  7. docs/releases/0.0.7.md +24 -0
  8. docs/releases/0.0.8.md +16 -0
  9. licenses/LICENSE_CONTOURPY +29 -0
  10. licenses/LICENSE_CYCLER +27 -0
  11. licenses/LICENSE_DATEUTIL +54 -0
  12. licenses/LICENSE_KIWISOLVER +71 -0
  13. licenses/LICENSE_LIBWEBP +56 -0
  14. licenses/LICENSE_MATPLOTLIB +1253 -0
  15. licenses/LICENSE_PYPARSING +20 -0
  16. licenses/LICENSE_QHULL +39 -0
  17. licenses/LICENSE_SIX +18 -0
  18. matplotlib_rs/__init__.py +1683 -0
  19. matplotlib_rs/__main__.py +27 -0
  20. matplotlib_rs/_afm.py +500 -0
  21. matplotlib_rs/_animation_data.py +263 -0
  22. matplotlib_rs/_api/__init__.py +495 -0
  23. matplotlib_rs/_api/deprecation.py +534 -0
  24. matplotlib_rs/_axis_py.py +2991 -0
  25. matplotlib_rs/_blocking_input.py +31 -0
  26. matplotlib_rs/_cm.py +1500 -0
  27. matplotlib_rs/_cm_bivar.py +1289 -0
  28. matplotlib_rs/_cm_listed.py +2848 -0
  29. matplotlib_rs/_cm_multivar.py +167 -0
  30. matplotlib_rs/_color_data.py +1142 -0
  31. matplotlib_rs/_colormap.py +132 -0
  32. matplotlib_rs/_constrained_layout.py +825 -0
  33. matplotlib_rs/_contour.py +108 -0
  34. matplotlib_rs/_doc_cache.py +12214 -0
  35. matplotlib_rs/_docstring.py +142 -0
  36. matplotlib_rs/_enums.py +178 -0
  37. matplotlib_rs/_figure_rs.py +294 -0
  38. matplotlib_rs/_fontconfig_pattern.py +129 -0
  39. matplotlib_rs/_foreign.py +220 -0
  40. matplotlib_rs/_hook.py +94 -0
  41. matplotlib_rs/_image.py +160 -0
  42. matplotlib_rs/_imageio.py +229 -0
  43. matplotlib_rs/_internal_utils.py +65 -0
  44. matplotlib_rs/_kiwi.py +484 -0
  45. matplotlib_rs/_layoutgrid.py +549 -0
  46. matplotlib_rs/_live.py +192 -0
  47. matplotlib_rs/_mathtext.py +3103 -0
  48. matplotlib_rs/_mathtext_data.py +1811 -0
  49. matplotlib_rs/_mplrs.cp313-win_amd64.pyd +0 -0
  50. matplotlib_rs/_path.py +25 -0
  51. matplotlib_rs/_png.py +162 -0
  52. matplotlib_rs/_pylab_helpers.py +137 -0
  53. matplotlib_rs/_qhull.py +66 -0
  54. matplotlib_rs/_rcpush.py +84 -0
  55. matplotlib_rs/_spines_rs.py +108 -0
  56. matplotlib_rs/_style_helpers.py +52 -0
  57. matplotlib_rs/_text_helpers.py +51 -0
  58. matplotlib_rs/_tight_bbox.py +85 -0
  59. matplotlib_rs/_tight_layout.py +302 -0
  60. matplotlib_rs/_tri.py +140 -0
  61. matplotlib_rs/_type1font.py +1228 -0
  62. matplotlib_rs/_vendor/__init__.py +8 -0
  63. matplotlib_rs/_vendor/cycler.py +574 -0
  64. matplotlib_rs/_vendor/dateutil/__init__.py +27 -0
  65. matplotlib_rs/_vendor/dateutil/_common.py +44 -0
  66. matplotlib_rs/_vendor/dateutil/_tzdata_impl.py +148 -0
  67. matplotlib_rs/_vendor/dateutil/_version.py +5 -0
  68. matplotlib_rs/_vendor/dateutil/easter.py +90 -0
  69. matplotlib_rs/_vendor/dateutil/parser/__init__.py +62 -0
  70. matplotlib_rs/_vendor/dateutil/parser/_parser.py +1614 -0
  71. matplotlib_rs/_vendor/dateutil/parser/isoparser.py +417 -0
  72. matplotlib_rs/_vendor/dateutil/relativedelta.py +597 -0
  73. matplotlib_rs/_vendor/dateutil/rrule.py +1765 -0
  74. matplotlib_rs/_vendor/dateutil/tz/__init__.py +61 -0
  75. matplotlib_rs/_vendor/dateutil/tz/_common.py +420 -0
  76. matplotlib_rs/_vendor/dateutil/tz/_factories.py +81 -0
  77. matplotlib_rs/_vendor/dateutil/tz/_tzfile.py +1429 -0
  78. matplotlib_rs/_vendor/dateutil/tz/_tzpath.py +105 -0
  79. matplotlib_rs/_vendor/dateutil/tz/tz.py +1473 -0
  80. matplotlib_rs/_vendor/dateutil/tz/win.py +371 -0
  81. matplotlib_rs/_vendor/dateutil/tzwin.py +3 -0
  82. matplotlib_rs/_vendor/dateutil/utils.py +72 -0
  83. matplotlib_rs/_vendor/dateutil/zoneinfo/__init__.py +234 -0
  84. matplotlib_rs/_vendor/pyparsing/__init__.py +414 -0
  85. matplotlib_rs/_vendor/pyparsing/actions.py +265 -0
  86. matplotlib_rs/_vendor/pyparsing/common.py +571 -0
  87. matplotlib_rs/_vendor/pyparsing/core.py +6973 -0
  88. matplotlib_rs/_vendor/pyparsing/exceptions.py +354 -0
  89. matplotlib_rs/_vendor/pyparsing/helpers.py +1770 -0
  90. matplotlib_rs/_vendor/pyparsing/results.py +929 -0
  91. matplotlib_rs/_vendor/pyparsing/testing.py +399 -0
  92. matplotlib_rs/_vendor/pyparsing/unicode.py +357 -0
  93. matplotlib_rs/_vendor/pyparsing/util.py +515 -0
  94. matplotlib_rs/_vendor/pyparsing/warnings.py +11 -0
  95. matplotlib_rs/_vendor/six.py +1004 -0
  96. matplotlib_rs/animation.py +1843 -0
  97. matplotlib_rs/artist.py +2302 -0
  98. matplotlib_rs/axes/__init__.py +19 -0
  99. matplotlib_rs/axes/_axes.py +9402 -0
  100. matplotlib_rs/axes/_bar.py +185 -0
  101. matplotlib_rs/axes/_base.py +5236 -0
  102. matplotlib_rs/axes/_base_rs.py +727 -0
  103. matplotlib_rs/axes/_boxplot.py +391 -0
  104. matplotlib_rs/axes/_hist.py +99 -0
  105. matplotlib_rs/axes/_secondary_axes.py +357 -0
  106. matplotlib_rs/axis.py +1963 -0
  107. matplotlib_rs/backend_bases.py +3760 -0
  108. matplotlib_rs/backend_managers.py +388 -0
  109. matplotlib_rs/backend_tools.py +1002 -0
  110. matplotlib_rs/backends/__init__.py +6 -0
  111. matplotlib_rs/backends/_backend_pdf_ps.py +451 -0
  112. matplotlib_rs/backends/backend_agg.py +552 -0
  113. matplotlib_rs/backends/backend_mixed.py +123 -0
  114. matplotlib_rs/backends/backend_pdf.py +2711 -0
  115. matplotlib_rs/backends/backend_pgf.py +1031 -0
  116. matplotlib_rs/backends/backend_ps.py +1491 -0
  117. matplotlib_rs/backends/backend_svg.py +1395 -0
  118. matplotlib_rs/backends/backend_template.py +214 -0
  119. matplotlib_rs/backends/registry.py +423 -0
  120. matplotlib_rs/bezier.py +691 -0
  121. matplotlib_rs/category.py +236 -0
  122. matplotlib_rs/cbook.py +2762 -0
  123. matplotlib_rs/cm.py +251 -0
  124. matplotlib_rs/collections.py +2711 -0
  125. matplotlib_rs/colorbar.py +1586 -0
  126. matplotlib_rs/colorizer.py +909 -0
  127. matplotlib_rs/colors.py +4278 -0
  128. matplotlib_rs/container.py +256 -0
  129. matplotlib_rs/contour.py +1756 -0
  130. matplotlib_rs/dates.py +1847 -0
  131. matplotlib_rs/dviread.py +1386 -0
  132. matplotlib_rs/figure.py +3815 -0
  133. matplotlib_rs/font_manager.py +1855 -0
  134. matplotlib_rs/ft2font.py +515 -0
  135. matplotlib_rs/gridspec.py +808 -0
  136. matplotlib_rs/hatch.py +244 -0
  137. matplotlib_rs/image.py +1863 -0
  138. matplotlib_rs/inset.py +291 -0
  139. matplotlib_rs/layout_engine.py +310 -0
  140. matplotlib_rs/legend.py +1480 -0
  141. matplotlib_rs/legend_handler.py +812 -0
  142. matplotlib_rs/lines.py +1886 -0
  143. matplotlib_rs/markers.py +908 -0
  144. matplotlib_rs/mathtext.py +141 -0
  145. matplotlib_rs/mlab.py +959 -0
  146. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans-Bold.ttf +0 -0
  147. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans-BoldOblique.ttf +0 -0
  148. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans-Oblique.ttf +0 -0
  149. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSans.ttf +0 -0
  150. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansDisplay.ttf +0 -0
  151. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono-Bold.ttf +0 -0
  152. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono-BoldOblique.ttf +0 -0
  153. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf +0 -0
  154. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSansMono.ttf +0 -0
  155. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif-Bold.ttf +0 -0
  156. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif-BoldItalic.ttf +0 -0
  157. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif-Italic.ttf +0 -0
  158. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerif.ttf +0 -0
  159. matplotlib_rs/mpl-data/fonts/ttf/DejaVuSerifDisplay.ttf +0 -0
  160. matplotlib_rs/mpl-data/fonts/ttf/LICENSE_DEJAVU +99 -0
  161. matplotlib_rs/mpl-data/fonts/ttf/LICENSE_STIX +124 -0
  162. matplotlib_rs/mpl-data/fonts/ttf/LastResortHE-Regular.ttf +0 -0
  163. matplotlib_rs/mpl-data/fonts/ttf/STIXGeneral.ttf +0 -0
  164. matplotlib_rs/mpl-data/fonts/ttf/STIXGeneralBol.ttf +0 -0
  165. matplotlib_rs/mpl-data/fonts/ttf/STIXGeneralBolIta.ttf +0 -0
  166. matplotlib_rs/mpl-data/fonts/ttf/STIXGeneralItalic.ttf +0 -0
  167. matplotlib_rs/mpl-data/fonts/ttf/STIXNonUni.ttf +0 -0
  168. matplotlib_rs/mpl-data/fonts/ttf/STIXNonUniBol.ttf +0 -0
  169. matplotlib_rs/mpl-data/fonts/ttf/STIXNonUniBolIta.ttf +0 -0
  170. matplotlib_rs/mpl-data/fonts/ttf/STIXNonUniIta.ttf +0 -0
  171. matplotlib_rs/mpl-data/fonts/ttf/STIXSizFiveSymReg.ttf +0 -0
  172. matplotlib_rs/mpl-data/fonts/ttf/STIXSizFourSymBol.ttf +0 -0
  173. matplotlib_rs/mpl-data/fonts/ttf/STIXSizFourSymReg.ttf +0 -0
  174. matplotlib_rs/mpl-data/fonts/ttf/STIXSizOneSymBol.ttf +0 -0
  175. matplotlib_rs/mpl-data/fonts/ttf/STIXSizOneSymReg.ttf +0 -0
  176. matplotlib_rs/mpl-data/fonts/ttf/STIXSizThreeSymBol.ttf +0 -0
  177. matplotlib_rs/mpl-data/fonts/ttf/STIXSizThreeSymReg.ttf +0 -0
  178. matplotlib_rs/mpl-data/fonts/ttf/STIXSizTwoSymBol.ttf +0 -0
  179. matplotlib_rs/mpl-data/fonts/ttf/STIXSizTwoSymReg.ttf +0 -0
  180. matplotlib_rs/mpl-data/fonts/ttf/cmb10.ttf +0 -0
  181. matplotlib_rs/mpl-data/fonts/ttf/cmex10.ttf +0 -0
  182. matplotlib_rs/mpl-data/fonts/ttf/cmmi10.ttf +0 -0
  183. matplotlib_rs/mpl-data/fonts/ttf/cmr10.ttf +0 -0
  184. matplotlib_rs/mpl-data/fonts/ttf/cmss10.ttf +0 -0
  185. matplotlib_rs/mpl-data/fonts/ttf/cmsy10.ttf +0 -0
  186. matplotlib_rs/mpl-data/fonts/ttf/cmti10.ttf +0 -0
  187. matplotlib_rs/mpl-data/fonts/ttf/cmtt10.ttf +0 -0
  188. matplotlib_rs/mpl-data/images/back-symbolic.svg +46 -0
  189. matplotlib_rs/mpl-data/images/back.pdf +0 -0
  190. matplotlib_rs/mpl-data/images/back.png +0 -0
  191. matplotlib_rs/mpl-data/images/back.svg +46 -0
  192. matplotlib_rs/mpl-data/images/back_large.png +0 -0
  193. matplotlib_rs/mpl-data/images/filesave-symbolic.svg +68 -0
  194. matplotlib_rs/mpl-data/images/filesave.pdf +72 -0
  195. matplotlib_rs/mpl-data/images/filesave.png +0 -0
  196. matplotlib_rs/mpl-data/images/filesave.svg +68 -0
  197. matplotlib_rs/mpl-data/images/filesave_large.png +0 -0
  198. matplotlib_rs/mpl-data/images/forward-symbolic.svg +46 -0
  199. matplotlib_rs/mpl-data/images/forward.pdf +0 -0
  200. matplotlib_rs/mpl-data/images/forward.png +0 -0
  201. matplotlib_rs/mpl-data/images/forward.svg +46 -0
  202. matplotlib_rs/mpl-data/images/forward_large.png +0 -0
  203. matplotlib_rs/mpl-data/images/hand.pdf +0 -0
  204. matplotlib_rs/mpl-data/images/hand.png +0 -0
  205. matplotlib_rs/mpl-data/images/hand.svg +130 -0
  206. matplotlib_rs/mpl-data/images/help-symbolic.svg +52 -0
  207. matplotlib_rs/mpl-data/images/help.pdf +71 -0
  208. matplotlib_rs/mpl-data/images/help.png +0 -0
  209. matplotlib_rs/mpl-data/images/help.svg +52 -0
  210. matplotlib_rs/mpl-data/images/help_large.png +0 -0
  211. matplotlib_rs/mpl-data/images/home-symbolic.svg +59 -0
  212. matplotlib_rs/mpl-data/images/home.pdf +0 -0
  213. matplotlib_rs/mpl-data/images/home.png +0 -0
  214. matplotlib_rs/mpl-data/images/home.svg +59 -0
  215. matplotlib_rs/mpl-data/images/home_large.png +0 -0
  216. matplotlib_rs/mpl-data/images/matplotlib.pdf +0 -0
  217. matplotlib_rs/mpl-data/images/matplotlib.png +0 -0
  218. matplotlib_rs/mpl-data/images/matplotlib.svg +3171 -0
  219. matplotlib_rs/mpl-data/images/matplotlib_large.png +0 -0
  220. matplotlib_rs/mpl-data/images/move-symbolic.svg +73 -0
  221. matplotlib_rs/mpl-data/images/move.pdf +0 -0
  222. matplotlib_rs/mpl-data/images/move.png +0 -0
  223. matplotlib_rs/mpl-data/images/move.svg +73 -0
  224. matplotlib_rs/mpl-data/images/move_large.png +0 -0
  225. matplotlib_rs/mpl-data/images/qt4_editor_options.pdf +0 -0
  226. matplotlib_rs/mpl-data/images/qt4_editor_options.png +0 -0
  227. matplotlib_rs/mpl-data/images/qt4_editor_options.svg +48 -0
  228. matplotlib_rs/mpl-data/images/qt4_editor_options_large.png +0 -0
  229. matplotlib_rs/mpl-data/images/subplots-symbolic.svg +81 -0
  230. matplotlib_rs/mpl-data/images/subplots.pdf +0 -0
  231. matplotlib_rs/mpl-data/images/subplots.png +0 -0
  232. matplotlib_rs/mpl-data/images/subplots.svg +81 -0
  233. matplotlib_rs/mpl-data/images/subplots_large.png +0 -0
  234. matplotlib_rs/mpl-data/images/zoom_to_rect-symbolic.svg +40 -0
  235. matplotlib_rs/mpl-data/images/zoom_to_rect.pdf +69 -0
  236. matplotlib_rs/mpl-data/images/zoom_to_rect.png +0 -0
  237. matplotlib_rs/mpl-data/images/zoom_to_rect.svg +40 -0
  238. matplotlib_rs/mpl-data/images/zoom_to_rect_large.png +0 -0
  239. matplotlib_rs/mpl-data/kpsewhich.lua +4 -0
  240. matplotlib_rs/mpl-data/matplotlibrc +849 -0
  241. matplotlib_rs/mpl-data/plot_directive/plot_directive.css +16 -0
  242. matplotlib_rs/mpl-data/sample_data/Minduka_Present_Blue_Pack.png +0 -0
  243. matplotlib_rs/mpl-data/sample_data/README.txt +2 -0
  244. matplotlib_rs/mpl-data/sample_data/Stocks.csv +526 -0
  245. matplotlib_rs/mpl-data/sample_data/axes_grid/bivariate_normal.npy +0 -0
  246. matplotlib_rs/mpl-data/sample_data/data_x_x2_x3.csv +11 -0
  247. matplotlib_rs/mpl-data/sample_data/eeg.dat +0 -0
  248. matplotlib_rs/mpl-data/sample_data/embedding_in_wx3.xrc +65 -0
  249. matplotlib_rs/mpl-data/sample_data/goog.npz +0 -0
  250. matplotlib_rs/mpl-data/sample_data/grace_hopper.jpg +0 -0
  251. matplotlib_rs/mpl-data/sample_data/jacksboro_fault_dem.npz +0 -0
  252. matplotlib_rs/mpl-data/sample_data/logo2.png +0 -0
  253. matplotlib_rs/mpl-data/sample_data/membrane.dat +0 -0
  254. matplotlib_rs/mpl-data/sample_data/msft.csv +66 -0
  255. matplotlib_rs/mpl-data/sample_data/s1045.ima.gz +0 -0
  256. matplotlib_rs/mpl-data/sample_data/topobathy.npz +0 -0
  257. matplotlib_rs/mpl-data/stylelib/Solarize_Light2.mplstyle +53 -0
  258. matplotlib_rs/mpl-data/stylelib/_classic_test_patch.mplstyle +8 -0
  259. matplotlib_rs/mpl-data/stylelib/_mpl-gallery-nogrid.mplstyle +19 -0
  260. matplotlib_rs/mpl-data/stylelib/_mpl-gallery.mplstyle +19 -0
  261. matplotlib_rs/mpl-data/stylelib/bmh.mplstyle +27 -0
  262. matplotlib_rs/mpl-data/stylelib/classic.mplstyle +491 -0
  263. matplotlib_rs/mpl-data/stylelib/dark_background.mplstyle +26 -0
  264. matplotlib_rs/mpl-data/stylelib/fast.mplstyle +11 -0
  265. matplotlib_rs/mpl-data/stylelib/fivethirtyeight.mplstyle +37 -0
  266. matplotlib_rs/mpl-data/stylelib/ggplot.mplstyle +39 -0
  267. matplotlib_rs/mpl-data/stylelib/grayscale.mplstyle +29 -0
  268. matplotlib_rs/mpl-data/stylelib/petroff10.mplstyle +5 -0
  269. matplotlib_rs/mpl-data/stylelib/petroff6.mplstyle +5 -0
  270. matplotlib_rs/mpl-data/stylelib/petroff8.mplstyle +5 -0
  271. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-bright.mplstyle +3 -0
  272. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-colorblind.mplstyle +3 -0
  273. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-dark-palette.mplstyle +3 -0
  274. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-dark.mplstyle +30 -0
  275. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-darkgrid.mplstyle +30 -0
  276. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-deep.mplstyle +3 -0
  277. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-muted.mplstyle +3 -0
  278. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-notebook.mplstyle +21 -0
  279. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-paper.mplstyle +21 -0
  280. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-pastel.mplstyle +3 -0
  281. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-poster.mplstyle +21 -0
  282. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-talk.mplstyle +21 -0
  283. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-ticks.mplstyle +30 -0
  284. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-white.mplstyle +30 -0
  285. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8-whitegrid.mplstyle +30 -0
  286. matplotlib_rs/mpl-data/stylelib/seaborn-v0_8.mplstyle +57 -0
  287. matplotlib_rs/mpl-data/stylelib/tableau-colorblind10.mplstyle +3 -0
  288. matplotlib_rs/mpl_toolkits/__init__.py +3 -0
  289. matplotlib_rs/mpl_toolkits/axes_grid1/__init__.py +11 -0
  290. matplotlib_rs/mpl_toolkits/axes_grid1/anchored_artists.py +415 -0
  291. matplotlib_rs/mpl_toolkits/axes_grid1/axes_divider.py +619 -0
  292. matplotlib_rs/mpl_toolkits/axes_grid1/axes_grid.py +565 -0
  293. matplotlib_rs/mpl_toolkits/axes_grid1/axes_rgb.py +158 -0
  294. matplotlib_rs/mpl_toolkits/axes_grid1/axes_size.py +272 -0
  295. matplotlib_rs/mpl_toolkits/axes_grid1/inset_locator.py +525 -0
  296. matplotlib_rs/mpl_toolkits/axes_grid1/mpl_axes.py +129 -0
  297. matplotlib_rs/mpl_toolkits/axes_grid1/parasite_axes.py +261 -0
  298. matplotlib_rs/mpl_toolkits/axisartist/__init__.py +15 -0
  299. matplotlib_rs/mpl_toolkits/axisartist/angle_helper.py +396 -0
  300. matplotlib_rs/mpl_toolkits/axisartist/axes_divider.py +3 -0
  301. matplotlib_rs/mpl_toolkits/axisartist/axis_artist.py +1148 -0
  302. matplotlib_rs/mpl_toolkits/axisartist/axisline_style.py +193 -0
  303. matplotlib_rs/mpl_toolkits/axisartist/axislines.py +475 -0
  304. matplotlib_rs/mpl_toolkits/axisartist/floating_axes.py +265 -0
  305. matplotlib_rs/mpl_toolkits/axisartist/grid_finder.py +329 -0
  306. matplotlib_rs/mpl_toolkits/axisartist/grid_helper_curvelinear.py +353 -0
  307. matplotlib_rs/mpl_toolkits/axisartist/parasite_axes.py +8 -0
  308. matplotlib_rs/mpl_toolkits/mplot3d/__init__.py +4 -0
  309. matplotlib_rs/mpl_toolkits/mplot3d/art3d.py +1758 -0
  310. matplotlib_rs/mpl_toolkits/mplot3d/axes3d.py +4462 -0
  311. matplotlib_rs/mpl_toolkits/mplot3d/axis3d.py +807 -0
  312. matplotlib_rs/mpl_toolkits/mplot3d/proj3d.py +270 -0
  313. matplotlib_rs/offsetbox.py +1726 -0
  314. matplotlib_rs/patches.py +5049 -0
  315. matplotlib_rs/path.py +1147 -0
  316. matplotlib_rs/patheffects.py +512 -0
  317. matplotlib_rs/projections/__init__.py +126 -0
  318. matplotlib_rs/projections/geo.py +512 -0
  319. matplotlib_rs/projections/polar.py +1518 -0
  320. matplotlib_rs/pylab.py +68 -0
  321. matplotlib_rs/pyplot.py +4834 -0
  322. matplotlib_rs/quiver.py +1236 -0
  323. matplotlib_rs/rcsetup.py +3435 -0
  324. matplotlib_rs/sankey.py +815 -0
  325. matplotlib_rs/scale.py +1002 -0
  326. matplotlib_rs/spines.py +618 -0
  327. matplotlib_rs/stackplot.py +144 -0
  328. matplotlib_rs/streamplot.py +768 -0
  329. matplotlib_rs/style/__init__.py +269 -0
  330. matplotlib_rs/style/core.py +28 -0
  331. matplotlib_rs/table.py +860 -0
  332. matplotlib_rs/texmanager.py +375 -0
  333. matplotlib_rs/text.py +2412 -0
  334. matplotlib_rs/textpath.py +377 -0
  335. matplotlib_rs/ticker.py +3111 -0
  336. matplotlib_rs/transforms.py +3069 -0
  337. matplotlib_rs/tri/__init__.py +24 -0
  338. matplotlib_rs/tri/_triangulation.py +248 -0
  339. matplotlib_rs/tri/_tricontour.py +271 -0
  340. matplotlib_rs/tri/_trifinder.py +97 -0
  341. matplotlib_rs/tri/_triinterpolate.py +1575 -0
  342. matplotlib_rs/tri/_tripcolor.py +170 -0
  343. matplotlib_rs/tri/_triplot.py +87 -0
  344. matplotlib_rs/tri/_trirefine.py +308 -0
  345. matplotlib_rs/tri/_tritools.py +264 -0
  346. matplotlib_rs/typing.py +597 -0
  347. matplotlib_rs/units.py +196 -0
  348. matplotlib_rs/widgets.py +4455 -0
  349. matplotlib_rs-0.0.8.dist-info/METADATA +392 -0
  350. matplotlib_rs-0.0.8.dist-info/RECORD +352 -0
  351. matplotlib_rs-0.0.8.dist-info/WHEEL +4 -0
  352. matplotlib_rs-0.0.8.dist-info/sboms/matplotlib-rs.cyclonedx.json +4390 -0
@@ -0,0 +1,1004 @@
1
+ # Vendored by tools/vendor_deps.py from six 1.17.0 (see licenses/LICENSE_SIX).
2
+ # Copyright (c) 2010-2024 Benjamin Peterson
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ # SOFTWARE.
21
+
22
+ """Utilities for writing code that runs on Python 2 and 3"""
23
+
24
+ from __future__ import absolute_import
25
+
26
+ import functools
27
+ import itertools
28
+ import operator
29
+ import sys
30
+ import types
31
+
32
+ __author__ = "Benjamin Peterson <benjamin@python.org>"
33
+ __version__ = "1.17.0"
34
+
35
+
36
+ # Useful for very coarse version differentiation.
37
+ PY2 = sys.version_info[0] == 2
38
+ PY3 = sys.version_info[0] == 3
39
+ PY34 = sys.version_info[0:2] >= (3, 4)
40
+
41
+ if PY3:
42
+ string_types = str,
43
+ integer_types = int,
44
+ class_types = type,
45
+ text_type = str
46
+ binary_type = bytes
47
+
48
+ MAXSIZE = sys.maxsize
49
+ else:
50
+ string_types = basestring,
51
+ integer_types = (int, long)
52
+ class_types = (type, types.ClassType)
53
+ text_type = unicode
54
+ binary_type = str
55
+
56
+ if sys.platform.startswith("java"):
57
+ # Jython always uses 32 bits.
58
+ MAXSIZE = int((1 << 31) - 1)
59
+ else:
60
+ # It's possible to have sizeof(long) != sizeof(Py_ssize_t).
61
+ class X(object):
62
+
63
+ def __len__(self):
64
+ return 1 << 31
65
+ try:
66
+ len(X())
67
+ except OverflowError:
68
+ # 32-bit
69
+ MAXSIZE = int((1 << 31) - 1)
70
+ else:
71
+ # 64-bit
72
+ MAXSIZE = int((1 << 63) - 1)
73
+ del X
74
+
75
+ if PY34:
76
+ from importlib.util import spec_from_loader
77
+ else:
78
+ spec_from_loader = None
79
+
80
+
81
+ def _add_doc(func, doc):
82
+ """Add documentation to a function."""
83
+ func.__doc__ = doc
84
+
85
+
86
+ def _import_module(name):
87
+ """Import module, returning the module after the last dot."""
88
+ __import__(name)
89
+ return sys.modules[name]
90
+
91
+
92
+ class _LazyDescr(object):
93
+
94
+ def __init__(self, name):
95
+ self.name = name
96
+
97
+ def __get__(self, obj, tp):
98
+ result = self._resolve()
99
+ setattr(obj, self.name, result) # Invokes __set__.
100
+ try:
101
+ # This is a bit ugly, but it avoids running this again by
102
+ # removing this descriptor.
103
+ delattr(obj.__class__, self.name)
104
+ except AttributeError:
105
+ pass
106
+ return result
107
+
108
+
109
+ class MovedModule(_LazyDescr):
110
+
111
+ def __init__(self, name, old, new=None):
112
+ super(MovedModule, self).__init__(name)
113
+ if PY3:
114
+ if new is None:
115
+ new = name
116
+ self.mod = new
117
+ else:
118
+ self.mod = old
119
+
120
+ def _resolve(self):
121
+ return _import_module(self.mod)
122
+
123
+ def __getattr__(self, attr):
124
+ _module = self._resolve()
125
+ value = getattr(_module, attr)
126
+ setattr(self, attr, value)
127
+ return value
128
+
129
+
130
+ class _LazyModule(types.ModuleType):
131
+
132
+ def __init__(self, name):
133
+ super(_LazyModule, self).__init__(name)
134
+ self.__doc__ = self.__class__.__doc__
135
+
136
+ def __dir__(self):
137
+ attrs = ["__doc__", "__name__"]
138
+ attrs += [attr.name for attr in self._moved_attributes]
139
+ return attrs
140
+
141
+ # Subclasses should override this
142
+ _moved_attributes = []
143
+
144
+
145
+ class MovedAttribute(_LazyDescr):
146
+
147
+ def __init__(self, name, old_mod, new_mod, old_attr=None, new_attr=None):
148
+ super(MovedAttribute, self).__init__(name)
149
+ if PY3:
150
+ if new_mod is None:
151
+ new_mod = name
152
+ self.mod = new_mod
153
+ if new_attr is None:
154
+ if old_attr is None:
155
+ new_attr = name
156
+ else:
157
+ new_attr = old_attr
158
+ self.attr = new_attr
159
+ else:
160
+ self.mod = old_mod
161
+ if old_attr is None:
162
+ old_attr = name
163
+ self.attr = old_attr
164
+
165
+ def _resolve(self):
166
+ module = _import_module(self.mod)
167
+ return getattr(module, self.attr)
168
+
169
+
170
+ class _SixMetaPathImporter(object):
171
+
172
+ """
173
+ A meta path importer to import six.moves and its submodules.
174
+
175
+ This class implements a PEP302 finder and loader. It should be compatible
176
+ with Python 2.5 and all existing versions of Python3
177
+ """
178
+
179
+ def __init__(self, six_module_name):
180
+ self.name = six_module_name
181
+ self.known_modules = {}
182
+
183
+ def _add_module(self, mod, *fullnames):
184
+ for fullname in fullnames:
185
+ self.known_modules[self.name + "." + fullname] = mod
186
+
187
+ def _get_module(self, fullname):
188
+ return self.known_modules[self.name + "." + fullname]
189
+
190
+ def find_module(self, fullname, path=None):
191
+ if fullname in self.known_modules:
192
+ return self
193
+ return None
194
+
195
+ def find_spec(self, fullname, path, target=None):
196
+ if fullname in self.known_modules:
197
+ return spec_from_loader(fullname, self)
198
+ return None
199
+
200
+ def __get_module(self, fullname):
201
+ try:
202
+ return self.known_modules[fullname]
203
+ except KeyError:
204
+ raise ImportError("This loader does not know module " + fullname)
205
+
206
+ def load_module(self, fullname):
207
+ try:
208
+ # in case of a reload
209
+ return sys.modules[fullname]
210
+ except KeyError:
211
+ pass
212
+ mod = self.__get_module(fullname)
213
+ if isinstance(mod, MovedModule):
214
+ mod = mod._resolve()
215
+ else:
216
+ mod.__loader__ = self
217
+ sys.modules[fullname] = mod
218
+ return mod
219
+
220
+ def is_package(self, fullname):
221
+ """
222
+ Return true, if the named module is a package.
223
+
224
+ We need this method to get correct spec objects with
225
+ Python 3.4 (see PEP451)
226
+ """
227
+ return hasattr(self.__get_module(fullname), "__path__")
228
+
229
+ def get_code(self, fullname):
230
+ """Return None
231
+
232
+ Required, if is_package is implemented"""
233
+ self.__get_module(fullname) # eventually raises ImportError
234
+ return None
235
+ get_source = get_code # same as get_code
236
+
237
+ def create_module(self, spec):
238
+ return self.load_module(spec.name)
239
+
240
+ def exec_module(self, module):
241
+ pass
242
+
243
+ _importer = _SixMetaPathImporter(__name__)
244
+
245
+
246
+ class _MovedItems(_LazyModule):
247
+
248
+ """Lazy loading of moved objects"""
249
+ __path__ = [] # mark as package
250
+
251
+
252
+ _moved_attributes = [
253
+ MovedAttribute("cStringIO", "cStringIO", "io", "StringIO"),
254
+ MovedAttribute("filter", "itertools", "builtins", "ifilter", "filter"),
255
+ MovedAttribute("filterfalse", "itertools", "itertools", "ifilterfalse", "filterfalse"),
256
+ MovedAttribute("input", "__builtin__", "builtins", "raw_input", "input"),
257
+ MovedAttribute("intern", "__builtin__", "sys"),
258
+ MovedAttribute("map", "itertools", "builtins", "imap", "map"),
259
+ MovedAttribute("getcwd", "os", "os", "getcwdu", "getcwd"),
260
+ MovedAttribute("getcwdb", "os", "os", "getcwd", "getcwdb"),
261
+ MovedAttribute("getoutput", "commands", "subprocess"),
262
+ MovedAttribute("range", "__builtin__", "builtins", "xrange", "range"),
263
+ MovedAttribute("reload_module", "__builtin__", "importlib" if PY34 else "imp", "reload"),
264
+ MovedAttribute("reduce", "__builtin__", "functools"),
265
+ MovedAttribute("shlex_quote", "pipes", "shlex", "quote"),
266
+ MovedAttribute("StringIO", "StringIO", "io"),
267
+ MovedAttribute("UserDict", "UserDict", "collections", "IterableUserDict", "UserDict"),
268
+ MovedAttribute("UserList", "UserList", "collections"),
269
+ MovedAttribute("UserString", "UserString", "collections"),
270
+ MovedAttribute("xrange", "__builtin__", "builtins", "xrange", "range"),
271
+ MovedAttribute("zip", "itertools", "builtins", "izip", "zip"),
272
+ MovedAttribute("zip_longest", "itertools", "itertools", "izip_longest", "zip_longest"),
273
+ MovedModule("builtins", "__builtin__"),
274
+ MovedModule("configparser", "ConfigParser"),
275
+ MovedModule("collections_abc", "collections", "collections.abc" if sys.version_info >= (3, 3) else "collections"),
276
+ MovedModule("copyreg", "copy_reg"),
277
+ MovedModule("dbm_gnu", "gdbm", "dbm.gnu"),
278
+ MovedModule("dbm_ndbm", "dbm", "dbm.ndbm"),
279
+ MovedModule("_dummy_thread", "dummy_thread", "_dummy_thread" if sys.version_info < (3, 9) else "_thread"),
280
+ MovedModule("http_cookiejar", "cookielib", "http.cookiejar"),
281
+ MovedModule("http_cookies", "Cookie", "http.cookies"),
282
+ MovedModule("html_entities", "htmlentitydefs", "html.entities"),
283
+ MovedModule("html_parser", "HTMLParser", "html.parser"),
284
+ MovedModule("http_client", "httplib", "http.client"),
285
+ MovedModule("email_mime_base", "email.MIMEBase", "email.mime.base"),
286
+ MovedModule("email_mime_image", "email.MIMEImage", "email.mime.image"),
287
+ MovedModule("email_mime_multipart", "email.MIMEMultipart", "email.mime.multipart"),
288
+ MovedModule("email_mime_nonmultipart", "email.MIMENonMultipart", "email.mime.nonmultipart"),
289
+ MovedModule("email_mime_text", "email.MIMEText", "email.mime.text"),
290
+ MovedModule("BaseHTTPServer", "BaseHTTPServer", "http.server"),
291
+ MovedModule("CGIHTTPServer", "CGIHTTPServer", "http.server"),
292
+ MovedModule("SimpleHTTPServer", "SimpleHTTPServer", "http.server"),
293
+ MovedModule("cPickle", "cPickle", "pickle"),
294
+ MovedModule("queue", "Queue"),
295
+ MovedModule("reprlib", "repr"),
296
+ MovedModule("socketserver", "SocketServer"),
297
+ MovedModule("_thread", "thread", "_thread"),
298
+ MovedModule("tkinter", "Tkinter"),
299
+ MovedModule("tkinter_dialog", "Dialog", "tkinter.dialog"),
300
+ MovedModule("tkinter_filedialog", "FileDialog", "tkinter.filedialog"),
301
+ MovedModule("tkinter_scrolledtext", "ScrolledText", "tkinter.scrolledtext"),
302
+ MovedModule("tkinter_simpledialog", "SimpleDialog", "tkinter.simpledialog"),
303
+ MovedModule("tkinter_tix", "Tix", "tkinter.tix"),
304
+ MovedModule("tkinter_ttk", "ttk", "tkinter.ttk"),
305
+ MovedModule("tkinter_constants", "Tkconstants", "tkinter.constants"),
306
+ MovedModule("tkinter_dnd", "Tkdnd", "tkinter.dnd"),
307
+ MovedModule("tkinter_colorchooser", "tkColorChooser",
308
+ "tkinter.colorchooser"),
309
+ MovedModule("tkinter_commondialog", "tkCommonDialog",
310
+ "tkinter.commondialog"),
311
+ MovedModule("tkinter_tkfiledialog", "tkFileDialog", "tkinter.filedialog"),
312
+ MovedModule("tkinter_font", "tkFont", "tkinter.font"),
313
+ MovedModule("tkinter_messagebox", "tkMessageBox", "tkinter.messagebox"),
314
+ MovedModule("tkinter_tksimpledialog", "tkSimpleDialog",
315
+ "tkinter.simpledialog"),
316
+ MovedModule("urllib_parse", __name__ + ".moves.urllib_parse", "urllib.parse"),
317
+ MovedModule("urllib_error", __name__ + ".moves.urllib_error", "urllib.error"),
318
+ MovedModule("urllib", __name__ + ".moves.urllib", __name__ + ".moves.urllib"),
319
+ MovedModule("urllib_robotparser", "robotparser", "urllib.robotparser"),
320
+ MovedModule("xmlrpc_client", "xmlrpclib", "xmlrpc.client"),
321
+ MovedModule("xmlrpc_server", "SimpleXMLRPCServer", "xmlrpc.server"),
322
+ ]
323
+ # Add windows specific modules.
324
+ if sys.platform == "win32":
325
+ _moved_attributes += [
326
+ MovedModule("winreg", "_winreg"),
327
+ ]
328
+
329
+ for attr in _moved_attributes:
330
+ setattr(_MovedItems, attr.name, attr)
331
+ if isinstance(attr, MovedModule):
332
+ _importer._add_module(attr, "moves." + attr.name)
333
+ del attr
334
+
335
+ _MovedItems._moved_attributes = _moved_attributes
336
+
337
+ moves = _MovedItems(__name__ + ".moves")
338
+ _importer._add_module(moves, "moves")
339
+
340
+
341
+ class Module_six_moves_urllib_parse(_LazyModule):
342
+
343
+ """Lazy loading of moved objects in six.moves.urllib_parse"""
344
+
345
+
346
+ _urllib_parse_moved_attributes = [
347
+ MovedAttribute("ParseResult", "urlparse", "urllib.parse"),
348
+ MovedAttribute("SplitResult", "urlparse", "urllib.parse"),
349
+ MovedAttribute("parse_qs", "urlparse", "urllib.parse"),
350
+ MovedAttribute("parse_qsl", "urlparse", "urllib.parse"),
351
+ MovedAttribute("urldefrag", "urlparse", "urllib.parse"),
352
+ MovedAttribute("urljoin", "urlparse", "urllib.parse"),
353
+ MovedAttribute("urlparse", "urlparse", "urllib.parse"),
354
+ MovedAttribute("urlsplit", "urlparse", "urllib.parse"),
355
+ MovedAttribute("urlunparse", "urlparse", "urllib.parse"),
356
+ MovedAttribute("urlunsplit", "urlparse", "urllib.parse"),
357
+ MovedAttribute("quote", "urllib", "urllib.parse"),
358
+ MovedAttribute("quote_plus", "urllib", "urllib.parse"),
359
+ MovedAttribute("unquote", "urllib", "urllib.parse"),
360
+ MovedAttribute("unquote_plus", "urllib", "urllib.parse"),
361
+ MovedAttribute("unquote_to_bytes", "urllib", "urllib.parse", "unquote", "unquote_to_bytes"),
362
+ MovedAttribute("urlencode", "urllib", "urllib.parse"),
363
+ MovedAttribute("splitquery", "urllib", "urllib.parse"),
364
+ MovedAttribute("splittag", "urllib", "urllib.parse"),
365
+ MovedAttribute("splituser", "urllib", "urllib.parse"),
366
+ MovedAttribute("splitvalue", "urllib", "urllib.parse"),
367
+ MovedAttribute("uses_fragment", "urlparse", "urllib.parse"),
368
+ MovedAttribute("uses_netloc", "urlparse", "urllib.parse"),
369
+ MovedAttribute("uses_params", "urlparse", "urllib.parse"),
370
+ MovedAttribute("uses_query", "urlparse", "urllib.parse"),
371
+ MovedAttribute("uses_relative", "urlparse", "urllib.parse"),
372
+ ]
373
+ for attr in _urllib_parse_moved_attributes:
374
+ setattr(Module_six_moves_urllib_parse, attr.name, attr)
375
+ del attr
376
+
377
+ Module_six_moves_urllib_parse._moved_attributes = _urllib_parse_moved_attributes
378
+
379
+ _importer._add_module(Module_six_moves_urllib_parse(__name__ + ".moves.urllib_parse"),
380
+ "moves.urllib_parse", "moves.urllib.parse")
381
+
382
+
383
+ class Module_six_moves_urllib_error(_LazyModule):
384
+
385
+ """Lazy loading of moved objects in six.moves.urllib_error"""
386
+
387
+
388
+ _urllib_error_moved_attributes = [
389
+ MovedAttribute("URLError", "urllib2", "urllib.error"),
390
+ MovedAttribute("HTTPError", "urllib2", "urllib.error"),
391
+ MovedAttribute("ContentTooShortError", "urllib", "urllib.error"),
392
+ ]
393
+ for attr in _urllib_error_moved_attributes:
394
+ setattr(Module_six_moves_urllib_error, attr.name, attr)
395
+ del attr
396
+
397
+ Module_six_moves_urllib_error._moved_attributes = _urllib_error_moved_attributes
398
+
399
+ _importer._add_module(Module_six_moves_urllib_error(__name__ + ".moves.urllib.error"),
400
+ "moves.urllib_error", "moves.urllib.error")
401
+
402
+
403
+ class Module_six_moves_urllib_request(_LazyModule):
404
+
405
+ """Lazy loading of moved objects in six.moves.urllib_request"""
406
+
407
+
408
+ _urllib_request_moved_attributes = [
409
+ MovedAttribute("urlopen", "urllib2", "urllib.request"),
410
+ MovedAttribute("install_opener", "urllib2", "urllib.request"),
411
+ MovedAttribute("build_opener", "urllib2", "urllib.request"),
412
+ MovedAttribute("pathname2url", "urllib", "urllib.request"),
413
+ MovedAttribute("url2pathname", "urllib", "urllib.request"),
414
+ MovedAttribute("getproxies", "urllib", "urllib.request"),
415
+ MovedAttribute("Request", "urllib2", "urllib.request"),
416
+ MovedAttribute("OpenerDirector", "urllib2", "urllib.request"),
417
+ MovedAttribute("HTTPDefaultErrorHandler", "urllib2", "urllib.request"),
418
+ MovedAttribute("HTTPRedirectHandler", "urllib2", "urllib.request"),
419
+ MovedAttribute("HTTPCookieProcessor", "urllib2", "urllib.request"),
420
+ MovedAttribute("ProxyHandler", "urllib2", "urllib.request"),
421
+ MovedAttribute("BaseHandler", "urllib2", "urllib.request"),
422
+ MovedAttribute("HTTPPasswordMgr", "urllib2", "urllib.request"),
423
+ MovedAttribute("HTTPPasswordMgrWithDefaultRealm", "urllib2", "urllib.request"),
424
+ MovedAttribute("AbstractBasicAuthHandler", "urllib2", "urllib.request"),
425
+ MovedAttribute("HTTPBasicAuthHandler", "urllib2", "urllib.request"),
426
+ MovedAttribute("ProxyBasicAuthHandler", "urllib2", "urllib.request"),
427
+ MovedAttribute("AbstractDigestAuthHandler", "urllib2", "urllib.request"),
428
+ MovedAttribute("HTTPDigestAuthHandler", "urllib2", "urllib.request"),
429
+ MovedAttribute("ProxyDigestAuthHandler", "urllib2", "urllib.request"),
430
+ MovedAttribute("HTTPHandler", "urllib2", "urllib.request"),
431
+ MovedAttribute("HTTPSHandler", "urllib2", "urllib.request"),
432
+ MovedAttribute("FileHandler", "urllib2", "urllib.request"),
433
+ MovedAttribute("FTPHandler", "urllib2", "urllib.request"),
434
+ MovedAttribute("CacheFTPHandler", "urllib2", "urllib.request"),
435
+ MovedAttribute("UnknownHandler", "urllib2", "urllib.request"),
436
+ MovedAttribute("HTTPErrorProcessor", "urllib2", "urllib.request"),
437
+ MovedAttribute("urlretrieve", "urllib", "urllib.request"),
438
+ MovedAttribute("urlcleanup", "urllib", "urllib.request"),
439
+ MovedAttribute("proxy_bypass", "urllib", "urllib.request"),
440
+ MovedAttribute("parse_http_list", "urllib2", "urllib.request"),
441
+ MovedAttribute("parse_keqv_list", "urllib2", "urllib.request"),
442
+ ]
443
+ if sys.version_info[:2] < (3, 14):
444
+ _urllib_request_moved_attributes.extend(
445
+ [
446
+ MovedAttribute("URLopener", "urllib", "urllib.request"),
447
+ MovedAttribute("FancyURLopener", "urllib", "urllib.request"),
448
+ ]
449
+ )
450
+ for attr in _urllib_request_moved_attributes:
451
+ setattr(Module_six_moves_urllib_request, attr.name, attr)
452
+ del attr
453
+
454
+ Module_six_moves_urllib_request._moved_attributes = _urllib_request_moved_attributes
455
+
456
+ _importer._add_module(Module_six_moves_urllib_request(__name__ + ".moves.urllib.request"),
457
+ "moves.urllib_request", "moves.urllib.request")
458
+
459
+
460
+ class Module_six_moves_urllib_response(_LazyModule):
461
+
462
+ """Lazy loading of moved objects in six.moves.urllib_response"""
463
+
464
+
465
+ _urllib_response_moved_attributes = [
466
+ MovedAttribute("addbase", "urllib", "urllib.response"),
467
+ MovedAttribute("addclosehook", "urllib", "urllib.response"),
468
+ MovedAttribute("addinfo", "urllib", "urllib.response"),
469
+ MovedAttribute("addinfourl", "urllib", "urllib.response"),
470
+ ]
471
+ for attr in _urllib_response_moved_attributes:
472
+ setattr(Module_six_moves_urllib_response, attr.name, attr)
473
+ del attr
474
+
475
+ Module_six_moves_urllib_response._moved_attributes = _urllib_response_moved_attributes
476
+
477
+ _importer._add_module(Module_six_moves_urllib_response(__name__ + ".moves.urllib.response"),
478
+ "moves.urllib_response", "moves.urllib.response")
479
+
480
+
481
+ class Module_six_moves_urllib_robotparser(_LazyModule):
482
+
483
+ """Lazy loading of moved objects in six.moves.urllib_robotparser"""
484
+
485
+
486
+ _urllib_robotparser_moved_attributes = [
487
+ MovedAttribute("RobotFileParser", "robotparser", "urllib.robotparser"),
488
+ ]
489
+ for attr in _urllib_robotparser_moved_attributes:
490
+ setattr(Module_six_moves_urllib_robotparser, attr.name, attr)
491
+ del attr
492
+
493
+ Module_six_moves_urllib_robotparser._moved_attributes = _urllib_robotparser_moved_attributes
494
+
495
+ _importer._add_module(Module_six_moves_urllib_robotparser(__name__ + ".moves.urllib.robotparser"),
496
+ "moves.urllib_robotparser", "moves.urllib.robotparser")
497
+
498
+
499
+ class Module_six_moves_urllib(types.ModuleType):
500
+
501
+ """Create a six.moves.urllib namespace that resembles the Python 3 namespace"""
502
+ __path__ = [] # mark as package
503
+ parse = _importer._get_module("moves.urllib_parse")
504
+ error = _importer._get_module("moves.urllib_error")
505
+ request = _importer._get_module("moves.urllib_request")
506
+ response = _importer._get_module("moves.urllib_response")
507
+ robotparser = _importer._get_module("moves.urllib_robotparser")
508
+
509
+ def __dir__(self):
510
+ return ['parse', 'error', 'request', 'response', 'robotparser']
511
+
512
+ _importer._add_module(Module_six_moves_urllib(__name__ + ".moves.urllib"),
513
+ "moves.urllib")
514
+
515
+
516
+ def add_move(move):
517
+ """Add an item to six.moves."""
518
+ setattr(_MovedItems, move.name, move)
519
+
520
+
521
+ def remove_move(name):
522
+ """Remove item from six.moves."""
523
+ try:
524
+ delattr(_MovedItems, name)
525
+ except AttributeError:
526
+ try:
527
+ del moves.__dict__[name]
528
+ except KeyError:
529
+ raise AttributeError("no such move, %r" % (name,))
530
+
531
+
532
+ if PY3:
533
+ _meth_func = "__func__"
534
+ _meth_self = "__self__"
535
+
536
+ _func_closure = "__closure__"
537
+ _func_code = "__code__"
538
+ _func_defaults = "__defaults__"
539
+ _func_globals = "__globals__"
540
+ else:
541
+ _meth_func = "im_func"
542
+ _meth_self = "im_self"
543
+
544
+ _func_closure = "func_closure"
545
+ _func_code = "func_code"
546
+ _func_defaults = "func_defaults"
547
+ _func_globals = "func_globals"
548
+
549
+
550
+ try:
551
+ advance_iterator = next
552
+ except NameError:
553
+ def advance_iterator(it):
554
+ return it.next()
555
+ next = advance_iterator
556
+
557
+
558
+ try:
559
+ callable = callable
560
+ except NameError:
561
+ def callable(obj):
562
+ return any("__call__" in klass.__dict__ for klass in type(obj).__mro__)
563
+
564
+
565
+ if PY3:
566
+ def get_unbound_function(unbound):
567
+ return unbound
568
+
569
+ create_bound_method = types.MethodType
570
+
571
+ def create_unbound_method(func, cls):
572
+ return func
573
+
574
+ Iterator = object
575
+ else:
576
+ def get_unbound_function(unbound):
577
+ return unbound.im_func
578
+
579
+ def create_bound_method(func, obj):
580
+ return types.MethodType(func, obj, obj.__class__)
581
+
582
+ def create_unbound_method(func, cls):
583
+ return types.MethodType(func, None, cls)
584
+
585
+ class Iterator(object):
586
+
587
+ def next(self):
588
+ return type(self).__next__(self)
589
+
590
+ callable = callable
591
+ _add_doc(get_unbound_function,
592
+ """Get the function out of a possibly unbound function""")
593
+
594
+
595
+ get_method_function = operator.attrgetter(_meth_func)
596
+ get_method_self = operator.attrgetter(_meth_self)
597
+ get_function_closure = operator.attrgetter(_func_closure)
598
+ get_function_code = operator.attrgetter(_func_code)
599
+ get_function_defaults = operator.attrgetter(_func_defaults)
600
+ get_function_globals = operator.attrgetter(_func_globals)
601
+
602
+
603
+ if PY3:
604
+ def iterkeys(d, **kw):
605
+ return iter(d.keys(**kw))
606
+
607
+ def itervalues(d, **kw):
608
+ return iter(d.values(**kw))
609
+
610
+ def iteritems(d, **kw):
611
+ return iter(d.items(**kw))
612
+
613
+ def iterlists(d, **kw):
614
+ return iter(d.lists(**kw))
615
+
616
+ viewkeys = operator.methodcaller("keys")
617
+
618
+ viewvalues = operator.methodcaller("values")
619
+
620
+ viewitems = operator.methodcaller("items")
621
+ else:
622
+ def iterkeys(d, **kw):
623
+ return d.iterkeys(**kw)
624
+
625
+ def itervalues(d, **kw):
626
+ return d.itervalues(**kw)
627
+
628
+ def iteritems(d, **kw):
629
+ return d.iteritems(**kw)
630
+
631
+ def iterlists(d, **kw):
632
+ return d.iterlists(**kw)
633
+
634
+ viewkeys = operator.methodcaller("viewkeys")
635
+
636
+ viewvalues = operator.methodcaller("viewvalues")
637
+
638
+ viewitems = operator.methodcaller("viewitems")
639
+
640
+ _add_doc(iterkeys, "Return an iterator over the keys of a dictionary.")
641
+ _add_doc(itervalues, "Return an iterator over the values of a dictionary.")
642
+ _add_doc(iteritems,
643
+ "Return an iterator over the (key, value) pairs of a dictionary.")
644
+ _add_doc(iterlists,
645
+ "Return an iterator over the (key, [values]) pairs of a dictionary.")
646
+
647
+
648
+ if PY3:
649
+ def b(s):
650
+ return s.encode("latin-1")
651
+
652
+ def u(s):
653
+ return s
654
+ unichr = chr
655
+ import struct
656
+ int2byte = struct.Struct(">B").pack
657
+ del struct
658
+ byte2int = operator.itemgetter(0)
659
+ indexbytes = operator.getitem
660
+ iterbytes = iter
661
+ import io
662
+ StringIO = io.StringIO
663
+ BytesIO = io.BytesIO
664
+ del io
665
+ _assertCountEqual = "assertCountEqual"
666
+ if sys.version_info[1] <= 1:
667
+ _assertRaisesRegex = "assertRaisesRegexp"
668
+ _assertRegex = "assertRegexpMatches"
669
+ _assertNotRegex = "assertNotRegexpMatches"
670
+ else:
671
+ _assertRaisesRegex = "assertRaisesRegex"
672
+ _assertRegex = "assertRegex"
673
+ _assertNotRegex = "assertNotRegex"
674
+ else:
675
+ def b(s):
676
+ return s
677
+ # Workaround for standalone backslash
678
+
679
+ def u(s):
680
+ return unicode(s.replace(r'\\', r'\\\\'), "unicode_escape")
681
+ unichr = unichr
682
+ int2byte = chr
683
+
684
+ def byte2int(bs):
685
+ return ord(bs[0])
686
+
687
+ def indexbytes(buf, i):
688
+ return ord(buf[i])
689
+ iterbytes = functools.partial(itertools.imap, ord)
690
+ import StringIO
691
+ StringIO = BytesIO = StringIO.StringIO
692
+ _assertCountEqual = "assertItemsEqual"
693
+ _assertRaisesRegex = "assertRaisesRegexp"
694
+ _assertRegex = "assertRegexpMatches"
695
+ _assertNotRegex = "assertNotRegexpMatches"
696
+ _add_doc(b, """Byte literal""")
697
+ _add_doc(u, """Text literal""")
698
+
699
+
700
+ def assertCountEqual(self, *args, **kwargs):
701
+ return getattr(self, _assertCountEqual)(*args, **kwargs)
702
+
703
+
704
+ def assertRaisesRegex(self, *args, **kwargs):
705
+ return getattr(self, _assertRaisesRegex)(*args, **kwargs)
706
+
707
+
708
+ def assertRegex(self, *args, **kwargs):
709
+ return getattr(self, _assertRegex)(*args, **kwargs)
710
+
711
+
712
+ def assertNotRegex(self, *args, **kwargs):
713
+ return getattr(self, _assertNotRegex)(*args, **kwargs)
714
+
715
+
716
+ if PY3:
717
+ exec_ = getattr(moves.builtins, "exec")
718
+
719
+ def reraise(tp, value, tb=None):
720
+ try:
721
+ if value is None:
722
+ value = tp()
723
+ if value.__traceback__ is not tb:
724
+ raise value.with_traceback(tb)
725
+ raise value
726
+ finally:
727
+ value = None
728
+ tb = None
729
+
730
+ else:
731
+ def exec_(_code_, _globs_=None, _locs_=None):
732
+ """Execute code in a namespace."""
733
+ if _globs_ is None:
734
+ frame = sys._getframe(1)
735
+ _globs_ = frame.f_globals
736
+ if _locs_ is None:
737
+ _locs_ = frame.f_locals
738
+ del frame
739
+ elif _locs_ is None:
740
+ _locs_ = _globs_
741
+ exec("""exec _code_ in _globs_, _locs_""")
742
+
743
+ exec_("""def reraise(tp, value, tb=None):
744
+ try:
745
+ raise tp, value, tb
746
+ finally:
747
+ tb = None
748
+ """)
749
+
750
+
751
+ if sys.version_info[:2] > (3,):
752
+ exec_("""def raise_from(value, from_value):
753
+ try:
754
+ raise value from from_value
755
+ finally:
756
+ value = None
757
+ """)
758
+ else:
759
+ def raise_from(value, from_value):
760
+ raise value
761
+
762
+
763
+ print_ = getattr(moves.builtins, "print", None)
764
+ if print_ is None:
765
+ def print_(*args, **kwargs):
766
+ """The new-style print function for Python 2.4 and 2.5."""
767
+ fp = kwargs.pop("file", sys.stdout)
768
+ if fp is None:
769
+ return
770
+
771
+ def write(data):
772
+ if not isinstance(data, basestring):
773
+ data = str(data)
774
+ # If the file has an encoding, encode unicode with it.
775
+ if (isinstance(fp, file) and
776
+ isinstance(data, unicode) and
777
+ fp.encoding is not None):
778
+ errors = getattr(fp, "errors", None)
779
+ if errors is None:
780
+ errors = "strict"
781
+ data = data.encode(fp.encoding, errors)
782
+ fp.write(data)
783
+ want_unicode = False
784
+ sep = kwargs.pop("sep", None)
785
+ if sep is not None:
786
+ if isinstance(sep, unicode):
787
+ want_unicode = True
788
+ elif not isinstance(sep, str):
789
+ raise TypeError("sep must be None or a string")
790
+ end = kwargs.pop("end", None)
791
+ if end is not None:
792
+ if isinstance(end, unicode):
793
+ want_unicode = True
794
+ elif not isinstance(end, str):
795
+ raise TypeError("end must be None or a string")
796
+ if kwargs:
797
+ raise TypeError("invalid keyword arguments to print()")
798
+ if not want_unicode:
799
+ for arg in args:
800
+ if isinstance(arg, unicode):
801
+ want_unicode = True
802
+ break
803
+ if want_unicode:
804
+ newline = unicode("\n")
805
+ space = unicode(" ")
806
+ else:
807
+ newline = "\n"
808
+ space = " "
809
+ if sep is None:
810
+ sep = space
811
+ if end is None:
812
+ end = newline
813
+ for i, arg in enumerate(args):
814
+ if i:
815
+ write(sep)
816
+ write(arg)
817
+ write(end)
818
+ if sys.version_info[:2] < (3, 3):
819
+ _print = print_
820
+
821
+ def print_(*args, **kwargs):
822
+ fp = kwargs.get("file", sys.stdout)
823
+ flush = kwargs.pop("flush", False)
824
+ _print(*args, **kwargs)
825
+ if flush and fp is not None:
826
+ fp.flush()
827
+
828
+ _add_doc(reraise, """Reraise an exception.""")
829
+
830
+ if sys.version_info[0:2] < (3, 4):
831
+ # This does exactly the same what the :func:`py3:functools.update_wrapper`
832
+ # function does on Python versions after 3.2. It sets the ``__wrapped__``
833
+ # attribute on ``wrapper`` object and it doesn't raise an error if any of
834
+ # the attributes mentioned in ``assigned`` and ``updated`` are missing on
835
+ # ``wrapped`` object.
836
+ def _update_wrapper(wrapper, wrapped,
837
+ assigned=functools.WRAPPER_ASSIGNMENTS,
838
+ updated=functools.WRAPPER_UPDATES):
839
+ for attr in assigned:
840
+ try:
841
+ value = getattr(wrapped, attr)
842
+ except AttributeError:
843
+ continue
844
+ else:
845
+ setattr(wrapper, attr, value)
846
+ for attr in updated:
847
+ getattr(wrapper, attr).update(getattr(wrapped, attr, {}))
848
+ wrapper.__wrapped__ = wrapped
849
+ return wrapper
850
+ _update_wrapper.__doc__ = functools.update_wrapper.__doc__
851
+
852
+ def wraps(wrapped, assigned=functools.WRAPPER_ASSIGNMENTS,
853
+ updated=functools.WRAPPER_UPDATES):
854
+ return functools.partial(_update_wrapper, wrapped=wrapped,
855
+ assigned=assigned, updated=updated)
856
+ wraps.__doc__ = functools.wraps.__doc__
857
+
858
+ else:
859
+ wraps = functools.wraps
860
+
861
+
862
+ def with_metaclass(meta, *bases):
863
+ """Create a base class with a metaclass."""
864
+ # This requires a bit of explanation: the basic idea is to make a dummy
865
+ # metaclass for one level of class instantiation that replaces itself with
866
+ # the actual metaclass.
867
+ class metaclass(type):
868
+
869
+ def __new__(cls, name, this_bases, d):
870
+ if sys.version_info[:2] >= (3, 7):
871
+ # This version introduced PEP 560 that requires a bit
872
+ # of extra care (we mimic what is done by __build_class__).
873
+ resolved_bases = types.resolve_bases(bases)
874
+ if resolved_bases is not bases:
875
+ d['__orig_bases__'] = bases
876
+ else:
877
+ resolved_bases = bases
878
+ return meta(name, resolved_bases, d)
879
+
880
+ @classmethod
881
+ def __prepare__(cls, name, this_bases):
882
+ return meta.__prepare__(name, bases)
883
+ return type.__new__(metaclass, 'temporary_class', (), {})
884
+
885
+
886
+ def add_metaclass(metaclass):
887
+ """Class decorator for creating a class with a metaclass."""
888
+ def wrapper(cls):
889
+ orig_vars = cls.__dict__.copy()
890
+ slots = orig_vars.get('__slots__')
891
+ if slots is not None:
892
+ if isinstance(slots, str):
893
+ slots = [slots]
894
+ for slots_var in slots:
895
+ orig_vars.pop(slots_var)
896
+ orig_vars.pop('__dict__', None)
897
+ orig_vars.pop('__weakref__', None)
898
+ if hasattr(cls, '__qualname__'):
899
+ orig_vars['__qualname__'] = cls.__qualname__
900
+ return metaclass(cls.__name__, cls.__bases__, orig_vars)
901
+ return wrapper
902
+
903
+
904
+ def ensure_binary(s, encoding='utf-8', errors='strict'):
905
+ """Coerce **s** to six.binary_type.
906
+
907
+ For Python 2:
908
+ - `unicode` -> encoded to `str`
909
+ - `str` -> `str`
910
+
911
+ For Python 3:
912
+ - `str` -> encoded to `bytes`
913
+ - `bytes` -> `bytes`
914
+ """
915
+ if isinstance(s, binary_type):
916
+ return s
917
+ if isinstance(s, text_type):
918
+ return s.encode(encoding, errors)
919
+ raise TypeError("not expecting type '%s'" % type(s))
920
+
921
+
922
+ def ensure_str(s, encoding='utf-8', errors='strict'):
923
+ """Coerce *s* to `str`.
924
+
925
+ For Python 2:
926
+ - `unicode` -> encoded to `str`
927
+ - `str` -> `str`
928
+
929
+ For Python 3:
930
+ - `str` -> `str`
931
+ - `bytes` -> decoded to `str`
932
+ """
933
+ # Optimization: Fast return for the common case.
934
+ if type(s) is str:
935
+ return s
936
+ if PY2 and isinstance(s, text_type):
937
+ return s.encode(encoding, errors)
938
+ elif PY3 and isinstance(s, binary_type):
939
+ return s.decode(encoding, errors)
940
+ elif not isinstance(s, (text_type, binary_type)):
941
+ raise TypeError("not expecting type '%s'" % type(s))
942
+ return s
943
+
944
+
945
+ def ensure_text(s, encoding='utf-8', errors='strict'):
946
+ """Coerce *s* to six.text_type.
947
+
948
+ For Python 2:
949
+ - `unicode` -> `unicode`
950
+ - `str` -> `unicode`
951
+
952
+ For Python 3:
953
+ - `str` -> `str`
954
+ - `bytes` -> decoded to `str`
955
+ """
956
+ if isinstance(s, binary_type):
957
+ return s.decode(encoding, errors)
958
+ elif isinstance(s, text_type):
959
+ return s
960
+ else:
961
+ raise TypeError("not expecting type '%s'" % type(s))
962
+
963
+
964
+ def python_2_unicode_compatible(klass):
965
+ """
966
+ A class decorator that defines __unicode__ and __str__ methods under Python 2.
967
+ Under Python 3 it does nothing.
968
+
969
+ To support Python 2 and 3 with a single code base, define a __str__ method
970
+ returning text and apply this decorator to the class.
971
+ """
972
+ if PY2:
973
+ if '__str__' not in klass.__dict__:
974
+ raise ValueError("@python_2_unicode_compatible cannot be applied "
975
+ "to %s because it doesn't define __str__()." %
976
+ klass.__name__)
977
+ klass.__unicode__ = klass.__str__
978
+ klass.__str__ = lambda self: self.__unicode__().encode('utf-8')
979
+ return klass
980
+
981
+
982
+ # Complete the moves implementation.
983
+ # This code is at the end of this module to speed up module loading.
984
+ # Turn this module into a package.
985
+ __path__ = [] # required for PEP 302 and PEP 451
986
+ __package__ = __name__ # see PEP 366 @ReservedAssignment
987
+ if globals().get("__spec__") is not None:
988
+ __spec__.submodule_search_locations = [] # PEP 451 @UndefinedVariable
989
+ # Remove other six meta path importers, since they cause problems. This can
990
+ # happen if six is removed from sys.modules and then reloaded. (Setuptools does
991
+ # this for some reason.)
992
+ if sys.meta_path:
993
+ for i, importer in enumerate(sys.meta_path):
994
+ # Here's some real nastiness: Another "instance" of the six module might
995
+ # be floating around. Therefore, we can't use isinstance() to check for
996
+ # the six meta path importer, since the other six instance will have
997
+ # inserted an importer with different class.
998
+ if (type(importer).__name__ == "_SixMetaPathImporter" and
999
+ importer.name == __name__):
1000
+ del sys.meta_path[i]
1001
+ break
1002
+ del i, importer
1003
+ # Finally, add the importer to the meta path import hook.
1004
+ sys.meta_path.append(_importer)