vgi-python 0.8.11__tar.gz → 0.9.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.
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.github/workflows/integration.yml +3 -1
- {vgi_python-0.8.11 → vgi_python-0.9.0}/PKG-INFO +1 -1
- {vgi_python-0.8.11 → vgi_python-0.9.0}/pyproject.toml +1 -1
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_copy_to_function.py +82 -1
- {vgi_python-0.8.11 → vgi_python-0.9.0}/uv.lock +58 -58
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/copy_from.py +58 -2
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/copy_to.py +78 -1
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/worker.py +8 -2
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/copy_from_function.py +22 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/copy_to_function.py +32 -1
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.gitattributes +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.github/dependabot.yml +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.github/styles/config/vocabularies/VGI/accept.txt +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.github/workflows/ci.yml +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.github/workflows/docs.yml +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.github/workflows/release.yml +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.gitignore +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.python-version +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/.vale.ini +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/CLAUDE.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/DOCS_ACCEPTANCE_CRITERIA.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/DOCS_REVIEW_RUBRIC.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/DOCS_USABILITY_TEST.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/LICENSE +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/README.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/SECURITY.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/ci/README.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/ci/preprocess-require.awk +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/ci/run-integration.sh +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/dist-vgi/.gitignore +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/aggregate-functions.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/arguments.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/auth.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/catalogs.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/client.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/exceptions.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/filters.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/functions.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/http.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/index.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/metadata.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/observability.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/storage.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/transactor.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/api/worker.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/argument-serialization.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/apple-touch-icon.png +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/favicon-16x16.png +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/favicon-32x32.png +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/favicon.ico +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/kinds/aggregate.svg +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/kinds/buffering.svg +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/kinds/scalar.svg +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/kinds/table-in-out.svg +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/kinds/table.svg +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/logo.png +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/assets/social-card.png +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/authentication.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/catalog-interface.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/cli.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/column-statistics.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/concepts/index.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/contributing-docs.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/filter-pushdown.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/generator-api.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/how-to/catalogs.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/how-to/function-patterns.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/how-to/http-auth.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/how-to/index.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/how-to/pushdown-and-statistics.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/how-to/state-storage.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/index.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/lifecycle.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/metadata.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/overrides/main.html +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/robots.txt +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/shared-storage.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/stylesheets/extra.css +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/tutorial/index.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/tutorial/scalar.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/tutorial/table.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/docs/vgi-logo.png +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/examples/calc_scalar_worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/examples/calc_worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/examples/filter_worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/examples/greeting_scalar_worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/examples/row_count_worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/examples/series_streaming_worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/examples/sum_worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/mkdocs.yml +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/packages/vgi-fixtures/LICENSE +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/packages/vgi-fixtures/README.md +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/packages/vgi-fixtures/docker/Dockerfile +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/packages/vgi-fixtures/docker/docker-entrypoint.sh +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/packages/vgi-fixtures/pyproject.toml +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/scripts/measure_startup.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/scripts/run_all_tests.sh +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/test-data/generate.sh +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/_http_fixtures.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_catalog_interface.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_client_catalog.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_column_statistics.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_declarative.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_example_worker_catalog.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_integration.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_required_field_filter_paths.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_scan_branches.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_serialization.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_setting.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_storage.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_time_travel.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/catalog/test_writable_table.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/client/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/client/test_broken_pipe.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/client/test_cli.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/client/test_cli_catalog_functions.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/client/test_worker_debug.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/_stub.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/conftest.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_accumulate.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_aggregate.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_attach.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_bearer_auth.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_directory_parity.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_function_inventory.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_http_client.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_http_external_location.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_http_upload_url.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_macro.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_overload.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_protocol_inventory.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_protocol_version.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_resumable_scan.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_scalar.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_scalar_attach_opaque_data.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_secret.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_settings.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_table.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_table_in_out.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_view.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conformance/test_writable.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/conftest.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/test_bernoulli_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/test_binary_packet_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/test_client.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/test_conditional_message_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/test_hash_seed_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/test_multiply_by_setting_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/test_multiply_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/test_random_bytes_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/scalar/test_return_secret_value_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_constant_columns_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_double_sequence_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_exception_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_filter_echo_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_logging_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_nested_sequence_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_partitioned_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_projected_data_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_sequence_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_settings_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_struct_settings_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table/generator/test_ten_thousand_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table_in_out/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table_in_out/generator/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table_in_out/generator/test_buffer_input_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table_in_out/generator/test_echo_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table_in_out/generator/test_exception_functions.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table_in_out/generator/test_filter_by_setting_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table_in_out/generator/test_repeat_inputs_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table_in_out/generator/test_sum_all_columns_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/table_in_out/test_client.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_access_log_audit.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_aggregate_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_argument_spec.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_auth.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_bind_exceptions.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_bind_request_at_clause.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_bound_storage_conformance.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_catalog_auth_binding.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_copy_from_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_docstrings.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_documentation_examples.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_example_function_arg_types.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_examples_workers.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_exception_handling.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_exceptions.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_filter_pushdown.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_filter_pushdown_extension.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_function_storage.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_function_storage_azure_sql.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_function_storage_cf_do.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_function_storage_cf_do_integration.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_function_storage_conformance.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_cpp_constants.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_cpp_protocol_version.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_cpp_request_builders.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_cpp_schemas.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_cpp_secret.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_go_schemas.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_protocol_version.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_schemas_cross_lang.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_ts_client.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_generated_ts_schemas.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_http_demo_storage.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_http_s3_offload_input.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_http_s3_offload_output.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_metadata.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_mypy_consolidated.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_nest_tensor.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_otel.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_projection_enforcement.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_projection_repro.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_protocol_classes.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_resolved_secrets.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_schema_utils.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_serve.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_setting_secret_annotations.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_table_buffering_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_table_function_dynamic_to_string.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_tcp_transport.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_type_bounds.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_union_argument.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_worker_cli.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/test_worker_page.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/transactor/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/tests/transactor/test_transactor.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_duckdb.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_storage_profile.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/accumulate/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/accumulate/worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/_common.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/basic.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/dynamic.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/generic.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/listagg.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/percentile.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/streaming.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/varargs.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/aggregate/window.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/attach_options.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/bad_enum.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/bad_protocol.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/cancellable.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/catalog.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/http_server.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/narrow_bind/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/narrow_bind/worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/nest_tensor.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/orchard_catalog.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/projection_repro/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/projection_repro/worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/_common.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/arithmetic.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/binary.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/formatting.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/geo.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/null_handling.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/random_demo.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/settings_secrets.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/scalar/type_info.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/schema_reconcile/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/schema_reconcile/worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/simple_writable.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/_common.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/batch_index.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/batch_index_broken.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/catalog_scans.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/filters.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/late_materialization.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/make_series.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/misc.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/order_modes.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/pairs.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/partition_columns.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/partition_columns_broken.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/profiling_example.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/required_filters.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/sequence.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/settings.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/transaction_storage.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/tt_pushdown.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/typed_probe.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table/versioned.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/table_in_out.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/versioned.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/versioned_tables.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/writable/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/writable/generic.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/writable/table.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/_test_fixtures/writable/worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/aggregate_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/argument_spec.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/arguments.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/auth.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/catalog/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/catalog/_descriptor_spec.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/catalog/attach_option.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/catalog/catalog_interface.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/catalog/descriptors.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/catalog/duckdb_statistics.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/catalog/secret_type.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/catalog/setting.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/catalog/storage.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/catalog_mixin.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/cli.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/cli_catalog.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/cli_schema.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/cli_table.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/cli_transaction.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/cli_utils.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/cli_view.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/client/client.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/_common.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/cpp_constants.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/cpp_protocol_version.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/cpp_request_builders.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/cpp_schemas.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/cpp_secret_protocol_version.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/cpp_secret_request_builders.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/cpp_secret_schemas.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/go_schemas.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/protocol_version.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/ts_client.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/codegen/ts_schemas.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/exceptions.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/function_storage.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/function_storage_azure_sql.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/function_storage_cf_do.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/http/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/http/demo_storage.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/http/worker_page.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/invocation.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/logging_config.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/meta_worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/metadata.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/otel.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/protocol.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/protocol_version.txt +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/py.typed +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/scalar_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/schema_utils.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/secret_protocol.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/secret_service.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/serve.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/table_buffering_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/table_filter_pushdown.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/table_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/table_in_out_function.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/transactor/__init__.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/transactor/_duckdb_compat.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/transactor/client.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/transactor/protocol.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/transactor/server.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/vgi/worker.py +0 -0
- {vgi_python-0.8.11 → vgi_python-0.9.0}/wrangler.jsonc +0 -0
|
@@ -39,7 +39,9 @@ jobs:
|
|
|
39
39
|
runs-on: ubuntu-latest
|
|
40
40
|
timeout-minutes: 45
|
|
41
41
|
strategy:
|
|
42
|
-
|
|
42
|
+
# If any transport leg fails, cancel the rest — one broken transport means
|
|
43
|
+
# the build is broken; no value in burning ~45 min finishing the others.
|
|
44
|
+
fail-fast: true
|
|
43
45
|
matrix:
|
|
44
46
|
include:
|
|
45
47
|
# stdio: the subprocess transport (whole suite — the primary lane).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vgi-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: Vector Gateway Interface - Connect DuckDB to external programs via Apache Arrow
|
|
5
5
|
Project-URL: Homepage, https://query.farm
|
|
6
6
|
Project-URL: Repository, https://github.com/Query-farm/vgi-python
|
|
@@ -9,8 +9,14 @@ import types
|
|
|
9
9
|
|
|
10
10
|
import pyarrow as pa
|
|
11
11
|
|
|
12
|
-
from vgi._test_fixtures.copy_to import
|
|
12
|
+
from vgi._test_fixtures.copy_to import (
|
|
13
|
+
ExampleLinesCopyToArgs,
|
|
14
|
+
ExampleLinesCopyToFunction,
|
|
15
|
+
SecretLinesCopyToArgs,
|
|
16
|
+
SecretLinesCopyToFunction,
|
|
17
|
+
)
|
|
13
18
|
from vgi._test_fixtures.worker import ExampleCatalog
|
|
19
|
+
from vgi.table_function import ResolvedSecrets, SecretsAccessor
|
|
14
20
|
|
|
15
21
|
SCHEMA = pa.schema([("a", pa.int64()), ("b", pa.string())])
|
|
16
22
|
|
|
@@ -100,6 +106,81 @@ def test_close_empty_input_with_header_writes_header_only() -> None:
|
|
|
100
106
|
assert _read(out_name) == "a,b\n"
|
|
101
107
|
|
|
102
108
|
|
|
109
|
+
# ---------------------------------------------------------------------------
|
|
110
|
+
# Secret forwarding (CopyToFunction.on_secrets hook)
|
|
111
|
+
# ---------------------------------------------------------------------------
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def _secret_params(store: _Store, secrets: ResolvedSecrets) -> types.SimpleNamespace:
|
|
115
|
+
"""A TableBufferingParams-shaped stub carrying resolved secrets for write/close."""
|
|
116
|
+
bind_call = types.SimpleNamespace(input_schema=SCHEMA)
|
|
117
|
+
init_call = types.SimpleNamespace(bind_call=bind_call)
|
|
118
|
+
return types.SimpleNamespace(storage=store, init_call=init_call, execution_id=b"x", secrets=secrets)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def test_on_secrets_requests_destination_scoped_secret() -> None:
|
|
122
|
+
"""on_secrets() registers a pending lookup scoped to the COPY destination path."""
|
|
123
|
+
accessor = SecretsAccessor(None) # nothing resolved yet → first-call behavior
|
|
124
|
+
params = types.SimpleNamespace(
|
|
125
|
+
args=SecretLinesCopyToArgs(), # default secret_type='vgi_example'
|
|
126
|
+
bind_call=types.SimpleNamespace(copy_to=types.SimpleNamespace(file_path="s3://bucket/out.bin")),
|
|
127
|
+
secrets=accessor,
|
|
128
|
+
)
|
|
129
|
+
SecretLinesCopyToFunction.on_secrets(params)
|
|
130
|
+
# The hook must have asked the framework for a scoped two-phase resolution.
|
|
131
|
+
assert accessor.needs_resolution
|
|
132
|
+
pending = accessor.pending_lookups
|
|
133
|
+
assert len(pending) == 1
|
|
134
|
+
assert pending[0].secret_type == "vgi_example"
|
|
135
|
+
assert pending[0].scope == "s3://bucket/out.bin"
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def test_close_forwards_resolved_secret_api_key() -> None:
|
|
139
|
+
"""close() writes the resolved (destination-scoped) secret's api_key + row count."""
|
|
140
|
+
store = _Store()
|
|
141
|
+
out_name = _tmp_path()
|
|
142
|
+
secrets = ResolvedSecrets(
|
|
143
|
+
{
|
|
144
|
+
"writer_creds": {
|
|
145
|
+
"type": pa.scalar("vgi_example"),
|
|
146
|
+
"scope": pa.scalar(out_name),
|
|
147
|
+
"api_key": pa.scalar("WRITER_KEY"),
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
params = _secret_params(store, secrets)
|
|
152
|
+
opts = SecretLinesCopyToArgs()
|
|
153
|
+
|
|
154
|
+
SecretLinesCopyToFunction.write(
|
|
155
|
+
batch=pa.record_batch({"a": [1, 2], "b": ["x", "y"]}, schema=SCHEMA),
|
|
156
|
+
options=opts,
|
|
157
|
+
file_path=out_name,
|
|
158
|
+
params=params,
|
|
159
|
+
)
|
|
160
|
+
n = SecretLinesCopyToFunction.close(options=opts, file_path=out_name, params=params)
|
|
161
|
+
assert n == 2
|
|
162
|
+
assert _read(out_name) == "api_key=WRITER_KEY\nrows=2\n"
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def test_close_writes_none_when_secret_absent() -> None:
|
|
166
|
+
"""A genuinely missing secret resolves to 'NONE' (silent miss, not an error)."""
|
|
167
|
+
store = _Store()
|
|
168
|
+
out_name = _tmp_path()
|
|
169
|
+
params = _secret_params(store, ResolvedSecrets())
|
|
170
|
+
opts = SecretLinesCopyToArgs()
|
|
171
|
+
n = SecretLinesCopyToFunction.close(options=opts, file_path=out_name, params=params)
|
|
172
|
+
assert n == 0
|
|
173
|
+
assert _read(out_name) == "api_key=NONE\nrows=0\n"
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
def test_catalog_advertises_secret_lines_out_format() -> None:
|
|
177
|
+
"""The secret-forwarding writer is advertised like any other COPY TO format."""
|
|
178
|
+
formats = ExampleCatalog().copy_from_formats(attach_opaque_data=b"", transaction_opaque_data=None)
|
|
179
|
+
by = {(f.direction, f.format_name): f for f in formats}
|
|
180
|
+
assert ("to", "secret_lines_out") in by
|
|
181
|
+
assert by[("to", "secret_lines_out")].handler == "secret_lines_writer"
|
|
182
|
+
|
|
183
|
+
|
|
103
184
|
def test_catalog_advertises_copy_to_format() -> None:
|
|
104
185
|
"""The example catalog advertises example_lines_out with direction='to'."""
|
|
105
186
|
formats = ExampleCatalog().copy_from_formats(attach_opaque_data=b"", transaction_opaque_data=None)
|
|
@@ -384,14 +384,14 @@ wheels = [
|
|
|
384
384
|
|
|
385
385
|
[[package]]
|
|
386
386
|
name = "click"
|
|
387
|
-
version = "8.4.
|
|
387
|
+
version = "8.4.2"
|
|
388
388
|
source = { registry = "https://pypi.org/simple" }
|
|
389
389
|
dependencies = [
|
|
390
390
|
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
|
391
391
|
]
|
|
392
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
392
|
+
sdist = { url = "https://files.pythonhosted.org/packages/76/d4/81420972a676e8ffea40450d8c8c92943e7218a78fe9b64359836cc9876b/click-8.4.2.tar.gz", hash = "sha256:9a6cea6e60b17ebe0a44c5cc636d94f09bd66142c1cd7d8b4cd731c4917a15f6", size = 338000, upload-time = "2026-06-24T17:45:15.148Z" }
|
|
393
393
|
wheels = [
|
|
394
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
394
|
+
{ url = "https://files.pythonhosted.org/packages/fb/e2/79c688af8b210d232694e31e59da9f6ec747bae31c3f5946e4e9b98860d5/click-8.4.2-py3-none-any.whl", hash = "sha256:e6f9f66136c816745b9d65817da91d61d957fb16e02e4dcd0552553c5a197b76", size = 119243, upload-time = "2026-06-24T17:45:13.73Z" },
|
|
395
395
|
]
|
|
396
396
|
|
|
397
397
|
[[package]]
|
|
@@ -1558,14 +1558,14 @@ wheels = [
|
|
|
1558
1558
|
|
|
1559
1559
|
[[package]]
|
|
1560
1560
|
name = "pyarrow-stubs"
|
|
1561
|
-
version = "20.0.0.
|
|
1561
|
+
version = "20.0.0.20260625"
|
|
1562
1562
|
source = { registry = "https://pypi.org/simple" }
|
|
1563
1563
|
dependencies = [
|
|
1564
1564
|
{ name = "pyarrow" },
|
|
1565
1565
|
]
|
|
1566
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
1566
|
+
sdist = { url = "https://files.pythonhosted.org/packages/ff/7d/a3eadf94131428ec61b44bc40a52acca2b093bf0f6a90a0596c44aa9fe62/pyarrow_stubs-20.0.0.20260625.tar.gz", hash = "sha256:cae81ae0900d0710e5b8a6271fef34ccfacb08663bb5f805d94f129baf13130e", size = 237707, upload-time = "2026-06-25T07:27:47.496Z" }
|
|
1567
1567
|
wheels = [
|
|
1568
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1568
|
+
{ url = "https://files.pythonhosted.org/packages/29/65/00bb68d5951a1b758646fd33bca1735aebb6d9ed7184f260e1c1d17e6d97/pyarrow_stubs-20.0.0.20260625-py3-none-any.whl", hash = "sha256:26d8b6c0fa9d61ae49ad70d59988d8b88e2fe022cd782dd3333bcd33e6066486", size = 235701, upload-time = "2026-06-25T07:27:48.793Z" },
|
|
1569
1569
|
]
|
|
1570
1570
|
|
|
1571
1571
|
[[package]]
|
|
@@ -1673,15 +1673,15 @@ crypto = [
|
|
|
1673
1673
|
|
|
1674
1674
|
[[package]]
|
|
1675
1675
|
name = "pymdown-extensions"
|
|
1676
|
-
version = "
|
|
1676
|
+
version = "11.0"
|
|
1677
1677
|
source = { registry = "https://pypi.org/simple" }
|
|
1678
1678
|
dependencies = [
|
|
1679
1679
|
{ name = "markdown" },
|
|
1680
1680
|
{ name = "pyyaml" },
|
|
1681
1681
|
]
|
|
1682
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
1682
|
+
sdist = { url = "https://files.pythonhosted.org/packages/47/67/f1e79672a5f91985577c7984c9709ca110e4fd37fe7fd167b60422e6ccc2/pymdown_extensions-11.0.tar.gz", hash = "sha256:8269cef0247f9e2d0a62fcea10860aba05c1cbab5470fd4b63230b96434dc589", size = 857049, upload-time = "2026-06-23T02:27:45.146Z" }
|
|
1683
1683
|
wheels = [
|
|
1684
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1684
|
+
{ url = "https://files.pythonhosted.org/packages/af/b6/1ae53367e28b9cffa3be7574e13fbe4589694272fd47710fbdbafd3d63c6/pymdown_extensions-11.0-py3-none-any.whl", hash = "sha256:fbc4acb641814fa9d17521bbd21a5240ef739a662f11c06330c4b78c93e954d6", size = 269415, upload-time = "2026-06-23T02:27:43.826Z" },
|
|
1685
1685
|
]
|
|
1686
1686
|
|
|
1687
1687
|
[[package]]
|
|
@@ -2061,27 +2061,27 @@ wheels = [
|
|
|
2061
2061
|
|
|
2062
2062
|
[[package]]
|
|
2063
2063
|
name = "ruff"
|
|
2064
|
-
version = "0.15.
|
|
2065
|
-
source = { registry = "https://pypi.org/simple" }
|
|
2066
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
2067
|
-
wheels = [
|
|
2068
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2069
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2070
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2071
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2072
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2073
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2074
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2075
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2076
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2077
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2078
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2079
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2080
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2081
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2082
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2083
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2084
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2064
|
+
version = "0.15.20"
|
|
2065
|
+
source = { registry = "https://pypi.org/simple" }
|
|
2066
|
+
sdist = { url = "https://files.pythonhosted.org/packages/43/dc/35b341fc554ba02f217fc10da57d1a75168cfbcf75b0ef2202176d4c4f2d/ruff-0.15.20.tar.gz", hash = "sha256:1416eb04349192646b54de98f146c4f59afe37d0decfc02c3cbbf396f3a28566", size = 4755489, upload-time = "2026-06-25T17:20:37.578Z" }
|
|
2067
|
+
wheels = [
|
|
2068
|
+
{ url = "https://files.pythonhosted.org/packages/94/d9/2d5014f0253ba541d2061d9fa7193f48e941c8b21bb88a7ff9bbe0bd0596/ruff-0.15.20-py3-none-linux_armv6l.whl", hash = "sha256:00e188c53e499c3c1637f73c91dcf2fb56d576cab76ce1be50a27c4e80e37078", size = 10839665, upload-time = "2026-06-25T17:19:44.702Z" },
|
|
2069
|
+
{ url = "https://files.pythonhosted.org/packages/c6/d3/ac1798ba64f670698867fcfc591d50e7e421bef137db564858f619a30fcf/ruff-0.15.20-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:9ebd1fd9b9c95fc0bd7b2761aebec1f030013d2e193a2901b224af68fe47251b", size = 11208649, upload-time = "2026-06-25T17:19:48.787Z" },
|
|
2070
|
+
{ url = "https://files.pythonhosted.org/packages/47/47/d3ac899991202095dfcf3d5176be4272642be3cf981a2f1a30f72a2afb95/ruff-0.15.20-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c5b16cdd67ca108185cd36dce98c576350c03b1660a751de725fb049193a0632", size = 10622638, upload-time = "2026-06-25T17:19:51.354Z" },
|
|
2071
|
+
{ url = "https://files.pythonhosted.org/packages/33/13/4e043fe30aa94d4ff5213a9881fc296d12960f5971b234a5263fdc225312/ruff-0.15.20-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3413bb3c3d2ca6a8208f1f4809cd2dca3c6de6d0b491c0e70847672bde6e6efd", size = 10984227, upload-time = "2026-06-25T17:19:54.044Z" },
|
|
2072
|
+
{ url = "https://files.pythonhosted.org/packages/76/e6/92e7bf40388bc5800073b96564f56264f7e48bfd1a498f5ced6ae6d5a769/ruff-0.15.20-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bd7ec42b3bb3da066488db093308a69c4ac5ee6d2af333a86ba6e2eb2e7dd44b", size = 10622882, upload-time = "2026-06-25T17:19:57.037Z" },
|
|
2073
|
+
{ url = "https://files.pythonhosted.org/packages/13/7a/43460be3f24495a3aa46d4b16873e2c4941b3b5f0b00cf88c03b7b94b339/ruff-0.15.20-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e1a36ad0eb77fba9aabfb69ede54de6f376d04ac18ebea022847046d340a8267", size = 11474808, upload-time = "2026-06-25T17:20:00.357Z" },
|
|
2074
|
+
{ url = "https://files.pythonhosted.org/packages/27/a0/f37077884873221c6b33b4ab49eb18f9f88e54a16a25a5bca59bef46dd66/ruff-0.15.20-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b6df3b1e4610432f0386dba04d853b5f08cbbc903410c6fcc02f620f05aff53c", size = 12293094, upload-time = "2026-06-25T17:20:03.446Z" },
|
|
2075
|
+
{ url = "https://files.pythonhosted.org/packages/a6/74/165545b60256a9704c21ac0ec4a0d07933b320812f9584836c9f4aca4292/ruff-0.15.20-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e89f198a1ea6ef0d727c1cf16088bc91a6cb0ab947dedc966715691647186eae", size = 11526176, upload-time = "2026-06-25T17:20:06.301Z" },
|
|
2076
|
+
{ url = "https://files.pythonhosted.org/packages/86/b1/a976a136d40ade83ce743578399865f57001003a409acadc0ecbb3051082/ruff-0.15.20-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:309809086c2acb67624950a3c8133e80f32d0d3e27106c0cd60ff26657c9f24b", size = 11520767, upload-time = "2026-06-25T17:20:09.191Z" },
|
|
2077
|
+
{ url = "https://files.pythonhosted.org/packages/19/0f/f032696cb01c9b54c0263fa393474d7758f1cdc021a01b04e3cbc2500999/ruff-0.15.20-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:2d2374caa2f2c2f9e2b7da0a50802cfb8b79f55a9b5e49379f564544fbf56487", size = 11500132, upload-time = "2026-06-25T17:20:13.602Z" },
|
|
2078
|
+
{ url = "https://files.pythonhosted.org/packages/4b/f4/51b1a14bc69e8c224b15dab9cce8e99b425e0455d462caa2b3c9be2b6a8e/ruff-0.15.20-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a1ed17b65293e0c2f22fc387bc13198a5de94bf4429589b0ff6946b0feaf21a3", size = 10943828, upload-time = "2026-06-25T17:20:16.635Z" },
|
|
2079
|
+
{ url = "https://files.pythonhosted.org/packages/71/4b/fe267640783cd02bf6c5cc290b1df1051be2ec294c678b5c15fe19e52343/ruff-0.15.20-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:f701305e66b38ea6c91882490eb73459796808e4c6362a1b765255e0cdcd4053", size = 10645418, upload-time = "2026-06-25T17:20:19.4Z" },
|
|
2080
|
+
{ url = "https://files.pythonhosted.org/packages/b0/c0/a65aa4ec2f5e87a1df32dc3ec1fede434fe3dfd5cbcf3b503cafc676ab54/ruff-0.15.20-py3-none-musllinux_1_2_i686.whl", hash = "sha256:5b9c0c367ad8e5d0d5b5b8537864c469a0a0e55417aadfbeca41fa61333be9f4", size = 11211770, upload-time = "2026-06-25T17:20:22.033Z" },
|
|
2081
|
+
{ url = "https://files.pythonhosted.org/packages/5a/a4/0caa331d954ae2723d729d351c989cb4ca8b6077d5c6c2cb6de75e98c041/ruff-0.15.20-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:01cc00dd58f0df339d0e902219dd53990ea99996a0344e5d9cc8d45d5307e460", size = 11618698, upload-time = "2026-06-25T17:20:25.259Z" },
|
|
2082
|
+
{ url = "https://files.pythonhosted.org/packages/10/9b/5f14927848d2fd4aa891fd88d883788c5a7baba561c7874732364045708c/ruff-0.15.20-py3-none-win32.whl", hash = "sha256:ed65ef510e43a137207e0f01cfcf998aeddb1aeeda5c9d35023e910284d7cf21", size = 10857322, upload-time = "2026-06-25T17:20:28.612Z" },
|
|
2083
|
+
{ url = "https://files.pythonhosted.org/packages/fa/f0/fe47c501f9dea92a26d788ff98bb5d92ed4cb4c88792c5c88af6b697dc8e/ruff-0.15.20-py3-none-win_amd64.whl", hash = "sha256:a525c81c70fb0380344dd1d8745d8cc1c890b7fc94a58d5a07bd8eb9557b8415", size = 11993274, upload-time = "2026-06-25T17:20:31.871Z" },
|
|
2084
|
+
{ url = "https://files.pythonhosted.org/packages/d7/2b/9555445e1201d92b3195f45cdb153a0b68f24e0a4273f6e3d5ab46e212bb/ruff-0.15.20-py3-none-win_arm64.whl", hash = "sha256:2f5b2a6d614e8700388806a14996c40fab2c47b819ef57d790a34878858ed9ca", size = 11343498, upload-time = "2026-06-25T17:20:35.03Z" },
|
|
2085
2085
|
]
|
|
2086
2086
|
|
|
2087
2087
|
[[package]]
|
|
@@ -2117,11 +2117,11 @@ wheels = [
|
|
|
2117
2117
|
|
|
2118
2118
|
[[package]]
|
|
2119
2119
|
name = "sqlglot"
|
|
2120
|
-
version = "30.
|
|
2120
|
+
version = "30.12.0"
|
|
2121
2121
|
source = { registry = "https://pypi.org/simple" }
|
|
2122
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
2122
|
+
sdist = { url = "https://files.pythonhosted.org/packages/43/ed/a6c45aec29353b6392ea34548c40af3ac6ffd6bc5572cf23b2ce250876fc/sqlglot-30.12.0.tar.gz", hash = "sha256:6b8369704662d4f654bc934cea4dd31c916c2a571b389210cb9e951a275e5fd9", size = 5905110, upload-time = "2026-06-26T14:09:40.408Z" }
|
|
2123
2123
|
wheels = [
|
|
2124
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2124
|
+
{ url = "https://files.pythonhosted.org/packages/db/9e/82a390ecc85f066ff80affa01d195f744e3de60ad4d695b8de31c9a66da3/sqlglot-30.12.0-py3-none-any.whl", hash = "sha256:86cccc610073c645c03e72b55b60ae0518aa3253a7fc3bd56551370d003c6554", size = 707583, upload-time = "2026-06-26T14:09:38.525Z" },
|
|
2125
2125
|
]
|
|
2126
2126
|
|
|
2127
2127
|
[[package]]
|
|
@@ -2135,32 +2135,32 @@ wheels = [
|
|
|
2135
2135
|
|
|
2136
2136
|
[[package]]
|
|
2137
2137
|
name = "ty"
|
|
2138
|
-
version = "0.0.
|
|
2139
|
-
source = { registry = "https://pypi.org/simple" }
|
|
2140
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
2141
|
-
wheels = [
|
|
2142
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2143
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2144
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2145
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2146
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2147
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2148
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2149
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2150
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2151
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2152
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2153
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2154
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2155
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2156
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2157
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2158
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2138
|
+
version = "0.0.55"
|
|
2139
|
+
source = { registry = "https://pypi.org/simple" }
|
|
2140
|
+
sdist = { url = "https://files.pythonhosted.org/packages/08/48/f687c8d268e3581f2f104d1f2ac5944d5b5e841b3695c613b3f263e5bbf7/ty-0.0.55.tar.gz", hash = "sha256:88ca87073825a79a8327c550efcc86cec94344890244c5946f84c9e44a969f31", size = 6040230, upload-time = "2026-06-27T00:27:29.385Z" }
|
|
2141
|
+
wheels = [
|
|
2142
|
+
{ url = "https://files.pythonhosted.org/packages/87/a3/1a90ba7e5a61c6d09adb92346ddba97668095fc257b577af433e5ac4f404/ty-0.0.55-py3-none-linux_armv6l.whl", hash = "sha256:31e83eef512d066542fe990fe1a3b814423abd1616376c54e48af7045b3e1749", size = 11677249, upload-time = "2026-06-27T00:26:52.18Z" },
|
|
2143
|
+
{ url = "https://files.pythonhosted.org/packages/82/3a/669f9aa478c38243e213a2684db1502086026cfadc15bb1b29b7cbde030d/ty-0.0.55-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:ab4bca857950608fea73e269e2da369d43e6467131de85160d68e2fa466fa248", size = 11444180, upload-time = "2026-06-27T00:26:54.576Z" },
|
|
2144
|
+
{ url = "https://files.pythonhosted.org/packages/15/a4/6a4b2507a53ce6530c66c5b4fe0d58551eb1748ffa9e0696c32fdd55bbd4/ty-0.0.55-py3-none-macosx_11_0_arm64.whl", hash = "sha256:55032bfd31bf2c5355ee81bdc6407b144a1cc7ee41e5681dd1368e4cef2ba327", size = 10963134, upload-time = "2026-06-27T00:26:57.348Z" },
|
|
2145
|
+
{ url = "https://files.pythonhosted.org/packages/ce/ae/a3b1a0f1cc83b7d258662cb98aa80a720c2e671d0e8fa0d17a4d5d057a7a/ty-0.0.55-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ef1e049f69ce65b3c269af67624607f435e1c32319786c1e453ef9611502f295", size = 11493517, upload-time = "2026-06-27T00:26:59.26Z" },
|
|
2146
|
+
{ url = "https://files.pythonhosted.org/packages/0d/9f/311ce39065a979ef40a9b847f685c8e02464e53adf1671e081eea90640ca/ty-0.0.55-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:631409975c681d5a280fc5a99b7b32e9e801f33be7567c6b42ec331362f59d7d", size = 11460590, upload-time = "2026-06-27T00:27:01.425Z" },
|
|
2147
|
+
{ url = "https://files.pythonhosted.org/packages/cd/8f/3bf29aa77bd78aae48275153135a2052fa7d3ccdf1ecabeb99c8773abd66/ty-0.0.55-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e08cb0436e68b9351555ae8f2697138c9009b4d5b4ae4272232988b2a431a98f", size = 12098430, upload-time = "2026-06-27T00:27:03.596Z" },
|
|
2148
|
+
{ url = "https://files.pythonhosted.org/packages/bc/6e/e88411a88240b94640bba06fb6d0d92b247fbeef47ee2bc71f39e58c2558/ty-0.0.55-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:16c215ad9f823829409b94ee188cfaa4563f6e1384f6ce3fecb1db75f6c7cf7c", size = 12673086, upload-time = "2026-06-27T00:27:05.589Z" },
|
|
2149
|
+
{ url = "https://files.pythonhosted.org/packages/6c/7e/8f1762fb7f9245a68ba5ae338d73c59403ce57554e5d311b8bb55027b0ec/ty-0.0.55-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b510eb8f4032baf11b7aee2f1d53babc3b4ca03939b9cdcf6a9d15761d575188", size = 12242559, upload-time = "2026-06-27T00:27:07.714Z" },
|
|
2150
|
+
{ url = "https://files.pythonhosted.org/packages/72/1f/143657daf2670d977dac83435f1fe03d4843efb798d8e1e75950e541aadd/ty-0.0.55-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0ddc05e7959709c3b9b83aa627128a80446865e3c1a4882638dcff6d776dc34a", size = 12021409, upload-time = "2026-06-27T00:27:09.881Z" },
|
|
2151
|
+
{ url = "https://files.pythonhosted.org/packages/6d/30/69487c439dd1fad3a4a3d96f0a472193de297eaba6fc4b8ea687ce434ac2/ty-0.0.55-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:636e8e5078787b8c6916c94e1406719f10189a4ca6b37b813a5922ce5857a8c7", size = 12303807, upload-time = "2026-06-27T00:27:11.986Z" },
|
|
2152
|
+
{ url = "https://files.pythonhosted.org/packages/e8/ca/cd88b6493dafc7db077f5e17c0438eb3af6e2d6d08f616dbb52a8ddfd567/ty-0.0.55-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:ef7d6deaacb73fec603666b5471f1dc5a5699aa84e11a6d4d644dd07ca72121e", size = 11441263, upload-time = "2026-06-27T00:27:14.087Z" },
|
|
2153
|
+
{ url = "https://files.pythonhosted.org/packages/aa/fe/66b6915671653ab739f71e4f1b0528e69da64429b7ebf3840c625b6e43f2/ty-0.0.55-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:9aeea0fe5875d3cf37faf0e44d0fdf9669335467749741b8fc0103916fb5cd32", size = 11484584, upload-time = "2026-06-27T00:27:16.311Z" },
|
|
2154
|
+
{ url = "https://files.pythonhosted.org/packages/4a/4f/7a9c0bbac8b899e9f6c0ec110c6612f52e4db35f6bb17ddc0ef60384fa3e/ty-0.0.55-py3-none-musllinux_1_2_i686.whl", hash = "sha256:0b699c01310dbd2705a07c97c5f4aaeedef61bd9adeea2e7c46aed32401d3576", size = 11759309, upload-time = "2026-06-27T00:27:18.471Z" },
|
|
2155
|
+
{ url = "https://files.pythonhosted.org/packages/ca/de/b6f8b1b69aa631b5716ef3f985c3b56de0e46c2499cc00d30c402b41f714/ty-0.0.55-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:32cbeba543e46de2a983ec6d525d8b56514f7422bd1e1b57c44ccf7bfa72c38a", size = 12128755, upload-time = "2026-06-27T00:27:20.55Z" },
|
|
2156
|
+
{ url = "https://files.pythonhosted.org/packages/7d/90/a912531e51ee7e076b42972479290fa687c0f5e747b7e773f3033164acaa/ty-0.0.55-py3-none-win32.whl", hash = "sha256:52b968e24eb4f7a5c3bd251db1f99f60dd385890356d38fc619d84f1b423446a", size = 11117501, upload-time = "2026-06-27T00:27:22.714Z" },
|
|
2157
|
+
{ url = "https://files.pythonhosted.org/packages/4c/7a/99d59843bf8908a7f9f4d13fda107dbad07b7faa28ecd7860eacf363fb1c/ty-0.0.55-py3-none-win_amd64.whl", hash = "sha256:bf39cbfdc0add44d94bd3fff1f53c351418d134b6a66b87efdb7876d7b7a2224", size = 12150106, upload-time = "2026-06-27T00:27:24.881Z" },
|
|
2158
|
+
{ url = "https://files.pythonhosted.org/packages/b3/44/20987505cedf2a865b08482f0eabc181fd9599b062964057ec8a128a4296/ty-0.0.55-py3-none-win_arm64.whl", hash = "sha256:f7f3700a9a060e8f1af11e4fb63fafcaf272b041781f4ccdfda2b3b5c6c1e439", size = 11560157, upload-time = "2026-06-27T00:27:27.332Z" },
|
|
2159
2159
|
]
|
|
2160
2160
|
|
|
2161
2161
|
[[package]]
|
|
2162
2162
|
name = "typer"
|
|
2163
|
-
version = "0.26.
|
|
2163
|
+
version = "0.26.8"
|
|
2164
2164
|
source = { registry = "https://pypi.org/simple" }
|
|
2165
2165
|
dependencies = [
|
|
2166
2166
|
{ name = "annotated-doc" },
|
|
@@ -2168,9 +2168,9 @@ dependencies = [
|
|
|
2168
2168
|
{ name = "rich" },
|
|
2169
2169
|
{ name = "shellingham" },
|
|
2170
2170
|
]
|
|
2171
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
2171
|
+
sdist = { url = "https://files.pythonhosted.org/packages/7c/f7/68adc395201b20b872d68e975386832e8005ffeacedd43a1d837a32815be/typer-0.26.8.tar.gz", hash = "sha256:c244a6bd558886fe3f8780efb6bdd28bb9aff005a94eedebaa5cb32926fe2f7e", size = 202097, upload-time = "2026-06-26T09:22:45.705Z" }
|
|
2172
2172
|
wheels = [
|
|
2173
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2173
|
+
{ url = "https://files.pythonhosted.org/packages/80/87/b9fd69c92c6102a066e1b86a35243f53e70bd4c709f2a26d9f4fee4f4dc0/typer-0.26.8-py3-none-any.whl", hash = "sha256:3512ca79ac5c11113414b36e80281b872884477722440691c89d1112e321a49c", size = 122564, upload-time = "2026-06-26T09:22:44.72Z" },
|
|
2174
2174
|
]
|
|
2175
2175
|
|
|
2176
2176
|
[[package]]
|
|
@@ -2228,7 +2228,7 @@ requires-dist = [
|
|
|
2228
2228
|
|
|
2229
2229
|
[[package]]
|
|
2230
2230
|
name = "vgi-python"
|
|
2231
|
-
version = "0.
|
|
2231
|
+
version = "0.9.0"
|
|
2232
2232
|
source = { editable = "." }
|
|
2233
2233
|
dependencies = [
|
|
2234
2234
|
{ name = "click" },
|
|
@@ -27,9 +27,9 @@ from vgi.copy_from_function import CopyFromFunction
|
|
|
27
27
|
if TYPE_CHECKING:
|
|
28
28
|
from vgi_rpc.rpc import OutputCollector
|
|
29
29
|
|
|
30
|
-
from vgi.table_function import ProcessParams
|
|
30
|
+
from vgi.table_function import BindParams, ProcessParams
|
|
31
31
|
|
|
32
|
-
__all__ = ["ExampleLinesCopyFromFunction"]
|
|
32
|
+
__all__ = ["ExampleLinesCopyFromFunction", "SecretLinesCopyFromFunction"]
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
@dataclass(slots=True, frozen=True, kw_only=True)
|
|
@@ -97,3 +97,59 @@ class ExampleLinesCopyFromFunction(CopyFromFunction[ExampleLinesCopyFromArgs]):
|
|
|
97
97
|
raw = [None if v == options.null_string else v for v in columns[idx]]
|
|
98
98
|
arrays.append(pa.array(raw, type=pa.string()).cast(field.type))
|
|
99
99
|
out.emit(pa.RecordBatch.from_arrays(arrays, schema=expected_schema))
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@dataclass(slots=True, frozen=True, kw_only=True)
|
|
103
|
+
class SecretLinesCopyFromArgs:
|
|
104
|
+
"""Options for the ``secret_lines_in`` COPY format."""
|
|
105
|
+
|
|
106
|
+
secret_type: Annotated[
|
|
107
|
+
str,
|
|
108
|
+
Arg("secret_type", default="vgi_example", doc="Secret type to fetch, scoped by the source path"),
|
|
109
|
+
] = "vgi_example"
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class SecretLinesCopyFromFunction(CopyFromFunction[SecretLinesCopyFromArgs]):
|
|
113
|
+
"""COPY ... FROM reader that forwards a ``CREATE SECRET`` credential.
|
|
114
|
+
|
|
115
|
+
Exercises the COPY-FROM secret-bind hook (:meth:`CopyFromFunction.on_secrets`):
|
|
116
|
+
it requests the ``secret_type`` secret scoped to the source path during bind,
|
|
117
|
+
and :meth:`read` emits a single VARCHAR row holding the resolved secret's
|
|
118
|
+
``api_key`` (or ``NONE``) — so a test can assert that the caller's secret
|
|
119
|
+
reached the reader for a secret-backed cloud source.
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
COPY_FROM_FORMAT: ClassVar[str] = "secret_lines_in"
|
|
123
|
+
COPY_FROM_COMMENT: ClassVar[str | None] = "Reader that forwards a CREATE SECRET credential (test fixture)"
|
|
124
|
+
|
|
125
|
+
class Meta:
|
|
126
|
+
name = "secret_lines_reader"
|
|
127
|
+
description = "Emit the resolved secret's api_key as a single VARCHAR row"
|
|
128
|
+
categories = ["copy", "test", "secret"]
|
|
129
|
+
tags = {"category": "copy_from", "stability": "test"}
|
|
130
|
+
|
|
131
|
+
@classmethod
|
|
132
|
+
def on_secrets(cls, params: BindParams[SecretLinesCopyFromArgs]) -> None:
|
|
133
|
+
"""Request the source-scoped secret; framework two-phase resolves it."""
|
|
134
|
+
cf = params.bind_call.copy_from
|
|
135
|
+
scope = cf.file_path if cf is not None else None
|
|
136
|
+
params.secrets.get(params.args.secret_type, scope=scope)
|
|
137
|
+
|
|
138
|
+
@classmethod
|
|
139
|
+
def read(
|
|
140
|
+
cls,
|
|
141
|
+
*,
|
|
142
|
+
path: str,
|
|
143
|
+
options: SecretLinesCopyFromArgs,
|
|
144
|
+
expected_schema: pa.Schema,
|
|
145
|
+
params: ProcessParams[SecretLinesCopyFromArgs],
|
|
146
|
+
out: OutputCollector,
|
|
147
|
+
) -> None:
|
|
148
|
+
"""Emit one row carrying the forwarded secret's api_key (or NONE)."""
|
|
149
|
+
secret = params.secrets.for_scope_of_type(path, options.secret_type) or {}
|
|
150
|
+
api_key = secret.get("api_key")
|
|
151
|
+
if api_key is not None and hasattr(api_key, "as_py"):
|
|
152
|
+
api_key = api_key.as_py()
|
|
153
|
+
value = "NONE" if api_key is None else str(api_key)
|
|
154
|
+
arrays = [pa.array([value], type=pa.string()).cast(expected_schema.field(0).type)]
|
|
155
|
+
out.emit(pa.RecordBatch.from_arrays(arrays, schema=expected_schema))
|
|
@@ -29,8 +29,13 @@ from vgi.copy_to_function import CopyToFunction
|
|
|
29
29
|
|
|
30
30
|
if TYPE_CHECKING:
|
|
31
31
|
from vgi.table_buffering_function import TableBufferingParams
|
|
32
|
+
from vgi.table_function import BindParams
|
|
32
33
|
|
|
33
|
-
__all__ = [
|
|
34
|
+
__all__ = [
|
|
35
|
+
"ExampleLinesCopyToFunction",
|
|
36
|
+
"ExampleLinesOrderedCopyToFunction",
|
|
37
|
+
"SecretLinesCopyToFunction",
|
|
38
|
+
]
|
|
34
39
|
|
|
35
40
|
_SHARD_NS = b"copy_to_shard"
|
|
36
41
|
|
|
@@ -158,3 +163,75 @@ class ExampleLinesOrderedCopyToFunction(ExampleLinesCopyToFunction):
|
|
|
158
163
|
categories = ["copy", "test"]
|
|
159
164
|
tags = {"category": "copy_to", "stability": "test"}
|
|
160
165
|
sink_order_dependent = True # ordered COPY TO → single-thread sink
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
_SECRET_NS = b"copy_to_secret_shard"
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
@dataclass(slots=True, frozen=True, kw_only=True)
|
|
172
|
+
class SecretLinesCopyToArgs:
|
|
173
|
+
"""Options for the ``secret_lines_out`` COPY format."""
|
|
174
|
+
|
|
175
|
+
secret_type: Annotated[
|
|
176
|
+
str,
|
|
177
|
+
Arg("secret_type", default="vgi_example", doc="Secret type to fetch, scoped by the destination path"),
|
|
178
|
+
] = "vgi_example"
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
class SecretLinesCopyToFunction(CopyToFunction[SecretLinesCopyToArgs]):
|
|
182
|
+
"""COPY ... TO writer that forwards a ``CREATE SECRET`` credential.
|
|
183
|
+
|
|
184
|
+
Exercises the COPY-TO secret-bind hook (:meth:`CopyToFunction.on_secrets`):
|
|
185
|
+
it requests the ``secret_type`` secret scoped to the destination path during
|
|
186
|
+
bind, and ``close()`` writes the resolved secret's ``api_key`` (or ``NONE``)
|
|
187
|
+
plus the row count into the destination — so a test can assert that the
|
|
188
|
+
caller's secret reached the writer for a secret-backed cloud write.
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
COPY_TO_FORMAT: ClassVar[str] = "secret_lines_out"
|
|
192
|
+
COPY_TO_COMMENT: ClassVar[str | None] = "Writer that forwards a CREATE SECRET credential (test fixture)"
|
|
193
|
+
|
|
194
|
+
class Meta:
|
|
195
|
+
name = "secret_lines_writer"
|
|
196
|
+
description = "Write the resolved secret's api_key + row count to the destination"
|
|
197
|
+
categories = ["copy", "test", "secret"]
|
|
198
|
+
tags = {"category": "copy_to", "stability": "test"}
|
|
199
|
+
|
|
200
|
+
@classmethod
|
|
201
|
+
def on_secrets(cls, params: BindParams[SecretLinesCopyToArgs]) -> None:
|
|
202
|
+
"""Request the destination-scoped secret; framework two-phase resolves it."""
|
|
203
|
+
cf = params.bind_call.copy_to
|
|
204
|
+
scope = cf.file_path if cf is not None else None
|
|
205
|
+
# Scoped lookup → longest-prefix match against the caller's CREATE SECRETs.
|
|
206
|
+
params.secrets.get(params.args.secret_type, scope=scope)
|
|
207
|
+
|
|
208
|
+
@classmethod
|
|
209
|
+
def write(
|
|
210
|
+
cls,
|
|
211
|
+
*,
|
|
212
|
+
batch: pa.RecordBatch,
|
|
213
|
+
options: SecretLinesCopyToArgs,
|
|
214
|
+
file_path: str,
|
|
215
|
+
params: TableBufferingParams[SecretLinesCopyToArgs],
|
|
216
|
+
) -> None:
|
|
217
|
+
"""Record this shard's row count (cross-process-safe append)."""
|
|
218
|
+
params.storage.state_append(_SECRET_NS, b"", str(batch.num_rows).encode())
|
|
219
|
+
|
|
220
|
+
@classmethod
|
|
221
|
+
def close(
|
|
222
|
+
cls,
|
|
223
|
+
*,
|
|
224
|
+
options: SecretLinesCopyToArgs,
|
|
225
|
+
file_path: str,
|
|
226
|
+
params: TableBufferingParams[SecretLinesCopyToArgs],
|
|
227
|
+
) -> int:
|
|
228
|
+
"""Write the forwarded secret's api_key + total row count, once."""
|
|
229
|
+
secret = params.secrets.for_scope_of_type(file_path, options.secret_type) or {}
|
|
230
|
+
api_key = secret.get("api_key")
|
|
231
|
+
if api_key is not None and hasattr(api_key, "as_py"):
|
|
232
|
+
api_key = api_key.as_py()
|
|
233
|
+
total = sum(int(blob) for _id, blob in params.storage.state_log_scan(_SECRET_NS, b"", after_id=-1))
|
|
234
|
+
with open(file_path, "w", encoding="utf-8") as fh:
|
|
235
|
+
fh.write(f"api_key={'NONE' if api_key is None else api_key}\n")
|
|
236
|
+
fh.write(f"rows={total}\n")
|
|
237
|
+
return total
|
|
@@ -59,8 +59,12 @@ from vgi._test_fixtures.cancellable import (
|
|
|
59
59
|
SlowCancellableFunction,
|
|
60
60
|
SlowCancellableInOutFunction,
|
|
61
61
|
)
|
|
62
|
-
from vgi._test_fixtures.copy_from import ExampleLinesCopyFromFunction
|
|
63
|
-
from vgi._test_fixtures.copy_to import
|
|
62
|
+
from vgi._test_fixtures.copy_from import ExampleLinesCopyFromFunction, SecretLinesCopyFromFunction
|
|
63
|
+
from vgi._test_fixtures.copy_to import (
|
|
64
|
+
ExampleLinesCopyToFunction,
|
|
65
|
+
ExampleLinesOrderedCopyToFunction,
|
|
66
|
+
SecretLinesCopyToFunction,
|
|
67
|
+
)
|
|
64
68
|
from vgi._test_fixtures.nest_tensor import NestTensorFunction, UnnestTensorFunction, UnnestTensorRowsFunction
|
|
65
69
|
from vgi._test_fixtures.scalar import (
|
|
66
70
|
AddValuesFunction,
|
|
@@ -355,9 +359,11 @@ _EXAMPLE_CATALOG = Catalog(
|
|
|
355
359
|
SlowCancellableBufferingFunction,
|
|
356
360
|
# CopyFromFunction - custom COPY ... FROM format reader
|
|
357
361
|
ExampleLinesCopyFromFunction,
|
|
362
|
+
SecretLinesCopyFromFunction,
|
|
358
363
|
# CopyToFunction - custom COPY ... TO format writer
|
|
359
364
|
ExampleLinesCopyToFunction,
|
|
360
365
|
ExampleLinesOrderedCopyToFunction,
|
|
366
|
+
SecretLinesCopyToFunction,
|
|
361
367
|
# TableFunctionGenerator - generate output without input
|
|
362
368
|
ConstantColumnsFunction,
|
|
363
369
|
SlowCancellableFunction,
|
|
@@ -98,10 +98,32 @@ class CopyFromFunction[TArgs](TableFunctionGenerator[TArgs, _CopyFromState]):
|
|
|
98
98
|
f"{cls.__name__} is a COPY FROM format reader; invoke it via "
|
|
99
99
|
f"COPY <table> FROM '<path>' (FORMAT {fmt}), not as a table function."
|
|
100
100
|
)
|
|
101
|
+
# Forward credentials for secret-backed cloud sources (S3/GCS/HTTP/...)
|
|
102
|
+
# via the framework's two-phase secret bind. on_bind is @final (the output
|
|
103
|
+
# schema is fixed to the COPY target), so on_secrets is the seam.
|
|
104
|
+
cls.on_secrets(params)
|
|
101
105
|
# ``expected_schema`` is transparently a ``pa.Schema`` here — the
|
|
102
106
|
# ArrowType(binary) annotation only governs the wire encoding.
|
|
103
107
|
return BindResponse(output_schema=cf.expected_schema)
|
|
104
108
|
|
|
109
|
+
@classmethod
|
|
110
|
+
def on_secrets(cls, params: BindParams[TArgs]) -> None:
|
|
111
|
+
"""Request the credentials this reader needs to reach its source.
|
|
112
|
+
|
|
113
|
+
Override to forward ``CREATE SECRET`` values to :meth:`read` for
|
|
114
|
+
secret-backed cloud sources. Call ``params.secrets.get(secret_type,
|
|
115
|
+
scope=..., name=...)`` — typically scoping by the source path
|
|
116
|
+
(``params.bind_call.copy_from.file_path``) so DuckDB resolves the
|
|
117
|
+
longest-prefix-matching secret. The framework issues a two-phase bind retry
|
|
118
|
+
to resolve every requested secret from the caller's secret store, then
|
|
119
|
+
surfaces the resolved values on ``params.secrets`` (a
|
|
120
|
+
:class:`ResolvedSecrets`) at :meth:`read` time. Pass ``required=True`` to
|
|
121
|
+
``get()`` to make a missing secret fail the bind.
|
|
122
|
+
|
|
123
|
+
Default: request nothing (no secrets forwarded).
|
|
124
|
+
"""
|
|
125
|
+
# Default no-op. Subclasses override to call params.secrets.get(...).
|
|
126
|
+
|
|
105
127
|
@final
|
|
106
128
|
@classmethod
|
|
107
129
|
def initial_state(cls, params: ProcessParams[TArgs]) -> _CopyFromState:
|