cli-ih 0.6.3.1__tar.gz → 0.7.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. cli_ih-0.7.1/PKG-INFO +100 -0
  2. cli_ih-0.7.1/README.md +92 -0
  3. {cli_ih-0.6.3.1 → cli_ih-0.7.1}/cli_ih/__init__.py +1 -0
  4. {cli_ih-0.6.3.1 → cli_ih-0.7.1}/cli_ih/asyncClient.py +109 -10
  5. {cli_ih-0.6.3.1 → cli_ih-0.7.1}/cli_ih/client.py +110 -18
  6. cli_ih-0.7.1/cli_ih/utils.py +51 -0
  7. cli_ih-0.7.1/cli_ih.egg-info/PKG-INFO +100 -0
  8. cli_ih-0.7.1/cli_ih.egg-info/SOURCES.txt +11 -0
  9. {cli_ih-0.6.3.1 → cli_ih-0.7.1}/cli_ih.egg-info/top_level.txt +1 -1
  10. {cli_ih-0.6.3.1 → cli_ih-0.7.1}/pyproject.toml +1 -1
  11. cli_ih-0.6.3.1/PKG-INFO +0 -86
  12. cli_ih-0.6.3.1/README.md +0 -78
  13. cli_ih-0.6.3.1/cli_ih.egg-info/PKG-INFO +0 -86
  14. cli_ih-0.6.3.1/cli_ih.egg-info/SOURCES.txt +0 -427
  15. cli_ih-0.6.3.1/venv/Lib/site-packages/__editable___cli_ih_0_6_3_1_finder.py +0 -85
  16. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/__init__.py +0 -13
  17. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/__main__.py +0 -24
  18. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/__pip-runner__.py +0 -50
  19. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/__init__.py +0 -18
  20. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/build_env.py +0 -349
  21. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cache.py +0 -291
  22. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/__init__.py +0 -3
  23. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/autocompletion.py +0 -184
  24. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/base_command.py +0 -244
  25. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/cmdoptions.py +0 -1138
  26. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/command_context.py +0 -28
  27. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/index_command.py +0 -175
  28. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/main.py +0 -80
  29. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/main_parser.py +0 -134
  30. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/parser.py +0 -298
  31. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py +0 -151
  32. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/req_command.py +0 -351
  33. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/spinners.py +0 -235
  34. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/cli/status_codes.py +0 -6
  35. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/__init__.py +0 -139
  36. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/cache.py +0 -231
  37. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/check.py +0 -66
  38. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/completion.py +0 -135
  39. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/configuration.py +0 -288
  40. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/debug.py +0 -203
  41. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/download.py +0 -145
  42. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/freeze.py +0 -107
  43. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/hash.py +0 -58
  44. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/help.py +0 -40
  45. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/index.py +0 -159
  46. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/inspect.py +0 -92
  47. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/install.py +0 -798
  48. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/list.py +0 -400
  49. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/lock.py +0 -170
  50. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/search.py +0 -178
  51. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/show.py +0 -231
  52. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/uninstall.py +0 -113
  53. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/commands/wheel.py +0 -181
  54. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/configuration.py +0 -397
  55. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/distributions/__init__.py +0 -21
  56. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/distributions/base.py +0 -55
  57. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/distributions/installed.py +0 -33
  58. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/distributions/sdist.py +0 -165
  59. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/distributions/wheel.py +0 -44
  60. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/exceptions.py +0 -881
  61. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/index/__init__.py +0 -1
  62. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/index/collector.py +0 -489
  63. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/index/package_finder.py +0 -1059
  64. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/index/sources.py +0 -287
  65. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/locations/__init__.py +0 -441
  66. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/locations/_distutils.py +0 -173
  67. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/locations/_sysconfig.py +0 -215
  68. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/locations/base.py +0 -82
  69. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/main.py +0 -12
  70. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/metadata/__init__.py +0 -164
  71. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/metadata/_json.py +0 -87
  72. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/metadata/base.py +0 -685
  73. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/metadata/importlib/__init__.py +0 -6
  74. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/metadata/importlib/_compat.py +0 -87
  75. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/metadata/importlib/_dists.py +0 -223
  76. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/metadata/importlib/_envs.py +0 -143
  77. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/metadata/pkg_resources.py +0 -298
  78. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/__init__.py +0 -1
  79. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/candidate.py +0 -25
  80. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/direct_url.py +0 -227
  81. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/format_control.py +0 -78
  82. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/index.py +0 -28
  83. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/installation_report.py +0 -57
  84. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/link.py +0 -613
  85. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/pylock.py +0 -188
  86. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/scheme.py +0 -25
  87. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/search_scope.py +0 -126
  88. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/selection_prefs.py +0 -53
  89. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/target_python.py +0 -122
  90. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/models/wheel.py +0 -141
  91. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/network/__init__.py +0 -1
  92. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/network/auth.py +0 -564
  93. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/network/cache.py +0 -133
  94. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/network/download.py +0 -342
  95. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/network/lazy_wheel.py +0 -213
  96. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/network/session.py +0 -528
  97. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/network/utils.py +0 -98
  98. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/network/xmlrpc.py +0 -61
  99. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/__init__.py +0 -0
  100. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/build/__init__.py +0 -0
  101. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/build/build_tracker.py +0 -140
  102. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/build/metadata.py +0 -38
  103. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/build/metadata_editable.py +0 -41
  104. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/build/metadata_legacy.py +0 -73
  105. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/build/wheel.py +0 -38
  106. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/build/wheel_editable.py +0 -47
  107. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/build/wheel_legacy.py +0 -119
  108. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/check.py +0 -175
  109. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/freeze.py +0 -259
  110. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/install/__init__.py +0 -1
  111. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/install/editable_legacy.py +0 -48
  112. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/install/wheel.py +0 -746
  113. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/operations/prepare.py +0 -742
  114. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/pyproject.py +0 -182
  115. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/req/__init__.py +0 -105
  116. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/req/constructors.py +0 -562
  117. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/req/req_dependency_group.py +0 -75
  118. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/req/req_file.py +0 -620
  119. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/req/req_install.py +0 -937
  120. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/req/req_set.py +0 -81
  121. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/req/req_uninstall.py +0 -639
  122. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/__init__.py +0 -0
  123. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/base.py +0 -20
  124. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
  125. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/legacy/resolver.py +0 -598
  126. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
  127. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/base.py +0 -142
  128. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/candidates.py +0 -582
  129. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/factory.py +0 -814
  130. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +0 -166
  131. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/provider.py +0 -276
  132. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/reporter.py +0 -85
  133. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/requirements.py +0 -247
  134. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/resolver.py +0 -336
  135. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/self_outdated_check.py +0 -254
  136. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/__init__.py +0 -0
  137. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/_jaraco_text.py +0 -109
  138. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/_log.py +0 -38
  139. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/appdirs.py +0 -52
  140. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/compat.py +0 -85
  141. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/compatibility_tags.py +0 -201
  142. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/datetime.py +0 -10
  143. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/deprecation.py +0 -126
  144. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/direct_url_helpers.py +0 -87
  145. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/egg_link.py +0 -81
  146. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/entrypoints.py +0 -88
  147. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/filesystem.py +0 -152
  148. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/filetypes.py +0 -24
  149. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/glibc.py +0 -102
  150. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/hashes.py +0 -150
  151. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/logging.py +0 -364
  152. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/misc.py +0 -765
  153. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/packaging.py +0 -44
  154. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/retry.py +0 -45
  155. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/setuptools_build.py +0 -149
  156. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/subprocess.py +0 -248
  157. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/temp_dir.py +0 -294
  158. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/unpacking.py +0 -337
  159. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/urls.py +0 -55
  160. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/virtualenv.py +0 -105
  161. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/utils/wheel.py +0 -132
  162. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/vcs/__init__.py +0 -15
  163. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/vcs/bazaar.py +0 -130
  164. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/vcs/git.py +0 -571
  165. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/vcs/mercurial.py +0 -186
  166. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/vcs/subversion.py +0 -335
  167. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/vcs/versioncontrol.py +0 -693
  168. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_internal/wheel_builder.py +0 -334
  169. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/__init__.py +0 -117
  170. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/__init__.py +0 -29
  171. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/_cmd.py +0 -70
  172. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/adapter.py +0 -168
  173. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/cache.py +0 -75
  174. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +0 -8
  175. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +0 -145
  176. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +0 -48
  177. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/controller.py +0 -511
  178. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/filewrapper.py +0 -119
  179. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/heuristics.py +0 -157
  180. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
  181. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/serialize.py +0 -146
  182. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/cachecontrol/wrapper.py +0 -43
  183. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/certifi/__init__.py +0 -4
  184. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/certifi/__main__.py +0 -12
  185. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/certifi/core.py +0 -83
  186. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/certifi/py.typed +0 -0
  187. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/dependency_groups/__init__.py +0 -13
  188. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/dependency_groups/__main__.py +0 -65
  189. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/dependency_groups/_implementation.py +0 -209
  190. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/dependency_groups/_lint_dependency_groups.py +0 -59
  191. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/dependency_groups/_pip_wrapper.py +0 -62
  192. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/dependency_groups/_toml_compat.py +0 -9
  193. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/dependency_groups/py.typed +0 -0
  194. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/distlib/__init__.py +0 -33
  195. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/distlib/compat.py +0 -1137
  196. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/distlib/resources.py +0 -358
  197. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/distlib/scripts.py +0 -447
  198. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/distlib/util.py +0 -1984
  199. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/distro/__init__.py +0 -54
  200. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/distro/__main__.py +0 -4
  201. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/distro/distro.py +0 -1403
  202. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/distro/py.typed +0 -0
  203. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/idna/__init__.py +0 -45
  204. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/idna/codec.py +0 -122
  205. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/idna/compat.py +0 -15
  206. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/idna/core.py +0 -437
  207. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/idna/idnadata.py +0 -4243
  208. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/idna/intranges.py +0 -57
  209. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/idna/package_data.py +0 -1
  210. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/idna/py.typed +0 -0
  211. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/idna/uts46data.py +0 -8681
  212. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/msgpack/__init__.py +0 -55
  213. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/msgpack/exceptions.py +0 -48
  214. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/msgpack/ext.py +0 -170
  215. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/msgpack/fallback.py +0 -929
  216. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/__init__.py +0 -15
  217. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/_elffile.py +0 -109
  218. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/_manylinux.py +0 -262
  219. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/_musllinux.py +0 -85
  220. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/_parser.py +0 -353
  221. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/_structures.py +0 -61
  222. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/_tokenizer.py +0 -195
  223. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/licenses/__init__.py +0 -145
  224. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/licenses/_spdx.py +0 -759
  225. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/markers.py +0 -362
  226. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/metadata.py +0 -862
  227. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/py.typed +0 -0
  228. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/requirements.py +0 -91
  229. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/specifiers.py +0 -1019
  230. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/tags.py +0 -656
  231. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/utils.py +0 -163
  232. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/packaging/version.py +0 -582
  233. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pkg_resources/__init__.py +0 -3676
  234. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/platformdirs/__init__.py +0 -631
  235. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/platformdirs/__main__.py +0 -55
  236. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/platformdirs/android.py +0 -249
  237. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/platformdirs/api.py +0 -299
  238. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/platformdirs/macos.py +0 -144
  239. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
  240. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/platformdirs/unix.py +0 -272
  241. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/platformdirs/version.py +0 -21
  242. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/platformdirs/windows.py +0 -272
  243. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/__init__.py +0 -82
  244. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/__main__.py +0 -17
  245. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/console.py +0 -70
  246. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/filter.py +0 -70
  247. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/filters/__init__.py +0 -940
  248. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/formatter.py +0 -129
  249. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/formatters/__init__.py +0 -157
  250. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/formatters/_mapping.py +0 -23
  251. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/lexer.py +0 -963
  252. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/lexers/__init__.py +0 -362
  253. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/lexers/_mapping.py +0 -602
  254. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/lexers/python.py +0 -1201
  255. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/modeline.py +0 -43
  256. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/plugin.py +0 -72
  257. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/regexopt.py +0 -91
  258. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/scanner.py +0 -104
  259. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/sphinxext.py +0 -247
  260. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/style.py +0 -203
  261. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/styles/__init__.py +0 -61
  262. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/styles/_mapping.py +0 -54
  263. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/token.py +0 -214
  264. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/unistring.py +0 -153
  265. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pygments/util.py +0 -324
  266. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pyproject_hooks/__init__.py +0 -31
  267. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pyproject_hooks/_impl.py +0 -410
  268. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pyproject_hooks/_in_process/__init__.py +0 -21
  269. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +0 -389
  270. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/pyproject_hooks/py.typed +0 -0
  271. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/__init__.py +0 -179
  272. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/__version__.py +0 -14
  273. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/_internal_utils.py +0 -50
  274. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/adapters.py +0 -719
  275. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/api.py +0 -157
  276. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/auth.py +0 -314
  277. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/certs.py +0 -17
  278. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/compat.py +0 -90
  279. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/cookies.py +0 -561
  280. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/exceptions.py +0 -151
  281. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/help.py +0 -127
  282. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/hooks.py +0 -33
  283. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/models.py +0 -1039
  284. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/packages.py +0 -25
  285. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/sessions.py +0 -831
  286. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/status_codes.py +0 -128
  287. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/structures.py +0 -99
  288. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/requests/utils.py +0 -1086
  289. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/__init__.py +0 -27
  290. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/providers.py +0 -196
  291. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
  292. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/reporters.py +0 -55
  293. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/resolvers/__init__.py +0 -27
  294. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/resolvers/abstract.py +0 -47
  295. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/resolvers/criterion.py +0 -48
  296. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/resolvers/exceptions.py +0 -57
  297. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/resolvers/resolution.py +0 -622
  298. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/resolvelib/structs.py +0 -209
  299. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/__init__.py +0 -177
  300. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/__main__.py +0 -245
  301. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_cell_widths.py +0 -454
  302. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_emoji_codes.py +0 -3610
  303. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_emoji_replace.py +0 -32
  304. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_export_format.py +0 -76
  305. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_extension.py +0 -10
  306. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_fileno.py +0 -24
  307. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_inspect.py +0 -268
  308. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_log_render.py +0 -94
  309. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_loop.py +0 -43
  310. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_null_file.py +0 -69
  311. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_palettes.py +0 -309
  312. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_pick.py +0 -17
  313. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_ratio.py +0 -153
  314. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_spinners.py +0 -482
  315. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_stack.py +0 -16
  316. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_timer.py +0 -19
  317. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_win32_console.py +0 -661
  318. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_windows.py +0 -71
  319. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_windows_renderer.py +0 -56
  320. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/_wrap.py +0 -93
  321. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/abc.py +0 -33
  322. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/align.py +0 -306
  323. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/ansi.py +0 -241
  324. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/bar.py +0 -93
  325. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/box.py +0 -474
  326. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/cells.py +0 -174
  327. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/color.py +0 -621
  328. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/color_triplet.py +0 -38
  329. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/columns.py +0 -187
  330. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/console.py +0 -2680
  331. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/constrain.py +0 -37
  332. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/containers.py +0 -167
  333. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/control.py +0 -219
  334. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/default_styles.py +0 -193
  335. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/diagnose.py +0 -39
  336. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/emoji.py +0 -91
  337. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/errors.py +0 -34
  338. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/file_proxy.py +0 -57
  339. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/filesize.py +0 -88
  340. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/highlighter.py +0 -232
  341. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/json.py +0 -139
  342. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/jupyter.py +0 -101
  343. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/layout.py +0 -442
  344. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/live.py +0 -400
  345. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/live_render.py +0 -106
  346. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/logging.py +0 -297
  347. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/markup.py +0 -251
  348. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/measure.py +0 -151
  349. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/padding.py +0 -141
  350. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/pager.py +0 -34
  351. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/palette.py +0 -100
  352. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/panel.py +0 -317
  353. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/pretty.py +0 -1016
  354. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/progress.py +0 -1715
  355. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/progress_bar.py +0 -223
  356. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/prompt.py +0 -400
  357. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/protocol.py +0 -42
  358. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/py.typed +0 -0
  359. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/region.py +0 -10
  360. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/repr.py +0 -149
  361. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/rule.py +0 -130
  362. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/scope.py +0 -86
  363. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/screen.py +0 -54
  364. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/segment.py +0 -752
  365. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/spinner.py +0 -132
  366. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/status.py +0 -131
  367. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/style.py +0 -796
  368. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/styled.py +0 -42
  369. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/syntax.py +0 -985
  370. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/table.py +0 -1006
  371. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/terminal_theme.py +0 -153
  372. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/text.py +0 -1361
  373. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/theme.py +0 -115
  374. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/themes.py +0 -5
  375. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/traceback.py +0 -899
  376. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/rich/tree.py +0 -257
  377. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/tomli/__init__.py +0 -8
  378. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/tomli/_parser.py +0 -770
  379. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/tomli/_re.py +0 -112
  380. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/tomli/_types.py +0 -10
  381. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/tomli/py.typed +0 -1
  382. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/tomli_w/__init__.py +0 -4
  383. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/tomli_w/_writer.py +0 -229
  384. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/tomli_w/py.typed +0 -1
  385. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/truststore/__init__.py +0 -36
  386. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/truststore/_api.py +0 -333
  387. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/truststore/_macos.py +0 -571
  388. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/truststore/_openssl.py +0 -66
  389. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/truststore/_ssl_constants.py +0 -31
  390. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/truststore/_windows.py +0 -567
  391. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/truststore/py.typed +0 -0
  392. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/__init__.py +0 -102
  393. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/_collections.py +0 -355
  394. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/_version.py +0 -2
  395. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/connection.py +0 -572
  396. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/connectionpool.py +0 -1140
  397. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  398. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +0 -36
  399. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  400. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +0 -519
  401. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +0 -397
  402. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/appengine.py +0 -314
  403. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +0 -130
  404. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +0 -518
  405. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +0 -920
  406. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/contrib/socks.py +0 -216
  407. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/exceptions.py +0 -323
  408. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/fields.py +0 -274
  409. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/filepost.py +0 -98
  410. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
  411. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  412. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +0 -51
  413. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py +0 -155
  414. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/packages/six.py +0 -1076
  415. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/poolmanager.py +0 -540
  416. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/request.py +0 -191
  417. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/response.py +0 -879
  418. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/__init__.py +0 -49
  419. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/connection.py +0 -149
  420. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/proxy.py +0 -57
  421. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/queue.py +0 -22
  422. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/request.py +0 -137
  423. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/response.py +0 -107
  424. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/retry.py +0 -622
  425. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/ssl_.py +0 -504
  426. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +0 -159
  427. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/ssltransport.py +0 -221
  428. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/timeout.py +0 -271
  429. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/url.py +0 -435
  430. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/_vendor/urllib3/util/wait.py +0 -152
  431. cli_ih-0.6.3.1/venv/Lib/site-packages/pip/py.typed +0 -4
  432. {cli_ih-0.6.3.1 → cli_ih-0.7.1}/cli_ih/exceptions.py +0 -0
  433. {cli_ih-0.6.3.1 → cli_ih-0.7.1}/cli_ih.egg-info/dependency_links.txt +0 -0
  434. {cli_ih-0.6.3.1 → cli_ih-0.7.1}/setup.cfg +0 -0
