snowflake-cli 2.8.2__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 (838) hide show
  1. snowflake_cli-2.8.2/.gitignore +23 -0
  2. snowflake_cli-2.8.2/.pre-commit-config.yaml +133 -0
  3. snowflake_cli-2.8.2/CONTRIBUTING.md +242 -0
  4. snowflake_cli-2.8.2/LICENSE +201 -0
  5. snowflake_cli-2.8.2/PKG-INFO +325 -0
  6. snowflake_cli-2.8.2/README.md +79 -0
  7. snowflake_cli-2.8.2/RELEASE-NOTES.md +516 -0
  8. snowflake_cli-2.8.2/SECURITY.md +22 -0
  9. snowflake_cli-2.8.2/conftest.py +38 -0
  10. snowflake_cli-2.8.2/docs/images/coverage_1.png +0 -0
  11. snowflake_cli-2.8.2/docs/images/coverage_2.png +0 -0
  12. snowflake_cli-2.8.2/docs/images/coverage_3.png +0 -0
  13. snowflake_cli-2.8.2/docs/images/coverage_4.png +0 -0
  14. snowflake_cli-2.8.2/docs/images/coverage_5.png +0 -0
  15. snowflake_cli-2.8.2/performance_history_analysis.py +118 -0
  16. snowflake_cli-2.8.2/pyproject.toml +178 -0
  17. snowflake_cli-2.8.2/scripts/LICENSE.txt +13 -0
  18. snowflake_cli-2.8.2/scripts/cleanup.py +83 -0
  19. snowflake_cli-2.8.2/scripts/main.py +66 -0
  20. snowflake_cli-2.8.2/scripts/packaging/Dockerfile +44 -0
  21. snowflake_cli-2.8.2/scripts/packaging/build_binaries.sh +27 -0
  22. snowflake_cli-2.8.2/scripts/packaging/build_darwin_package.sh +217 -0
  23. snowflake_cli-2.8.2/scripts/packaging/build_packages.sh +62 -0
  24. snowflake_cli-2.8.2/scripts/packaging/centos/after_install.sh +9 -0
  25. snowflake_cli-2.8.2/scripts/packaging/centos/after_remove.sh +11 -0
  26. snowflake_cli-2.8.2/scripts/packaging/docker-compose.yaml +33 -0
  27. snowflake_cli-2.8.2/scripts/packaging/macos/Distribution.xml +20 -0
  28. snowflake_cli-2.8.2/scripts/packaging/macos/Resources/snowflake-cli_get_started.html +28 -0
  29. snowflake_cli-2.8.2/scripts/packaging/macos/Resources/snowflake-cli_welcome.html +24 -0
  30. snowflake_cli-2.8.2/scripts/packaging/macos/Resources/snowflake_darwin.icns +0 -0
  31. snowflake_cli-2.8.2/scripts/packaging/macos/Resources/snowflake_darwin_background.png +0 -0
  32. snowflake_cli-2.8.2/scripts/packaging/macos/SnowflakeCLI.bash +11 -0
  33. snowflake_cli-2.8.2/scripts/packaging/macos/SnowflakeCLI.plist +18 -0
  34. snowflake_cli-2.8.2/scripts/packaging/macos/SnowflakeCLI_entitlements.plist +14 -0
  35. snowflake_cli-2.8.2/scripts/packaging/macos/postinstall +36 -0
  36. snowflake_cli-2.8.2/scripts/packaging/macos/snowflake_darwin.icns +0 -0
  37. snowflake_cli-2.8.2/scripts/packaging/python/test_cli_labs_whl.sh +87 -0
  38. snowflake_cli-2.8.2/scripts/packaging/python/test_cli_whl.sh +87 -0
  39. snowflake_cli-2.8.2/scripts/packaging/ubuntu/after_install.sh +9 -0
  40. snowflake_cli-2.8.2/scripts/packaging/ubuntu/after_remove.sh +11 -0
  41. snowflake_cli-2.8.2/scripts/packaging/win/build_installer.bat +37 -0
  42. snowflake_cli-2.8.2/scripts/packaging/win/build_snowflake_cli.bat +31 -0
  43. snowflake_cli-2.8.2/scripts/packaging/win/build_version.py +39 -0
  44. snowflake_cli-2.8.2/scripts/packaging/win/snowflake_cli.wxs +118 -0
  45. snowflake_cli-2.8.2/scripts/packaging/win/snowflake_cli_en-us.wxl +12 -0
  46. snowflake_cli-2.8.2/scripts/packaging/win/snowflake_cli_exitdlg.wxs +33 -0
  47. snowflake_cli-2.8.2/scripts/packaging/win/snowflake_msi.ico +0 -0
  48. snowflake_cli-2.8.2/scripts/packaging/win/snowflake_msi_background.png +0 -0
  49. snowflake_cli-2.8.2/scripts/packaging/win/snowflake_msi_banner.png +0 -0
  50. snowflake_cli-2.8.2/scripts/run_tests_with_retry.py +38 -0
  51. snowflake_cli-2.8.2/snyk/dependency-sync.py +32 -0
  52. snowflake_cli-2.8.2/snyk/requirements.txt +22 -0
  53. snowflake_cli-2.8.2/src/__init__.py +13 -0
  54. snowflake_cli-2.8.2/src/snowflake/cli/__about__.py +17 -0
  55. snowflake_cli-2.8.2/src/snowflake/cli/__init__.py +13 -0
  56. snowflake_cli-2.8.2/src/snowflake/cli/api/__init__.py +48 -0
  57. snowflake_cli-2.8.2/src/snowflake/cli/api/cli_global_context.py +390 -0
  58. snowflake_cli-2.8.2/src/snowflake/cli/api/commands/__init__.py +13 -0
  59. snowflake_cli-2.8.2/src/snowflake/cli/api/commands/alias.py +23 -0
  60. snowflake_cli-2.8.2/src/snowflake/cli/api/commands/decorators.py +354 -0
  61. snowflake_cli-2.8.2/src/snowflake/cli/api/commands/execution_metadata.py +40 -0
  62. snowflake_cli-2.8.2/src/snowflake/cli/api/commands/experimental_behaviour.py +19 -0
  63. snowflake_cli-2.8.2/src/snowflake/cli/api/commands/flags.py +662 -0
  64. snowflake_cli-2.8.2/src/snowflake/cli/api/commands/project_initialisation.py +65 -0
  65. snowflake_cli-2.8.2/src/snowflake/cli/api/commands/snow_typer.py +237 -0
  66. snowflake_cli-2.8.2/src/snowflake/cli/api/commands/typer_pre_execute.py +26 -0
  67. snowflake_cli-2.8.2/src/snowflake/cli/api/config.py +348 -0
  68. snowflake_cli-2.8.2/src/snowflake/cli/api/console/__init__.py +17 -0
  69. snowflake_cli-2.8.2/src/snowflake/cli/api/console/abc.py +89 -0
  70. snowflake_cli-2.8.2/src/snowflake/cli/api/console/console.py +134 -0
  71. snowflake_cli-2.8.2/src/snowflake/cli/api/console/enum.py +17 -0
  72. snowflake_cli-2.8.2/src/snowflake/cli/api/constants.py +79 -0
  73. snowflake_cli-2.8.2/src/snowflake/cli/api/errno.py +27 -0
  74. snowflake_cli-2.8.2/src/snowflake/cli/api/exceptions.py +164 -0
  75. snowflake_cli-2.8.2/src/snowflake/cli/api/feature_flags.py +55 -0
  76. snowflake_cli-2.8.2/src/snowflake/cli/api/identifiers.py +167 -0
  77. snowflake_cli-2.8.2/src/snowflake/cli/api/output/__init__.py +13 -0
  78. snowflake_cli-2.8.2/src/snowflake/cli/api/output/formats.py +20 -0
  79. snowflake_cli-2.8.2/src/snowflake/cli/api/output/types.py +118 -0
  80. snowflake_cli-2.8.2/src/snowflake/cli/api/plugins/__init__.py +13 -0
  81. snowflake_cli-2.8.2/src/snowflake/cli/api/plugins/command/__init__.py +72 -0
  82. snowflake_cli-2.8.2/src/snowflake/cli/api/plugins/command/plugin_hook_specs.py +21 -0
  83. snowflake_cli-2.8.2/src/snowflake/cli/api/plugins/plugin_config.py +32 -0
  84. snowflake_cli-2.8.2/src/snowflake/cli/api/project/__init__.py +13 -0
  85. snowflake_cli-2.8.2/src/snowflake/cli/api/project/definition.py +84 -0
  86. snowflake_cli-2.8.2/src/snowflake/cli/api/project/definition_manager.py +134 -0
  87. snowflake_cli-2.8.2/src/snowflake/cli/api/project/errors.py +56 -0
  88. snowflake_cli-2.8.2/src/snowflake/cli/api/project/project_verification.py +23 -0
  89. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/__init__.py +13 -0
  90. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/entities/application_entity.py +44 -0
  91. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/entities/application_package_entity.py +66 -0
  92. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/entities/common.py +78 -0
  93. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/entities/entities.py +30 -0
  94. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/identifier_model.py +49 -0
  95. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/native_app/__init__.py +13 -0
  96. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/native_app/application.py +62 -0
  97. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/native_app/native_app.py +93 -0
  98. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/native_app/package.py +78 -0
  99. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/native_app/path_mapping.py +65 -0
  100. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/project_definition.py +199 -0
  101. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/snowpark/__init__.py +13 -0
  102. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/snowpark/argument.py +28 -0
  103. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/snowpark/callable.py +69 -0
  104. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/snowpark/snowpark.py +36 -0
  105. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/streamlit/__init__.py +13 -0
  106. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/streamlit/streamlit.py +46 -0
  107. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/template.py +77 -0
  108. snowflake_cli-2.8.2/src/snowflake/cli/api/project/schemas/updatable_model.py +194 -0
  109. snowflake_cli-2.8.2/src/snowflake/cli/api/project/util.py +261 -0
  110. snowflake_cli-2.8.2/src/snowflake/cli/api/rendering/__init__.py +13 -0
  111. snowflake_cli-2.8.2/src/snowflake/cli/api/rendering/jinja.py +112 -0
  112. snowflake_cli-2.8.2/src/snowflake/cli/api/rendering/project_definition_templates.py +39 -0
  113. snowflake_cli-2.8.2/src/snowflake/cli/api/rendering/project_templates.py +98 -0
  114. snowflake_cli-2.8.2/src/snowflake/cli/api/rendering/sql_templates.py +60 -0
  115. snowflake_cli-2.8.2/src/snowflake/cli/api/rest_api.py +172 -0
  116. snowflake_cli-2.8.2/src/snowflake/cli/api/sanitizers.py +43 -0
  117. snowflake_cli-2.8.2/src/snowflake/cli/api/secure_path.py +362 -0
  118. snowflake_cli-2.8.2/src/snowflake/cli/api/secure_utils.py +29 -0
  119. snowflake_cli-2.8.2/src/snowflake/cli/api/sql_execution.py +260 -0
  120. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/__init__.py +13 -0
  121. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/cursor.py +34 -0
  122. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/definition_rendering.py +383 -0
  123. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/dict_utils.py +73 -0
  124. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/error_handling.py +23 -0
  125. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/graph.py +97 -0
  126. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/models.py +63 -0
  127. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/naming_utils.py +13 -0
  128. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/path_utils.py +36 -0
  129. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/templating_functions.py +144 -0
  130. snowflake_cli-2.8.2/src/snowflake/cli/api/utils/types.py +35 -0
  131. snowflake_cli-2.8.2/src/snowflake/cli/app/__init__.py +22 -0
  132. snowflake_cli-2.8.2/src/snowflake/cli/app/__main__.py +31 -0
  133. snowflake_cli-2.8.2/src/snowflake/cli/app/api_impl/__init__.py +13 -0
  134. snowflake_cli-2.8.2/src/snowflake/cli/app/api_impl/plugin/__init__.py +13 -0
  135. snowflake_cli-2.8.2/src/snowflake/cli/app/api_impl/plugin/plugin_config_provider_impl.py +66 -0
  136. snowflake_cli-2.8.2/src/snowflake/cli/app/build_and_push.sh +8 -0
  137. snowflake_cli-2.8.2/src/snowflake/cli/app/cli_app.py +243 -0
  138. snowflake_cli-2.8.2/src/snowflake/cli/app/commands_registration/__init__.py +33 -0
  139. snowflake_cli-2.8.2/src/snowflake/cli/app/commands_registration/builtin_plugins.py +54 -0
  140. snowflake_cli-2.8.2/src/snowflake/cli/app/commands_registration/command_plugins_loader.py +169 -0
  141. snowflake_cli-2.8.2/src/snowflake/cli/app/commands_registration/commands_registration_with_callbacks.py +105 -0
  142. snowflake_cli-2.8.2/src/snowflake/cli/app/commands_registration/exception_logging.py +26 -0
  143. snowflake_cli-2.8.2/src/snowflake/cli/app/commands_registration/threadsafe.py +48 -0
  144. snowflake_cli-2.8.2/src/snowflake/cli/app/commands_registration/typer_registration.py +153 -0
  145. snowflake_cli-2.8.2/src/snowflake/cli/app/constants.py +19 -0
  146. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/__init__.py +13 -0
  147. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/commands_structure.py +48 -0
  148. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/docs/__init__.py +13 -0
  149. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/docs/commands_docs_generator.py +100 -0
  150. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/docs/generator.py +35 -0
  151. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/docs/project_definition_docs_generator.py +58 -0
  152. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/docs/project_definition_generate_json_schema.py +227 -0
  153. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/docs/template_utils.py +23 -0
  154. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/docs/templates/definition_description.rst.jinja2 +38 -0
  155. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/docs/templates/overview.rst.jinja2 +9 -0
  156. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/docs/templates/usage.rst.jinja2 +57 -0
  157. snowflake_cli-2.8.2/src/snowflake/cli/app/dev/pycharm_remote_debug.py +46 -0
  158. snowflake_cli-2.8.2/src/snowflake/cli/app/loggers.py +199 -0
  159. snowflake_cli-2.8.2/src/snowflake/cli/app/main_typer.py +62 -0
  160. snowflake_cli-2.8.2/src/snowflake/cli/app/printing.py +181 -0
  161. snowflake_cli-2.8.2/src/snowflake/cli/app/snow_connector.py +243 -0
  162. snowflake_cli-2.8.2/src/snowflake/cli/app/telemetry.py +189 -0
  163. snowflake_cli-2.8.2/src/snowflake/cli/plugins/__init__.py +13 -0
  164. snowflake_cli-2.8.2/src/snowflake/cli/plugins/connection/__init__.py +13 -0
  165. snowflake_cli-2.8.2/src/snowflake/cli/plugins/connection/commands.py +330 -0
  166. snowflake_cli-2.8.2/src/snowflake/cli/plugins/connection/plugin_spec.py +30 -0
  167. snowflake_cli-2.8.2/src/snowflake/cli/plugins/connection/util.py +179 -0
  168. snowflake_cli-2.8.2/src/snowflake/cli/plugins/cortex/__init__.py +13 -0
  169. snowflake_cli-2.8.2/src/snowflake/cli/plugins/cortex/commands.py +327 -0
  170. snowflake_cli-2.8.2/src/snowflake/cli/plugins/cortex/constants.py +17 -0
  171. snowflake_cli-2.8.2/src/snowflake/cli/plugins/cortex/manager.py +189 -0
  172. snowflake_cli-2.8.2/src/snowflake/cli/plugins/cortex/plugin_spec.py +30 -0
  173. snowflake_cli-2.8.2/src/snowflake/cli/plugins/cortex/types.py +22 -0
  174. snowflake_cli-2.8.2/src/snowflake/cli/plugins/git/__init__.py +13 -0
  175. snowflake_cli-2.8.2/src/snowflake/cli/plugins/git/commands.py +354 -0
  176. snowflake_cli-2.8.2/src/snowflake/cli/plugins/git/manager.py +105 -0
  177. snowflake_cli-2.8.2/src/snowflake/cli/plugins/git/plugin_spec.py +30 -0
  178. snowflake_cli-2.8.2/src/snowflake/cli/plugins/init/__init__.py +13 -0
  179. snowflake_cli-2.8.2/src/snowflake/cli/plugins/init/commands.py +248 -0
  180. snowflake_cli-2.8.2/src/snowflake/cli/plugins/init/plugin_spec.py +30 -0
  181. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/__init__.py +13 -0
  182. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/artifacts.py +742 -0
  183. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/__init__.py +13 -0
  184. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/artifact_processor.py +91 -0
  185. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/compiler.py +130 -0
  186. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/sandbox.py +306 -0
  187. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/setup/native_app_setup_processor.py +172 -0
  188. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/setup/setup_driver.py.source +56 -0
  189. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/callback_source.py.jinja +181 -0
  190. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/extension_function_utils.py +217 -0
  191. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/models.py +61 -0
  192. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/python_processor.py +528 -0
  193. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/commands.py +439 -0
  194. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/common_flags.py +44 -0
  195. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/constants.py +27 -0
  196. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/exceptions.py +122 -0
  197. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/feature_flags.py +24 -0
  198. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/init.py +345 -0
  199. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/manager.py +823 -0
  200. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/plugin_spec.py +30 -0
  201. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/policy.py +50 -0
  202. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/project_model.py +195 -0
  203. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/run_processor.py +389 -0
  204. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/teardown_processor.py +301 -0
  205. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/utils.py +98 -0
  206. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/v2_conversions/v2_to_v1_decorator.py +135 -0
  207. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/version/__init__.py +13 -0
  208. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/version/commands.py +170 -0
  209. snowflake_cli-2.8.2/src/snowflake/cli/plugins/nativeapp/version/version_processor.py +362 -0
  210. snowflake_cli-2.8.2/src/snowflake/cli/plugins/notebook/__init__.py +13 -0
  211. snowflake_cli-2.8.2/src/snowflake/cli/plugins/notebook/commands.py +85 -0
  212. snowflake_cli-2.8.2/src/snowflake/cli/plugins/notebook/exceptions.py +20 -0
  213. snowflake_cli-2.8.2/src/snowflake/cli/plugins/notebook/manager.py +71 -0
  214. snowflake_cli-2.8.2/src/snowflake/cli/plugins/notebook/plugin_spec.py +30 -0
  215. snowflake_cli-2.8.2/src/snowflake/cli/plugins/notebook/types.py +15 -0
  216. snowflake_cli-2.8.2/src/snowflake/cli/plugins/object/__init__.py +13 -0
  217. snowflake_cli-2.8.2/src/snowflake/cli/plugins/object/command_aliases.py +95 -0
  218. snowflake_cli-2.8.2/src/snowflake/cli/plugins/object/commands.py +181 -0
  219. snowflake_cli-2.8.2/src/snowflake/cli/plugins/object/common.py +85 -0
  220. snowflake_cli-2.8.2/src/snowflake/cli/plugins/object/manager.py +97 -0
  221. snowflake_cli-2.8.2/src/snowflake/cli/plugins/object/plugin_spec.py +30 -0
  222. snowflake_cli-2.8.2/src/snowflake/cli/plugins/object_stage_deprecated/__init__.py +15 -0
  223. snowflake_cli-2.8.2/src/snowflake/cli/plugins/object_stage_deprecated/commands.py +122 -0
  224. snowflake_cli-2.8.2/src/snowflake/cli/plugins/object_stage_deprecated/plugin_spec.py +32 -0
  225. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/__init__.py +13 -0
  226. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/commands.py +546 -0
  227. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/common.py +307 -0
  228. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/manager.py +109 -0
  229. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/models.py +157 -0
  230. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/package/__init__.py +13 -0
  231. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/package/anaconda_packages.py +233 -0
  232. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/package/commands.py +256 -0
  233. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/package/manager.py +44 -0
  234. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/package/utils.py +26 -0
  235. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/package_utils.py +354 -0
  236. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/plugin_spec.py +30 -0
  237. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/snowpark_package_paths.py +65 -0
  238. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/snowpark_shared.py +95 -0
  239. snowflake_cli-2.8.2/src/snowflake/cli/plugins/snowpark/zipper.py +81 -0
  240. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/__init__.py +35 -0
  241. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/common.py +99 -0
  242. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/compute_pool/__init__.py +13 -0
  243. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/compute_pool/commands.py +241 -0
  244. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/compute_pool/manager.py +121 -0
  245. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/image_registry/__init__.py +13 -0
  246. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/image_registry/commands.py +65 -0
  247. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/image_registry/manager.py +105 -0
  248. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/image_repository/__init__.py +13 -0
  249. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/image_repository/commands.py +202 -0
  250. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/image_repository/manager.py +84 -0
  251. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/jobs/__init__.py +13 -0
  252. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/jobs/commands.py +78 -0
  253. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/jobs/manager.py +53 -0
  254. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/plugin_spec.py +30 -0
  255. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/services/__init__.py +13 -0
  256. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/services/commands.py +312 -0
  257. snowflake_cli-2.8.2/src/snowflake/cli/plugins/spcs/services/manager.py +170 -0
  258. snowflake_cli-2.8.2/src/snowflake/cli/plugins/sql/__init__.py +13 -0
  259. snowflake_cli-2.8.2/src/snowflake/cli/plugins/sql/commands.py +83 -0
  260. snowflake_cli-2.8.2/src/snowflake/cli/plugins/sql/manager.py +92 -0
  261. snowflake_cli-2.8.2/src/snowflake/cli/plugins/sql/plugin_spec.py +30 -0
  262. snowflake_cli-2.8.2/src/snowflake/cli/plugins/sql/snowsql_templating.py +28 -0
  263. snowflake_cli-2.8.2/src/snowflake/cli/plugins/stage/__init__.py +13 -0
  264. snowflake_cli-2.8.2/src/snowflake/cli/plugins/stage/commands.py +263 -0
  265. snowflake_cli-2.8.2/src/snowflake/cli/plugins/stage/diff.py +326 -0
  266. snowflake_cli-2.8.2/src/snowflake/cli/plugins/stage/manager.py +577 -0
  267. snowflake_cli-2.8.2/src/snowflake/cli/plugins/stage/md5.py +160 -0
  268. snowflake_cli-2.8.2/src/snowflake/cli/plugins/stage/plugin_spec.py +30 -0
  269. snowflake_cli-2.8.2/src/snowflake/cli/plugins/streamlit/__init__.py +13 -0
  270. snowflake_cli-2.8.2/src/snowflake/cli/plugins/streamlit/commands.py +179 -0
  271. snowflake_cli-2.8.2/src/snowflake/cli/plugins/streamlit/manager.py +222 -0
  272. snowflake_cli-2.8.2/src/snowflake/cli/plugins/streamlit/plugin_spec.py +30 -0
  273. snowflake_cli-2.8.2/src/snowflake/cli/plugins/workspace/__init__.py +13 -0
  274. snowflake_cli-2.8.2/src/snowflake/cli/plugins/workspace/commands.py +35 -0
  275. snowflake_cli-2.8.2/src/snowflake/cli/plugins/workspace/plugin_spec.py +30 -0
  276. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_snowpark/.gitignore +4 -0
  277. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_snowpark/app/__init__.py +0 -0
  278. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_snowpark/app/common.py +2 -0
  279. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_snowpark/app/functions.py +15 -0
  280. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_snowpark/app/procedures.py +22 -0
  281. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_snowpark/requirements.txt +1 -0
  282. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_snowpark/snowflake.yml +23 -0
  283. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_streamlit/.gitignore +4 -0
  284. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_streamlit/common/hello.py +2 -0
  285. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_streamlit/environment.yml +6 -0
  286. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_streamlit/pages/my_page.py +3 -0
  287. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_streamlit/snowflake.yml +10 -0
  288. snowflake_cli-2.8.2/src/snowflake/cli/templates/default_streamlit/streamlit_app.py +4 -0
  289. snowflake_cli-2.8.2/test_external_plugins/broken_plugin/pyproject.toml +28 -0
  290. snowflake_cli-2.8.2/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/__init__.py +13 -0
  291. snowflake_cli-2.8.2/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/commands.py +27 -0
  292. snowflake_cli-2.8.2/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/plugin_spec.py +30 -0
  293. snowflake_cli-2.8.2/test_external_plugins/failing_plugin/pyproject.toml +28 -0
  294. snowflake_cli-2.8.2/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/__init__.py +13 -0
  295. snowflake_cli-2.8.2/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/commands.py +19 -0
  296. snowflake_cli-2.8.2/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/plugin_spec.py +30 -0
  297. snowflake_cli-2.8.2/test_external_plugins/multilingual_hello_command_group/pyproject.toml +28 -0
  298. snowflake_cli-2.8.2/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/__init__.py +13 -0
  299. snowflake_cli-2.8.2/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/commands.py +69 -0
  300. snowflake_cli-2.8.2/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/hello_language.py +22 -0
  301. snowflake_cli-2.8.2/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/manager.py +31 -0
  302. snowflake_cli-2.8.2/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/plugin_spec.py +30 -0
  303. snowflake_cli-2.8.2/test_external_plugins/override_build_in_command/pyproject.toml +28 -0
  304. snowflake_cli-2.8.2/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/__init__.py +13 -0
  305. snowflake_cli-2.8.2/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/commands.py +29 -0
  306. snowflake_cli-2.8.2/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/plugin_spec.py +30 -0
  307. snowflake_cli-2.8.2/test_external_plugins/snowpark_hello_single_command/pyproject.toml +28 -0
  308. snowflake_cli-2.8.2/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/__init__.py +13 -0
  309. snowflake_cli-2.8.2/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/commands.py +37 -0
  310. snowflake_cli-2.8.2/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/manager.py +30 -0
  311. snowflake_cli-2.8.2/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/plugin_spec.py +30 -0
  312. snowflake_cli-2.8.2/tests/__init__.py +13 -0
  313. snowflake_cli-2.8.2/tests/__snapshots__/test_config.ambr +19 -0
  314. snowflake_cli-2.8.2/tests/__snapshots__/test_connection.ambr +63 -0
  315. snowflake_cli-2.8.2/tests/__snapshots__/test_help_messages.ambr +8731 -0
  316. snowflake_cli-2.8.2/tests/__snapshots__/test_init.ambr +32 -0
  317. snowflake_cli-2.8.2/tests/__snapshots__/test_sql.ambr +86 -0
  318. snowflake_cli-2.8.2/tests/api/__init__.py +13 -0
  319. snowflake_cli-2.8.2/tests/api/__snapshots__/test_sanitizers.ambr +24 -0
  320. snowflake_cli-2.8.2/tests/api/commands/__init__.py +13 -0
  321. snowflake_cli-2.8.2/tests/api/commands/__snapshots__/test_flags.ambr +28 -0
  322. snowflake_cli-2.8.2/tests/api/commands/__snapshots__/test_snow_typer.ambr +142 -0
  323. snowflake_cli-2.8.2/tests/api/commands/test_flags.py +216 -0
  324. snowflake_cli-2.8.2/tests/api/commands/test_snow_typer.py +211 -0
  325. snowflake_cli-2.8.2/tests/api/console/__init__.py +13 -0
  326. snowflake_cli-2.8.2/tests/api/console/test_cli_console_output.py +154 -0
  327. snowflake_cli-2.8.2/tests/api/console/test_console_abc.py +53 -0
  328. snowflake_cli-2.8.2/tests/api/console/test_intermediate_output.py +45 -0
  329. snowflake_cli-2.8.2/tests/api/project/schemas/test_updatable_model.py +251 -0
  330. snowflake_cli-2.8.2/tests/api/test_feature_flags.py +79 -0
  331. snowflake_cli-2.8.2/tests/api/test_fqn.py +159 -0
  332. snowflake_cli-2.8.2/tests/api/test_rendering.py +120 -0
  333. snowflake_cli-2.8.2/tests/api/test_rest_api.py +130 -0
  334. snowflake_cli-2.8.2/tests/api/test_sanitizers.py +68 -0
  335. snowflake_cli-2.8.2/tests/api/test_secure_path.py +560 -0
  336. snowflake_cli-2.8.2/tests/api/utils/test_definition_rendering.py +879 -0
  337. snowflake_cli-2.8.2/tests/api/utils/test_dict_utils.py +172 -0
  338. snowflake_cli-2.8.2/tests/api/utils/test_graph.py +124 -0
  339. snowflake_cli-2.8.2/tests/api/utils/test_naming_utils.py +35 -0
  340. snowflake_cli-2.8.2/tests/api/utils/test_templating_functions.py +363 -0
  341. snowflake_cli-2.8.2/tests/app/test_telemetry.py +148 -0
  342. snowflake_cli-2.8.2/tests/conftest.py +149 -0
  343. snowflake_cli-2.8.2/tests/cortex/__snapshots__/test_cortex_commands.ambr +10 -0
  344. snowflake_cli-2.8.2/tests/cortex/test_cortex_commands.py +261 -0
  345. snowflake_cli-2.8.2/tests/empty_config.toml +13 -0
  346. snowflake_cli-2.8.2/tests/git/__snapshots__/test_git_commands.ambr +119 -0
  347. snowflake_cli-2.8.2/tests/git/test_git_commands.py +730 -0
  348. snowflake_cli-2.8.2/tests/nativeapp/__init__.py +13 -0
  349. snowflake_cli-2.8.2/tests/nativeapp/__snapshots__/test_artifacts.ambr +450 -0
  350. snowflake_cli-2.8.2/tests/nativeapp/__snapshots__/test_commands.ambr +360 -0
  351. snowflake_cli-2.8.2/tests/nativeapp/__snapshots__/test_init.ambr +86 -0
  352. snowflake_cli-2.8.2/tests/nativeapp/__snapshots__/test_teardown_processor.ambr +62 -0
  353. snowflake_cli-2.8.2/tests/nativeapp/codegen/snowpark/__snapshots__/test_extension_function_utils.ambr +145 -0
  354. snowflake_cli-2.8.2/tests/nativeapp/codegen/snowpark/__snapshots__/test_python_processor.ambr +634 -0
  355. snowflake_cli-2.8.2/tests/nativeapp/codegen/snowpark/test_extension_function_utils.py +381 -0
  356. snowflake_cli-2.8.2/tests/nativeapp/codegen/snowpark/test_python_processor.py +473 -0
  357. snowflake_cli-2.8.2/tests/nativeapp/codegen/test_artifact_processor.py +58 -0
  358. snowflake_cli-2.8.2/tests/nativeapp/codegen/test_compiler.py +98 -0
  359. snowflake_cli-2.8.2/tests/nativeapp/codegen/test_sandbox.py +838 -0
  360. snowflake_cli-2.8.2/tests/nativeapp/fixtures.py +23 -0
  361. snowflake_cli-2.8.2/tests/nativeapp/patch_utils.py +38 -0
  362. snowflake_cli-2.8.2/tests/nativeapp/test_annotation_processor_config.py +46 -0
  363. snowflake_cli-2.8.2/tests/nativeapp/test_artifacts.py +1348 -0
  364. snowflake_cli-2.8.2/tests/nativeapp/test_commands.py +127 -0
  365. snowflake_cli-2.8.2/tests/nativeapp/test_feature_flags.py +31 -0
  366. snowflake_cli-2.8.2/tests/nativeapp/test_init.py +487 -0
  367. snowflake_cli-2.8.2/tests/nativeapp/test_manager.py +1513 -0
  368. snowflake_cli-2.8.2/tests/nativeapp/test_package_scripts.py +300 -0
  369. snowflake_cli-2.8.2/tests/nativeapp/test_post_deploy_for_app.py +188 -0
  370. snowflake_cli-2.8.2/tests/nativeapp/test_post_deploy_for_package.py +175 -0
  371. snowflake_cli-2.8.2/tests/nativeapp/test_project_model.py +175 -0
  372. snowflake_cli-2.8.2/tests/nativeapp/test_run_processor.py +1962 -0
  373. snowflake_cli-2.8.2/tests/nativeapp/test_teardown_processor.py +1109 -0
  374. snowflake_cli-2.8.2/tests/nativeapp/test_utils.py +91 -0
  375. snowflake_cli-2.8.2/tests/nativeapp/test_v2_to_v1.py +258 -0
  376. snowflake_cli-2.8.2/tests/nativeapp/test_version_create_processor.py +826 -0
  377. snowflake_cli-2.8.2/tests/nativeapp/test_version_drop_processor.py +236 -0
  378. snowflake_cli-2.8.2/tests/nativeapp/utils.py +178 -0
  379. snowflake_cli-2.8.2/tests/notebook/__init__.py +13 -0
  380. snowflake_cli-2.8.2/tests/notebook/test_notebook_commands.py +67 -0
  381. snowflake_cli-2.8.2/tests/notebook/test_notebook_manager.py +81 -0
  382. snowflake_cli-2.8.2/tests/object/__init__.py +13 -0
  383. snowflake_cli-2.8.2/tests/object/__snapshots__/test_object.ambr +418 -0
  384. snowflake_cli-2.8.2/tests/object/test_common.py +65 -0
  385. snowflake_cli-2.8.2/tests/object/test_object.py +255 -0
  386. snowflake_cli-2.8.2/tests/object/test_stage.py +28 -0
  387. snowflake_cli-2.8.2/tests/output/__init__.py +13 -0
  388. snowflake_cli-2.8.2/tests/output/test_format_silent_enforcement.py +79 -0
  389. snowflake_cli-2.8.2/tests/output/test_printing.py +381 -0
  390. snowflake_cli-2.8.2/tests/output/test_silent_output.py +51 -0
  391. snowflake_cli-2.8.2/tests/project/__init__.py +13 -0
  392. snowflake_cli-2.8.2/tests/project/__snapshots__/test_config.ambr +826 -0
  393. snowflake_cli-2.8.2/tests/project/fixtures.py +70 -0
  394. snowflake_cli-2.8.2/tests/project/test_config.py +146 -0
  395. snowflake_cli-2.8.2/tests/project/test_definition_manager.py +143 -0
  396. snowflake_cli-2.8.2/tests/project/test_project_definition_v2.py +224 -0
  397. snowflake_cli-2.8.2/tests/project/test_project_schemas.py +97 -0
  398. snowflake_cli-2.8.2/tests/project/test_util.py +337 -0
  399. snowflake_cli-2.8.2/tests/snowpark/__init__.py +13 -0
  400. snowflake_cli-2.8.2/tests/snowpark/__snapshots__/test_function.ambr +43 -0
  401. snowflake_cli-2.8.2/tests/snowpark/__snapshots__/test_package.ambr +22 -0
  402. snowflake_cli-2.8.2/tests/snowpark/__snapshots__/test_procedure.ambr +65 -0
  403. snowflake_cli-2.8.2/tests/snowpark/__snapshots__/test_procedure_coverage.ambr +10 -0
  404. snowflake_cli-2.8.2/tests/snowpark/mocks.py +38 -0
  405. snowflake_cli-2.8.2/tests/snowpark/test_anaconda.py +212 -0
  406. snowflake_cli-2.8.2/tests/snowpark/test_build.py +56 -0
  407. snowflake_cli-2.8.2/tests/snowpark/test_common.py +114 -0
  408. snowflake_cli-2.8.2/tests/snowpark/test_function.py +409 -0
  409. snowflake_cli-2.8.2/tests/snowpark/test_models.py +88 -0
  410. snowflake_cli-2.8.2/tests/snowpark/test_package.py +265 -0
  411. snowflake_cli-2.8.2/tests/snowpark/test_procedure.py +512 -0
  412. snowflake_cli-2.8.2/tests/spcs/__init__.py +13 -0
  413. snowflake_cli-2.8.2/tests/spcs/__snapshots__/test_image_repository.ambr +19 -0
  414. snowflake_cli-2.8.2/tests/spcs/__snapshots__/test_registry.ambr +30 -0
  415. snowflake_cli-2.8.2/tests/spcs/test_common.py +79 -0
  416. snowflake_cli-2.8.2/tests/spcs/test_compute_pool.py +521 -0
  417. snowflake_cli-2.8.2/tests/spcs/test_image_repository.py +335 -0
  418. snowflake_cli-2.8.2/tests/spcs/test_jobs.py +83 -0
  419. snowflake_cli-2.8.2/tests/spcs/test_registry.py +242 -0
  420. snowflake_cli-2.8.2/tests/spcs/test_services.py +666 -0
  421. snowflake_cli-2.8.2/tests/stage/__init__.py +13 -0
  422. snowflake_cli-2.8.2/tests/stage/__snapshots__/test_diff.ambr +205 -0
  423. snowflake_cli-2.8.2/tests/stage/__snapshots__/test_stage.ambr +452 -0
  424. snowflake_cli-2.8.2/tests/stage/test_diff.py +522 -0
  425. snowflake_cli-2.8.2/tests/stage/test_md5.py +184 -0
  426. snowflake_cli-2.8.2/tests/stage/test_stage.py +1146 -0
  427. snowflake_cli-2.8.2/tests/streamlit/test_commands.py +786 -0
  428. snowflake_cli-2.8.2/tests/streamlit/test_config.py +47 -0
  429. snowflake_cli-2.8.2/tests/test.toml +42 -0
  430. snowflake_cli-2.8.2/tests/test_cli.py +39 -0
  431. snowflake_cli-2.8.2/tests/test_command_registration.py +215 -0
  432. snowflake_cli-2.8.2/tests/test_common_decorators.py +247 -0
  433. snowflake_cli-2.8.2/tests/test_common_global_context.py +126 -0
  434. snowflake_cli-2.8.2/tests/test_config.py +341 -0
  435. snowflake_cli-2.8.2/tests/test_connection.py +927 -0
  436. snowflake_cli-2.8.2/tests/test_data/__init__.py +13 -0
  437. snowflake_cli-2.8.2/tests/test_data/anaconda_channel_data.json +50 -0
  438. snowflake_cli-2.8.2/tests/test_data/cortex/conversation.json +14 -0
  439. snowflake_cli-2.8.2/tests/test_data/cortex/short_english_text.txt +1 -0
  440. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/Zendesk-1.1.1.dist-info/INSTALLER +1 -0
  441. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/Zendesk-1.1.1.dist-info/LICENSE.txt +21 -0
  442. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/Zendesk-1.1.1.dist-info/METADATA +17 -0
  443. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/Zendesk-1.1.1.dist-info/RECORD +15 -0
  444. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/Zendesk-1.1.1.dist-info/REQUESTED +0 -0
  445. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/Zendesk-1.1.1.dist-info/WHEEL +4 -0
  446. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/Zendesk-1.1.1.dist-info/top_level.txt +1 -0
  447. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure/core/file.txt +0 -0
  448. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure/eventhub/file.txt +0 -0
  449. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_core-1.29.5.dist-info/INSTALLER +1 -0
  450. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_core-1.29.5.dist-info/LICENSE +21 -0
  451. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_core-1.29.5.dist-info/METADATA +929 -0
  452. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_core-1.29.5.dist-info/RECORD +145 -0
  453. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_core-1.29.5.dist-info/WHEEL +4 -0
  454. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_core-1.29.5.dist-info/top_level.txt +1 -0
  455. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_eventhub-5.11.5.dist-info/INSTALLER +1 -0
  456. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_eventhub-5.11.5.dist-info/LICENSE +21 -0
  457. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_eventhub-5.11.5.dist-info/METADATA +1235 -0
  458. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_eventhub-5.11.5.dist-info/RECORD +204 -0
  459. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_eventhub-5.11.5.dist-info/REQUESTED +0 -0
  460. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_eventhub-5.11.5.dist-info/WHEEL +4 -0
  461. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/azure_eventhub-5.11.5.dist-info/top_level.txt +1 -0
  462. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/httplib2/file.txt +0 -0
  463. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/httplib2-0.22.0.dist-info/INSTALLER +1 -0
  464. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/httplib2-0.22.0.dist-info/LICENSE +23 -0
  465. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/httplib2-0.22.0.dist-info/METADATA +75 -0
  466. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/httplib2-0.22.0.dist-info/RECORD +19 -0
  467. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/httplib2-0.22.0.dist-info/WHEEL +4 -0
  468. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/httplib2-0.22.0.dist-info/top_level.txt +1 -0
  469. snowflake_cli-2.8.2/tests/test_data/local_packages/.packages/zendesk/file.txt +0 -0
  470. snowflake_cli-2.8.2/tests/test_data/packages_available_in_snowflake_sql_result_rows.json +418 -0
  471. snowflake_cli-2.8.2/tests/test_data/projects/deploy_root_with_incorrect_setup_script/manifest.yml +3 -0
  472. snowflake_cli-2.8.2/tests/test_data/projects/deploy_root_with_incorrect_setup_script/setup_script.sql +1 -0
  473. snowflake_cli-2.8.2/tests/test_data/projects/deploy_root_with_manifest_artifacts/manifest.yml +3 -0
  474. snowflake_cli-2.8.2/tests/test_data/projects/deploy_root_without_manifest_artifacts/manifest.yml +1 -0
  475. snowflake_cli-2.8.2/tests/test_data/projects/empty_project/snowflake.yml +1 -0
  476. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit/environment.yml +5 -0
  477. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit/pages/my_page.py +3 -0
  478. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit/snowflake.yml +7 -0
  479. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit/streamlit_app.py +3 -0
  480. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit_no_defaults/main.py +3 -0
  481. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit_no_defaults/snowflake.yml +8 -0
  482. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit_no_defaults/streamlit_environment.yml +5 -0
  483. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit_no_defaults/streamlit_pages/first_page.py +3 -0
  484. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit_no_stage/environment.yml +5 -0
  485. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit_no_stage/pages/my_page.py +3 -0
  486. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit_no_stage/snowflake.yml +5 -0
  487. snowflake_cli-2.8.2/tests/test_data/projects/example_streamlit_no_stage/streamlit_app.py +3 -0
  488. snowflake_cli-2.8.2/tests/test_data/projects/integration/app/README.md +4 -0
  489. snowflake_cli-2.8.2/tests/test_data/projects/integration/app/manifest.yml +18 -0
  490. snowflake_cli-2.8.2/tests/test_data/projects/integration/app/setup.sql +19 -0
  491. snowflake_cli-2.8.2/tests/test_data/projects/integration/package/001-shared.sql +5 -0
  492. snowflake_cli-2.8.2/tests/test_data/projects/integration/package/002-shared.sql +12 -0
  493. snowflake_cli-2.8.2/tests/test_data/projects/integration/snowflake.yml +12 -0
  494. snowflake_cli-2.8.2/tests/test_data/projects/integration_external/app/README.md +3 -0
  495. snowflake_cli-2.8.2/tests/test_data/projects/integration_external/app/manifest.yml +18 -0
  496. snowflake_cli-2.8.2/tests/test_data/projects/integration_external/app/setup.sql +19 -0
  497. snowflake_cli-2.8.2/tests/test_data/projects/integration_external/package/001-shared.sql +5 -0
  498. snowflake_cli-2.8.2/tests/test_data/projects/integration_external/package/002-shared.sql +12 -0
  499. snowflake_cli-2.8.2/tests/test_data/projects/integration_external/snowflake.local.yml +3 -0
  500. snowflake_cli-2.8.2/tests/test_data/projects/integration_external/snowflake.yml +12 -0
  501. snowflake_cli-2.8.2/tests/test_data/projects/integration_external_v2/app/README.md +3 -0
  502. snowflake_cli-2.8.2/tests/test_data/projects/integration_external_v2/app/manifest.yml +16 -0
  503. snowflake_cli-2.8.2/tests/test_data/projects/integration_external_v2/app/setup.sql +19 -0
  504. snowflake_cli-2.8.2/tests/test_data/projects/integration_external_v2/package/001-shared.sql +5 -0
  505. snowflake_cli-2.8.2/tests/test_data/projects/integration_external_v2/package/002-shared.sql +12 -0
  506. snowflake_cli-2.8.2/tests/test_data/projects/integration_external_v2/snowflake.local.yml +4 -0
  507. snowflake_cli-2.8.2/tests/test_data/projects/integration_external_v2/snowflake.yml +14 -0
  508. snowflake_cli-2.8.2/tests/test_data/projects/integration_templated/app/README.md +4 -0
  509. snowflake_cli-2.8.2/tests/test_data/projects/integration_templated/app/manifest.yml +18 -0
  510. snowflake_cli-2.8.2/tests/test_data/projects/integration_templated/app/setup.sql +19 -0
  511. snowflake_cli-2.8.2/tests/test_data/projects/integration_templated/package/001-shared.sql +5 -0
  512. snowflake_cli-2.8.2/tests/test_data/projects/integration_templated/package/002-shared.sql +12 -0
  513. snowflake_cli-2.8.2/tests/test_data/projects/integration_templated/snowflake.yml +16 -0
  514. snowflake_cli-2.8.2/tests/test_data/projects/integration_v2/app/README.md +4 -0
  515. snowflake_cli-2.8.2/tests/test_data/projects/integration_v2/app/manifest.yml +18 -0
  516. snowflake_cli-2.8.2/tests/test_data/projects/integration_v2/app/setup.sql +19 -0
  517. snowflake_cli-2.8.2/tests/test_data/projects/integration_v2/package/001-shared.sql +5 -0
  518. snowflake_cli-2.8.2/tests/test_data/projects/integration_v2/package/002-shared.sql +12 -0
  519. snowflake_cli-2.8.2/tests/test_data/projects/integration_v2/snowflake.yml +14 -0
  520. snowflake_cli-2.8.2/tests/test_data/projects/minimal/snowflake.yml +7 -0
  521. snowflake_cli-2.8.2/tests/test_data/projects/napp_post_deploy/scripts/app_post_deploy1.sql +4 -0
  522. snowflake_cli-2.8.2/tests/test_data/projects/napp_post_deploy/scripts/app_post_deploy2.sql +1 -0
  523. snowflake_cli-2.8.2/tests/test_data/projects/napp_post_deploy/scripts/package_post_deploy1.sql +4 -0
  524. snowflake_cli-2.8.2/tests/test_data/projects/napp_post_deploy/scripts/package_post_deploy2.sql +1 -0
  525. snowflake_cli-2.8.2/tests/test_data/projects/napp_post_deploy/snowflake.yml +19 -0
  526. snowflake_cli-2.8.2/tests/test_data/projects/napp_post_deploy_missing_file/snowflake.yml +14 -0
  527. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_1/001-shared.sql +5 -0
  528. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_1/002-shared.sql +8 -0
  529. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_1/app/README.md +1 -0
  530. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_1/app/streamlit/config.py +1 -0
  531. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_1/app/streamlit/main.py +1 -0
  532. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_1/setup.sql +1 -0
  533. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_1/snowflake.local.yml +9 -0
  534. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_1/snowflake.yml +18 -0
  535. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_with_pkg_warehouse/001-shared.sql +5 -0
  536. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_with_pkg_warehouse/002-shared.sql +8 -0
  537. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_with_pkg_warehouse/app/README.md +1 -0
  538. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/config.py +1 -0
  539. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/main.py +1 -0
  540. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_with_pkg_warehouse/setup.sql +1 -0
  541. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_with_pkg_warehouse/snowflake.local.yml +10 -0
  542. snowflake_cli-2.8.2/tests/test_data/projects/napp_project_with_pkg_warehouse/snowflake.yml +18 -0
  543. snowflake_cli-2.8.2/tests/test_data/projects/napp_with_annotation_processor/snowflake.yml +30 -0
  544. snowflake_cli-2.8.2/tests/test_data/projects/no_definition_version/snowflake.yml +4 -0
  545. snowflake_cli-2.8.2/tests/test_data/projects/project_templating/dir/dir/file_in_subsubdir.txt +1 -0
  546. snowflake_cli-2.8.2/tests/test_data/projects/project_templating/dir/file_in_subdir.txt +2 -0
  547. snowflake_cli-2.8.2/tests/test_data/projects/project_templating/file.txt +1 -0
  548. snowflake_cli-2.8.2/tests/test_data/projects/project_templating/template.yml +17 -0
  549. snowflake_cli-2.8.2/tests/test_data/projects/project_templating/variable_values.json +8 -0
  550. snowflake_cli-2.8.2/tests/test_data/projects/project_templating_jinja_blocks/blocks.txt +3 -0
  551. snowflake_cli-2.8.2/tests/test_data/projects/project_templating_jinja_blocks/template.yml +6 -0
  552. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_external_access/app.py +2 -0
  553. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_external_access/app.zip +0 -0
  554. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_external_access/requirements.txt +1 -0
  555. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_external_access/snowflake.yml +20 -0
  556. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_fully_qualified_name/app/app.py +5 -0
  557. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_fully_qualified_name/app.zip +0 -0
  558. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_fully_qualified_name/requirements.txt +2 -0
  559. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_fully_qualified_name/snowflake.yml +53 -0
  560. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_secrets_without_external_access/app.zip +0 -0
  561. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_function_secrets_without_external_access/snowflake.yml +17 -0
  562. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_functions/app.py +16 -0
  563. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_functions/app.zip +0 -0
  564. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_functions/requirements.txt +1 -0
  565. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_functions/snowflake.yml +16 -0
  566. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_external_access/app.py +5 -0
  567. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_external_access/app.zip +0 -0
  568. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_external_access/requirements.txt +2 -0
  569. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_external_access/snowflake.yml +18 -0
  570. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_fully_qualified_name/app/app.py +7 -0
  571. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_fully_qualified_name/app.zip +0 -0
  572. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_fully_qualified_name/requirements.txt +2 -0
  573. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_fully_qualified_name/snowflake.yml +53 -0
  574. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_secrets_without_external_access/app.zip +0 -0
  575. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedure_secrets_without_external_access/snowflake.yml +15 -0
  576. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedures/app.py +26 -0
  577. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedures/app.zip +0 -0
  578. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedures/requirements.txt +2 -0
  579. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedures/snowflake.yml +17 -0
  580. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedures_coverage/app.py +26 -0
  581. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedures_coverage/app.zip +0 -0
  582. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedures_coverage/requirements.txt +2 -0
  583. snowflake_cli-2.8.2/tests/test_data/projects/snowpark_procedures_coverage/snowflake.yml +12 -0
  584. snowflake_cli-2.8.2/tests/test_data/projects/sql_templating/snowflake.local.yml +2 -0
  585. snowflake_cli-2.8.2/tests/test_data/projects/sql_templating/snowflake.yml +4 -0
  586. snowflake_cli-2.8.2/tests/test_data/projects/streamlit_full_definition/environment.yml +5 -0
  587. snowflake_cli-2.8.2/tests/test_data/projects/streamlit_full_definition/pages/my_page.py +3 -0
  588. snowflake_cli-2.8.2/tests/test_data/projects/streamlit_full_definition/snowflake.yml +11 -0
  589. snowflake_cli-2.8.2/tests/test_data/projects/streamlit_full_definition/streamlit_app.py +3 -0
  590. snowflake_cli-2.8.2/tests/test_data/projects/streamlit_full_definition/utils/utils.py +0 -0
  591. snowflake_cli-2.8.2/tests/test_data/projects/underspecified/snowflake.yml +3 -0
  592. snowflake_cli-2.8.2/tests/test_data/projects/unknown_fields/snowflake.yml +6 -0
  593. snowflake_cli-2.8.2/tests/test_data/streamlit/another_file_with_list.yml +13 -0
  594. snowflake_cli-2.8.2/tests/test_data/streamlit/another_file_with_single_item.yml +6 -0
  595. snowflake_cli-2.8.2/tests/test_data/streamlit/with_list_in_source_file.yml +12 -0
  596. snowflake_cli-2.8.2/tests/test_data/streamlit/with_single_item.yml +6 -0
  597. snowflake_cli-2.8.2/tests/test_data/test_data.py +149 -0
  598. snowflake_cli-2.8.2/tests/test_data/test_streamlit_requirements.txt +3 -0
  599. snowflake_cli-2.8.2/tests/test_docs_generation_output.py +164 -0
  600. snowflake_cli-2.8.2/tests/test_experimental_behaviour.py +92 -0
  601. snowflake_cli-2.8.2/tests/test_help_messages.py +133 -0
  602. snowflake_cli-2.8.2/tests/test_init.py +519 -0
  603. snowflake_cli-2.8.2/tests/test_loaded_modules.py +27 -0
  604. snowflake_cli-2.8.2/tests/test_logs.py +221 -0
  605. snowflake_cli-2.8.2/tests/test_main.py +180 -0
  606. snowflake_cli-2.8.2/tests/test_performance.py +34 -0
  607. snowflake_cli-2.8.2/tests/test_project_definition_generate_json_schema.py +98 -0
  608. snowflake_cli-2.8.2/tests/test_project_initialisation.py +49 -0
  609. snowflake_cli-2.8.2/tests/test_snow_connector.py +140 -0
  610. snowflake_cli-2.8.2/tests/test_sql.py +392 -0
  611. snowflake_cli-2.8.2/tests/test_utils.py +307 -0
  612. snowflake_cli-2.8.2/tests/test_zipper.py +83 -0
  613. snowflake_cli-2.8.2/tests/testing_utils/__init__.py +13 -0
  614. snowflake_cli-2.8.2/tests/testing_utils/conversion.py +24 -0
  615. snowflake_cli-2.8.2/tests/testing_utils/files_and_dirs.py +105 -0
  616. snowflake_cli-2.8.2/tests/testing_utils/fixtures.py +462 -0
  617. snowflake_cli-2.8.2/tests/testing_utils/mock_config.py +29 -0
  618. snowflake_cli-2.8.2/tests/testing_utils/result_assertions.py +29 -0
  619. snowflake_cli-2.8.2/tests_common/__init__.py +18 -0
  620. snowflake_cli-2.8.2/tests_common/path_utils.py +31 -0
  621. snowflake_cli-2.8.2/tests_e2e/__init__.py +13 -0
  622. snowflake_cli-2.8.2/tests_e2e/__snapshots__/test_error_handling.ambr +10 -0
  623. snowflake_cli-2.8.2/tests_e2e/__snapshots__/test_installation.ambr +68 -0
  624. snowflake_cli-2.8.2/tests_e2e/__snapshots__/test_nativeapp.ambr +102 -0
  625. snowflake_cli-2.8.2/tests_e2e/config/config.toml +26 -0
  626. snowflake_cli-2.8.2/tests_e2e/config/malformatted_config.toml +13 -0
  627. snowflake_cli-2.8.2/tests_e2e/conftest.py +170 -0
  628. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/.gitignore +4 -0
  629. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/python/cli_gen/accepted.py +80 -0
  630. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/python/cli_gen/errors/e1.py +28 -0
  631. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/python/cli_gen/ignored/i1.py +43 -0
  632. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/python/cli_gen/udaf/custom_udaf.py +44 -0
  633. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/python/cli_gen/udtf/custom_udtf.py +39 -0
  634. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/python/user_gen/echo.py +21 -0
  635. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/resources/unused.py +13 -0
  636. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/root_files/README.md +17 -0
  637. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/root_files/_manifest.yml +10 -0
  638. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/root_files/setup_scripts/setup.sql +26 -0
  639. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/root_files/setup_scripts/user_gen_procs.sql +28 -0
  640. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/root_files/setup_scripts/user_gen_udf.sql +28 -0
  641. snowflake_cli-2.8.2/tests_e2e/test_data/nativeapp/snowflake.yml +18 -0
  642. snowflake_cli-2.8.2/tests_e2e/test_error_handling.py +164 -0
  643. snowflake_cli-2.8.2/tests_e2e/test_installation.py +73 -0
  644. snowflake_cli-2.8.2/tests_e2e/test_nativeapp.py +262 -0
  645. snowflake_cli-2.8.2/tests_e2e/test_snowpark_examples.py +40 -0
  646. snowflake_cli-2.8.2/tests_integration/__init__.py +13 -0
  647. snowflake_cli-2.8.2/tests_integration/__snapshots__/test_function.ambr +50 -0
  648. snowflake_cli-2.8.2/tests_integration/__snapshots__/test_git.ambr +19 -0
  649. snowflake_cli-2.8.2/tests_integration/__snapshots__/test_package.ambr +11 -0
  650. snowflake_cli-2.8.2/tests_integration/__snapshots__/test_sql.ambr +57 -0
  651. snowflake_cli-2.8.2/tests_integration/__snapshots__/test_stage.ambr +121 -0
  652. snowflake_cli-2.8.2/tests_integration/__snapshots__/test_temporary_connection.ambr +12 -0
  653. snowflake_cli-2.8.2/tests_integration/config/config_with_enabled_all_external_plugins.toml +26 -0
  654. snowflake_cli-2.8.2/tests_integration/config/config_with_enabled_only_one_external_plugin.toml +24 -0
  655. snowflake_cli-2.8.2/tests_integration/config/connection_configs.toml +18 -0
  656. snowflake_cli-2.8.2/tests_integration/config/plugin_tests/broken_plugin_config.toml +19 -0
  657. snowflake_cli-2.8.2/tests_integration/config/plugin_tests/disabled_override_plugin_config.toml +16 -0
  658. snowflake_cli-2.8.2/tests_integration/config/plugin_tests/failing_plugin_config.toml +19 -0
  659. snowflake_cli-2.8.2/tests_integration/config/plugin_tests/override_plugin_config.toml +19 -0
  660. snowflake_cli-2.8.2/tests_integration/conftest.py +181 -0
  661. snowflake_cli-2.8.2/tests_integration/nativeapp/__snapshots__/test_deploy.ambr +213 -0
  662. snowflake_cli-2.8.2/tests_integration/nativeapp/__snapshots__/test_version.ambr +53 -0
  663. snowflake_cli-2.8.2/tests_integration/nativeapp/test_bundle.py +300 -0
  664. snowflake_cli-2.8.2/tests_integration/nativeapp/test_debug_mode.py +150 -0
  665. snowflake_cli-2.8.2/tests_integration/nativeapp/test_deploy.py +605 -0
  666. snowflake_cli-2.8.2/tests_integration/nativeapp/test_init_run.py +617 -0
  667. snowflake_cli-2.8.2/tests_integration/nativeapp/test_large_upload.py +140 -0
  668. snowflake_cli-2.8.2/tests_integration/nativeapp/test_open.py +111 -0
  669. snowflake_cli-2.8.2/tests_integration/nativeapp/test_post_deploy.py +202 -0
  670. snowflake_cli-2.8.2/tests_integration/nativeapp/test_project_templating.py +379 -0
  671. snowflake_cli-2.8.2/tests_integration/nativeapp/test_teardown.py +275 -0
  672. snowflake_cli-2.8.2/tests_integration/nativeapp/test_templates.py +32 -0
  673. snowflake_cli-2.8.2/tests_integration/nativeapp/test_validate.py +73 -0
  674. snowflake_cli-2.8.2/tests_integration/nativeapp/test_version.py +436 -0
  675. snowflake_cli-2.8.2/tests_integration/notebook/__init__.py +13 -0
  676. snowflake_cli-2.8.2/tests_integration/notebook/test_notebooks.py +74 -0
  677. snowflake_cli-2.8.2/tests_integration/plugin/test_broken_plugin.py +50 -0
  678. snowflake_cli-2.8.2/tests_integration/plugin/test_failing_plugin.py +48 -0
  679. snowflake_cli-2.8.2/tests_integration/plugin/test_override_by_external_plugins.py +73 -0
  680. snowflake_cli-2.8.2/tests_integration/scripts/integration_account_setup.sql +121 -0
  681. snowflake_cli-2.8.2/tests_integration/snowflake_connector.py +116 -0
  682. snowflake_cli-2.8.2/tests_integration/spcs/__init__.py +13 -0
  683. snowflake_cli-2.8.2/tests_integration/spcs/docker/Dockerfile +5 -0
  684. snowflake_cli-2.8.2/tests_integration/spcs/docker/bootstrap_containers_setup.sh +6 -0
  685. snowflake_cli-2.8.2/tests_integration/spcs/docker/build_and_push.sh +8 -0
  686. snowflake_cli-2.8.2/tests_integration/spcs/docker/build_and_push_all.sh +6 -0
  687. snowflake_cli-2.8.2/tests_integration/spcs/docker/echo_service.py +86 -0
  688. snowflake_cli-2.8.2/tests_integration/spcs/spec/spec.yml +13 -0
  689. snowflake_cli-2.8.2/tests_integration/spcs/spec/spec_upgrade.yml +13 -0
  690. snowflake_cli-2.8.2/tests_integration/spcs/test_compute_pool.py +60 -0
  691. snowflake_cli-2.8.2/tests_integration/spcs/test_image_repository.py +111 -0
  692. snowflake_cli-2.8.2/tests_integration/spcs/test_jobs.py +49 -0
  693. snowflake_cli-2.8.2/tests_integration/spcs/test_registry.py +71 -0
  694. snowflake_cli-2.8.2/tests_integration/spcs/test_services.py +72 -0
  695. snowflake_cli-2.8.2/tests_integration/spcs/testing_utils/compute_pool_utils.py +179 -0
  696. snowflake_cli-2.8.2/tests_integration/spcs/testing_utils/spcs_jobs_utils.py +95 -0
  697. snowflake_cli-2.8.2/tests_integration/spcs/testing_utils/spcs_services_utils.py +308 -0
  698. snowflake_cli-2.8.2/tests_integration/test_config.py +32 -0
  699. snowflake_cli-2.8.2/tests_integration/test_connection.py +64 -0
  700. snowflake_cli-2.8.2/tests_integration/test_cortex.py +152 -0
  701. snowflake_cli-2.8.2/tests_integration/test_data/cortex/conversation.json +14 -0
  702. snowflake_cli-2.8.2/tests_integration/test_data/cortex/english_text.txt +12 -0
  703. snowflake_cli-2.8.2/tests_integration/test_data/empty.sql +15 -0
  704. snowflake_cli-2.8.2/tests_integration/test_data/notebook/my_notebook.ipynb +34 -0
  705. snowflake_cli-2.8.2/tests_integration/test_data/notebook/my_notebook_error.ipynb +34 -0
  706. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v1/app/README.md +4 -0
  707. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v1/app/manifest.yml +9 -0
  708. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v1/app/setup_script.sql +11 -0
  709. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v1/scripts/app_post_deploy1.sql +5 -0
  710. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v1/scripts/app_post_deploy2.sql +3 -0
  711. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v1/scripts/package_post_deploy1.sql +5 -0
  712. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v1/scripts/package_post_deploy2.sql +3 -0
  713. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v1/snowflake.yml +20 -0
  714. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v2/app/README.md +4 -0
  715. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v2/app/manifest.yml +9 -0
  716. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v2/app/setup_script.sql +11 -0
  717. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v2/scripts/app_post_deploy1.sql +5 -0
  718. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v2/scripts/app_post_deploy2.sql +3 -0
  719. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v2/scripts/package_post_deploy1.sql +5 -0
  720. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v2/scripts/package_post_deploy2.sql +3 -0
  721. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_application_post_deploy_v2/snowflake.yml +26 -0
  722. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_create_db_v1/app/README.md +1 -0
  723. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_create_db_v1/app/manifest.yml +8 -0
  724. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_create_db_v1/app/setup_script.sql +11 -0
  725. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_create_db_v1/snowflake.yml +7 -0
  726. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_create_db_v2/app/README.md +3 -0
  727. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_create_db_v2/app/manifest.yml +10 -0
  728. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_create_db_v2/app/setup_script.sql +13 -0
  729. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_create_db_v2/snowflake.yml +17 -0
  730. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v1/app/README.md +4 -0
  731. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v1/app/manifest.yml +9 -0
  732. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v1/app/setup_script.sql +11 -0
  733. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v1/lib/parent/child/a.py +0 -0
  734. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v1/lib/parent/child/b.py +0 -0
  735. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v1/lib/parent/child/c/c.py +0 -0
  736. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v1/snowflake.yml +10 -0
  737. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v1/src/main.py +0 -0
  738. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v2/app/README.md +3 -0
  739. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v2/app/manifest.yml +7 -0
  740. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v2/app/setup_script.sql +3 -0
  741. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v2/lib/parent/child/a.py +0 -0
  742. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v2/lib/parent/child/b.py +0 -0
  743. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v2/lib/parent/child/c/c.py +0 -0
  744. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v2/snowflake.yml +19 -0
  745. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_deploy_prefix_matches_v2/src/main.py +0 -0
  746. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_init_v1/app/README.md +4 -0
  747. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_init_v1/app/manifest.yml +9 -0
  748. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_init_v1/app/setup_script.sql +11 -0
  749. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_init_v1/snowflake.yml +7 -0
  750. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_init_v2/app/README.md +3 -0
  751. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_init_v2/app/manifest.yml +7 -0
  752. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_init_v2/app/setup_script.sql +3 -0
  753. snowflake_cli-2.8.2/tests_integration/test_data/projects/napp_init_v2/snowflake.yml +16 -0
  754. snowflake_cli-2.8.2/tests_integration/test_data/projects/project_definition_v2/snowflake.yml +38 -0
  755. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark/.gitignore +4 -0
  756. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark/app/app.py +30 -0
  757. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark/requirements.txt +3 -0
  758. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark/snowflake.yml +23 -0
  759. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_coverage/.gitignore +0 -0
  760. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_coverage/app/__init__.py +0 -0
  761. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_coverage/app/module/__init__.py +0 -0
  762. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_coverage/app/module/procedures.py +26 -0
  763. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_coverage/requirements.txt +3 -0
  764. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_coverage/snowflake.yml +14 -0
  765. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_external_access/.gitignore +0 -0
  766. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_external_access/app/app.py +22 -0
  767. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_external_access/requirements.txt +2 -0
  768. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_external_access/snowflake.yml +23 -0
  769. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_fully_qualified_name/.gitignore +4 -0
  770. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_fully_qualified_name/app/app.py +30 -0
  771. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_fully_qualified_name/requirements.txt +3 -0
  772. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_fully_qualified_name/snowflake.yml +40 -0
  773. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_vectorized/.gitignore +4 -0
  774. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_vectorized/app/app.py +7 -0
  775. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_vectorized/requirements.txt +4 -0
  776. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_vectorized/snowflake.yml +14 -0
  777. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_version_check/.gitignore +4 -0
  778. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_version_check/app/app.py +7 -0
  779. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_version_check/requirements.txt +1 -0
  780. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_version_check/snowflake.yml +10 -0
  781. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_default_values/app/app.py +17 -0
  782. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_default_values/requirements.other.txt +0 -0
  783. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_default_values/requirements.txt +1 -0
  784. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_default_values/snowflake.yml +55 -0
  785. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_import/.gitignore +4 -0
  786. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_import/app/__init__.py +0 -0
  787. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_import/app/functions.py +7 -0
  788. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_import/requirements.txt +5 -0
  789. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_import/snowflake.yml +14 -0
  790. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/.gitignore +4 -0
  791. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/__init__.py +0 -0
  792. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/functions.py +7 -0
  793. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/requirements.txt +6 -0
  794. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/snowflake.yml +12 -0
  795. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/.gitignore +4 -0
  796. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/__init__.py +0 -0
  797. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/functions.py +7 -0
  798. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/requirements.txt +6 -0
  799. snowflake_cli-2.8.2/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/snowflake.yml +12 -0
  800. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_execute/requirements.txt +4 -0
  801. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_execute/script1.py +1 -0
  802. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_execute/script1.sql +1 -0
  803. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_execute/script2.sql +1 -0
  804. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_execute/script3.sql +1 -0
  805. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_execute/script_template.py +19 -0
  806. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_execute/script_template.sql +3 -0
  807. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_get_directory_structure/dir/script2.sql +1 -0
  808. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_get_directory_structure/dir/subdir/script3.sql +1 -0
  809. snowflake_cli-2.8.2/tests_integration/test_data/projects/stage_get_directory_structure/script1.sql +1 -0
  810. snowflake_cli-2.8.2/tests_integration/test_data/projects/streamlit/environment.yml +5 -0
  811. snowflake_cli-2.8.2/tests_integration/test_data/projects/streamlit/pages/my_page.py +3 -0
  812. snowflake_cli-2.8.2/tests_integration/test_data/projects/streamlit/snowflake.yml +11 -0
  813. snowflake_cli-2.8.2/tests_integration/test_data/projects/streamlit/streamlit_app.py +4 -0
  814. snowflake_cli-2.8.2/tests_integration/test_data/projects/streamlit/utils/utils.py +2 -0
  815. snowflake_cli-2.8.2/tests_integration/test_data/sql_multi_queries.sql +19 -0
  816. snowflake_cli-2.8.2/tests_integration/test_external_plugins.py +176 -0
  817. snowflake_cli-2.8.2/tests_integration/test_git.py +349 -0
  818. snowflake_cli-2.8.2/tests_integration/test_init.py +110 -0
  819. snowflake_cli-2.8.2/tests_integration/test_object.py +329 -0
  820. snowflake_cli-2.8.2/tests_integration/test_package.py +261 -0
  821. snowflake_cli-2.8.2/tests_integration/test_session_token.py +55 -0
  822. snowflake_cli-2.8.2/tests_integration/test_snowpark.py +957 -0
  823. snowflake_cli-2.8.2/tests_integration/test_snowpark_external_access.py +198 -0
  824. snowflake_cli-2.8.2/tests_integration/test_sql.py +158 -0
  825. snowflake_cli-2.8.2/tests_integration/test_sql_templating.py +102 -0
  826. snowflake_cli-2.8.2/tests_integration/test_stage.py +543 -0
  827. snowflake_cli-2.8.2/tests_integration/test_streamlit.py +277 -0
  828. snowflake_cli-2.8.2/tests_integration/test_temporary_connection.py +55 -0
  829. snowflake_cli-2.8.2/tests_integration/test_utils.py +90 -0
  830. snowflake_cli-2.8.2/tests_integration/testing_utils/__init__.py +20 -0
  831. snowflake_cli-2.8.2/tests_integration/testing_utils/assertions/__init__.py +13 -0
  832. snowflake_cli-2.8.2/tests_integration/testing_utils/assertions/test_file_assertions.py +31 -0
  833. snowflake_cli-2.8.2/tests_integration/testing_utils/assertions/test_result_assertions.py +117 -0
  834. snowflake_cli-2.8.2/tests_integration/testing_utils/naming_utils.py +48 -0
  835. snowflake_cli-2.8.2/tests_integration/testing_utils/snowpark_utils.py +394 -0
  836. snowflake_cli-2.8.2/tests_integration/testing_utils/sql_utils.py +51 -0
  837. snowflake_cli-2.8.2/tests_integration/testing_utils/working_directory_utils.py +54 -0
  838. snowflake_cli-2.8.2/tests_integration/workspaces/test_validate_schema.py +25 -0
