@scrypted/server 0.0.138 → 0.0.139

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.

Potentially problematic release.


This version of @scrypted/server might be problematic. Click here for more details.

Files changed (771) hide show
  1. package/.venv/bin/Activate.ps1 +241 -0
  2. package/.venv/bin/activate +66 -0
  3. package/.venv/bin/activate.csh +25 -0
  4. package/.venv/bin/activate.fish +64 -0
  5. package/.venv/bin/pip +8 -0
  6. package/.venv/bin/pip3 +8 -0
  7. package/.venv/bin/pip3.9 +8 -0
  8. package/.venv/lib/python3.9/site-packages/_distutils_hack/__init__.py +198 -0
  9. package/.venv/lib/python3.9/site-packages/_distutils_hack/override.py +1 -0
  10. package/.venv/lib/python3.9/site-packages/distutils-precedence.pth +1 -0
  11. package/.venv/lib/python3.9/site-packages/pgi/__init__.py +62 -0
  12. package/.venv/lib/python3.9/site-packages/pgi/_compat.py +74 -0
  13. package/.venv/lib/python3.9/site-packages/pgi/callback.py +15 -0
  14. package/.venv/lib/python3.9/site-packages/pgi/cffilib/__init__.py +12 -0
  15. package/.venv/lib/python3.9/site-packages/pgi/cffilib/_compat.py +25 -0
  16. package/.venv/lib/python3.9/site-packages/pgi/cffilib/_utils.py +119 -0
  17. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/__init__.py +60 -0
  18. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/_cdef.py +574 -0
  19. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/_ffi.py +25 -0
  20. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/error.py +13 -0
  21. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/giarginfo.py +73 -0
  22. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/giargument.py +36 -0
  23. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gibaseinfo.py +113 -0
  24. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gicallableinfo.py +75 -0
  25. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/giconstantinfo.py +22 -0
  26. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gienuminfo.py +59 -0
  27. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gifieldinfo.py +40 -0
  28. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gifunctioninfo.py +64 -0
  29. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/giinterfaceinfo.py +93 -0
  30. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/giobjectinfo.py +143 -0
  31. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gipropertyinfo.py +28 -0
  32. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/giregisteredtypeinfo.py +27 -0
  33. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/girepository.py +143 -0
  34. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gisignalinfo.py +55 -0
  35. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gistructinfo.py +55 -0
  36. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gitypeinfo.py +66 -0
  37. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/gitypelib.py +40 -0
  38. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gir/giunioninfo.py +66 -0
  39. package/.venv/lib/python3.9/site-packages/pgi/cffilib/glib/__init__.py +8 -0
  40. package/.venv/lib/python3.9/site-packages/pgi/cffilib/glib/_cdef.py +101 -0
  41. package/.venv/lib/python3.9/site-packages/pgi/cffilib/glib/glib.py +260 -0
  42. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gobject/__init__.py +15 -0
  43. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gobject/_cdef.py +45 -0
  44. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gobject/_ffi.py +26 -0
  45. package/.venv/lib/python3.9/site-packages/pgi/cffilib/gobject/gobject.py +27 -0
  46. package/.venv/lib/python3.9/site-packages/pgi/clib/__init__.py +11 -0
  47. package/.venv/lib/python3.9/site-packages/pgi/clib/_compat.py +20 -0
  48. package/.venv/lib/python3.9/site-packages/pgi/clib/_utils.py +213 -0
  49. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/__init__.py +71 -0
  50. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/error.py +13 -0
  51. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/giarginfo.py +65 -0
  52. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/giargument.py +58 -0
  53. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/gibaseinfo.py +152 -0
  54. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/gicallableinfo.py +203 -0
  55. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/giconstantinfo.py +35 -0
  56. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/gienuminfo.py +64 -0
  57. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/gifieldinfo.py +46 -0
  58. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/giinterfaceinfo.py +83 -0
  59. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/giobjectinfo.py +134 -0
  60. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/gipropertyinfo.py +36 -0
  61. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/giregisteredtypeinfo.py +34 -0
  62. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/girepository.py +200 -0
  63. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/gistructinfo.py +55 -0
  64. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/gitypeinfo.py +97 -0
  65. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/gitypelib.py +56 -0
  66. package/.venv/lib/python3.9/site-packages/pgi/clib/gir/giunioninfo.py +60 -0
  67. package/.venv/lib/python3.9/site-packages/pgi/clib/glib.py +336 -0
  68. package/.venv/lib/python3.9/site-packages/pgi/clib/gobject.py +405 -0
  69. package/.venv/lib/python3.9/site-packages/pgi/codegen/__init__.py +28 -0
  70. package/.venv/lib/python3.9/site-packages/pgi/codegen/arguments.py +640 -0
  71. package/.venv/lib/python3.9/site-packages/pgi/codegen/backend.py +95 -0
  72. package/.venv/lib/python3.9/site-packages/pgi/codegen/cbargs.py +152 -0
  73. package/.venv/lib/python3.9/site-packages/pgi/codegen/cbreturn.py +77 -0
  74. package/.venv/lib/python3.9/site-packages/pgi/codegen/cffi_backend.py +424 -0
  75. package/.venv/lib/python3.9/site-packages/pgi/codegen/construct.py +222 -0
  76. package/.venv/lib/python3.9/site-packages/pgi/codegen/ctypes_backend/__init__.py +11 -0
  77. package/.venv/lib/python3.9/site-packages/pgi/codegen/ctypes_backend/main.py +184 -0
  78. package/.venv/lib/python3.9/site-packages/pgi/codegen/ctypes_backend/types_basic.py +705 -0
  79. package/.venv/lib/python3.9/site-packages/pgi/codegen/ctypes_backend/types_container.py +236 -0
  80. package/.venv/lib/python3.9/site-packages/pgi/codegen/ctypes_backend/types_interface.py +402 -0
  81. package/.venv/lib/python3.9/site-packages/pgi/codegen/ctypes_backend/types_other.py +93 -0
  82. package/.venv/lib/python3.9/site-packages/pgi/codegen/ctypes_backend/utils.py +168 -0
  83. package/.venv/lib/python3.9/site-packages/pgi/codegen/fieldgen.py +114 -0
  84. package/.venv/lib/python3.9/site-packages/pgi/codegen/fields.py +244 -0
  85. package/.venv/lib/python3.9/site-packages/pgi/codegen/funcgen.py +376 -0
  86. package/.venv/lib/python3.9/site-packages/pgi/codegen/null_backend.py +110 -0
  87. package/.venv/lib/python3.9/site-packages/pgi/codegen/returnvalues.py +443 -0
  88. package/.venv/lib/python3.9/site-packages/pgi/codegen/siggen.py +157 -0
  89. package/.venv/lib/python3.9/site-packages/pgi/codegen/utils.py +248 -0
  90. package/.venv/lib/python3.9/site-packages/pgi/const.py +9 -0
  91. package/.venv/lib/python3.9/site-packages/pgi/constant.py +32 -0
  92. package/.venv/lib/python3.9/site-packages/pgi/debug.py +31 -0
  93. package/.venv/lib/python3.9/site-packages/pgi/enum.py +244 -0
  94. package/.venv/lib/python3.9/site-packages/pgi/field.py +58 -0
  95. package/.venv/lib/python3.9/site-packages/pgi/finalizer.py +3 -0
  96. package/.venv/lib/python3.9/site-packages/pgi/foreign/__init__.py +71 -0
  97. package/.venv/lib/python3.9/site-packages/pgi/foreign/_base.py +43 -0
  98. package/.venv/lib/python3.9/site-packages/pgi/foreign/cairo.py +41 -0
  99. package/.venv/lib/python3.9/site-packages/pgi/function.py +12 -0
  100. package/.venv/lib/python3.9/site-packages/pgi/gerror.py +58 -0
  101. package/.venv/lib/python3.9/site-packages/pgi/gtype.py +168 -0
  102. package/.venv/lib/python3.9/site-packages/pgi/importer.py +189 -0
  103. package/.venv/lib/python3.9/site-packages/pgi/module.py +141 -0
  104. package/.venv/lib/python3.9/site-packages/pgi/obj.py +519 -0
  105. package/.venv/lib/python3.9/site-packages/pgi/overrides/GLib.py +1013 -0
  106. package/.venv/lib/python3.9/site-packages/pgi/overrides/GObject.py +583 -0
  107. package/.venv/lib/python3.9/site-packages/pgi/overrides/Gdk.py +454 -0
  108. package/.venv/lib/python3.9/site-packages/pgi/overrides/Gio.py +237 -0
  109. package/.venv/lib/python3.9/site-packages/pgi/overrides/Gtk.py +2412 -0
  110. package/.venv/lib/python3.9/site-packages/pgi/overrides/Pango.py +53 -0
  111. package/.venv/lib/python3.9/site-packages/pgi/overrides/Poppler.py +61 -0
  112. package/.venv/lib/python3.9/site-packages/pgi/overrides/__init__.py +327 -0
  113. package/.venv/lib/python3.9/site-packages/pgi/overrides/keysyms.py +54 -0
  114. package/.venv/lib/python3.9/site-packages/pgi/properties.py +313 -0
  115. package/.venv/lib/python3.9/site-packages/pgi/propertyhelper.py +12 -0
  116. package/.venv/lib/python3.9/site-packages/pgi/repository/__init__.py +10 -0
  117. package/.venv/lib/python3.9/site-packages/pgi/signalhelper.py +18 -0
  118. package/.venv/lib/python3.9/site-packages/pgi/signals.py +122 -0
  119. package/.venv/lib/python3.9/site-packages/pgi/static.py +189 -0
  120. package/.venv/lib/python3.9/site-packages/pgi/structure.py +131 -0
  121. package/.venv/lib/python3.9/site-packages/pgi/util.py +342 -0
  122. package/.venv/lib/python3.9/site-packages/pgi-0.0.11.2.dist-info/COPYING +502 -0
  123. package/.venv/lib/python3.9/site-packages/pgi-0.0.11.2.dist-info/INSTALLER +1 -0
  124. package/.venv/lib/python3.9/site-packages/pgi-0.0.11.2.dist-info/METADATA +22 -0
  125. package/.venv/lib/python3.9/site-packages/pgi-0.0.11.2.dist-info/RECORD +229 -0
  126. package/.venv/lib/python3.9/site-packages/pgi-0.0.11.2.dist-info/REQUESTED +0 -0
  127. package/.venv/lib/python3.9/site-packages/pgi-0.0.11.2.dist-info/WHEEL +5 -0
  128. package/.venv/lib/python3.9/site-packages/pgi-0.0.11.2.dist-info/top_level.txt +1 -0
  129. package/.venv/lib/python3.9/site-packages/pip/__init__.py +13 -0
  130. package/.venv/lib/python3.9/site-packages/pip/__main__.py +31 -0
  131. package/.venv/lib/python3.9/site-packages/pip/_internal/__init__.py +19 -0
  132. package/.venv/lib/python3.9/site-packages/pip/_internal/build_env.py +293 -0
  133. package/.venv/lib/python3.9/site-packages/pip/_internal/cache.py +264 -0
  134. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/__init__.py +4 -0
  135. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/autocompletion.py +163 -0
  136. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/base_command.py +214 -0
  137. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/cmdoptions.py +1010 -0
  138. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/command_context.py +27 -0
  139. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/main.py +70 -0
  140. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/main_parser.py +87 -0
  141. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/parser.py +292 -0
  142. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/progress_bars.py +250 -0
  143. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/req_command.py +469 -0
  144. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/spinners.py +157 -0
  145. package/.venv/lib/python3.9/site-packages/pip/_internal/cli/status_codes.py +6 -0
  146. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/__init__.py +127 -0
  147. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/cache.py +223 -0
  148. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/check.py +53 -0
  149. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/completion.py +96 -0
  150. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/configuration.py +266 -0
  151. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/debug.py +202 -0
  152. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/download.py +139 -0
  153. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/freeze.py +97 -0
  154. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/hash.py +59 -0
  155. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/help.py +41 -0
  156. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/index.py +138 -0
  157. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/install.py +770 -0
  158. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/list.py +361 -0
  159. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/search.py +174 -0
  160. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/show.py +235 -0
  161. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/uninstall.py +105 -0
  162. package/.venv/lib/python3.9/site-packages/pip/_internal/commands/wheel.py +177 -0
  163. package/.venv/lib/python3.9/site-packages/pip/_internal/configuration.py +367 -0
  164. package/.venv/lib/python3.9/site-packages/pip/_internal/distributions/__init__.py +21 -0
  165. package/.venv/lib/python3.9/site-packages/pip/_internal/distributions/base.py +36 -0
  166. package/.venv/lib/python3.9/site-packages/pip/_internal/distributions/installed.py +22 -0
  167. package/.venv/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py +129 -0
  168. package/.venv/lib/python3.9/site-packages/pip/_internal/distributions/wheel.py +31 -0
  169. package/.venv/lib/python3.9/site-packages/pip/_internal/exceptions.py +402 -0
  170. package/.venv/lib/python3.9/site-packages/pip/_internal/index/__init__.py +2 -0
  171. package/.venv/lib/python3.9/site-packages/pip/_internal/index/collector.py +536 -0
  172. package/.venv/lib/python3.9/site-packages/pip/_internal/index/package_finder.py +993 -0
  173. package/.venv/lib/python3.9/site-packages/pip/_internal/index/sources.py +224 -0
  174. package/.venv/lib/python3.9/site-packages/pip/_internal/locations/__init__.py +446 -0
  175. package/.venv/lib/python3.9/site-packages/pip/_internal/locations/_distutils.py +169 -0
  176. package/.venv/lib/python3.9/site-packages/pip/_internal/locations/_sysconfig.py +219 -0
  177. package/.venv/lib/python3.9/site-packages/pip/_internal/locations/base.py +52 -0
  178. package/.venv/lib/python3.9/site-packages/pip/_internal/main.py +12 -0
  179. package/.venv/lib/python3.9/site-packages/pip/_internal/metadata/__init__.py +51 -0
  180. package/.venv/lib/python3.9/site-packages/pip/_internal/metadata/base.py +330 -0
  181. package/.venv/lib/python3.9/site-packages/pip/_internal/metadata/pkg_resources.py +146 -0
  182. package/.venv/lib/python3.9/site-packages/pip/_internal/models/__init__.py +2 -0
  183. package/.venv/lib/python3.9/site-packages/pip/_internal/models/candidate.py +34 -0
  184. package/.venv/lib/python3.9/site-packages/pip/_internal/models/direct_url.py +220 -0
  185. package/.venv/lib/python3.9/site-packages/pip/_internal/models/format_control.py +80 -0
  186. package/.venv/lib/python3.9/site-packages/pip/_internal/models/index.py +28 -0
  187. package/.venv/lib/python3.9/site-packages/pip/_internal/models/link.py +288 -0
  188. package/.venv/lib/python3.9/site-packages/pip/_internal/models/scheme.py +31 -0
  189. package/.venv/lib/python3.9/site-packages/pip/_internal/models/search_scope.py +129 -0
  190. package/.venv/lib/python3.9/site-packages/pip/_internal/models/selection_prefs.py +51 -0
  191. package/.venv/lib/python3.9/site-packages/pip/_internal/models/target_python.py +110 -0
  192. package/.venv/lib/python3.9/site-packages/pip/_internal/models/wheel.py +89 -0
  193. package/.venv/lib/python3.9/site-packages/pip/_internal/network/__init__.py +2 -0
  194. package/.venv/lib/python3.9/site-packages/pip/_internal/network/auth.py +323 -0
  195. package/.venv/lib/python3.9/site-packages/pip/_internal/network/cache.py +69 -0
  196. package/.venv/lib/python3.9/site-packages/pip/_internal/network/download.py +184 -0
  197. package/.venv/lib/python3.9/site-packages/pip/_internal/network/lazy_wheel.py +210 -0
  198. package/.venv/lib/python3.9/site-packages/pip/_internal/network/session.py +454 -0
  199. package/.venv/lib/python3.9/site-packages/pip/_internal/network/utils.py +96 -0
  200. package/.venv/lib/python3.9/site-packages/pip/_internal/network/xmlrpc.py +60 -0
  201. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/__init__.py +0 -0
  202. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/__init__.py +0 -0
  203. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/metadata.py +30 -0
  204. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/metadata_editable.py +34 -0
  205. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/metadata_legacy.py +67 -0
  206. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/wheel.py +37 -0
  207. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/wheel_editable.py +46 -0
  208. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/wheel_legacy.py +105 -0
  209. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/check.py +149 -0
  210. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/freeze.py +254 -0
  211. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/install/__init__.py +2 -0
  212. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/install/editable_legacy.py +46 -0
  213. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/install/legacy.py +125 -0
  214. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/install/wheel.py +738 -0
  215. package/.venv/lib/python3.9/site-packages/pip/_internal/operations/prepare.py +632 -0
  216. package/.venv/lib/python3.9/site-packages/pip/_internal/pyproject.py +183 -0
  217. package/.venv/lib/python3.9/site-packages/pip/_internal/req/__init__.py +94 -0
  218. package/.venv/lib/python3.9/site-packages/pip/_internal/req/constructors.py +466 -0
  219. package/.venv/lib/python3.9/site-packages/pip/_internal/req/req_file.py +536 -0
  220. package/.venv/lib/python3.9/site-packages/pip/_internal/req/req_install.py +891 -0
  221. package/.venv/lib/python3.9/site-packages/pip/_internal/req/req_set.py +189 -0
  222. package/.venv/lib/python3.9/site-packages/pip/_internal/req/req_tracker.py +124 -0
  223. package/.venv/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py +633 -0
  224. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/__init__.py +0 -0
  225. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/base.py +20 -0
  226. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
  227. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/legacy/resolver.py +467 -0
  228. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
  229. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/base.py +141 -0
  230. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py +540 -0
  231. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py +701 -0
  232. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +155 -0
  233. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/provider.py +215 -0
  234. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/reporter.py +68 -0
  235. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/requirements.py +166 -0
  236. package/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py +251 -0
  237. package/.venv/lib/python3.9/site-packages/pip/_internal/self_outdated_check.py +182 -0
  238. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/__init__.py +0 -0
  239. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/_log.py +38 -0
  240. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/appdirs.py +52 -0
  241. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/compat.py +63 -0
  242. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/compatibility_tags.py +165 -0
  243. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/datetime.py +11 -0
  244. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/deprecation.py +120 -0
  245. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/direct_url_helpers.py +87 -0
  246. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/distutils_args.py +42 -0
  247. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/egg_link.py +75 -0
  248. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/encoding.py +36 -0
  249. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/entrypoints.py +27 -0
  250. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/filesystem.py +182 -0
  251. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/filetypes.py +27 -0
  252. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/glibc.py +88 -0
  253. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/hashes.py +144 -0
  254. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/inject_securetransport.py +35 -0
  255. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/logging.py +358 -0
  256. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/misc.py +689 -0
  257. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/models.py +39 -0
  258. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/packaging.py +84 -0
  259. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/parallel.py +103 -0
  260. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/pkg_resources.py +33 -0
  261. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/setuptools_build.py +167 -0
  262. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py +289 -0
  263. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/temp_dir.py +246 -0
  264. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/unpacking.py +258 -0
  265. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/urls.py +62 -0
  266. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/virtualenv.py +104 -0
  267. package/.venv/lib/python3.9/site-packages/pip/_internal/utils/wheel.py +182 -0
  268. package/.venv/lib/python3.9/site-packages/pip/_internal/vcs/__init__.py +15 -0
  269. package/.venv/lib/python3.9/site-packages/pip/_internal/vcs/bazaar.py +93 -0
  270. package/.venv/lib/python3.9/site-packages/pip/_internal/vcs/git.py +513 -0
  271. package/.venv/lib/python3.9/site-packages/pip/_internal/vcs/mercurial.py +153 -0
  272. package/.venv/lib/python3.9/site-packages/pip/_internal/vcs/subversion.py +318 -0
  273. package/.venv/lib/python3.9/site-packages/pip/_internal/vcs/versioncontrol.py +693 -0
  274. package/.venv/lib/python3.9/site-packages/pip/_internal/wheel_builder.py +375 -0
  275. package/.venv/lib/python3.9/site-packages/pip/_vendor/__init__.py +111 -0
  276. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/__init__.py +11 -0
  277. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/_cmd.py +57 -0
  278. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/adapter.py +133 -0
  279. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/cache.py +39 -0
  280. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +2 -0
  281. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +146 -0
  282. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +33 -0
  283. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/compat.py +29 -0
  284. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/controller.py +376 -0
  285. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/filewrapper.py +80 -0
  286. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/heuristics.py +135 -0
  287. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/serialize.py +188 -0
  288. package/.venv/lib/python3.9/site-packages/pip/_vendor/cachecontrol/wrapper.py +29 -0
  289. package/.venv/lib/python3.9/site-packages/pip/_vendor/certifi/__init__.py +3 -0
  290. package/.venv/lib/python3.9/site-packages/pip/_vendor/certifi/__main__.py +12 -0
  291. package/.venv/lib/python3.9/site-packages/pip/_vendor/certifi/cacert.pem +4257 -0
  292. package/.venv/lib/python3.9/site-packages/pip/_vendor/certifi/core.py +76 -0
  293. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/__init__.py +83 -0
  294. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/big5freq.py +386 -0
  295. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/big5prober.py +47 -0
  296. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/chardistribution.py +233 -0
  297. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/charsetgroupprober.py +107 -0
  298. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/charsetprober.py +145 -0
  299. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/cli/__init__.py +1 -0
  300. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/cli/chardetect.py +84 -0
  301. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/codingstatemachine.py +88 -0
  302. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/compat.py +36 -0
  303. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/cp949prober.py +49 -0
  304. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/enums.py +76 -0
  305. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/escprober.py +101 -0
  306. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/escsm.py +246 -0
  307. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/eucjpprober.py +92 -0
  308. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/euckrfreq.py +195 -0
  309. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/euckrprober.py +47 -0
  310. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/euctwfreq.py +387 -0
  311. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/euctwprober.py +46 -0
  312. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/gb2312freq.py +283 -0
  313. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/gb2312prober.py +46 -0
  314. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/hebrewprober.py +292 -0
  315. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/jisfreq.py +325 -0
  316. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/jpcntx.py +233 -0
  317. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/langbulgarianmodel.py +4650 -0
  318. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/langgreekmodel.py +4398 -0
  319. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/langhebrewmodel.py +4383 -0
  320. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/langhungarianmodel.py +4650 -0
  321. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/langrussianmodel.py +5718 -0
  322. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/langthaimodel.py +4383 -0
  323. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/langturkishmodel.py +4383 -0
  324. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/latin1prober.py +145 -0
  325. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/mbcharsetprober.py +91 -0
  326. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/mbcsgroupprober.py +54 -0
  327. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/mbcssm.py +572 -0
  328. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/metadata/__init__.py +0 -0
  329. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/metadata/languages.py +310 -0
  330. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/sbcharsetprober.py +145 -0
  331. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/sbcsgroupprober.py +83 -0
  332. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/sjisprober.py +92 -0
  333. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/universaldetector.py +286 -0
  334. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/utf8prober.py +82 -0
  335. package/.venv/lib/python3.9/site-packages/pip/_vendor/chardet/version.py +9 -0
  336. package/.venv/lib/python3.9/site-packages/pip/_vendor/colorama/__init__.py +6 -0
  337. package/.venv/lib/python3.9/site-packages/pip/_vendor/colorama/ansi.py +102 -0
  338. package/.venv/lib/python3.9/site-packages/pip/_vendor/colorama/ansitowin32.py +258 -0
  339. package/.venv/lib/python3.9/site-packages/pip/_vendor/colorama/initialise.py +80 -0
  340. package/.venv/lib/python3.9/site-packages/pip/_vendor/colorama/win32.py +152 -0
  341. package/.venv/lib/python3.9/site-packages/pip/_vendor/colorama/winterm.py +169 -0
  342. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/__init__.py +23 -0
  343. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -0
  344. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -0
  345. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/_backport/shutil.py +764 -0
  346. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -0
  347. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +786 -0
  348. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -0
  349. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/compat.py +1122 -0
  350. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/database.py +1339 -0
  351. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/index.py +509 -0
  352. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/locators.py +1300 -0
  353. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/manifest.py +393 -0
  354. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/markers.py +147 -0
  355. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/metadata.py +1058 -0
  356. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/resources.py +358 -0
  357. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/scripts.py +429 -0
  358. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  359. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/t64-arm.exe +0 -0
  360. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  361. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/util.py +1969 -0
  362. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/version.py +739 -0
  363. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  364. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/w64-arm.exe +0 -0
  365. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  366. package/.venv/lib/python3.9/site-packages/pip/_vendor/distlib/wheel.py +1053 -0
  367. package/.venv/lib/python3.9/site-packages/pip/_vendor/distro.py +1386 -0
  368. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/__init__.py +35 -0
  369. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/_ihatexml.py +289 -0
  370. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/_inputstream.py +918 -0
  371. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/_tokenizer.py +1735 -0
  372. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/_trie/__init__.py +5 -0
  373. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/_trie/_base.py +40 -0
  374. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/_trie/py.py +67 -0
  375. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/_utils.py +159 -0
  376. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/constants.py +2946 -0
  377. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
  378. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +29 -0
  379. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/filters/base.py +12 -0
  380. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +73 -0
  381. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -0
  382. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +207 -0
  383. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +916 -0
  384. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -0
  385. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/html5parser.py +2795 -0
  386. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/serializer.py +409 -0
  387. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +30 -0
  388. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +54 -0
  389. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +50 -0
  390. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +88 -0
  391. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treebuilders/base.py +417 -0
  392. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +239 -0
  393. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +343 -0
  394. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +392 -0
  395. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +154 -0
  396. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treewalkers/base.py +252 -0
  397. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +43 -0
  398. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +131 -0
  399. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treewalkers/etree_lxml.py +215 -0
  400. package/.venv/lib/python3.9/site-packages/pip/_vendor/html5lib/treewalkers/genshi.py +69 -0
  401. package/.venv/lib/python3.9/site-packages/pip/_vendor/idna/__init__.py +44 -0
  402. package/.venv/lib/python3.9/site-packages/pip/_vendor/idna/codec.py +117 -0
  403. package/.venv/lib/python3.9/site-packages/pip/_vendor/idna/compat.py +16 -0
  404. package/.venv/lib/python3.9/site-packages/pip/_vendor/idna/core.py +409 -0
  405. package/.venv/lib/python3.9/site-packages/pip/_vendor/idna/idnadata.py +2050 -0
  406. package/.venv/lib/python3.9/site-packages/pip/_vendor/idna/intranges.py +58 -0
  407. package/.venv/lib/python3.9/site-packages/pip/_vendor/idna/package_data.py +2 -0
  408. package/.venv/lib/python3.9/site-packages/pip/_vendor/idna/uts46data.py +8438 -0
  409. package/.venv/lib/python3.9/site-packages/pip/_vendor/msgpack/__init__.py +54 -0
  410. package/.venv/lib/python3.9/site-packages/pip/_vendor/msgpack/_version.py +1 -0
  411. package/.venv/lib/python3.9/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
  412. package/.venv/lib/python3.9/site-packages/pip/_vendor/msgpack/ext.py +193 -0
  413. package/.venv/lib/python3.9/site-packages/pip/_vendor/msgpack/fallback.py +1087 -0
  414. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/__about__.py +26 -0
  415. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/__init__.py +25 -0
  416. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/_manylinux.py +301 -0
  417. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/_musllinux.py +136 -0
  418. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/_structures.py +67 -0
  419. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/markers.py +304 -0
  420. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/requirements.py +146 -0
  421. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/specifiers.py +828 -0
  422. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/tags.py +484 -0
  423. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/utils.py +136 -0
  424. package/.venv/lib/python3.9/site-packages/pip/_vendor/packaging/version.py +504 -0
  425. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/__init__.py +6 -0
  426. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/build.py +127 -0
  427. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/check.py +207 -0
  428. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/colorlog.py +115 -0
  429. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/compat.py +51 -0
  430. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/dirtools.py +44 -0
  431. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/envbuild.py +171 -0
  432. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/__init__.py +17 -0
  433. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py +363 -0
  434. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/meta.py +92 -0
  435. package/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/wrappers.py +375 -0
  436. package/.venv/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py +3296 -0
  437. package/.venv/lib/python3.9/site-packages/pip/_vendor/pkg_resources/py31compat.py +23 -0
  438. package/.venv/lib/python3.9/site-packages/pip/_vendor/platformdirs/__init__.py +329 -0
  439. package/.venv/lib/python3.9/site-packages/pip/_vendor/platformdirs/__main__.py +44 -0
  440. package/.venv/lib/python3.9/site-packages/pip/_vendor/platformdirs/android.py +117 -0
  441. package/.venv/lib/python3.9/site-packages/pip/_vendor/platformdirs/api.py +155 -0
  442. package/.venv/lib/python3.9/site-packages/pip/_vendor/platformdirs/macos.py +62 -0
  443. package/.venv/lib/python3.9/site-packages/pip/_vendor/platformdirs/unix.py +180 -0
  444. package/.venv/lib/python3.9/site-packages/pip/_vendor/platformdirs/version.py +4 -0
  445. package/.venv/lib/python3.9/site-packages/pip/_vendor/platformdirs/windows.py +180 -0
  446. package/.venv/lib/python3.9/site-packages/pip/_vendor/progress/__init__.py +189 -0
  447. package/.venv/lib/python3.9/site-packages/pip/_vendor/progress/bar.py +93 -0
  448. package/.venv/lib/python3.9/site-packages/pip/_vendor/progress/colors.py +79 -0
  449. package/.venv/lib/python3.9/site-packages/pip/_vendor/progress/counter.py +47 -0
  450. package/.venv/lib/python3.9/site-packages/pip/_vendor/progress/spinner.py +45 -0
  451. package/.venv/lib/python3.9/site-packages/pip/_vendor/pyparsing.py +7107 -0
  452. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/__init__.py +154 -0
  453. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/__version__.py +14 -0
  454. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/_internal_utils.py +42 -0
  455. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/adapters.py +533 -0
  456. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/api.py +159 -0
  457. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/auth.py +305 -0
  458. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/certs.py +18 -0
  459. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/compat.py +76 -0
  460. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/cookies.py +549 -0
  461. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/exceptions.py +127 -0
  462. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/help.py +132 -0
  463. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/hooks.py +34 -0
  464. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/models.py +966 -0
  465. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/packages.py +16 -0
  466. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/sessions.py +781 -0
  467. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/status_codes.py +123 -0
  468. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/structures.py +105 -0
  469. package/.venv/lib/python3.9/site-packages/pip/_vendor/requests/utils.py +1013 -0
  470. package/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/__init__.py +26 -0
  471. package/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
  472. package/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +6 -0
  473. package/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/providers.py +133 -0
  474. package/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/reporters.py +37 -0
  475. package/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py +483 -0
  476. package/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/structs.py +165 -0
  477. package/.venv/lib/python3.9/site-packages/pip/_vendor/six.py +998 -0
  478. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/__init__.py +517 -0
  479. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/_asyncio.py +92 -0
  480. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/_utils.py +68 -0
  481. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/after.py +46 -0
  482. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/before.py +41 -0
  483. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/before_sleep.py +58 -0
  484. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/nap.py +43 -0
  485. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/retry.py +213 -0
  486. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/stop.py +96 -0
  487. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/tornadoweb.py +59 -0
  488. package/.venv/lib/python3.9/site-packages/pip/_vendor/tenacity/wait.py +191 -0
  489. package/.venv/lib/python3.9/site-packages/pip/_vendor/tomli/__init__.py +6 -0
  490. package/.venv/lib/python3.9/site-packages/pip/_vendor/tomli/_parser.py +703 -0
  491. package/.venv/lib/python3.9/site-packages/pip/_vendor/tomli/_re.py +83 -0
  492. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/__init__.py +85 -0
  493. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/_collections.py +337 -0
  494. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/_version.py +2 -0
  495. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/connection.py +569 -0
  496. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/connectionpool.py +1078 -0
  497. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  498. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
  499. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  500. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
  501. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +397 -0
  502. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
  503. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +130 -0
  504. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +511 -0
  505. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +922 -0
  506. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
  507. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/exceptions.py +323 -0
  508. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/fields.py +274 -0
  509. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
  510. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/packages/__init__.py +5 -0
  511. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  512. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
  513. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/packages/six.py +1077 -0
  514. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname/__init__.py +24 -0
  515. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/packages/ssl_match_hostname/_implementation.py +160 -0
  516. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/poolmanager.py +536 -0
  517. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/request.py +170 -0
  518. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/response.py +821 -0
  519. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
  520. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/connection.py +150 -0
  521. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/proxy.py +57 -0
  522. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
  523. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/request.py +143 -0
  524. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
  525. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/retry.py +602 -0
  526. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/ssl_.py +495 -0
  527. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
  528. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/timeout.py +268 -0
  529. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/url.py +432 -0
  530. package/.venv/lib/python3.9/site-packages/pip/_vendor/urllib3/util/wait.py +153 -0
  531. package/.venv/lib/python3.9/site-packages/pip/_vendor/vendor.txt +22 -0
  532. package/.venv/lib/python3.9/site-packages/pip/_vendor/webencodings/__init__.py +342 -0
  533. package/.venv/lib/python3.9/site-packages/pip/_vendor/webencodings/labels.py +231 -0
  534. package/.venv/lib/python3.9/site-packages/pip/_vendor/webencodings/mklabels.py +59 -0
  535. package/.venv/lib/python3.9/site-packages/pip/_vendor/webencodings/tests.py +153 -0
  536. package/.venv/lib/python3.9/site-packages/pip/_vendor/webencodings/x_user_defined.py +325 -0
  537. package/.venv/lib/python3.9/site-packages/pip/py.typed +4 -0
  538. package/.venv/lib/python3.9/site-packages/pip-21.3.1.dist-info/INSTALLER +1 -0
  539. package/.venv/lib/python3.9/site-packages/pip-21.3.1.dist-info/LICENSE.txt +20 -0
  540. package/.venv/lib/python3.9/site-packages/pip-21.3.1.dist-info/METADATA +93 -0
  541. package/.venv/lib/python3.9/site-packages/pip-21.3.1.dist-info/RECORD +819 -0
  542. package/.venv/lib/python3.9/site-packages/pip-21.3.1.dist-info/REQUESTED +0 -0
  543. package/.venv/lib/python3.9/site-packages/pip-21.3.1.dist-info/WHEEL +5 -0
  544. package/.venv/lib/python3.9/site-packages/pip-21.3.1.dist-info/entry_points.txt +5 -0
  545. package/.venv/lib/python3.9/site-packages/pip-21.3.1.dist-info/top_level.txt +1 -0
  546. package/.venv/lib/python3.9/site-packages/pkg_resources/__init__.py +3303 -0
  547. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/__init__.py +0 -0
  548. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/appdirs.py +608 -0
  549. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/__about__.py +26 -0
  550. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/__init__.py +25 -0
  551. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/_manylinux.py +301 -0
  552. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/_musllinux.py +136 -0
  553. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/_structures.py +67 -0
  554. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/markers.py +304 -0
  555. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/requirements.py +146 -0
  556. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py +828 -0
  557. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/tags.py +484 -0
  558. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/utils.py +136 -0
  559. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py +504 -0
  560. package/.venv/lib/python3.9/site-packages/pkg_resources/_vendor/pyparsing.py +5742 -0
  561. package/.venv/lib/python3.9/site-packages/pkg_resources/extern/__init__.py +73 -0
  562. package/.venv/lib/python3.9/site-packages/pkg_resources/tests/data/my-test-package-source/setup.py +6 -0
  563. package/.venv/lib/python3.9/site-packages/setuptools/__init__.py +244 -0
  564. package/.venv/lib/python3.9/site-packages/setuptools/_deprecation_warning.py +7 -0
  565. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/__init__.py +24 -0
  566. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/_collections.py +56 -0
  567. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/_msvccompiler.py +561 -0
  568. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/archive_util.py +256 -0
  569. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/bcppcompiler.py +393 -0
  570. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py +1123 -0
  571. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/cmd.py +403 -0
  572. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/__init__.py +31 -0
  573. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/bdist.py +143 -0
  574. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/bdist_dumb.py +123 -0
  575. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/bdist_msi.py +749 -0
  576. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/bdist_rpm.py +579 -0
  577. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/bdist_wininst.py +377 -0
  578. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/build.py +157 -0
  579. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/build_clib.py +209 -0
  580. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py +755 -0
  581. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/build_py.py +392 -0
  582. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/build_scripts.py +152 -0
  583. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/check.py +148 -0
  584. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/clean.py +76 -0
  585. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/config.py +344 -0
  586. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/install.py +775 -0
  587. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/install_data.py +79 -0
  588. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/install_egg_info.py +84 -0
  589. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/install_headers.py +47 -0
  590. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/install_lib.py +217 -0
  591. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/install_scripts.py +60 -0
  592. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/py37compat.py +30 -0
  593. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/register.py +304 -0
  594. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/sdist.py +494 -0
  595. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/command/upload.py +214 -0
  596. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/config.py +130 -0
  597. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/core.py +249 -0
  598. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/cygwinccompiler.py +362 -0
  599. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/debug.py +5 -0
  600. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/dep_util.py +92 -0
  601. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/dir_util.py +210 -0
  602. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/dist.py +1257 -0
  603. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/errors.py +97 -0
  604. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/extension.py +240 -0
  605. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/fancy_getopt.py +457 -0
  606. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/file_util.py +238 -0
  607. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/filelist.py +355 -0
  608. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/log.py +81 -0
  609. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/msvc9compiler.py +788 -0
  610. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/msvccompiler.py +643 -0
  611. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/py35compat.py +19 -0
  612. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/py38compat.py +7 -0
  613. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/spawn.py +106 -0
  614. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/sysconfig.py +567 -0
  615. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/text_file.py +286 -0
  616. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/unixccompiler.py +325 -0
  617. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/util.py +548 -0
  618. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/version.py +363 -0
  619. package/.venv/lib/python3.9/site-packages/setuptools/_distutils/versionpredicate.py +169 -0
  620. package/.venv/lib/python3.9/site-packages/setuptools/_imp.py +82 -0
  621. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/__init__.py +0 -0
  622. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/more_itertools/__init__.py +4 -0
  623. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/more_itertools/more.py +3825 -0
  624. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/more_itertools/recipes.py +620 -0
  625. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/ordered_set.py +488 -0
  626. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/__about__.py +26 -0
  627. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/__init__.py +25 -0
  628. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/_manylinux.py +301 -0
  629. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/_musllinux.py +136 -0
  630. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/_structures.py +67 -0
  631. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/markers.py +304 -0
  632. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/requirements.py +146 -0
  633. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/specifiers.py +828 -0
  634. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/tags.py +484 -0
  635. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/utils.py +136 -0
  636. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/packaging/version.py +504 -0
  637. package/.venv/lib/python3.9/site-packages/setuptools/_vendor/pyparsing.py +5742 -0
  638. package/.venv/lib/python3.9/site-packages/setuptools/archive_util.py +205 -0
  639. package/.venv/lib/python3.9/site-packages/setuptools/build_meta.py +290 -0
  640. package/.venv/lib/python3.9/site-packages/setuptools/cli-32.exe +0 -0
  641. package/.venv/lib/python3.9/site-packages/setuptools/cli-64.exe +0 -0
  642. package/.venv/lib/python3.9/site-packages/setuptools/cli-arm64.exe +0 -0
  643. package/.venv/lib/python3.9/site-packages/setuptools/cli.exe +0 -0
  644. package/.venv/lib/python3.9/site-packages/setuptools/command/__init__.py +8 -0
  645. package/.venv/lib/python3.9/site-packages/setuptools/command/alias.py +78 -0
  646. package/.venv/lib/python3.9/site-packages/setuptools/command/bdist_egg.py +456 -0
  647. package/.venv/lib/python3.9/site-packages/setuptools/command/bdist_rpm.py +40 -0
  648. package/.venv/lib/python3.9/site-packages/setuptools/command/build_clib.py +101 -0
  649. package/.venv/lib/python3.9/site-packages/setuptools/command/build_ext.py +328 -0
  650. package/.venv/lib/python3.9/site-packages/setuptools/command/build_py.py +242 -0
  651. package/.venv/lib/python3.9/site-packages/setuptools/command/develop.py +193 -0
  652. package/.venv/lib/python3.9/site-packages/setuptools/command/dist_info.py +36 -0
  653. package/.venv/lib/python3.9/site-packages/setuptools/command/easy_install.py +2304 -0
  654. package/.venv/lib/python3.9/site-packages/setuptools/command/egg_info.py +755 -0
  655. package/.venv/lib/python3.9/site-packages/setuptools/command/install.py +132 -0
  656. package/.venv/lib/python3.9/site-packages/setuptools/command/install_egg_info.py +62 -0
  657. package/.venv/lib/python3.9/site-packages/setuptools/command/install_lib.py +122 -0
  658. package/.venv/lib/python3.9/site-packages/setuptools/command/install_scripts.py +69 -0
  659. package/.venv/lib/python3.9/site-packages/setuptools/command/launcher manifest.xml +15 -0
  660. package/.venv/lib/python3.9/site-packages/setuptools/command/py36compat.py +134 -0
  661. package/.venv/lib/python3.9/site-packages/setuptools/command/register.py +18 -0
  662. package/.venv/lib/python3.9/site-packages/setuptools/command/rotate.py +64 -0
  663. package/.venv/lib/python3.9/site-packages/setuptools/command/saveopts.py +22 -0
  664. package/.venv/lib/python3.9/site-packages/setuptools/command/sdist.py +196 -0
  665. package/.venv/lib/python3.9/site-packages/setuptools/command/setopt.py +149 -0
  666. package/.venv/lib/python3.9/site-packages/setuptools/command/test.py +252 -0
  667. package/.venv/lib/python3.9/site-packages/setuptools/command/upload.py +17 -0
  668. package/.venv/lib/python3.9/site-packages/setuptools/command/upload_docs.py +202 -0
  669. package/.venv/lib/python3.9/site-packages/setuptools/config.py +751 -0
  670. package/.venv/lib/python3.9/site-packages/setuptools/dep_util.py +25 -0
  671. package/.venv/lib/python3.9/site-packages/setuptools/depends.py +176 -0
  672. package/.venv/lib/python3.9/site-packages/setuptools/dist.py +1156 -0
  673. package/.venv/lib/python3.9/site-packages/setuptools/errors.py +40 -0
  674. package/.venv/lib/python3.9/site-packages/setuptools/extension.py +55 -0
  675. package/.venv/lib/python3.9/site-packages/setuptools/extern/__init__.py +73 -0
  676. package/.venv/lib/python3.9/site-packages/setuptools/glob.py +167 -0
  677. package/.venv/lib/python3.9/site-packages/setuptools/gui-32.exe +0 -0
  678. package/.venv/lib/python3.9/site-packages/setuptools/gui-64.exe +0 -0
  679. package/.venv/lib/python3.9/site-packages/setuptools/gui-arm64.exe +0 -0
  680. package/.venv/lib/python3.9/site-packages/setuptools/gui.exe +0 -0
  681. package/.venv/lib/python3.9/site-packages/setuptools/installer.py +104 -0
  682. package/.venv/lib/python3.9/site-packages/setuptools/launch.py +36 -0
  683. package/.venv/lib/python3.9/site-packages/setuptools/logging.py +30 -0
  684. package/.venv/lib/python3.9/site-packages/setuptools/monkey.py +177 -0
  685. package/.venv/lib/python3.9/site-packages/setuptools/msvc.py +1805 -0
  686. package/.venv/lib/python3.9/site-packages/setuptools/namespaces.py +107 -0
  687. package/.venv/lib/python3.9/site-packages/setuptools/package_index.py +1127 -0
  688. package/.venv/lib/python3.9/site-packages/setuptools/py34compat.py +13 -0
  689. package/.venv/lib/python3.9/site-packages/setuptools/sandbox.py +530 -0
  690. package/.venv/lib/python3.9/site-packages/setuptools/script (dev).tmpl +6 -0
  691. package/.venv/lib/python3.9/site-packages/setuptools/script.tmpl +3 -0
  692. package/.venv/lib/python3.9/site-packages/setuptools/tests/integration/__init__.py +0 -0
  693. package/.venv/lib/python3.9/site-packages/setuptools/tests/integration/helpers.py +61 -0
  694. package/.venv/lib/python3.9/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +218 -0
  695. package/.venv/lib/python3.9/site-packages/setuptools/unicode_utils.py +42 -0
  696. package/.venv/lib/python3.9/site-packages/setuptools/version.py +6 -0
  697. package/.venv/lib/python3.9/site-packages/setuptools/wheel.py +213 -0
  698. package/.venv/lib/python3.9/site-packages/setuptools/windows_support.py +29 -0
  699. package/.venv/lib/python3.9/site-packages/setuptools-60.5.0.dist-info/INSTALLER +1 -0
  700. package/.venv/lib/python3.9/site-packages/setuptools-60.5.0.dist-info/LICENSE +19 -0
  701. package/.venv/lib/python3.9/site-packages/setuptools-60.5.0.dist-info/METADATA +142 -0
  702. package/.venv/lib/python3.9/site-packages/setuptools-60.5.0.dist-info/RECORD +308 -0
  703. package/.venv/lib/python3.9/site-packages/setuptools-60.5.0.dist-info/REQUESTED +0 -0
  704. package/.venv/lib/python3.9/site-packages/setuptools-60.5.0.dist-info/WHEEL +5 -0
  705. package/.venv/lib/python3.9/site-packages/setuptools-60.5.0.dist-info/entry_points.txt +56 -0
  706. package/.venv/lib/python3.9/site-packages/setuptools-60.5.0.dist-info/top_level.txt +3 -0
  707. package/.venv/pyvenv.cfg +3 -0
  708. package/dist/http-interfaces.js +8 -4
  709. package/dist/http-interfaces.js.map +1 -1
  710. package/dist/plugin/media.js +10 -0
  711. package/dist/plugin/media.js.map +1 -1
  712. package/dist/plugin/plugin-console.js +13 -3
  713. package/dist/plugin/plugin-console.js.map +1 -1
  714. package/dist/plugin/plugin-device.js +1 -1
  715. package/dist/plugin/plugin-device.js.map +1 -1
  716. package/dist/plugin/plugin-host-api.js +1 -1
  717. package/dist/plugin/plugin-host-api.js.map +1 -1
  718. package/dist/plugin/plugin-host.js +36 -127
  719. package/dist/plugin/plugin-host.js.map +1 -1
  720. package/dist/plugin/plugin-remote-worker.js +5 -42
  721. package/dist/plugin/plugin-remote-worker.js.map +1 -1
  722. package/dist/plugin/plugin-remote.js +3 -3
  723. package/dist/plugin/plugin-remote.js.map +1 -1
  724. package/dist/plugin/runtime/child-process-worker.js +42 -0
  725. package/dist/plugin/runtime/child-process-worker.js.map +1 -0
  726. package/dist/plugin/runtime/node-fork-worker.js +51 -0
  727. package/dist/plugin/runtime/node-fork-worker.js.map +1 -0
  728. package/dist/plugin/runtime/node-thread-worker.js +73 -0
  729. package/dist/plugin/runtime/node-thread-worker.js.map +1 -0
  730. package/dist/plugin/runtime/python-worker.js +54 -0
  731. package/dist/plugin/runtime/python-worker.js.map +1 -0
  732. package/dist/plugin/runtime/runtime-worker.js +3 -0
  733. package/dist/plugin/runtime/runtime-worker.js.map +1 -0
  734. package/dist/plugin/system.js +3 -3
  735. package/dist/plugin/system.js.map +1 -1
  736. package/dist/rpc.js +79 -55
  737. package/dist/rpc.js.map +1 -1
  738. package/dist/runtime.js +1 -6
  739. package/dist/runtime.js.map +1 -1
  740. package/dist/scrypted-main.js +14 -7
  741. package/dist/scrypted-main.js.map +1 -1
  742. package/dist/scrypted-plugin-main.js +31 -4
  743. package/dist/scrypted-plugin-main.js.map +1 -1
  744. package/dist/scrypted-server-main.js +1 -1
  745. package/dist/scrypted-server-main.js.map +1 -1
  746. package/dist/threading.js +99 -0
  747. package/dist/threading.js.map +1 -0
  748. package/package.json +5 -3
  749. package/python/plugin-remote.py +31 -2
  750. package/python/rpc.py +6 -0
  751. package/src/http-interfaces.ts +10 -5
  752. package/src/plugin/media.ts +14 -1
  753. package/src/plugin/plugin-console.ts +15 -6
  754. package/src/plugin/plugin-device.ts +2 -2
  755. package/src/plugin/plugin-host-api.ts +2 -2
  756. package/src/plugin/plugin-host.ts +42 -146
  757. package/src/plugin/plugin-remote-websocket.ts +1 -1
  758. package/src/plugin/plugin-remote-worker.ts +7 -44
  759. package/src/plugin/plugin-remote.ts +5 -5
  760. package/src/plugin/runtime/child-process-worker.ts +49 -0
  761. package/src/plugin/runtime/node-fork-worker.ts +54 -0
  762. package/src/plugin/runtime/node-thread-worker.ts +76 -0
  763. package/src/plugin/runtime/python-worker.ts +67 -0
  764. package/src/plugin/runtime/runtime-worker.ts +28 -0
  765. package/src/plugin/system.ts +4 -4
  766. package/src/rpc.ts +92 -66
  767. package/src/runtime.ts +1 -8
  768. package/src/scrypted-main.ts +15 -7
  769. package/src/scrypted-plugin-main.ts +31 -5
  770. package/src/scrypted-server-main.ts +1 -1
  771. package/src/threading.ts +108 -0