cli_ih-0.7.1/PKG-INFO ADDED
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.4
2
+ Name: cli_ih
3
+ Version: 0.7.1
4
+ Summary: A background command handler for python's command-line interface.
5
+ Author-email: Hotment <michatchuplay@gmail.com>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+
9
+ # InputHandler Library
10
+
11
+ A lightweight Python library for creating interactive command-line interfaces with custom command registration, input handling, and clean log output. It supports synchronous and asynchronous modes, threaded input processing, and enhanced logging.
12
+
13
+ ## Features
14
+
15
+ - **Command Registration**: Register commands with decorators and descriptions.
16
+ - **Threaded Input**: Non-blocking input handling by default.
17
+ - **Safe Printing**: Logs appear above the input line, preserving your typed text and cursor position.
18
+ - **Command History**: Navigate recent commands with Up/Down arrow keys.
19
+ - **Sync & Async**: Support for both synchronous and asynchronous (asyncio) applications.
20
+ - **Colored Logging**: Built-in support for colored log messages.
21
+
22
+ ## Installation
23
+
24
+ `pip install cli_ih`
25
+
26
+ ## Quick Start (Synchronous)
27
+
28
+ ```python
29
+ from cli_ih import InputHandler, safe_print
30
+
31
+ handler = InputHandler(cursor="> ")
32
+
33
+ # Use safe_print instead of print to keep the input line clean!
34
+ @handler.command(name="greet", description="Greets the user.")
35
+ def greet(name):
36
+ safe_print(f"Hello, {name}!")
37
+
38
+ @handler.command(name="add", description="Adds two numbers.")
39
+ def add(a, b):
40
+ safe_print(int(a) + int(b))
41
+
42
+ handler.start()
43
+
44
+ # Using safe_print allows you to print logs in the background
45
+ # without messing up the user's current input line.
46
+ ```
47
+
48
+ ## Async Client Example
49
+
50
+ The `AsyncInputHandler` integrates with `asyncio`. The `start()` method is non-blocking when `thread_mode=True` (default).
51
+
52
+ ```python
53
+ import asyncio
54
+ from cli_ih import AsyncInputHandler, safe_print
55
+
56
+ handler = AsyncInputHandler(cursor="Async> ")
57
+
58
+ @handler.command(name="greet", description="Greets the user asynchronously.")
59
+ async def greet(name):
60
+ await asyncio.sleep(1)
61
+ safe_print(f"Hello, {name}")
62
+
63
+ @handler.command(name="add", description="Adds two numbers.")
64
+ async def add(a, b):
65
+ safe_print(int(a) + int(b))
66
+
67
+ # Start the handler (runs in a separate thread by default)
68
+ handler.start()
69
+
70
+ # Keep the main thread alive or run your main event loop
71
+ async def main():
72
+ while handler.is_running:
73
+ await asyncio.sleep(1)
74
+
75
+ if __name__ == "__main__":
76
+ asyncio.run(main())
77
+ ```
78
+
79
+ ## Key Considerations
80
+
81
+ ### Safe Printing
82
+ Always use `from cli_ih import safe_print` for outputting text to the console. This utility automatically detects the active input handler and ensures that your log message is printed *above* the current input line, preserving the user's cursor and any text they are currently typing.
83
+
84
+ ```python
85
+ from cli_ih import safe_print
86
+
87
+ # Good
88
+ safe_print("Log message")
89
+
90
+ # Avoid (might disrupt input line)
91
+ print("Log message")
92
+ ```
93
+
94
+ ### Thread Mode
95
+ Both `InputHandler` and `AsyncInputHandler` accept a `thread_mode` parameter (default `True`).
96
+ - `thread_mode=True`: The input loop runs in a separate thread. `start()` returns immediately.
97
+ - `thread_mode=False`: The input loop runs in the current thread. `start()` blocks until exit.
98
+
99
+ ### Command History
100
+ Use the **Up** and **Down** arrow keys to cycle through your previously entered commands, just like in a standard terminal.
cli_ih-0.7.1/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # InputHandler Library
2
+
3
+ A lightweight Python library for creating interactive command-line interfaces with custom command registration, input handling, and clean log output. It supports synchronous and asynchronous modes, threaded input processing, and enhanced logging.
4
+
5
+ ## Features
6
+
7
+ - **Command Registration**: Register commands with decorators and descriptions.
8
+ - **Threaded Input**: Non-blocking input handling by default.
9
+ - **Safe Printing**: Logs appear above the input line, preserving your typed text and cursor position.
10
+ - **Command History**: Navigate recent commands with Up/Down arrow keys.
11
+ - **Sync & Async**: Support for both synchronous and asynchronous (asyncio) applications.
12
+ - **Colored Logging**: Built-in support for colored log messages.
13
+
14
+ ## Installation
15
+
16
+ `pip install cli_ih`
17
+
18
+ ## Quick Start (Synchronous)
19
+
20
+ ```python
21
+ from cli_ih import InputHandler, safe_print
22
+
23
+ handler = InputHandler(cursor="> ")
24
+
25
+ # Use safe_print instead of print to keep the input line clean!
26
+ @handler.command(name="greet", description="Greets the user.")
27
+ def greet(name):
28
+ safe_print(f"Hello, {name}!")
29
+
30
+ @handler.command(name="add", description="Adds two numbers.")
31
+ def add(a, b):
32
+ safe_print(int(a) + int(b))
33
+
34
+ handler.start()
35
+
36
+ # Using safe_print allows you to print logs in the background
37
+ # without messing up the user's current input line.
38
+ ```
39
+
40
+ ## Async Client Example
41
+
42
+ The `AsyncInputHandler` integrates with `asyncio`. The `start()` method is non-blocking when `thread_mode=True` (default).
43
+
44
+ ```python
45
+ import asyncio
46
+ from cli_ih import AsyncInputHandler, safe_print
47
+
48
+ handler = AsyncInputHandler(cursor="Async> ")
49
+
50
+ @handler.command(name="greet", description="Greets the user asynchronously.")
51
+ async def greet(name):
52
+ await asyncio.sleep(1)
53
+ safe_print(f"Hello, {name}")
54
+
55
+ @handler.command(name="add", description="Adds two numbers.")
56
+ async def add(a, b):
57
+ safe_print(int(a) + int(b))
58
+
59
+ # Start the handler (runs in a separate thread by default)
60
+ handler.start()
61
+
62
+ # Keep the main thread alive or run your main event loop
63
+ async def main():
64
+ while handler.is_running:
65
+ await asyncio.sleep(1)
66
+
67
+ if __name__ == "__main__":
68
+ asyncio.run(main())
69
+ ```
70
+
71
+ ## Key Considerations
72
+
73
+ ### Safe Printing
74
+ Always use `from cli_ih import safe_print` for outputting text to the console. This utility automatically detects the active input handler and ensures that your log message is printed *above* the current input line, preserving the user's cursor and any text they are currently typing.
75
+
76
+ ```python
77
+ from cli_ih import safe_print
78
+
79
+ # Good
80
+ safe_print("Log message")
81
+
82
+ # Avoid (might disrupt input line)
83
+ print("Log message")
84
+ ```
85
+
86
+ ### Thread Mode
87
+ Both `InputHandler` and `AsyncInputHandler` accept a `thread_mode` parameter (default `True`).
88
+ - `thread_mode=True`: The input loop runs in a separate thread. `start()` returns immediately.
89
+ - `thread_mode=False`: The input loop runs in the current thread. `start()` blocks until exit.
90
+
91
+ ### Command History
92
+ Use the **Up** and **Down** arrow keys to cycle through your previously entered commands, just like in a standard terminal.
@@ -1,5 +1,6 @@
1
1
  from .client import InputHandler
