bigquery-data-science 0.7.0__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 (296) hide show
  1. bigquery_data_science-0.7.0/.gitignore +60 -0
  2. bigquery_data_science-0.7.0/CHANGELOG.md +22 -0
  3. bigquery_data_science-0.7.0/CITATION.cff +25 -0
  4. bigquery_data_science-0.7.0/CODE_OF_CONDUCT.md +73 -0
  5. bigquery_data_science-0.7.0/CONTRIBUTING.md +112 -0
  6. bigquery_data_science-0.7.0/LICENSE +201 -0
  7. bigquery_data_science-0.7.0/PKG-INFO +306 -0
  8. bigquery_data_science-0.7.0/README.md +219 -0
  9. bigquery_data_science-0.7.0/SECURITY.md +28 -0
  10. bigquery_data_science-0.7.0/plugin.json +31 -0
  11. bigquery_data_science-0.7.0/pyproject.toml +211 -0
  12. bigquery_data_science-0.7.0/scripts/check_install.sh +137 -0
  13. bigquery_data_science-0.7.0/skills/PLANS.md +76 -0
  14. bigquery_data_science-0.7.0/skills/bigquery-ai/SKILL.md +66 -0
  15. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_agg.md +528 -0
  16. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_classify.md +450 -0
  17. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_count_tokens.md +180 -0
  18. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_detect_anomalies.md +322 -0
  19. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_embed.md +425 -0
  20. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_evaluate.md +368 -0
  21. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_forecast.md +437 -0
  22. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_generate.md +693 -0
  23. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_generate_bool.md +248 -0
  24. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_generate_double.md +254 -0
  25. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_generate_embedding.md +402 -0
  26. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_generate_int.md +252 -0
  27. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_generate_table.md +447 -0
  28. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_generate_text.md +356 -0
  29. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_if.md +373 -0
  30. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_key_drivers.md +331 -0
  31. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_parse_document.md +416 -0
  32. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_predict.md +559 -0
  33. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_score.md +310 -0
  34. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_search.md +465 -0
  35. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ai_similarity.md +371 -0
  36. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/catalog_search.md +951 -0
  37. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/content_analysis.md +284 -0
  38. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/content_moderation.md +369 -0
  39. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/data_enrichment.md +426 -0
  40. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/document_intelligence.md +470 -0
  41. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/document_rag.md +453 -0
  42. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/image_deduplication.md +770 -0
  43. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/log_analysis.md +668 -0
  44. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/metric_diagnostics.md +568 -0
  45. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ml_annotate_image.md +680 -0
  46. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ml_generate_embedding.md +217 -0
  47. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ml_generate_text.md +223 -0
  48. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ml_process_document.md +392 -0
  49. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ml_transcribe.md +815 -0
  50. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ml_translate.md +600 -0
  51. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/ml_understand_text.md +673 -0
  52. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/multimodal_analysis.md +266 -0
  53. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/rag_pipeline.md +593 -0
  54. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/semantic_search.md +510 -0
  55. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/tabular_prediction.md +485 -0
  56. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/time_series_intelligence.md +489 -0
  57. bigquery_data_science-0.7.0/skills/bigquery-ai/narrative/vector_search.md +672 -0
  58. bigquery_data_science-0.7.0/skills/bigquery-ai/reference/augmented-analytics.md +77 -0
  59. bigquery_data_science-0.7.0/skills/bigquery-ai/reference/cloud-ai-service-models.md +88 -0
  60. bigquery_data_science-0.7.0/skills/bigquery-ai/reference/document-processing.md +95 -0
  61. bigquery_data_science-0.7.0/skills/bigquery-ai/reference/embeddings-and-search.md +166 -0
  62. bigquery_data_science-0.7.0/skills/bigquery-ai/reference/general-purpose-generation.md +87 -0
  63. bigquery_data_science-0.7.0/skills/bigquery-ai/reference/managed-functions.md +72 -0
  64. bigquery_data_science-0.7.0/skills/bigquery-ai/reference/predictive-ai.md +113 -0
  65. bigquery_data_science-0.7.0/skills/bigquery-ai/reference/workflows.md +56 -0
  66. bigquery_data_science-0.7.0/skills/bigquery-ai/skill.manifest.json +109 -0
  67. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/INDEX.md +71 -0
  68. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aiagg.md +67 -0
  69. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aicausal_effect-covered-in-bigquery-ml.md +17 -0
  70. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aiclassify.md +72 -0
  71. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aicount_tokens.md +53 -0
  72. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aidetect_anomalies.md +63 -0
  73. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aiembed.md +85 -0
  74. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aievaluate.md +114 -0
  75. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aiforecast.md +123 -0
  76. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aigenerate.md +69 -0
  77. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aigenerate_bool.md +53 -0
  78. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aigenerate_double.md +45 -0
  79. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aigenerate_embedding.md +108 -0
  80. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aigenerate_int.md +45 -0
  81. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aigenerate_table.md +64 -0
  82. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aigenerate_text.md +167 -0
  83. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aiif.md +56 -0
  84. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aikey_drivers.md +76 -0
  85. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aiparse_document.md +91 -0
  86. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aipredict.md +74 -0
  87. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aiscore.md +52 -0
  88. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aisearch.md +66 -0
  89. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/aisimilarity.md +79 -0
  90. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/choosing-between-these-and-the-ai-functions.md +11 -0
  91. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/hybrid-search-capability.md +165 -0
  92. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/mlannotate_image.md +24 -0
  93. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/mlgenerate_embedding.md +34 -0
  94. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/mlgenerate_text.md +65 -0
  95. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/mlprocess_document.md +125 -0
  96. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/mltranscribe.md +26 -0
  97. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/mltranslate.md +27 -0
  98. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/mlunderstand_text.md +32 -0
  99. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/multimodal-input-patterns-by-function.md +128 -0
  100. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/object-tables.md +109 -0
  101. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/objectref-and-objectrefruntime-schema-reference.md +50 -0
  102. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/objfetch_metadata.md +49 -0
  103. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/objget_access_url.md +66 -0
  104. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/objget_read_url.md +40 -0
  105. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/objlist.md +34 -0
  106. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/objmake_ref.md +58 -0
  107. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/per-row-failures-and-the-retry-pattern.md +19 -0
  108. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/setup-apis-connection-roles.md +39 -0
  109. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/two-input-shapes.md +22 -0
  110. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/vector_search.md +78 -0
  111. bigquery_data_science-0.7.0/skills/bigquery-ai/syntax/what-the-five-have-in-common.md +27 -0
  112. bigquery_data_science-0.7.0/skills/bigquery-data-science/SKILL.md +69 -0
  113. bigquery_data_science-0.7.0/skills/bigquery-data-science/reference/namespace-matrix.md +112 -0
  114. bigquery_data_science-0.7.0/skills/bigquery-data-science/skill.manifest.json +13 -0
  115. bigquery_data_science-0.7.0/skills/bigquery-ml/SKILL.md +70 -0
  116. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/airflow_with_kfp.md +379 -0
  117. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/anomaly_fraud_detection.md +195 -0
  118. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/arima_plus.md +635 -0
  119. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/arima_plus_xreg.md +453 -0
  120. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/autoencoder.md +470 -0
  121. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/automl_classifier.md +291 -0
  122. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/automl_regressor.md +274 -0
  123. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/boosted_tree_classifier.md +449 -0
  124. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/boosted_tree_regressor.md +400 -0
  125. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/bucketizing.md +201 -0
  126. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/causal_effect.md +773 -0
  127. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/churn_retention.md +271 -0
  128. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/cloud_workflows.md +370 -0
  129. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/composer_airflow.md +475 -0
  130. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/contribution_analysis.md +346 -0
  131. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/cross_validation.md +185 -0
  132. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/customer_segmentation.md +233 -0
  133. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/dataform.md +372 -0
  134. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/dbt.md +283 -0
  135. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/difference_in_differences.md +280 -0
  136. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/distance.md +195 -0
  137. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/dnn_classifier.md +326 -0
  138. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/dnn_regressor.md +308 -0
  139. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/embeddings_classification.md +426 -0
  140. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/encoding.md +238 -0
  141. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/ensembling.md +278 -0
  142. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/evaluation.md +445 -0
  143. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/exploration.md +779 -0
  144. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/export.md +321 -0
  145. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/feature_engineering.md +280 -0
  146. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/feature_store.md +652 -0
  147. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/feature_store_workflow.md +426 -0
  148. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/ga4_churn_prediction.md +285 -0
  149. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/hierarchical_forecasting.md +441 -0
  150. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/image.md +791 -0
  151. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/imported.md +426 -0
  152. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/kmeans.md +348 -0
  153. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/linear_regression.md +372 -0
  154. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/logistic_regression.md +390 -0
  155. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/matrix_factorization.md +404 -0
  156. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/model_monitoring.md +609 -0
  157. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/pca.md +357 -0
  158. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/price_elasticity_dml.md +286 -0
  159. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/propensity_score_matching.md +350 -0
  160. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/random_forest_classifier.md +445 -0
  161. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/random_forest_regressor.md +409 -0
  162. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/recommendation.md +281 -0
  163. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/regression_based_forecasting.md +491 -0
  164. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/remote.md +428 -0
  165. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/scalers.md +325 -0
  166. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/scheduled_queries.md +284 -0
  167. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/sql_scripting.md +243 -0
  168. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/survival_analysis.md +363 -0
  169. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/synthetic_control.md +221 -0
  170. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/text.md +215 -0
  171. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/time_series.md +669 -0
  172. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/transform_only.md +273 -0
  173. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/uplift_cate.md +241 -0
  174. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/vertex_kfp.md +360 -0
  175. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/wide_and_deep_classifier.md +316 -0
  176. bigquery_data_science-0.7.0/skills/bigquery-ml/narrative/wide_and_deep_regressor.md +298 -0
  177. bigquery_data_science-0.7.0/skills/bigquery-ml/reference/classification.md +80 -0
  178. bigquery_data_science-0.7.0/skills/bigquery-ml/reference/model-management.md +90 -0
  179. bigquery_data_science-0.7.0/skills/bigquery-ml/reference/preprocessing-functions.md +234 -0
  180. bigquery_data_science-0.7.0/skills/bigquery-ml/reference/regression.md +79 -0
  181. bigquery_data_science-0.7.0/skills/bigquery-ml/reference/unsupervised-and-specialized.md +101 -0
  182. bigquery_data_science-0.7.0/skills/bigquery-ml/reference/workflows-and-pipelines.md +111 -0
  183. bigquery_data_science-0.7.0/skills/bigquery-ml/skill.manifest.json +177 -0
  184. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/1-model_type-catalog.md +28 -0
  185. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/2-task-mlevaluate-metric-columns.md +26 -0
  186. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/3-capability-matrix-per-model-type.md +21 -0
  187. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/4-explainability-weights-functions.md +14 -0
  188. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/5-connection-matrix.md +11 -0
  189. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/6-which-model-free-function-no-create-model-no-connection.md +15 -0
  190. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/7-point-in-time-feature-retrieval-which-of-the-two.md +11 -0
  191. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/INDEX.md +111 -0
  192. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/aicausal_effect.md +85 -0
  193. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/arima_plus-forecasting-lifecycle-functions.md +14 -0
  194. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/arima_plus-univariate-time-series-forecasting.md +132 -0
  195. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/arima_plus_xreg-multivariate-time-series-with-external-regressors.md +103 -0
  196. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/autoencoder.md +102 -0
  197. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/automl_classifier-automl_regressor.md +88 -0
  198. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/boosted_tree_classifier-boosted_tree_regressor.md +117 -0
  199. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/contribution_analysis.md +113 -0
  200. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/dnn_classifier-dnn_regressor.md +107 -0
  201. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/dnn_linear_combined_classifier-dnn_linear_combined_regressor-wide-and-deep.md +98 -0
  202. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/explainability-functions-mlexplain_predict-mlglobal_explain-mlfeature_importance.md +7 -0
  203. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/exploratory-data-analysis-mldescribe_data-mlcorrelation.md +11 -0
  204. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/export-model.md +92 -0
  205. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/feature-engineering-standalone-preprocessing-functions.md +13 -0
  206. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/image-preprocessing-functions-mldecode_image-mlresize_image-mlconvert_image_type-mlconvert_color_space.md +63 -0
  207. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/imported-models-tensorflow-tensorflow_lite-onnx-xgboost.md +36 -0
  208. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/kmeans.md +87 -0
  209. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/linear_reg-logistic_reg-generalized-linear-models.md +101 -0
  210. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/matrix_factorization.md +162 -0
  211. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mladvanced_weights.md +76 -0
  212. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlarima_coefficients.md +30 -0
  213. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlarima_evaluate.md +49 -0
  214. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlbag_of_words.md +47 -0
  215. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlbucketize.md +47 -0
  216. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlcentroids.md +46 -0
  217. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlconfusion_matrix.md +56 -0
  218. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlconvert_color_space.md +53 -0
  219. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlconvert_image_type.md +39 -0
  220. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlcorrelation.md +78 -0
  221. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mldecode_image.md +44 -0
  222. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mldescribe_data.md +74 -0
  223. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mldetect_anomalies.md +86 -0
  224. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mldistance.md +48 -0
  225. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlentity_features_at_time.md +56 -0
  226. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlevaluate.md +72 -0
  227. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlexplain_forecast.md +50 -0
  228. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlexplain_predict.md +66 -0
  229. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlfeature_cross.md +46 -0
  230. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlfeature_importance.md +47 -0
  231. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlfeature_info.md +50 -0
  232. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlfeatures_at_time.md +51 -0
  233. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlforecast.md +76 -0
  234. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlgenerate_embedding-from-a-bqml-pca-autoencoder-matrix_factorization-model.md +64 -0
  235. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlglobal_explain.md +63 -0
  236. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlhash_bucketize.md +47 -0
  237. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlholiday_info.md +46 -0
  238. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlimputer.md +46 -0
  239. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mllp_norm.md +47 -0
  240. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlmetrics.md +80 -0
  241. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlngrams.md +37 -0
  242. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlone_hot_encoder-mlmulti_hot_encoder-mllabel_encoder.md +67 -0
  243. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlpolynomial_expand.md +47 -0
  244. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlpredict.md +67 -0
  245. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlprincipal_component_info.md +42 -0
  246. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlprincipal_components.md +40 -0
  247. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlquantile_bucketize.md +43 -0
  248. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlrecommend.md +60 -0
  249. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlreconstruction_loss.md +48 -0
  250. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlresize_image.md +45 -0
  251. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlroc_curve.md +63 -0
  252. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mltf_idf.md +37 -0
  253. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mltfdv_describe.md +34 -0
  254. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mltfdv_validate.md +48 -0
  255. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mltraining_info.md +78 -0
  256. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mltransform-applying-a-saved-transform.md +52 -0
  257. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mltranspose-not-a-function-pointer.md +32 -0
  258. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mltrial_info.md +60 -0
  259. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlvalidate_data_drift.md +99 -0
  260. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlvalidate_data_skew.md +50 -0
  261. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/mlweights.md +84 -0
  262. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/model-free-time-series-decomposition-mltrend-mlseasonality-mldetect_change_points.md +100 -0
  263. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/model-introspection-mlfeature_info-mltraining_info-mltrial_info.md +7 -0
  264. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/model-monitoring-data-validation.md +23 -0
  265. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/numerical-scalers-mlstandard_scaler-mlmin_max_scaler-mlmax_abs_scaler-mlrobust_scaler-mlnormalizer.md +77 -0
  266. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/onnx.md +55 -0
  267. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/pca.md +91 -0
  268. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/point-in-time-feature-retrieval-mlfeatures_at_time-mlentity_features_at_time.md +25 -0
  269. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/quick-comparison.md +14 -0
  270. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/random_forest_classifier-random_forest_regressor.md +123 -0
  271. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/remote-remote-model-over-a-vertex-ai-endpoint-the-mechanism.md +87 -0
  272. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/tensorflow.md +48 -0
  273. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/tensorflow_lite.md +29 -0
  274. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/text-preprocessing-functions-mlngrams-mltf_idf-mlbag_of_words.md +18 -0
  275. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/timesfm-built-in-foundation-forecaster-see-bigquery-ai.md +28 -0
  276. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/transform_only.md +91 -0
  277. bigquery_data_science-0.7.0/skills/bigquery-ml/syntax/xgboost.md +72 -0
  278. bigquery_data_science-0.7.0/skills/pinned-models.json +28 -0
  279. bigquery_data_science-0.7.0/src/bigquery_data_science/__init__.py +58 -0
  280. bigquery_data_science-0.7.0/src/bigquery_data_science/catalog.py +1107 -0
  281. bigquery_data_science-0.7.0/src/bigquery_data_science/cli.py +786 -0
  282. bigquery_data_science-0.7.0/src/bigquery_data_science/installer.py +282 -0
  283. bigquery_data_science-0.7.0/src/bigquery_data_science/mcp_server.py +317 -0
  284. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/__init__.py +15 -0
  285. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/convert_notebook.py +176 -0
  286. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/link_policy.py +247 -0
  287. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/manifest.py +152 -0
  288. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/markdown_anchors.py +84 -0
  289. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/narrative_drift.py +163 -0
  290. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/pinned_models.py +216 -0
  291. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/reference_structure.py +85 -0
  292. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/sync_syntax.py +407 -0
  293. bigquery_data_science-0.7.0/src/bigquery_data_science/tooling/validate.py +208 -0
  294. bigquery_data_science-0.7.0/tests/test_installer_and_catalog.py +552 -0
  295. bigquery_data_science-0.7.0/tests/test_packaging.py +203 -0
  296. bigquery_data_science-0.7.0/tests/test_tooling.py +298 -0