@@ -0,0 +1,23 @@
1
+ __pycache__
2
+ .venv*
3
+ *.egg-info
4
+ config.ini
5
+ credentials
6
+ _test.py
7
+ test.zip
8
+ .DS_Store
9
+ build/
10
+ dist/
11
+ .idea
12
+ *.iml
13
+ .tox
14
+ ./.packages
15
+ .coverage
16
+ gen_docs/
17
+ /venv/
18
+ .env
19
+ .vscode
20
+ tmp/
21
+
22
+ ^app.zip
23
+ ^snowflake.yml
@@ -0,0 +1,133 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.1.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ exclude: '(^tests/|^tests_integration/|^tests_e2e)'
7
+ - id: end-of-file-fixer
8
+ exclude: license_header.txt
9
+ - id: check-yaml
10
+ exclude: .github/repo_meta.yaml
11
+ - id: debug-statements
12
+ exclude: src/snowflake/cli/app/dev/pycharm_remote_debug.py
13
+ - id: check-ast
14
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
15
+ rev: "v0.1.7"
16
+ hooks:
17
+ - id: ruff
18
+ args: [--fix, --exclude, "**/tests_common/,**/tests_integration/"]
19
+ - repo: https://github.com/psf/black
20
+ rev: 22.12.0
21
+ hooks:
22
+ - id: black
23
+ - repo: https://github.com/pre-commit/mirrors-mypy
24
+ rev: v0.990
25
+ hooks:
26
+ - id: mypy
27
+ additional_dependencies: [types-pkg-resources==0.1.3, types-all==1.0.0]
28
+ - repo: https://github.com/codespell-project/codespell
29
+ rev: v2.2.4
30
+ hooks:
31
+ - id: codespell
32
+ additional_dependencies:
33
+ - tomli
34
+ - repo: local
35
+ hooks:
36
+ - id: check-print-in-code
37
+ language: pygrep
38
+ name: "Check for print statements"
39
+ entry: "print\\(|echo\\("
40
+ pass_filenames: true
41
+ files: ^src/snowflake/.*\.py$
42
+ exclude: >
43
+ (?x)
44
+ ^src/snowflake/cli/api/console/.*$|
45
+ ^src/snowflake/cli/app/printing.py$|
46
+ ^src/snowflake/cli/app/dev/.*$|
47
+ ^src/snowflake/cli/templates/.*$|
48
+ ^src/snowflake/cli/api/utils/rendering.py$|
49
+ ^src/snowflake/cli/plugins/spcs/common.py$|
50
+ ^src/snowflake/cli/plugins/snowpark/venv.py$|
51
+ ^src/snowflake/cli/app/cli_app.py$
52
+ - id: check-app-imports-in-api
53
+ language: pygrep
54
+ name: "No top level cli.app imports in cli.api"
55
+ entry: "^from snowflake\\.cli\\.app"
56
+ pass_filenames: true
57
+ files: ^src/snowflake/cli/api/.*\.py$
58
+ - id: avoid-snowcli
59
+ language: pygrep
60
+ name: "Prefer snowflake CLI over snowcli"
61
+ entry: "snowcli"
62
+ pass_filenames: true
63
+ files: ^src/.*\.py$
64
+ exclude: ^src/snowflake/cli/app/constants.py$
65
+ - id: dependencies-sync
66
+ name: "Copy dependencies from pyproject.toml to requirements.txt"
67
+ language: system
68
+ entry: python snyk/dependency-sync.py
69
+ files: ^pyproject.toml$
70
+ - id: use-local-requirements-model
71
+ language: pygrep
72
+ name: "Use snowflake.cli.plugins.snowpark.models.Requirement for requirements parsing"
73
+ files: ^src/snowflake/.*\.py$
74
+ entry: >
75
+ ^from requirements.* import|
76
+ ^import requirements.*
77
+ pass_filenames: true
78
+ exclude: ^src/snowflake/cli/plugins/snowpark/models.py$
79
+ - repo: https://github.com/Lucas-C/pre-commit-hooks
80
+ rev: v1.5.5
81
+ hooks:
82
+ - id: insert-license
83
+ name: Add license for all SQL files
84
+ files: \.sql$
85
+ exclude: |
86
+ (?x)
87
+ ^\.github/|
88
+ tests/test_data/projects/.*|
89
+ tests_integration/test_data/projects/.*
90
+ args:
91
+ - --comment-style
92
+ - "/*||*/"
93
+ - --license-filepath
94
+ - scripts/LICENSE.txt
95
+ - --fuzzy-match-generates-todo
96
+ - id: insert-license
97
+ name: Add license for all toml files
98
+ files: \.toml$
99
+ args:
100
+ - --comment-style
101
+ - "|#|"
102
+ - --license-filepath
103
+ - scripts/LICENSE.txt
104
+ - --fuzzy-match-generates-todo
105
+ - id: insert-license
106
+ name: Add license for all Python files
107
+ exclude: |
108
+ (?x)
109
+ ^\.github/|
110
+ tests/test_data/projects/.*|
111
+ tests_integration/test_data/projects/.*|
112
+ src/snowflake/cli/templates/.*
113
+ files: \.py$|\.pyi$
114
+ args:
115
+ - --comment-style
116
+ - "|#|"
117
+ - --license-filepath
118
+ - scripts/LICENSE.txt
119
+ - --fuzzy-match-generates-todo
120
+ - id: insert-license
121
+ name: Add license for all Markdown files
122
+ exclude: |
123
+ (?x)
124
+ ^\.github/|
125
+ tests/test_data/projects/.*|
126
+ tests_integration/test_data/projects/.*
127
+ files: \.md$
128
+ args:
129
+ - --comment-style
130
+ - "<!--|| -->"
131
+ - --license-filepath
132
+ - scripts/LICENSE.txt
133
+ - --fuzzy-match-generates-todo
@@ -0,0 +1,242 @@
1
+ <!--
2
+ Copyright (c) 2024 Snowflake Inc.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+
17
+ # Contributing to Snowflake CLI
18
+
19
+ There are two ways to contribute code to the repository: directly or by use of forks. For best practices for the second approach, refer to the section on forks below. Right now, there is limited access to contributing to the repository directly, and hence using forks is the recommended approach.
20
+
21
+ ## Setup a development environment
22
+ If you are interested in contributing, you will need to instantiate dev virtual environments and the pre-commit logic to help with formatting and linting of commits.
23
+
24
+ We use [hatch](https://hatch.pypa.io/latest/) to manage and created development environments.
25
+ Default environment will use the python version in your shell.
26
+ ```bash
27
+ pip install -U hatch
28
+ hatch run pre-commit
29
+ ```
30
+ This will spawn new shell with environment and all required packages installed.
31
+ This will also install snowflake cli package in editable mode.
32
+
33
+ To enter environment use following command.
34
+ ```bash
35
+ hatch shell
36
+ ```
37
+ This will spawn new shell with virtual environment enables. To leave just press ^D.
38
+
39
+
40
+ Currently, the required Python version for development is Python 3.8+. For local development we recommend to use
41
+ a wrapper for virtual environments like [pyenv](https://github.com/pyenv/pyenv).
42
+
43
+ If you wish to setup environment with specific version ie. 3.8 you can use following command:
44
+
45
+ ```bash
46
+ hatch env create local.py3.8```
47
+
48
+ You can see all locally supported environments with
49
+
50
+ ```bash
51
+ hatch env show
52
+ ```
53
+
54
+ Please keep in mind that you need these python versions available in your `$PATH`. You can install them using `hatch` or other tool like [pyenv](https://github.com/pyenv/pyenv)
55
+
56
+ ## Unit tests
57
+
58
+ Unit tests are executed in random order. If tests fail after your change, you can re-execute them in the same order using `pytest --randomly-seed=<number>`, where number is a seed printed at the beginning of the test execution output.
59
+ Random order of test execution is provided by pytest-randomly, so more details are available in [pytest-randomly docs](https://pypi.org/project/pytest-randomly/).
60
+
61
+ ```bash
62
+ hatch run test
63
+ ```
64
+ or by running `pytest` inside activated environment.
65
+
66
+
67
+ ## Integration tests
68
+
69
+ Every integration test should have `integration` mark. By default, integration tests are not execute when running `pytest`.
70
+
71
+ To execute only integration tests run `hatch run integration:test` or `pytest -m integration` inside environment.
72
+
73
+ ### User setup
74
+
75
+ Integration tests require environment variables to be set up. Parameters must use the following format:
76
+
77
+ ``SNOWFLAKE_CONNECTIONS_INTEGRATION_<key>=<value>``
78
+
79
+ where ``<key>`` is the name of the key. The following environment variables are required:
80
+
81
+ - `SNOWFLAKE_CONNECTIONS_INTEGRATION_HOST`
82
+ - `SNOWFLAKE_CONNECTIONS_INTEGRATION_ACCOUNT`
83
+ - `SNOWFLAKE_CONNECTIONS_INTEGRATION_USER`
84
+ - `SNOWFLAKE_CONNECTIONS_INTEGRATION_PASSWORD` or `SNOWFLAKE_CONNECTIONS_INTEGRATION_PRIVATE_KEY_PATH` (if using private key authentication `SNOWFLAKE_CONNECTIONS_INTEGRATION_PASSWORD=SNOWFLAKE_JWT` should be set)
85
+ - `SNOWFLAKE_CONNECTIONS_INTEGRATION_ROLE`
86
+ - `SNOWFLAKE_CONNECTIONS_INTEGRATION_DATABASE`
87
+ - `SNOWFLAKE_CONNECTIONS_INTEGRATION_WAREHOUSE`
88
+
89
+ ### Integration account setup script
90
+
91
+ To set up an account for integration tests, run the following script with `ACCOUNTADMIN` role:
92
+
93
+ ```bash
94
+ snow sql \
95
+ -f tests_integration/scripts/integration_account_setup.sql \
96
+ -D "user=${SNOWFLAKE_CONNECTIONS_INTEGRATION_USER}" \
97
+ -D "role=${SNOWFLAKE_CONNECTIONS_INTEGRATION_ROLE}" \
98
+ -D "warehouse=${SNOWFLAKE_CONNECTIONS_INTEGRATION_WAREHOUSE}" \
99
+ -D "main_database=${SNOWFLAKE_CONNECTIONS_INTEGRATION_DATABASE}"\
100
+ -c <your_connection_name>
101
+ ```
102
+
103
+ Note: Before running the script, set up your environment variables.
104
+
105
+ ### Build and push Docker images
106
+
107
+ To build and push all required Docker images, run the following script:
108
+
109
+ ```bash
110
+ ./tests_integration/spcs/docker/build_and_push_all.sh
111
+ ```
112
+
113
+ ## Remote debugging with PyCharm or IntelliJ
114
+
115
+ Snowflake CLI can connect to a remote debug server started in PyCharm or Intellij.
116
+ It allows you to debug any installation of our tool in one of mentioned IDEs.
117
+
118
+ There are only three requirements:
119
+ * the same source code loaded in your IDE as running in the debugged CLI installation
120
+ * open network connection to your IDE
121
+ * `pydevd-pycharm.egg` file accessible on the machine where the CLI is installed (the file has to match the version of your IDE)
122
+
123
+ How to use it?
124
+ 1. Create a "remote debug config" run configuration in your IDE.
125
+ * Steps 1-2 from [this tutorial from JetBrains](https://www.jetbrains.com/help/pycharm/remote-debugging-with-product.html#create-remote-debug-config).
126
+ * `localhost` and `12345` port are defaults both in the IDE and in the CLI.
127
+ 1. Run your new configuration in debug mode.
128
+ 1. Find `pydevd-pycharm.egg` in the directory where your IDE is installed.
129
+ * Some tips how to find it should be present in the following places:
130
+ * The instruction from JetBrains linked above.
131
+ * The "remote debug config" creation window.
132
+ 1. If the CLI and the IDE are on the same machine, you have to just copy the path to the file.
133
+ 1. If the CLI is on another machine, then you have to copy the file there and also copy the target file path.
134
+ 1. Run the CLI using `snow --pycharm-debug-library-path <path-to-pydevd-pycharm.egg> <other-options-and-command>`.
135
+ * Example: `snow --pycharm-debug-library-path "/Users/xyz/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.9011.34/IntelliJ IDEA.app.plugins/python/debugger-eggs-output/pydevd-pycharm.egg" snowpark function list`
136
+ * The CLI will try to connect to your debug server (by default to `localhost:12345`).
137
+ * If a connection cannot be established, you will see some exception about it.
138
+ * If you want to use other host or port you can use `--pycharm-debug-server-host` and `--pycharm-debug-server-port` options.
139
+ * The code execution will be paused before execution of your command.
140
+ You will see the exact line in the IDE's debug view.
141
+ You can resume code execution, add breakpoints, evaluate variables, do all the things you usually do when debugging locally.
142
+
143
+ ## Using Forks
144
+ Create your own fork from the `snowflake-cli` repo. As a heads up, all `snowflake-cli` forks are publicly accessible on Github.
145
+
146
+ Syncing forks with the upstream `snowflake-cli` repo can be a hassle when trying to resolve merge conflicts. To avoid issues with this approach, we recommend always rebasing to the upstream `snowflake-cli` branch.
147
+
148
+ In the cloned copy of your fork, perform the following steps.
149
+
150
+ ```bash
151
+ git remote add sfcli https://github.com/snowflakedb/snowflake-cli.git
152
+ git fetch sfcli
153
+ git checkout <your-branch>
154
+ git rebase sfcli/main
155
+ ```
156
+
157
+ ## Presenting intermediate output to users
158
+
159
+ Snowflake CLI enables users to interact with the Snowflake ecosystem using command line. Some commands provide immediate results, while others require some amount of operations to be executed before the result can be presented to the user.
160
+
161
+ Presenting intermediate output to the user during execution of complex commands can improve users' experience.
162
+
163
+ Since snowflake-cli is preparing to support additional commands via plugins, it is the right time to introduce a unified mechanism for displaying intermediate output. This will help keep consistent output among cli and plugins. There is no way to restrain usage of any kind of output in plugins developed in external repositories, but providing api may discourage others from introducing custom output.
164
+
165
+ The proposal is to introduce cli_console object that will provide following helper methods to interact with the output:
166
+ step - a method for printing regular output
167
+ warning - a method for printing messages that should be
168
+ phase - a context manager that will group all output within its scope as distinct unit
169
+
170
+ Implemented CliConsole class must respect parameter `–silent` and disable any output when requested.
171
+
172
+ Context manager must allow only one grouping level at a time. All subsequent invocations will result in raising `CliConsoleNestingProhibitedError` derived from `RuntimeError`.
173
+
174
+ Logging support
175
+ All messages handled by CliConsole may be logged regardless of is_silent property.
176
+
177
+ ### Example usage
178
+
179
+ #### Simple output
180
+
181
+ ```python
182
+ from snowflake.cli.api.console import cli_console as cc
183
+
184
+ def my_command():
185
+ cc.step("Some work...")
186
+ ...
187
+ cc.step("Next work...")
188
+ ```
189
+
190
+ #### Output
191
+
192
+ ```bash
193
+ > snow my_command
194
+
195
+ Some work...
196
+ Next work...
197
+ ```
198
+
199
+ #### Grouped output
200
+
201
+ ```python
202
+ from snowflake.cli.api.console import cli_console as cc
203
+
204
+ def my_command():
205
+ cc.step("Building and publishing the application")
206
+ prepare_data_for_processing()
207
+
208
+ with cc.phase(
209
+ enter_message="Building app bundle...",
210
+ exit_message="Application bundle created.",
211
+ ):
212
+ try:
213
+ cc.step("Building package artifact")
214
+ make_archive_bundle()
215
+ except BundleSizeWarning:
216
+ cc.warning("Bundle size is large. It may take some time to upload.")
217
+
218
+ cc.step("Uploading bundle")
219
+ upload_bundle()
220
+
221
+ cc.step("Publishing application")
222
+ publish_application()
223
+ ```
224
+
225
+ #### Output
226
+
227
+ ```bash
228
+ > snow my_command
229
+
230
+ Building and publishing the application
231
+ Building app bundle...
232
+ Building package artifact
233
+ __Bundle size is large. It may take some time to upload.__
234
+ Uploading bundle
235
+ Application bundle created.
236
+ Publishing application
237
+ ```
238
+
239
+ ## Known issues
240
+
241
+ ### `permission denied` during integration tests on Windows
242
+ This error occurs when using NamedTemporaryFile and try to open it second time https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2024 Snowflake Inc.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.