2
2
  from .asyncClient import AsyncInputHandler
3
+ from .utils import safe_print
3
4
  import importlib.metadata
4
5
 
5
6
  try:
@@ -1,15 +1,24 @@
1
1
  from typing import Coroutine, Callable, Any
2
2
  from .exceptions import HandlerClosed
3
- import logging, warnings, asyncio, inspect, threading
3
+ from .utils import safe_print as print, register_handler
4
+ import logging, warnings, asyncio, inspect, threading, sys, shutil, msvcrt
4
5
 
5
6
  class AsyncInputHandler:
6
- def __init__(self, cursor = "", *, logger: logging.Logger | None = None, register_defaults: bool = True):
7
+ def __init__(self, cursor = "", thread_mode: bool = True, *, logger: logging.Logger | None = None, register_defaults: bool = True):
8
+ register_handler(self)
7
9
  self.commands = {}
8
10
  self.is_running = False
11
+ self.thread_mode = thread_mode
9
12
  self.cursor = f"{cursor.strip()} " if cursor else ""
10
13
  self.global_logger = logger if logger else None
11
14
  self.logger = logger.getChild("InputHandler") if logger else None
12
15
  self.register_defaults = register_defaults
16
+ self.print_lock = threading.Lock()
17
+ self.input_buffer = ""
18
+ self.processing_command = False
19
+ self.history = []
20
+ self.history_index = 0
21
+
13
22
  if self.register_defaults:
14
23
  self.register_default_commands()
15
24
  else:
@@ -71,23 +80,105 @@ class AsyncInputHandler:
71
80
  return func
72
81
  return decorator
73
82
 
74
- async def start(self):
75
- """Starts the input handler loop in a separate thread if thread mode is enabled."""
83
+ def start(self):
84
+ """Starts the input handler loop. Runs in a thread if thread_mode is True, otherwise blocks."""
76
85
  self.is_running = True
86
+ if self.thread_mode:
87
+ thread = threading.Thread(target=self._start_thread, daemon=True)
88
+ thread.start()
89
+ else:
90
+ self._start_thread()
91
+
92
+ def _start_thread(self):
93
+ asyncio.run(self._run())
94
+
95
+ async def _run(self):
96
+ """Starts the input handler loop in a separate thread if thread mode is enabled."""
77
97
  loop = asyncio.get_running_loop()
78
98
  input_queue = asyncio.Queue()
79
99
 
80
100
  def _input_worker():
101
+ # Initial prompt
102
+ with self.print_lock:
103
+ sys.stdout.write(self.cursor)
104
+ sys.stdout.flush()
105
+
81
106
  while self.is_running:
82
107
  try:
83
- text = input(self.cursor)
84
- loop.call_soon_threadsafe(input_queue.put_nowait, text)
85
- except EOFError:
86
- loop.call_soon_threadsafe(input_queue.put_nowait, EOFError)
87
- break
108
+ if msvcrt.kbhit():
109
+ char = msvcrt.getwch()
110
+
111
+ if char == '\xe0' or char == '\x00': # Special keys (Arrows, etc)
112
+ try:
113
+ scancode = msvcrt.getwch()
114
+ if scancode == 'H': # Up Arrow
115
+ if self.history_index > 0:
116
+ self.history_index -= 1
117
+ self.input_buffer = self.history[self.history_index]
118
+ with self.print_lock:
119
+ sys.stdout.write('\r' + ' ' * (shutil.get_terminal_size().columns - 1) + '\r')
120
+ sys.stdout.write(self.cursor + self.input_buffer)
121
+ sys.stdout.flush()
122
+
123
+ elif scancode == 'P': # Down Arrow
124
+ if self.history_index < len(self.history):
125
+ self.history_index += 1
126
+
127
+ if self.history_index == len(self.history):
128
+ self.input_buffer = ""
129
+ else:
130
+ self.input_buffer = self.history[self.history_index]
131
+
132
+ with self.print_lock:
133
+ sys.stdout.write('\r' + ' ' * (shutil.get_terminal_size().columns - 1) + '\r')
134
+ sys.stdout.write(self.cursor + self.input_buffer)
135
+ sys.stdout.flush()
136
+ except Exception:
137
+ pass
138
+
139
+ elif char == '\r': # Enter
140
+ with self.print_lock:
141
+ sys.stdout.write('\n')
142
+ sys.stdout.flush()
143
+ text = self.input_buffer
144
+ self.input_buffer = ""
145
+
146
+ if text:
147
+ if not self.history or self.history[-1] != text:
148
+ self.history.append(text)
149
+ self.history_index = len(self.history)
150
+
151
+ loop.call_soon_threadsafe(input_queue.put_nowait, text)
152
+
153
+ elif char == '\x08': # Backspace
154
+ if len(self.input_buffer) > 0:
155
+ self.input_buffer = self.input_buffer[:-1]
156
+ with self.print_lock:
157
+ sys.stdout.write('\b \b')
158
+ sys.stdout.flush()
159
+
160
+ elif char == '\x03': # Ctrl+C
161
+ loop.call_soon_threadsafe(input_queue.put_nowait, KeyboardInterrupt)
162
+ break
163
+
164
+ else:
165
+ # Verify printable
166
+ if char.isprintable():
167
+ self.input_buffer += char
168
+ with self.print_lock:
169
+ sys.stdout.write(char)
170
+ sys.stdout.flush()
171
+ else:
172
+ pass
173
+ # Small sleep to prevent high CPU usage,
174
+ # but we are in a dedicated thread so it's fine-ish,
175
+ # actually explicit sleep is good.
176
+ import time
177
+ time.sleep(0.01)
178
+
88
179
  except Exception:
89
180
  break
90
-
181
+
91
182
  thread = threading.Thread(target=_input_worker, daemon=True)
92
183
  thread.start()
93
184
 
@@ -152,6 +243,7 @@ class AsyncInputHandler:
152
243
  if not user_input:
153
244
  continue
154
245
 
246
+ self.processing_command = True
155
247
  cmdargs = user_input.split(' ')
156
248
  command_name = cmdargs[0].lower()
157
249
  args = cmdargs[1:]
@@ -159,6 +251,13 @@ class AsyncInputHandler:
159
251
  await _run_command(self.commands, command_name, args)
160
252
  else:
161
253
  self.__warning(f"Unknown command: '{command_name}'")
254
+ self.processing_command = False
255
+
256
+ # Reprompt after command execution
257
+ with self.print_lock:
258
+ sys.stdout.write(self.cursor)
259
+ sys.stdout.flush()
260
+
162
261
  except EOFError:
163
262
  self.__error("Input ended unexpectedly.")
164
263
  break
@@ -1,9 +1,11 @@
1
1
  from typing import Callable
2
2
  from .exceptions import HandlerClosed
3
- import logging, warnings
3
+ from .utils import safe_print as print, register_handler
4
+ import logging, warnings, sys, shutil, threading, msvcrt
4
5
 