@@ -0,0 +1,60 @@
1
+ # Virtual environments
2
+ .venv/
3
+ .venv-*/
4
+ env/
5
+ venv/
6
+
7
+ # Python bytecode & caches
8
+ __pycache__/
9
+ *.py[cod]
10
+ *$py.class
11
+ .pytest_cache/
12
+ .mypy_cache/
13
+ .ruff_cache/
14
+ .coverage
15
+ htmlcov/
16
+
17
+ # Packaging & build artifacts
18
+ *.egg-info/
19
+ build/
20
+ dist/
21
+
22
+ # Jupyter & execution artifacts
23
+ .ipynb_checkpoints/
24
+ *-checkpoint.*
25
+ iframe_figures/
26
+
27
+ # Agent harnesses: ignore teamwork/local state, but TRACK .agents/skills/ and .claude/skills/
28
+ .agents/*
29
+ !.agents/skills/
30
+ .claude/*
31
+ !.claude/skills/
32
+ .adk/
33
+ .antigravitycli
34
+
35
+ # IDE & OS files
36
+ .vscode/
37
+ .idea/
38
+ .cursor/
39
+ .windsurf/
40
+ .DS_Store
41
+ Thumbs.db
42
+ temp
43
+ *.log
44
+
45
+ # Terraform state (if any local experiments run)
46
+ .terraform/
47
+ *.tfstate
48
+ *.tfstate.backup
49
+ .terraform.lock.hcl
50
+
51
+ # Secrets & Service Account Keys (ADC only — NEVER commit credentials)
52
+ .env
53
+ .env.*
54
+ *-key.json
55
+ *_key.json
56
+ *.json.key
57
+ service-account*.json
58
+ *credentials*.json
59
+ application_default_credentials.json
60
+ gcp-*.json
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+
3
+ All notable changes to `bigquery-data-science` are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.7.0] - 2026-10-19
9
+
10
+ ### Added
11
+ - **Standalone Repository & 1:1 Domain Normalization (`bigquery-ml/` and `bigquery-ai/`):**
12
+ - Extracted and normalized all 61 BigQuery ML notebooks (`bigquery-ml/`) and 43 BigQuery AI notebooks (`bigquery-ai/`) with companion `.sql` scripts, exhaustive `reference/*.md` documentation, and unified `bigquery-data-science` Jupyter kernel metadata.
13
+ - **Hybrid 3-Skill Hierarchy & 4-Lens Progressive Disclosure (`skills/`):**
14
+ - `skills/bigquery-data-science/`: Umbrella task router, 10 head-to-head empirical comparisons, cross-namespace composition guide, reviewer rubric, and `reference/namespace-matrix.md` prerequisite matrix.
15
+ - `skills/bigquery-ml/` and `skills/bigquery-ai/`: 4-Lens architecture — Lens 1 (`SKILL.md` routing & cross-cutting gotchas), Lens 2 (`reference/*.md` use-case decision guides), Lens 3 (`syntax/*.md` surgical H2-sliced per-model/per-function syntax cards + `syntax/INDEX.md`), and Lens 4 (`narrative/*.md` 104 boilerplate-stripped textbook walkthroughs with GitHub provenance banners).
16
+ - **Zero-Dependency Python Package, CLI & Stdio MCP Server (`src/bigquery_data_science/`):**
17
+ - Skill & kernel installer (`bigquery-data-science install`, `list`, `path`, `kernel`) and federated `statmike.agent_skills` entry point.
18
+ - Instant offline catalog engine (`bigquery-data-science lookup`, `search`, `triage`).
19
+ - Zero-dependency JSON-RPC stdio MCP server (`bigquery-data-science mcp`) exposing `triage_bigquery_task`, `lookup_bigquery_syntax`, `search_bigquery_gotchas`, and `get_bigquery_walkthrough`.
20
+ - Maintainer verification suite (`sweep`, `validate`, `check-links`, `check-reference`, `check-syntax-sync`, `check-pinned-models`, `check-narratives`, `sync-syntax`, `convert-notebook`, `manifest`).
21
+ - **Unified Packaging & Layered `uv` Extras (`pyproject.toml` & `uv.lock`):**
22
+ - Zero-dependency `< 1.5 MB` PyPI wheel bundling `skills/`, with optional extras `[notebooks]`, `[pipelines]`, `[workflows]`, and `[all]`.
@@ -0,0 +1,25 @@
1
+ cff-version: 1.2.0
2
+ title: "bigquery-data-science: BigQuery ML, BigQuery AI, and 4-Lens Agent Skills for SQL and Python Data Science"
3
+ message: "If you use workflows, notebooks, SQL scripts, or agent skills from bigquery-data-science in your work or research, please cite it using the metadata below."
4
+ type: software
5
+ authors:
6
+ - given-names: Mike
7
+ family-names: Henderson
8
+ alias: statmike
9
+ repository-code: "https://github.com/statmike/bigquery-data-science"
10
+ url: "https://github.com/statmike/bigquery-data-science"
11
+ license: Apache-2.0
12
+ version: "0.7.0"
13
+ date-released: "2026-10-19"
14
+ keywords:
15
+ - google-cloud
16
+ - bigquery
17
+ - bigquery-ml
18
+ - bigquery-ai
19
+ - gemini-enterprise
20
+ - vertex-ai
21
+ - google-adk
22
+ - agent-skills
23
+ - mcp
24
+ - machine-learning
25
+ - generative-ai
@@ -0,0 +1,73 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ This project follows [Google's Open Source Community Guidelines](https://opensource.google/conduct/)
4
+ and the Contributor Covenant Code of Conduct below.
5
+
6
+ ## Our Pledge
7
+
8
+ We as members, contributors, and leaders pledge to make participation in our
9
+ community a harassment-free experience for everyone, regardless of age, body
10
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
11
+ identity and expression, level of experience, education, socio-economic status,
12
+ nationality, personal appearance, race, caste, color, religion, or sexual
13
+ identity and orientation.
14
+
15
+ We pledge to act and interact in ways that contribute to an open, welcoming,
16
+ diverse, inclusive, and healthy community.
17
+
18
+ ## Our Standards
19
+
20
+ Examples of behavior that contributes to a positive environment for our
21
+ community include:
22
+
23
+ * Demonstrating empathy and kindness toward other people
24
+ * Being respectful of differing opinions, viewpoints, and experiences
25
+ * Giving and gracefully accepting constructive feedback
26
+ * Accepting responsibility and apologizing to those affected by our mistakes,
27
+ and learning from the experience
28
+ * Focusing on what is best not just for us as individuals, but for the overall
29
+ community
30
+
31
+ Examples of unacceptable behavior include:
32
+
33
+ * The use of sexualized language or imagery, and sexual attention or advances of
34
+ any kind
35
+ * Trolling, insulting or derogatory comments, and personal or political attacks
36
+ * Public or private harassment
37
+ * Publishing others' private information, such as a physical or email address,
38
+ without their explicit permission
39
+ * Other conduct which could reasonably be considered inappropriate in a
40
+ professional setting
41
+
42
+ ## Enforcement Responsibilities
43
+
44
+ Project maintainers are responsible for clarifying and enforcing our standards of
45
+ acceptable behavior and will take appropriate and fair corrective action in
46
+ response to any behavior that they deem inappropriate, threatening, offensive,
47
+ or harmful.
48
+
49
+ Project maintainers have the right and responsibility to remove, edit, or reject
50
+ comments, commits, code, wiki edits, issues, and other contributions that are
51
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
52
+ decisions when appropriate.
53
+
54
+ ## Scope
55
+
56
+ This Code of Conduct applies within all community spaces, and also applies when
57
+ an individual is officially representing the community in public spaces.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the project maintainers via GitHub Security Advisories or repository
63
+ moderation channels as described in [`SECURITY.md`](./SECURITY.md).
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All project maintainers are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Attribution
70
+
71
+ This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org),
72
+ version 2.1, available at
73
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html).
@@ -0,0 +1,112 @@
1
+ # Contributing to `bigquery-data-science`
2
+
3
+ Thank you for your interest in contributing to `bigquery-data-science`. This repository unifies **104 live-executed BigQuery ML and BigQuery AI notebooks and SQL scripts**, **4-Lens Agent Skills** (`skills/`), and the **zero-dependency `bigquery-data-science` Python CLI and stdio MCP server** (`src/bigquery_data_science/`).
4
+
5
+ Issues and pull requests for bug fixes, documentation improvements, release-note updates, and workflow enhancements are welcome.
6
+
7
+ ## Before You Open a Pull Request
8
+
9
+ - **Small fixes (typos, broken links, option updates):** Open a pull request directly with a clear description of the fix.
10
+ - **New notebooks, workflows, or skill restructuring:** Open an [issue](https://github.com/statmike/bigquery-data-science/issues) first to discuss scope and placement.
11
+ - Review [`skills/PLANS.md`](skills/PLANS.md), [`bigquery-ml/PLANS.md`](bigquery-ml/PLANS.md), and [`bigquery-ai/PLANS.md`](bigquery-ai/PLANS.md) for the authoring conventions and monthly BigQuery release-notes audit procedure.
12
+
13
+ ## The Verification Gate
14
+
15
+ Run the full verification suite from the repository root before submitting a pull request (this is the exact gate that `.github/workflows/ci.yml` runs across Python 3.11, 3.12, and 3.13):
16
+
17
+ ```bash
18
+ uv run ruff check src tests && \
19
+ uv run mypy src && \
20
+ uv run pytest -q && \
21
+ uv run bigquery-data-science sweep && \
22
+ python3 architectures/headers/sync_headers.py --check && \
23
+ ./scripts/check_install.sh
24
+ ```
25
+
26
+ - **Linted & Typed:** `ruff check src tests` and `mypy src` (strict mode) must exit with zero errors.
27
+ - **Tested:** `uv run pytest -q` runs the offline unit test suite covering version parity, README link rewriting, `uv.lock` public index hygiene, the skill installer, catalog `lookup`/`search`/`triage`, the stdio MCP server, and all maintainer tooling checks.
28
+ - **Skills & Reference Sweep:** `uv run bigquery-data-science sweep` validates all 3 skills (`validate --all`), markdown links and `#anchors` (`check-links`), `RESOURCES.md` coverage (`check-reference`), H2-sliced syntax cards (`check-syntax-sync`), model version pins (`check-pinned-models`), and extracted notebook narratives (`check-narratives`).
29
+ - **Headers:** `python3 architectures/headers/sync_headers.py --check` verifies all 104 notebooks and 19 domain markdown files carry current `statmike/bigquery-data-science` headers.
30
+ - **Cold-Install Smoke Gate:** `./scripts/check_install.sh` builds the wheel and sdist via `uv build`, verifies the wheel is `< 1.5 MB` with zero `.ipynb` files, installs it into an isolated virtualenv, and exercises the CLI and stdio MCP server.
31
+ - **Optional Local Pre-Commit Hooks:** Run `uv run pre-commit install` once after cloning to run `ruff check`, `mypy`, and `bigquery-data-science sweep` automatically on `git commit` (configured in [`.pre-commit-config.yaml`](.pre-commit-config.yaml)).
32
+
33
+ ## Public-Repository & Credential Hygiene
34
+
35
+ Every contribution must follow these security and privacy rules:
36
+
37
+ - **Application Default Credentials (ADC) only:** Never load or commit service account JSON key files (`*-key.json`, `*.json.key`, `service-account*.json`). Notebooks and scripts authenticate exclusively via Application Default Credentials (`gcloud auth application-default login` locally or attached service accounts in Google Cloud runtimes).
38
+ - **Zero proprietary or customer data:** Never include customer names, internal hostnames, credentials, or hardcoded live personal/internal GCP project IDs in tracked code or configs.
39
+ - **Self-contained, reproducible workflows:** Notebooks rely on public datasets (`bigquery-public-data.*`), synthetic data generated in-notebook, or resources created by the workflow's own setup steps.
40
+
41
+ ## Releasing
42
+
43
+ Releases are published to TestPyPI and PyPI via GitHub Actions OIDC Trusted Publishing ([`.github/workflows/release.yml`](.github/workflows/release.yml)) whenever a `v*` tag is pushed.
44
+
45
+ ### Semantic Versioning (`X.Y.Z`)
46
+
47
+ - **Major (`X.0.0`) — Breaking changes to the public contract:**
48
+ - Removing or incompatibly changing exported functions in `bigquery_data_science`, CLI subcommands (`install`, `list`, `path`, `kernel`, `lookup`, `search`, `triage`, `mcp`, `sweep`), MCP tool schemas, or skill directory layouts.
49
+ - **Minor (`X.Y.0`) — Backwards-compatible features:**
50
+ - Adding new notebooks, SQL workflows, skill reference/syntax/narrative files, CLI subcommands/flags, or MCP tools.
51
+ - **Patch (`X.Y.Z`) — Backwards-compatible fixes and documentation updates:**
52
+ - Fixing typos, updating model pins in `skills/pinned-models.json`, refreshing syntax cards or narratives, and bug fixes.
53
+
54
+ ### 1. Version Bump & Changelog Lockstep
55
+
56
+ Update the version string across all 7 single-sourced locations (enforced by `tests/test_packaging.py`):
57
+ 1. `pyproject.toml` (`[project].version`)
58
+ 2. `src/bigquery_data_science/__init__.py` (`PackageNotFoundError` fallback literal)
59
+ 3. `plugin.json` (`"version"`)
60
+ 4. `.claude-plugin/marketplace.json` (`"version"`, `metadata.version`, and each entry in `"plugins"`)
61
+ 5. `CITATION.cff` (`version` and `date-released`)
62
+ 6. `CHANGELOG.md` (`## [X.Y.Z] - YYYY-MM-DD` section)
63
+ 7. `skills/{bigquery-data-science,bigquery-ml,bigquery-ai}/skill.manifest.json` (`"version"`, regenerated via `uv run bigquery-data-science manifest --version X.Y.Z`)
64
+
65
+ Then re-lock with `UV_NO_CONFIG=1 uv lock` and run the full verification gate above.
66
+
67
+ ### 2. Pre-Release Verification on TestPyPI (`vX.Y.Zrc1`)
68
+
69
+ 1. Push an annotated release-candidate tag on `main`:
70
+ ```bash
71
+ git tag -a vX.Y.Zrc1 -m "Release candidate vX.Y.Zrc1"
72
+ git push origin vX.Y.Zrc1
73
+ ```
74
+ 2. `.github/workflows/release.yml` verifies `vX.Y.Zrc1` matches `pyproject.toml` base version `X.Y.Z`, dynamically stamps `X.Y.Zrc1` in the build runner, and publishes to TestPyPI (`testpypi` environment).
75
+ 3. Verify the TestPyPI package in an isolated environment:
76
+ ```bash
77
+ UV_NO_CONFIG=1 uvx \
78
+ --index-url https://test.pypi.org/simple/ \
79
+ --extra-index-url https://pypi.org/simple/ \
80
+ --from bigquery-data-science==X.Y.Zrc1 \
81
+ bigquery-data-science list
82
+ ```
83
+
84
+ ### 3. Production Release on PyPI (`vX.Y.Z`)
85
+
86
+ 1. Push the annotated production tag on `main`:
87
+ ```bash
88
+ git tag -a vX.Y.Z -m "Release vX.Y.Z"
89
+ git push origin vX.Y.Z
90
+ ```
91
+ 2. Approve the `pypi` GitHub Environment deployment in GitHub Actions (`statmike` reviewer gate) to publish to PyPI and automatically create the GitHub Release with `dist/*` attached.
92
+
93
+ ### 4. Patch / Hotfix Releases & CI Refusals
94
+
95
+ - For patch releases (`X.Y.Z+1`), branch from `main` (or from `vX.Y.Z`), apply the fix, bump all 7 version locations, and tag `vX.Y.Z+1`.
96
+ - CI and `release.yml` automatically refuse any build where the 7 version locations disagree, where `README.md` has broken or un-rewritten relative links, where the wheel exceeds `1.5 MB` or contains `.ipynb` files, or where the git tag does not match `pyproject.toml`.
97
+
98
+ ## Contributor License Agreement
99
+
100
+ Contributions to this project must be accompanied by a [Contributor License Agreement](https://cla.developers.google.com/about) (CLA). You (or your employer) retain the copyright to your contribution; this simply gives permission to use and redistribute your contributions as part of the project.
101
+
102
+ If you have not already done so, please complete your CLA at <https://cla.developers.google.com/> before submitting a pull request.
103
+
104
+ ## Community guidelines
105
+
106
+ This project follows [Google's Open Source Community Guidelines](https://opensource.google/conduct/) and [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md).
107
+
108
+ ## License
109
+
110
+ By contributing to `bigquery-data-science`, you agree that your contributions will be licensed under the [Apache License 2.0](LICENSE).
111
+
112
+ This is not an officially supported Google product. It is built on Google products and is neither endorsed nor supported by Google.
@@ -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 [yyyy] [name of copyright owner]
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.