@@ -0,0 +1,1013 @@
1
+ # -*- Mode: Python; py-indent-offset: 4 -*-
2
+ # vim: tabstop=4 shiftwidth=4 expandtab
3
+ #
4
+ # Copyright (C) 2010 Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>
5
+ # Copyright (C) 2011, 2012 Canonical Ltd.
6
+ #
7
+ # This library is free software; you can redistribute it and/or
8
+ # modify it under the terms of the GNU Lesser General Public
9
+ # License as published by the Free Software Foundation; either
10
+ # version 2.1 of the License, or (at your option) any later version.
11
+ #
12
+ # This library is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ # Lesser General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU Lesser General Public
18
+ # License along with this library; if not, write to the Free Software
19
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
20
+ # USA
21
+
22
+ import signal
23
+ import warnings
24
+ import sys
25
+
26
+ from pgi.gerror import PGError as GError
27
+ from pgi.overrides import get_introspection_module, override, deprecated, \
28
+ deprecated_attr
29
+ from pgi.util import PyGIDeprecationWarning
30
+ from pgi import version_info
31
+ from pgi.static import (source_new, Enum, Flags,
32
+ source_set_callback, io_channel_read)
33
+ from pgi import static as _gobject
34
+ from pgi import static as _glib
35
+
36
+
37
+ GLib = get_introspection_module('GLib')
38
+
39
+ __all__ = []
40
+
41
+ __all__ += ["Enum", "Flags"]
42
+
43
+ _glib._init_glib(GLib)
44
+ Error = GError
45
+ OptionContext = _glib.OptionContext
46
+ OptionGroup = _glib.OptionGroup
47
+ Pid = _glib.Pid
48
+
49
+
50
+ spawn_async = _glib.spawn_async
51
+ """spawn_async(argv, envp=None, working_directory=None, flags=GLib.SpawnFlags.DEFAULT, child_setup=None, user_data=None, standard_input=False, standard_output=False, standard_error=False)
52
+
53
+ :param argv: child's argument vector
54
+ :type argv: [:obj:`str`]
55
+
56
+ :param envp: child's environment, or :obj:`None` to inherit parent's
57
+ :type envp: [:obj:`str`] or :obj:`None`
58
+
59
+ :param flags: flags from :obj:`GLib.SpawnFlags`
60
+ :type flags: :obj:`GLib.SpawnFlags`
61
+
62
+ :param child_setup: function to run in the child just before exec()
63
+ :type child_setup: :obj:`GLib.SpawnChildSetupFunc` or :obj:`None`
64
+
65
+ :param user_data: user data for `child_setup`
66
+ :type user_data: :obj:`object` or :obj:`None`
67
+
68
+ :param standard_input: pipe stdin if :obj:`True`
69
+ :type standard_input: :obj:`bool`
70
+
71
+ :param standard_output: pipe stdout if :obj:`True`
72
+ :type standard_output: :obj:`bool`
73
+
74
+ :param standard_error: pipe stderr if :obj:`True`
75
+ :type standard_error: :obj:`bool`
76
+
77
+ :raises: :class:`GLib.Error`
78
+
79
+ :returns:
80
+ :pid: child process ID
81
+ :stdin: file descriptor to child's stdin, or :obj:`None`
82
+ :stdout: file descriptor to read child's stdout, or :obj:`None`
83
+ :stderr: file descriptor to read child's stderr, or :obj:`None`
84
+
85
+ :rtype: (**pid**: :obj:`int`, **stdin**: :obj:`int` or :obj:`None`, **stdout**: :obj:`int` or :obj:`None`, **stderr**: :obj:`int` or :obj:`None`)
86
+
87
+ See :obj:`GLib.spawn_async_with_pipes`\() for a full description; this function
88
+ simply calls the :obj:`GLib.spawn_async_with_pipes`\()
89
+
90
+ You should call :obj:`GLib.spawn_close_pid`\() on the returned child process
91
+ reference when you don't need it any more.
92
+
93
+ In case `standard_input`/`standard_output`/`standard_error` are True a file
94
+ descriptor is returned which needs to be closed by the caller after it is no
95
+ longer needed.
96
+ """
97
+
98
+
99
+ def variant_type_from_string(s):
100
+ return GLib.VariantType.new(s)
101
+
102
+ def threads_init():
103
+ warnings.warn('Since version 3.11, calling threads_init is no longer needed. '
104
+ 'See: https://wiki.gnome.org/PyGObject/Threading',
105
+ PyGIDeprecationWarning, stacklevel=2)
106
+
107
+
108
+ def gerror_matches(self, domain, code):
109
+ # Handle cases where self.domain was set to an integer for compatibility
110
+ # with the introspected GLib.Error.
111
+ if isinstance(self.domain, str):
112
+ self_domain_quark = GLib.quark_from_string(self.domain)
113
+ else:
114
+ self_domain_quark = self.domain
115
+ return (self_domain_quark, self.code) == (domain, code)
116
+
117
+
118
+ def gerror_new_literal(domain, message, code):
119
+ domain_quark = GLib.quark_to_string(domain)
120
+ return GError(message, domain_quark, code)
121
+
122
+
123
+ # Monkey patch methods that rely on GLib introspection to be loaded at runtime.
124
+ Error.__name__ = 'Error'
125
+ Error.__module__ = 'GLib'
126
+ Error.matches = gerror_matches
127
+ Error.new_literal = staticmethod(gerror_new_literal)
128
+
129
+
130
+ __all__ += ['GError', 'Error', 'OptionContext', 'OptionGroup', 'Pid',
131
+ 'spawn_async', 'threads_init']
132
+
133
+
134
+ class _VariantCreator(object):
135
+
136
+ _LEAF_CONSTRUCTORS = {
137
+ 'b': GLib.Variant.new_boolean,
138
+ 'y': GLib.Variant.new_byte,
139
+ 'n': GLib.Variant.new_int16,
140
+ 'q': GLib.Variant.new_uint16,
141
+ 'i': GLib.Variant.new_int32,
142
+ 'u': GLib.Variant.new_uint32,
143
+ 'x': GLib.Variant.new_int64,
144
+ 't': GLib.Variant.new_uint64,
145
+ 'h': GLib.Variant.new_handle,
146
+ 'd': GLib.Variant.new_double,
147
+ 's': GLib.Variant.new_string,
148
+ 'o': GLib.Variant.new_object_path,
149
+ 'g': GLib.Variant.new_signature,
150
+ 'v': GLib.Variant.new_variant,
151
+ }
152
+
153
+ def _create(self, format, args):
154
+ """Create a GVariant object from given format and argument list.
155
+
156
+ This method recursively calls itself for complex structures (arrays,
157
+ dictionaries, boxed).
158
+
159
+ Return a tuple (variant, rest_format, rest_args) with the generated
160
+ GVariant, the remainder of the format string, and the remainder of the
161
+ arguments.
162
+
163
+ If args is None, then this won't actually consume any arguments, and
164
+ just parse the format string and generate empty GVariant structures.
165
+ This is required for creating empty dictionaries or arrays.
166
+ """
167
+ # leaves (simple types)
168
+ constructor = self._LEAF_CONSTRUCTORS.get(format[0])
169
+ if constructor:
170
+ if args is not None:
171
+ if not args:
172
+ raise TypeError('not enough arguments for GVariant format string')
173
+ v = constructor(args[0])
174
+ return (v, format[1:], args[1:])
175
+ else:
176
+ return (None, format[1:], None)
177
+
178
+ if format[0] == '(':
179
+ return self._create_tuple(format, args)
180
+
181
+ if format.startswith('a{'):
182
+ return self._create_dict(format, args)
183
+
184
+ if format[0] == 'a':
185
+ return self._create_array(format, args)
186
+
187
+ raise NotImplementedError('cannot handle GVariant type ' + format)
188
+
189
+ def _create_tuple(self, format, args):
190
+ """Handle the case where the outermost type of format is a tuple."""
191
+
192
+ format = format[1:] # eat the '('
193
+ if args is None:
194
+ # empty value: we need to call _create() to parse the subtype
195
+ rest_format = format
196
+ while rest_format:
197
+ if rest_format.startswith(')'):
198
+ break
199
+ rest_format = self._create(rest_format, None)[1]
200
+ else:
201
+ raise TypeError('tuple type string not closed with )')
202
+
203
+ rest_format = rest_format[1:] # eat the )
204
+ return (None, rest_format, None)
205
+ else:
206
+ if not args or not isinstance(args[0], tuple):
207
+ raise TypeError('expected tuple argument')
208
+
209
+ builder = GLib.VariantBuilder.new(variant_type_from_string('r'))
210
+ for i in range(len(args[0])):
211
+ if format.startswith(')'):
212
+ raise TypeError('too many arguments for tuple signature')
213
+
214
+ (v, format, _) = self._create(format, args[0][i:])
215
+ builder.add_value(v)
216
+ args = args[1:]
217
+ if not format.startswith(')'):
218
+ raise TypeError('tuple type string not closed with )')
219
+
220
+ rest_format = format[1:] # eat the )
221
+ return (builder.end(), rest_format, args)
222
+
223
+ def _create_dict(self, format, args):
224
+ """Handle the case where the outermost type of format is a dict."""
225
+
226
+ builder = None
227
+ if args is None or not args[0]:
228
+ # empty value: we need to call _create() to parse the subtype,
229
+ # and specify the element type precisely
230
+ rest_format = self._create(format[2:], None)[1]
231
+ rest_format = self._create(rest_format, None)[1]
232
+ if not rest_format.startswith('}'):
233
+ raise TypeError('dictionary type string not closed with }')
234
+ rest_format = rest_format[1:] # eat the }
235
+ element_type = format[:len(format) - len(rest_format)]
236
+ builder = GLib.VariantBuilder.new(variant_type_from_string(element_type))
237
+ else:
238
+ builder = GLib.VariantBuilder.new(variant_type_from_string('a{?*}'))
239
+ for k, v in args[0].items():
240
+ (key_v, rest_format, _) = self._create(format[2:], [k])
241
+ (val_v, rest_format, _) = self._create(rest_format, [v])
242
+
243
+ if not rest_format.startswith('}'):
244
+ raise TypeError('dictionary type string not closed with }')
245
+ rest_format = rest_format[1:] # eat the }
246
+
247
+ entry = GLib.VariantBuilder.new(variant_type_from_string('{?*}'))
248
+ entry.add_value(key_v)
249
+ entry.add_value(val_v)
250
+ builder.add_value(entry.end())
251
+
252
+ if args is not None:
253
+ args = args[1:]
254
+ return (builder.end(), rest_format, args)
255
+
256
+ def _create_array(self, format, args):
257
+ """Handle the case where the outermost type of format is an array."""
258
+
259
+ builder = None
260
+ if args is None or not args[0]:
261
+ # empty value: we need to call _create() to parse the subtype,
262
+ # and specify the element type precisely
263
+ rest_format = self._create(format[1:], None)[1]
264
+ element_type = format[:len(format) - len(rest_format)]
265
+ builder = GLib.VariantBuilder.new(variant_type_from_string(element_type))
266
+ else:
267
+ builder = GLib.VariantBuilder.new(variant_type_from_string('a*'))
268
+ for i in range(len(args[0])):
269
+ (v, rest_format, _) = self._create(format[1:], args[0][i:])
270
+ builder.add_value(v)
271
+ if args is not None:
272
+ args = args[1:]
273
+ return (builder.end(), rest_format, args)
274
+
275
+
276
+ class Variant(GLib.Variant):
277
+ def __new__(cls, format_string, value):
278
+ """Create a GVariant from a native Python object.
279
+
280
+ format_string is a standard GVariant type signature, value is a Python
281
+ object whose structure has to match the signature.
282
+
283
+ Examples:
284
+ GLib.Variant('i', 1)
285
+ GLib.Variant('(is)', (1, 'hello'))
286
+ GLib.Variant('(asa{sv})', ([], {'foo': GLib.Variant('b', True),
287
+ 'bar': GLib.Variant('i', 2)}))
288
+ """
289
+ creator = _VariantCreator()
290
+ (v, rest_format, _) = creator._create(format_string, [value])
291
+ if rest_format:
292
+ raise TypeError('invalid remaining format string: "%s"' % rest_format)
293
+ v.format_string = format_string
294
+ return v
295
+
296
+ # Called by Python on the result of __new__, shall do nothing.
297
+ def __init__(self, format_string, value):
298
+ assert(self.format_string == format_string)
299
+
300
+ @staticmethod
301
+ def new_tuple(*elements):
302
+ return GLib.Variant.new_tuple(elements)
303
+
304
+ def __del__(self):
305
+ self.unref()
306
+
307
+ try:
308
+ GLib.Variant.print_
309
+ except AttributeError:
310
+ # Python 3
311
+ def print_(self, type_annotate):
312
+ return getattr(self, "print")(type_annotate)
313
+
314
+ def __str__(self):
315
+ return self.print_(True)
316
+
317
+ def __repr__(self):
318
+ if hasattr(self, 'format_string'):
319
+ f = self.format_string
320
+ else:
321
+ f = self.get_type_string()
322
+ return "GLib.Variant('%s', %s)" % (f, self.print_(False))
323
+
324
+ def __eq__(self, other):
325
+ try:
326
+ return self.equal(other)
327
+ except TypeError:
328
+ return False
329
+
330
+ def __ne__(self, other):
331
+ try:
332
+ return not self.equal(other)
333
+ except TypeError:
334
+ return True
335
+
336
+ def __hash__(self):
337
+ # We're not using just hash(self.unpack()) because otherwise we'll have
338
+ # hash collisions between the same content in different variant types,
339
+ # which will cause a performance issue in set/dict/etc.
340
+ return hash((self.get_type_string(), self.unpack()))
341
+
342
+ def unpack(self):
343
+ """Decompose a GVariant into a native Python object."""
344
+
345
+ LEAF_ACCESSORS = {
346
+ 'b': self.get_boolean,
347
+ 'y': self.get_byte,
348
+ 'n': self.get_int16,
349
+ 'q': self.get_uint16,
350
+ 'i': self.get_int32,
351
+ 'u': self.get_uint32,
352
+ 'x': self.get_int64,
353
+ 't': self.get_uint64,
354
+ 'h': self.get_handle,
355
+ 'd': self.get_double,
356
+ 's': self.get_string,
357
+ 'o': self.get_string, # object path
358
+ 'g': self.get_string, # signature
359
+ }
360
+
361
+ # simple values
362
+ la = LEAF_ACCESSORS.get(self.get_type_string())
363
+ if la:
364
+ return la()
365
+
366
+ # tuple
367
+ if self.get_type_string().startswith('('):
368
+ res = [self.get_child_value(i).unpack()
369
+ for i in range(self.n_children())]
370
+ return tuple(res)
371
+
372
+ # dictionary
373
+ if self.get_type_string().startswith('a{'):
374
+ res = {}
375
+ for i in range(self.n_children()):
376
+ v = self.get_child_value(i)
377
+ res[v.get_child_value(0).unpack()] = v.get_child_value(1).unpack()
378
+ return res
379
+
380
+ # array
381
+ if self.get_type_string().startswith('a'):
382
+ return [self.get_child_value(i).unpack()
383
+ for i in range(self.n_children())]
384
+
385
+ # variant (just unbox transparently)
386
+ if self.get_type_string().startswith('v'):
387
+ return self.get_variant().unpack()
388
+
389
+ # maybe
390
+ if self.get_type_string().startswith('m'):
391
+ m = self.get_maybe()
392
+ return m.unpack() if m else None
393
+
394
+ raise NotImplementedError('unsupported GVariant type ' + self.get_type_string())
395
+
396
+ @classmethod
397
+ def split_signature(klass, signature):
398
+ """Return a list of the element signatures of the topmost signature tuple.
399
+
400
+ If the signature is not a tuple, it returns one element with the entire
401
+ signature. If the signature is an empty tuple, the result is [].
402
+
403
+ This is useful for e. g. iterating over method parameters which are
404
+ passed as a single Variant.
405
+ """
406
+ if signature == '()':
407
+ return []
408
+
409
+ if not signature.startswith('('):
410
+ return [signature]
411
+
412
+ result = []
413
+ head = ''
414
+ tail = signature[1:-1] # eat the surrounding ()
415
+ while tail:
416
+ c = tail[0]
417
+ head += c
418
+ tail = tail[1:]
419
+
420
+ if c in ('m', 'a'):
421
+ # prefixes, keep collecting
422
+ continue
423
+ if c in ('(', '{'):
424
+ # consume until corresponding )/}
425
+ level = 1
426
+ up = c
427
+ if up == '(':
428
+ down = ')'
429
+ else:
430
+ down = '}'
431
+ while level > 0:
432
+ c = tail[0]
433
+ head += c
434
+ tail = tail[1:]
435
+ if c == up:
436
+ level += 1
437
+ elif c == down:
438
+ level -= 1
439
+
440
+ # otherwise we have a simple type
441
+ result.append(head)
442
+ head = ''
443
+
444
+ return result
445
+
446
+ #
447
+ # Pythonic iterators
448
+ #
449
+
450
+ def __len__(self):
451
+ if self.get_type_string() in ['s', 'o', 'g']:
452
+ return len(self.get_string())
453
+ # Array, dict, tuple
454
+ if self.get_type_string().startswith('a') or self.get_type_string().startswith('('):
455
+ return self.n_children()
456
+ raise TypeError('GVariant type %s does not have a length' % self.get_type_string())
457
+
458
+ def __getitem__(self, key):
459
+ # dict
460
+ if self.get_type_string().startswith('a{'):
461
+ try:
462
+ val = self.lookup_value(key, variant_type_from_string('*'))
463
+ if val is None:
464
+ raise KeyError(key)
465
+ return val.unpack()
466
+ except TypeError:
467
+ # lookup_value() only works for string keys, which is certainly
468
+ # the common case; we have to do painful iteration for other
469
+ # key types
470
+ for i in range(self.n_children()):
471
+ v = self.get_child_value(i)
472
+ if v.get_child_value(0).unpack() == key:
473
+ return v.get_child_value(1).unpack()
474
+ raise KeyError(key)
475
+
476
+ # array/tuple
477
+ if self.get_type_string().startswith('a') or self.get_type_string().startswith('('):
478
+ key = int(key)
479
+ if key < 0:
480
+ key = self.n_children() + key
481
+ if key < 0 or key >= self.n_children():
482
+ raise IndexError('list index out of range')
483
+ return self.get_child_value(key).unpack()
484
+
485
+ # string
486
+ if self.get_type_string() in ['s', 'o', 'g']:
487
+ return self.get_string().__getitem__(key)
488
+
489
+ raise TypeError('GVariant type %s is not a container' % self.get_type_string())
490
+
491
+ #
492
+ # Pythonic bool operations
493
+ #
494
+
495
+ def __nonzero__(self):
496
+ return self.__bool__()
497
+
498
+ def __bool__(self):
499
+ if self.get_type_string() in ['y', 'n', 'q', 'i', 'u', 'x', 't', 'h', 'd']:
500
+ return self.unpack() != 0
501
+ if self.get_type_string() in ['b']:
502
+ return self.get_boolean()
503
+ if self.get_type_string() in ['s', 'o', 'g']:
504
+ return len(self.get_string()) != 0
505
+ # Array, dict, tuple
506
+ if self.get_type_string().startswith('a') or self.get_type_string().startswith('('):
507
+ return self.n_children() != 0
508
+ if self.get_type_string() in ['v']:
509
+ # unpack works recursively, hence bool also works recursively
510
+ return bool(self.unpack())
511
+ # Everything else is True
512
+ return True
513
+
514
+ def keys(self):
515
+ if not self.get_type_string().startswith('a{'):
516
+ return TypeError, 'GVariant type %s is not a dictionary' % self.get_type_string()
517
+
518
+ res = []
519
+ for i in range(self.n_children()):
520
+ v = self.get_child_value(i)
521
+ res.append(v.get_child_value(0).unpack())
522
+ return res
523
+
524
+
525
+ def get_string(self):
526
+ value, length = GLib.Variant.get_string(self)
527
+ return value
528
+
529
+ setattr(Variant, 'get_string', get_string)
530
+
531
+ __all__.append('Variant')
532
+
533
+
534
+ def markup_escape_text(text, length=-1):
535
+ if isinstance(text, bytes):
536
+ return GLib.markup_escape_text(text.decode('UTF-8'), length)
537
+ else:
538
+ return GLib.markup_escape_text(text, length)
539
+ __all__.append('markup_escape_text')
540
+
541
+
542
+ # backwards compatible names from old static bindings
543
+ for n in ['DESKTOP', 'DOCUMENTS', 'DOWNLOAD', 'MUSIC', 'PICTURES',
544
+ 'PUBLIC_SHARE', 'TEMPLATES', 'VIDEOS']:
545
+ attr = 'USER_DIRECTORY_' + n
546
+ deprecated_attr("GLib", attr, "GLib.UserDirectory.DIRECTORY_" + n)
547
+ globals()[attr] = getattr(GLib.UserDirectory, 'DIRECTORY_' + n)
548
+ __all__.append(attr)
549
+
550
+ for n in ['ERR', 'HUP', 'IN', 'NVAL', 'OUT', 'PRI']:
551
+ globals()['IO_' + n] = getattr(GLib.IOCondition, n)
552
+ __all__.append('IO_' + n)
553
+
554
+ for n in ['APPEND', 'GET_MASK', 'IS_READABLE', 'IS_SEEKABLE',
555
+ 'MASK', 'NONBLOCK', 'SET_MASK']:
556
+ attr = 'IO_FLAG_' + n
557
+ deprecated_attr("GLib", attr, "GLib.IOFlags." + n)
558
+ globals()[attr] = getattr(GLib.IOFlags, n)
559
+ __all__.append(attr)
560
+
561
+ # spelling for the win
562
+ IO_FLAG_IS_WRITEABLE = GLib.IOFlags.IS_WRITABLE
563
+ deprecated_attr("GLib", "IO_FLAG_IS_WRITEABLE", "GLib.IOFlags.IS_WRITABLE")
564
+ __all__.append('IO_FLAG_IS_WRITEABLE')
565
+
566
+ for n in ['AGAIN', 'EOF', 'ERROR', 'NORMAL']:
567
+ attr = 'IO_STATUS_' + n
568
+ globals()[attr] = getattr(GLib.IOStatus, n)
569
+ deprecated_attr("GLib", attr, "GLib.IOStatus." + n)
570
+ __all__.append(attr)
571
+
572
+ for n in ['CHILD_INHERITS_STDIN', 'DO_NOT_REAP_CHILD', 'FILE_AND_ARGV_ZERO',
573
+ 'LEAVE_DESCRIPTORS_OPEN', 'SEARCH_PATH', 'STDERR_TO_DEV_NULL',
574
+ 'STDOUT_TO_DEV_NULL']:
575
+ attr = 'SPAWN_' + n
576
+ globals()[attr] = getattr(GLib.SpawnFlags, n)
577
+ deprecated_attr("GLib", attr, "GLib.SpawnFlags." + n)
578
+ __all__.append(attr)
579
+
580
+ for n in ['HIDDEN', 'IN_MAIN', 'REVERSE', 'NO_ARG', 'FILENAME', 'OPTIONAL_ARG',
581
+ 'NOALIAS']:
582
+ attr = 'OPTION_FLAG_' + n
583
+ globals()[attr] = getattr(GLib.OptionFlags, n)
584
+ deprecated_attr("GLib", attr, "GLib.OptionFlags." + n)
585
+ __all__.append(attr)
586
+
587
+ for n in ['UNKNOWN_OPTION', 'BAD_VALUE', 'FAILED']:
588
+ attr = 'OPTION_ERROR_' + n
589
+ deprecated_attr("GLib", attr, "GLib.OptionError." + n)
590
+ globals()[attr] = getattr(GLib.OptionError, n)
591
+ __all__.append(attr)
592
+
593
+
594
+ # these are not currently exported in GLib gir, presumably because they are
595
+ # platform dependent; so get them from our static bindings
596
+ for name in ['G_MINFLOAT', 'G_MAXFLOAT', 'G_MINDOUBLE', 'G_MAXDOUBLE',
597
+ 'G_MINSHORT', 'G_MAXSHORT', 'G_MAXUSHORT', 'G_MININT', 'G_MAXINT',
598
+ 'G_MAXUINT', 'G_MINLONG', 'G_MAXLONG', 'G_MAXULONG', 'G_MAXSIZE',
599
+ 'G_MINSSIZE', 'G_MAXSSIZE', 'G_MINOFFSET', 'G_MAXOFFSET']:
600
+ attr = name.split("_", 1)[-1]
601
+ globals()[attr] = getattr(_gobject, name)
602
+ __all__.append(attr)
603
+
604
+
605
+ class MainLoop(GLib.MainLoop):
606
+ # Backwards compatible constructor API
607
+ def __new__(cls, context=None):
608
+ return GLib.MainLoop.new(context, False)
609
+
610
+ # Retain classic pygobject behaviour of quitting main loops on SIGINT
611
+ def __init__(self, context=None):
612
+ def _handler(loop):
613
+ loop.quit()
614
+ loop._quit_by_sigint = True
615
+ # We handle signal deletion in __del__, return True so GLib
616
+ # doesn't do the deletion for us.
617
+ return True
618
+
619
+ if sys.platform != 'win32':
620
+ # compatibility shim, keep around until we depend on glib 2.36
621
+ if hasattr(GLib, 'unix_signal_add'):
622
+ fn = GLib.unix_signal_add
623
+ else:
624
+ fn = GLib.unix_signal_add_full
625
+ self._signal_source = fn(GLib.PRIORITY_DEFAULT, signal.SIGINT, _handler, self)
626
+
627
+ def __del__(self):
628
+ if hasattr(self, '_signal_source'):
629
+ GLib.source_remove(self._signal_source)
630
+
631
+ def run(self):
632
+ super(MainLoop, self).run()
633
+ if hasattr(self, '_quit_by_sigint'):
634
+ # caught by _main_loop_sigint_handler()
635
+ raise KeyboardInterrupt
636
+
637
+ MainLoop = override(MainLoop)
638
+ __all__.append('MainLoop')
639
+
640
+
641
+ class MainContext(GLib.MainContext):
642
+ # Backwards compatible API with default value
643
+ def iteration(self, may_block=True):
644
+ return super(MainContext, self).iteration(may_block)
645
+
646
+ MainContext = override(MainContext)
647
+ __all__.append('MainContext')
648
+
649
+
650
+ class Source(GLib.Source):
651
+ def __new__(cls, *args, **kwargs):
652
+ # use our custom pyg_source_new() here as g_source_new() is not
653
+ # bindable
654
+ source = source_new()
655
+ source.__class__ = cls
656
+ setattr(source, '__pygi_custom_source', True)
657
+ return source
658
+
659
+ def __init__(self, *args, **kwargs):
660
+ return super(Source, self).__init__()
661
+
662
+ def set_callback(self, fn, user_data=None):
663
+ if hasattr(self, '__pygi_custom_source'):
664
+ # use our custom pyg_source_set_callback() if for a GSource object
665
+ # with custom functions
666
+ source_set_callback(self, fn, user_data)
667
+ else:
668
+ # otherwise, for Idle and Timeout, use the standard method
669
+ super(Source, self).set_callback(fn, user_data)
670
+
671
+ def get_current_time(self):
672
+ return GLib.get_real_time() * 0.000001
673
+
674
+ get_current_time = deprecated(get_current_time, 'GLib.Source.get_time() or GLib.get_real_time()')
675
+ """get_current_time()
676
+
677
+ :returns: Time in seconds since the Epoch
678
+ :rtype: float
679
+
680
+ {{ docs }}
681
+ """
682
+
683
+ # as get/set_priority are introspected, we can't use the static
684
+ # property(get_priority, ..) here
685
+ def __get_priority(self):
686
+ return self.get_priority()
687
+
688
+ def __set_priority(self, value):
689
+ self.set_priority(value)
690
+
691
+ priority = property(__get_priority, __set_priority)
692
+
693
+ def __get_can_recurse(self):
694
+ return self.get_can_recurse()
695
+
696
+ def __set_can_recurse(self, value):
697
+ self.set_can_recurse(value)
698
+
699
+ can_recurse = property(__get_can_recurse, __set_can_recurse)
700
+
701
+ Source = override(Source)
702
+ __all__.append('Source')
703
+
704
+
705
+ class Idle(Source):
706
+ def __new__(cls, priority=GLib.PRIORITY_DEFAULT):
707
+ source = GLib.idle_source_new()
708
+ source.__class__ = cls
709
+ return source
710
+
711
+ def __init__(self, priority=GLib.PRIORITY_DEFAULT):
712
+ super(Source, self).__init__()
713
+ if priority != GLib.PRIORITY_DEFAULT:
714
+ self.set_priority(priority)
715
+
716
+ __all__.append('Idle')
717
+
718
+
719
+ class Timeout(Source):
720
+ def __new__(cls, interval=0, priority=GLib.PRIORITY_DEFAULT):
721
+ source = GLib.timeout_source_new(interval)
722
+ source.__class__ = cls
723
+ return source
724
+
725
+ def __init__(self, interval=0, priority=GLib.PRIORITY_DEFAULT):
726
+ if priority != GLib.PRIORITY_DEFAULT:
727
+ self.set_priority(priority)
728
+
729
+ __all__.append('Timeout')
730
+
731
+
732
+ # backwards compatible API
733
+
734
+ # These functions will incorrectly be called with None as last argument, so
735
+ # work around that with wrappers.
736
+
737
+ def idle_add(function, *user_data, **kwargs):
738
+ priority = kwargs.get('priority', GLib.PRIORITY_DEFAULT_IDLE)
739
+ return GLib.idle_add(priority, lambda _: function(*user_data))
740
+
741
+ __all__.append('idle_add')
742
+
743
+
744
+ def timeout_add(interval, function, *user_data, **kwargs):
745
+ priority = kwargs.get('priority', GLib.PRIORITY_DEFAULT)
746
+ return GLib.timeout_add(priority, interval, lambda _: function(*user_data))
747
+
748
+ __all__.append('timeout_add')
749
+
750
+
751
+ def timeout_add_seconds(interval, function, *user_data, **kwargs):
752
+ priority = kwargs.get('priority', GLib.PRIORITY_DEFAULT)
753
+ return GLib.timeout_add_seconds(
754
+ priority, interval, lambda _: function(*user_data))
755
+
756
+ __all__.append('timeout_add_seconds')
757
+
758
+
759
+ # The GI GLib API uses g_io_add_watch_full renamed to g_io_add_watch with
760
+ # a signature of (channel, priority, condition, func, user_data).
761
+ # Prior to PyGObject 3.8, this function was statically bound with an API closer to the
762
+ # non-full version with a signature of: (fd, condition, func, *user_data)
763
+ # We need to support this until we are okay with breaking API in a way which is
764
+ # not backwards compatible.
765
+ #
766
+ # This needs to take into account several historical APIs:
767
+ # - calling with an fd as first argument
768
+ # - calling with a Python file object as first argument (we keep this one as
769
+ # it's really convenient and does not change the number of arguments)
770
+ # - calling without a priority as second argument
771
+ def _io_add_watch_get_args(channel, priority_, condition, *cb_and_user_data, **kwargs):
772
+ if not isinstance(priority_, int) or isinstance(priority_, GLib.IOCondition):
773
+ warnings.warn('Calling io_add_watch without priority as second argument is deprecated',
774
+ PyGIDeprecationWarning)
775
+ # shift the arguments around
776
+ user_data = cb_and_user_data
777
+ callback = condition
778
+ condition = priority_
779
+ if not callable(callback):
780
+ raise TypeError('third argument must be callable')
781
+
782
+ # backwards compatibility: Call with priority kwarg
783
+ if 'priority' in kwargs:
784
+ warnings.warn('Calling io_add_watch with priority keyword argument is deprecated, put it as second positional argument',
785
+ PyGIDeprecationWarning)
786
+ priority_ = kwargs['priority']
787
+ else:
788
+ priority_ = GLib.PRIORITY_DEFAULT
789
+ else:
790
+ if len(cb_and_user_data) < 1 or not callable(cb_and_user_data[0]):
791
+ raise TypeError('expecting callback as fourth argument')
792
+ callback = cb_and_user_data[0]
793
+ user_data = cb_and_user_data[1:]
794
+
795
+ # backwards compatibility: Allow calling with fd
796
+ if isinstance(channel, int):
797
+ func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
798
+ real_channel = GLib.IOChannel.unix_new(channel)
799
+ elif hasattr(channel, 'fileno'):
800
+ # backwards compatibility: Allow calling with Python file
801
+ func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
802
+ real_channel = GLib.IOChannel.unix_new(channel.fileno())
803
+ else:
804
+ assert isinstance(channel, GLib.IOChannel)
805
+ func_fdtransform = callback
806
+ real_channel = channel
807
+
808
+ return real_channel, priority_, condition, func_fdtransform, user_data
809
+
810
+ __all__.append('_io_add_watch_get_args')
811
+
812
+
813
+ def io_add_watch(*args, **kwargs):
814
+ """io_add_watch(channel, priority, condition, func, *user_data) -> event_source_id"""
815
+ channel, priority, condition, func, user_data = _io_add_watch_get_args(*args, **kwargs)
816
+ return GLib.io_add_watch(channel, priority, condition, func, *user_data)
817
+
818
+ __all__.append('io_add_watch')
819
+
820
+
821
+ # backwards compatible API
822
+ class IOChannel(GLib.IOChannel):
823
+ def __new__(cls, filedes=None, filename=None, mode=None, hwnd=None):
824
+ if filedes is not None:
825
+ return GLib.IOChannel.unix_new(filedes)
826
+ if filename is not None:
827
+ return GLib.IOChannel.new_file(filename, mode or 'r')
828
+ if hwnd is not None:
829
+ return GLib.IOChannel.win32_new_fd(hwnd)
830
+ raise TypeError('either a valid file descriptor, file name, or window handle must be supplied')
831
+
832
+ def __init__(self, *args, **kwargs):
833
+ return super(IOChannel, self).__init__()
834
+
835
+ def read(self, max_count=-1):
836
+ return io_channel_read(self, max_count)
837
+
838
+ def readline(self, size_hint=-1):
839
+ # note, size_hint is just to maintain backwards compatible API; the
840
+ # old static binding did not actually use it
841
+ (status, buf, length, terminator_pos) = self.read_line()
842
+ if buf is None:
843
+ return ''
844
+ return buf
845
+
846
+ def readlines(self, size_hint=-1):
847
+ # note, size_hint is just to maintain backwards compatible API;
848
+ # the old static binding did not actually use it
849
+ lines = []
850
+ status = GLib.IOStatus.NORMAL
851
+ while status == GLib.IOStatus.NORMAL:
852
+ (status, buf, length, terminator_pos) = self.read_line()
853
+ # note, this appends an empty line after EOF; this is
854
+ # bug-compatible with the old static bindings
855
+ if buf is None:
856
+ buf = ''
857
+ lines.append(buf)
858
+ return lines
859
+
860
+ def write(self, buf, buflen=-1):
861
+ if not isinstance(buf, bytes):
862
+ buf = buf.encode('UTF-8')
863
+ if buflen == -1:
864
+ buflen = len(buf)
865
+ (status, written) = self.write_chars(buf, buflen)
866
+ return written
867
+
868
+ def writelines(self, lines):
869
+ for line in lines:
870
+ self.write(line)
871
+
872
+ _whence_map = {0: GLib.SeekType.SET, 1: GLib.SeekType.CUR, 2: GLib.SeekType.END}
873
+
874
+ def seek(self, offset, whence=0):
875
+ try:
876
+ w = self._whence_map[whence]
877
+ except KeyError:
878
+ raise ValueError("invalid 'whence' value")
879
+ return self.seek_position(offset, w)
880
+
881
+ def add_watch(self, condition, callback, *user_data, **kwargs):
882
+ priority = kwargs.get('priority', GLib.PRIORITY_DEFAULT)
883
+ return io_add_watch(self, priority, condition, callback, *user_data)
884
+
885
+ add_watch = deprecated(add_watch, 'GLib.io_add_watch()')
886
+
887
+ def __iter__(self):
888
+ return self
889
+
890
+ def __next__(self):
891
+ (status, buf, length, terminator_pos) = self.read_line()
892
+ if status == GLib.IOStatus.NORMAL:
893
+ return buf
894
+ raise StopIteration
895
+
896
+ # Python 2.x compatibility
897
+ next = __next__
898
+
899
+ IOChannel = override(IOChannel)
900
+ __all__.append('IOChannel')
901
+
902
+
903
+ class PollFD(GLib.PollFD):
904
+ def __new__(cls, fd, events):
905
+ pollfd = GLib.PollFD()
906
+ pollfd.__class__ = cls
907
+ return pollfd
908
+
909
+ def __init__(self, fd, events):
910
+ self.fd = fd
911
+ self.events = events
912
+
913
+ PollFD = override(PollFD)
914
+ __all__.append('PollFD')
915
+
916
+
917
+ # The GI GLib API uses g_child_watch_add_full renamed to g_child_watch_add with
918
+ # a signature of (priority, pid, callback, data).
919
+ # Prior to PyGObject 3.8, this function was statically bound with an API closer to the
920
+ # non-full version with a signature of: (pid, callback, data=None, priority=GLib.PRIORITY_DEFAULT)
921
+ # We need to support this until we are okay with breaking API in a way which is
922
+ # not backwards compatible.
923
+ def _child_watch_add_get_args(priority_or_pid, pid_or_callback, *args, **kwargs):
924
+ user_data = []
925
+
926
+ if callable(pid_or_callback):
927
+ warnings.warn('Calling child_watch_add without priority as first argument is deprecated',
928
+ PyGIDeprecationWarning)
929
+ pid = priority_or_pid
930
+ callback = pid_or_callback
931
+ if len(args) == 0:
932
+ priority = kwargs.get('priority', GLib.PRIORITY_DEFAULT)
933
+ elif len(args) == 1:
934
+ user_data = args
935
+ priority = kwargs.get('priority', GLib.PRIORITY_DEFAULT)
936
+ elif len(args) == 2:
937
+ user_data = [args[0]]
938
+ priority = args[1]
939
+ else:
940
+ raise TypeError('expected at most 4 positional arguments')
941
+ else:
942
+ priority = priority_or_pid
943
+ pid = pid_or_callback
944
+ if 'function' in kwargs:
945
+ callback = kwargs['function']
946
+ user_data = args
947
+ elif len(args) > 0 and callable(args[0]):
948
+ callback = args[0]
949
+ user_data = args[1:]
950
+ else:
951
+ raise TypeError('expected callback as third argument')
952
+
953
+ if 'data' in kwargs:
954
+ if user_data:
955
+ raise TypeError('got multiple values for "data" argument')
956
+ user_data = [kwargs['data']]
957
+
958
+ return priority, pid, callback, user_data
959
+
960
+ # we need this to be accessible for unit testing
961
+ __all__.append('_child_watch_add_get_args')
962
+
963
+
964
+ def child_watch_add(*args, **kwargs):
965
+ """child_watch_add(priority, pid, function, *data)"""
966
+ priority, pid, function, data = _child_watch_add_get_args(*args, **kwargs)
967
+ return GLib.child_watch_add(priority, pid, function, *data)
968
+
969
+ __all__.append('child_watch_add')
970
+
971
+
972
+ def get_current_time():
973
+ return GLib.get_real_time() * 0.000001
974
+
975
+ get_current_time = deprecated(get_current_time, 'GLib.get_real_time()')
976
+ """get_current_time()
977
+
978
+ :returns: Time in seconds since the Epoch
979
+ :rtype: float
980
+
981
+ {{ docs }}
982
+ """
983
+
984
+ __all__.append('get_current_time')
985
+
986
+
987
+ # backwards compatible API with default argument, and ignoring bytes_read
988
+ # output argument
989
+ def filename_from_utf8(utf8string, len=-1):
990
+ return GLib.filename_from_utf8(utf8string, len)[0]
991
+
992
+ __all__.append('filename_from_utf8')
993
+
994
+
995
+ # backwards compatible API for renamed function
996
+ if not hasattr(GLib, 'unix_signal_add_full'):
997
+ def add_full_compat(*args):
998
+ warnings.warn('GLib.unix_signal_add_full() was renamed to GLib.unix_signal_add()',
999
+ PyGIDeprecationWarning)
1000
+ return GLib.unix_signal_add(*args)
1001
+
1002
+ GLib.unix_signal_add_full = add_full_compat
1003
+
1004
+
1005
+ # obsolete constants for backwards compatibility
1006
+ glib_version = (GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION)
1007
+ __all__.append('glib_version')
1008
+ deprecated_attr("GLib", "glib_version",
1009
+ "(GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION)")
1010
+
1011
+ pyglib_version = version_info
1012
+ __all__.append('pyglib_version')
1013
+ deprecated_attr("GLib", "pyglib_version", "gi.version_info")