5
6
  class InputHandler:
6
7
  def __init__(self, thread_mode = True, cursor = "", *, logger: logging.Logger | None = None, register_defaults: bool = True):
8
+ register_handler(self)
7
9
  self.commands = {}
8
10
  self.is_running = False
9
11
  self.thread_mode = thread_mode
@@ -12,6 +14,12 @@ class InputHandler:
12
14
  self.global_logger = logger if logger else None
13
15
  self.logger = logger.getChild("InputHandler") if logger else None
14
16
  self.register_defaults = register_defaults
17
+ self.print_lock = threading.Lock()
18
+ self.input_buffer = ""
19
+ self.processing_command = False
20
+ self.history = []
21
+ self.history_index = 0
22
+
15
23
  if self.register_defaults:
16
24
  self.register_default_commands()
17
25
  else:
@@ -130,26 +138,110 @@ class InputHandler:
130
138
  """Continuously listens for user input and processes commands."""
131
139
  while self.is_running:
132
140
  try:
133
- user_input = input(self.cursor).strip()
134
- if not user_input:
135
- continue
136
-
137
- cmdargs = user_input.split(' ')
138
- command_name = cmdargs[0].lower()
139
- args = cmdargs[1:]
140
- if command_name in self.commands:
141
- _run_command(self.commands, command_name, args)
142
- else:
143
- self.__warning(f"Unknown command: '{command_name}'")
144
- except EOFError:
145
- self.__error("Input ended unexpectedly.")
146
- break
147
- except KeyboardInterrupt:
148
- self.__error("Input interrupted.")
149
- break
141
+ # Initial prompt
142
+ with self.print_lock:
143
+ sys.stdout.write(self.cursor)
144
+ sys.stdout.flush()
145
+
146
+ while self.is_running:
147
+ if msvcrt.kbhit():
148
+ char = msvcrt.getwch()
149
+
150
+ if char == '\xe0' or char == '\x00': # Special keys (Arrows, etc)
151
+ try:
152
+ scancode = msvcrt.getwch()
153
+ if scancode == 'H': # Up Arrow
154
+ if self.history_index > 0:
155
+ self.history_index -= 1
156
+ self.input_buffer = self.history[self.history_index]
157
+ with self.print_lock:
158
+ # Clear current line visually
159
+ # We don't have columns info here easily, but safe_print logic uses clearing.
160
+ # Let's try to just use \r and spaces? No, let's just use \r and overwrite.
161
+ # To properly clear, we need to know the length of what was there.
162
+ # A reuse of _safe_print logic might be good but avoiding circularity.
163
+ # Simple clear strategy: \r, print many spaces, \r, print prompt + buffer
164
+ # Or better: \r + prompt + buffer + spaces to clear rest?
165
+
166
+ # We'll use a crude clear for now or simple overwrite if shorter?
167
+ # Best to clear the line.
168
+ sys.stdout.write('\r' + ' ' * (shutil.get_terminal_size().columns - 1) + '\r')
169
+ sys.stdout.write(self.cursor + self.input_buffer)
170
+ sys.stdout.flush()
171
+
172
+ elif scancode == 'P': # Down Arrow
173
+ if self.history_index < len(self.history):
174
+ self.history_index += 1
175
+
176
+ if self.history_index == len(self.history):
177
+ self.input_buffer = ""
178
+ else:
179
+ self.input_buffer = self.history[self.history_index]
180
+
181
+ with self.print_lock:
182
+ sys.stdout.write('\r' + ' ' * (shutil.get_terminal_size().columns - 1) + '\r')
183
+ sys.stdout.write(self.cursor + self.input_buffer)
184
+ sys.stdout.flush()
185
+ except Exception:
186
+ pass
187
+
188
+ elif char == '\r': # Enter
189
+ with self.print_lock:
190
+ sys.stdout.write('\n')
191
+ sys.stdout.flush()
192
+ text = self.input_buffer
193
+ self.input_buffer = ""
194
+
195
+ if text:
196
+ # Add to history if unique or last one different?
197
+ # Usually standard behavior: always add, or add if different from last.
198
+ # Let's add if not empty.
199
+ if not self.history or self.history[-1] != text:
200
+ self.history.append(text)
201
+ self.history_index = len(self.history)
202
+
203
+ self.processing_command = True
204
+ cmdargs = text.split(' ')
205
+ command_name = cmdargs[0].lower()
206
+ args = cmdargs[1:]
207
+ if command_name in self.commands:
208
+ _run_command(self.commands, command_name, args)
209
+ else:
210
+ self.__warning(f"Unknown command: '{command_name}'")
211
+ self.processing_command = False
212
+
213
+ # Break inner loop to reprompt
214
+ break
215
+
216
+ elif char == '\x08': # Backspace
217
+ if len(self.input_buffer) > 0:
218
+ self.input_buffer = self.input_buffer[:-1]
219
+ with self.print_lock:
220
+ sys.stdout.write('\b \b')
221
+ sys.stdout.flush()
222
+
223
+ elif char == '\x03': # Ctrl+C
224
+ self.__error("Input interrupted.")
225
+ self.is_running = False
226
+ return
227
+
228
+ else:
229
+ # Verify printable
230
+ if char.isprintable():
231
+ self.input_buffer += char
232
+ with self.print_lock:
233
+ sys.stdout.write(char)
234
+ sys.stdout.flush()
235
+ else:
236
+ import time
237
+ time.sleep(0.01)
238
+
150
239
  except HandlerClosed:
151
240
  self.__info("Input Handler exited.")
152
241
  break
242
+ except Exception as e:
243
+ self.__exeption("Input loop error", e)
244
+ break
153
245
  self.is_running = False
154
246
  if self.thread_mode:
155
247
  self.thread = threading.Thread(target=_thread, daemon=True)
@@ -0,0 +1,51 @@
1
+ import shutil
2
+ import sys
3
+
4
+ _HANDLER = None
5
+
6
+ def register_handler(handler):
7
+ global _HANDLER
8
+ _HANDLER = handler
9
+
10
+ def safe_print(msg: str, cursor: str | None = None, input_buffer: str | None = None):
11
+ """
12
+ Prints a message safely while preserving the current input buffer and cursor.
13
+ This ensures logs appear above the input line appropriately.
14
+ """
15
+ if cursor is None and input_buffer is None and _HANDLER is not None:
16
+ lock = None
17
+ try:
18
+ # Try to acquire lock if available to prevent race conditions
19
+ lock = getattr(_HANDLER, "print_lock", None)
20
+ if lock:
21
+ lock.acquire()
22
+
23
+ cursor = str(getattr(_HANDLER, "cursor", ""))
24
+ input_buffer = str(getattr(_HANDLER, "input_buffer", ""))
25
+ processing_command = getattr(_HANDLER, "processing_command", False)
26
+
27
+ if processing_command:
28
+ cursor = ""
29
+ input_buffer = ""
30
+
31
+ _do_safe_print(msg, cursor, input_buffer)
32
+ finally:
33
+ if lock:
34
+ lock.release()
35
+ else:
36
+ # Fallback or explicit arguments
37
+ _do_safe_print(msg, cursor or "", input_buffer or "")
38
+
39
+ def _do_safe_print(msg: str, cursor: str, input_buffer: str):
40
+ try:
41
+ columns = shutil.get_terminal_size().columns
42
+ except:
43
+ columns = 80
44
+
45
+ # Clear line
46
+ sys.stdout.write('\r' + ' ' * (columns - 1) + '\r')
47
+ # Print message
48
+ sys.stdout.write(f"{msg}\n")
49
+ # Reprint cursor and buffer
50
+ sys.stdout.write(f"{cursor}{input_buffer}")
51
+ sys.stdout.flush()
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.4
2
+ Name: cli_ih
3
+ Version: 0.7.1
4
+ Summary: A background command handler for python's command-line interface.
5
+ Author-email: Hotment <michatchuplay@gmail.com>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+
9
+ # InputHandler Library
10
+
11
+ A lightweight Python library for creating interactive command-line interfaces with custom command registration, input handling, and clean log output. It supports synchronous and asynchronous modes, threaded input processing, and enhanced logging.
12
+
13
+ ## Features
14
+
15
+ - **Command Registration**: Register commands with decorators and descriptions.
16
+ - **Threaded Input**: Non-blocking input handling by default.
17
+ - **Safe Printing**: Logs appear above the input line, preserving your typed text and cursor position.
18
+ - **Command History**: Navigate recent commands with Up/Down arrow keys.
19
+ - **Sync & Async**: Support for both synchronous and asynchronous (asyncio) applications.
20
+ - **Colored Logging**: Built-in support for colored log messages.
21
+
22
+ ## Installation
23
+
24
+ `pip install cli_ih`
25
+
26
+ ## Quick Start (Synchronous)
27
+
28
+ ```python
29
+ from cli_ih import InputHandler, safe_print
30
+
31
+ handler = InputHandler(cursor="> ")
32
+
33
+ # Use safe_print instead of print to keep the input line clean!
34
+ @handler.command(name="greet", description="Greets the user.")
35
+ def greet(name):
36
+ safe_print(f"Hello, {name}!")
37
+
38
+ @handler.command(name="add", description="Adds two numbers.")
39
+ def add(a, b):
40
+ safe_print(int(a) + int(b))
41
+
42
+ handler.start()
43
+
44
+ # Using safe_print allows you to print logs in the background
45
+ # without messing up the user's current input line.
46
+ ```
47
+
48
+ ## Async Client Example
49
+
50
+ The `AsyncInputHandler` integrates with `asyncio`. The `start()` method is non-blocking when `thread_mode=True` (default).
51
+
52
+ ```python
53
+ import asyncio
54
+ from cli_ih import AsyncInputHandler, safe_print
55
+
56
+ handler = AsyncInputHandler(cursor="Async> ")
57
+
58
+ @handler.command(name="greet", description="Greets the user asynchronously.")
59
+ async def greet(name):
60
+ await asyncio.sleep(1)
61
+ safe_print(f"Hello, {name}")
62
+
63
+ @handler.command(name="add", description="Adds two numbers.")
64
+ async def add(a, b):
65
+ safe_print(int(a) + int(b))
66
+
67
+ # Start the handler (runs in a separate thread by default)
68
+ handler.start()
69
+
70
+ # Keep the main thread alive or run your main event loop
71
+ async def main():
72
+ while handler.is_running:
73
+ await asyncio.sleep(1)
74
+
75
+ if __name__ == "__main__":
76
+ asyncio.run(main())
77
+ ```
78
+
79
+ ## Key Considerations
80
+
81
+ ### Safe Printing
82
+ Always use `from cli_ih import safe_print` for outputting text to the console. This utility automatically detects the active input handler and ensures that your log message is printed *above* the current input line, preserving the user's cursor and any text they are currently typing.
83
+
84
+ ```python
85
+ from cli_ih import safe_print
86
+
87
+ # Good
88
+ safe_print("Log message")
89
+
90
+ # Avoid (might disrupt input line)
91
+ print("Log message")
92
+ ```
93
+
94
+ ### Thread Mode
95
+ Both `InputHandler` and `AsyncInputHandler` accept a `thread_mode` parameter (default `True`).
96
+ - `thread_mode=True`: The input loop runs in a separate thread. `start()` returns immediately.
97
+ - `thread_mode=False`: The input loop runs in the current thread. `start()` blocks until exit.
98
+
99
+ ### Command History
100
+ Use the **Up** and **Down** arrow keys to cycle through your previously entered commands, just like in a standard terminal.
@@ -0,0 +1,11 @@
1
+ README.md
2
+ pyproject.toml
3
+ cli_ih/__init__.py
4
+ cli_ih/asyncClient.py
5
+ cli_ih/client.py
6
+ cli_ih/exceptions.py
7
+ cli_ih/utils.py
8
+ cli_ih.egg-info/PKG-INFO
9
+ cli_ih.egg-info/SOURCES.txt
10
+ cli_ih.egg-info/dependency_links.txt
11
+ cli_ih.egg-info/top_level.txt