velocity-python 0.9.12__tar.gz → 0.9.14__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.
- {velocity_python-0.9.12 → velocity_python-0.9.14}/PKG-INFO +1 -1
- {velocity_python-0.9.12 → velocity_python-0.9.14}/pyproject.toml +1 -1
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/__init__.py +1 -1
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/base.py +1 -1
- velocity_python-0.9.14/src/velocity/aws/capabilities/health.py +137 -0
- velocity_python-0.9.14/src/velocity/aws/capabilities/runtime.py +143 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/dirty_pipeline.py +80 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/__init__.py +37 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/auth_audit.py +190 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/continuation.py +102 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/jobs.py +45 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/limits.py +149 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/queue.py +673 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/queue_actions.py +242 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/security_log.py +636 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/site_time.py +73 -0
- velocity_python-0.9.14/src/velocity/aws/runtime/tick.py +380 -0
- velocity_python-0.9.14/src/velocity/db/lane/__init__.py +62 -0
- velocity_python-0.9.14/src/velocity/db/lane/cli.py +405 -0
- velocity_python-0.9.14/src/velocity/db/lane/connect.py +160 -0
- velocity_python-0.9.14/src/velocity/db/lane/ensure.py +450 -0
- velocity_python-0.9.14/src/velocity/db/lane/ledger.py +56 -0
- velocity_python-0.9.14/src/velocity/db/lane/units.py +27 -0
- velocity_python-0.9.14/src/velocity/db/lane/user_data_fold.py +150 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/postgres/sql.py +36 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity_python.egg-info/PKG-INFO +1 -1
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity_python.egg-info/SOURCES.txt +36 -0
- velocity_python-0.9.14/tests/test_capabilities_runtime.py +164 -0
- velocity_python-0.9.14/tests/test_capability_health_runtime.py +110 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_cognito_client_lazy.py +3 -1
- velocity_python-0.9.14/tests/test_db_lane_cli.py +716 -0
- velocity_python-0.9.14/tests/test_db_lane_ensure.py +518 -0
- velocity_python-0.9.14/tests/test_db_lane_user_data_fold.py +250 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_ensure_infrastructure.py +3 -0
- velocity_python-0.9.14/tests/test_pgserver_sys_dirty_index.py +100 -0
- velocity_python-0.9.14/tests/test_runtime_auth_audit.py +249 -0
- velocity_python-0.9.14/tests/test_runtime_continuation.py +97 -0
- velocity_python-0.9.14/tests/test_runtime_jobs.py +68 -0
- velocity_python-0.9.14/tests/test_runtime_limits.py +182 -0
- velocity_python-0.9.14/tests/test_runtime_queue.py +670 -0
- velocity_python-0.9.14/tests/test_runtime_queue_actions.py +624 -0
- velocity_python-0.9.14/tests/test_runtime_queue_defaults.py +310 -0
- velocity_python-0.9.14/tests/test_runtime_security_log.py +609 -0
- velocity_python-0.9.14/tests/test_runtime_site_time.py +121 -0
- velocity_python-0.9.14/tests/test_runtime_tick.py +434 -0
- velocity_python-0.9.14/tests/test_sys_dirty_index.py +108 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/LICENSE +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/README.md +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/setup.cfg +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/amplify.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/assets/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/assets/backfill.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/assets/indexing.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/assets/references.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/assets/service.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/assets/usage_index.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/authz.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/blobs.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/dispatch.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/infra.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/jobs.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/provisioning.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/retention.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/security.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/single_session.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/capabilities/workflow.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/deploy/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/deploy/ci_gate.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/deploy/config.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/deploy/frontend_checks.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/deploy/operations.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/deploy/policies.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/deploy/reconcile.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/deploy/targets.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/email.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/facets.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/failures.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/feature_flags.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/base_handler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/context.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/context_factory.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/exceptions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/lambda_handler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/masquerade.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/action_names.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/audit_trail.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/client_errors.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/client_input.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/data_service.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/job_handler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/permissions_actions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/row_scoped.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/session_control.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/tiles_actions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/web_handler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/mixins/workflow_actions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/perf.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/response.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/handlers/sqs_handler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/identity.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/job_lifecycle.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/job_results.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/mirror.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/ops.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/permissions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/queue_defaults.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/s3.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/scheduler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/schema.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/settings.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/sms.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/ssm_config.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/test_base_handler_error_response.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/test_deploy_least_privilege.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/test_deploy_policies.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/test_deploy_policy_size.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/test_deploy_reconcile.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/test_email.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/test_lambda_handler_json_serialization.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/test_response.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tests/test_sms.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/tiles.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/user_data.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/aws/validation.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/cache.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/_pgddl.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/audit.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/async_support.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/column.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/database.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/decorators.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/engine.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/jsonproxy.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/lazy_engine.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/result.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/row.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/sequence.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/table.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/transaction.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/core/view.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/effective.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/exceptions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/fragments.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/integrity.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/maintenance.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/migrations.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/base/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/base/initializer.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/base/operators.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/base/sql.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/base/types.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/mysql/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/mysql/operators.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/mysql/reserved.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/mysql/sql.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/mysql/types.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/postgres/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/postgres/operators.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/postgres/reserved.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/postgres/types.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlite/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlite/operators.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlite/reserved.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlite/sql.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlite/types.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlserver/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlserver/operators.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlserver/reserved.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlserver/sql.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/sqlserver/types.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/servers/tablehelper.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/common_db_test.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/common.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/conftest.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_column.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_connections.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_database.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_engine.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_general_usage.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_imports.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_integrity_triggers.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_result.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_row.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_row_comprehensive.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_schema_locking.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_schema_locking_unit.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_sequence.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_sql_comprehensive.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_table.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_table_comprehensive.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/postgres/test_transaction.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/sql/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/sql/common.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/sql/test_postgres_select_advanced.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/sql/test_postgres_select_variances.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_cursor_rowcount_fix.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_db_utils.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_postgres.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_postgres_unchanged.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_process_error_robustness.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_result_caching.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_result_sql_aware.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_row_get_missing_column.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_schema_locking_initializers.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_schema_locking_simple.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_sql_builder.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_tablehelper.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tests/test_view_helper.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/tunnel.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/db/utils.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/hooks.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/logging.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/metadata/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/metadata/declarations.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/metadata/merge.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/metadata/validate.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/conv/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/conv/iconv.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/conv/oconv.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/db.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/export.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/format.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/mail.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/merge.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/pdf.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/qr.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/test_db.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/test_fix.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/test_format.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/test_iconv.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/test_mail_send.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/test_merge.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/test_oconv.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/test_original_error.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tests/test_timer.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/timer.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/misc/tools.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/core/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/core/capabilities.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/core/store.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/core/where.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/exceptions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/base/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/cassandra/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/cassandra/translation.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/couchbase/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/couchbase/translation.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/dynamodb/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/dynamodb/translation.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/elasticsearch/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/elasticsearch/translation.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/memory/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/mongodb/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/mongodb/translation.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/nosql/servers/redis/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/_mirror_core.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/authorizenet_adapter.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/authorizenet_mirror.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/base_adapter.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/braintree_adapter.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/braintree_mirror.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/charge_rules.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/money.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/plaid_api.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/plaid_webhook.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/redact.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/schema.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/stripe_adapter.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/payment/stripe_mirror.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/rules/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/rules/engine.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/rules/expressions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/rules/facts.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/rules/storage.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/testing/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/testing/fake_db.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/__init__.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/access.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/contract.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/definitions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/designer.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/engine.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/hooks.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/notices.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/operator.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/outbox.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/points.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/schema.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/traveler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity/workflow/views.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity_python.egg-info/dependency_links.txt +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity_python.egg-info/entry_points.txt +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity_python.egg-info/requires.txt +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/src/velocity_python.egg-info/top_level.txt +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_access_error_403.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_action_names.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_activity_tracking_aborted_tx.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_amplify_redirects.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_asset_indexing.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_asset_references.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_assets_service.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_async_support.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_audit_log_confidential.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_audit_mixin.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_audit_registry_table_gate.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_authz.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_aws_package_hygiene.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_batch_operations.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_blob_store.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_business_objects.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_capabilities.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_capability_catalog.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_capability_dependencies.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_check_changelog.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_ci_gate.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_client_errors_mixin.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_client_input_contract_export.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_client_sql_boundary.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_client_table_gate_case_and_pointers.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_cognito_user_cache.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_column_tx_arg.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_concurrency_safety.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_connection_pool.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_connection_resilience.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_context_enqueue_idempotency.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_context_flags_loader.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_context_job_descriptions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_context_queue_job.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_conv_combine.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_data_service_get_metadata.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_data_service_metadata_views.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_data_service_owner_scope.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_data_service_query_cap.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_data_service_renumber.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_data_service_row_number.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_data_service_save_as.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_data_service_security_gates.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_db_audit_required.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_db_credentials_ssm_cascade.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_db_effective.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_db_integrity.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_db_maintenance.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_db_pgddl_triggers.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_db_tunnel.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_declared_column_types.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_decorators.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_delete_hook_fk_blocked.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_deploy_config_fields.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_deploy_engine.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_deploy_frontend_checks.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_deploy_operations_queue.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_deploy_policies.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_dirty_pipeline_consumer.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_dirty_pipeline_fast_path.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_dlq_constant.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_docs_snippets.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_email_processing.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_enqueue_metric_namespace.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_enqueue_send_failures.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_export_formula_injection.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_export_workbook.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_facets.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_facets_and_where.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_failures.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_feature_flags.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_get_cognito_user_provider.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_hooks.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_http_handler_rollback.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_iconv_money_to_cents.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_identifier_injection_guard.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_identity.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_job_handler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_job_lifecycle.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_job_record_guard.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_job_record_guard_postgres.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_job_results.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_json_columns.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_jsonb_dict_adapter.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_lambda_handler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_lambda_handler_auth.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_lambda_handler_masquerade.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_lambda_handler_user_cache.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_lazy_engine.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_masquerade_grant.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_merge_on_conflict.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_metadata.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_metadata_format.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_mirror.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_mirror_upsert_public.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_mixins_import.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_n_plus_one.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_nosql_dynamodb.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_nosql_memory.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_nosql_mongodb.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_nosql_redis.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_nosql_translation.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_nosql_where.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_observability.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_on_action_default.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_on_commit.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_ops.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_audit_fixes.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_authorizenet_adapter.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_braintree_adapter.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_braintree_mirror.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_business_agnostic.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_charge_reference.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_extra_bounds.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_lazy_imports.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_mirror_empty_table.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_profile_sorting.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_stripe_ach.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_payment_stripe_adapter.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pdf.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_permissions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_permissions_actions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_permissions_notices.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_permissions_review.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_bulk_cache.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_capability_types.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_ensure_infrastructure.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_get_tables.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_permissions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_pointer_joins.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_row_scope.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_search_export.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_settings.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_tiles.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pgserver_user_data.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_plaid_api.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_plaid_webhook.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_pointer_join_sql.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_postgres_initializer_config.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_postgres_py_type.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_prepared_statements.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_psycopg3_upgrade.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_query_cache.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_query_missing_table_unlocked.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_raw_sql_prefix_policy.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_read_cache.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_readme_imports.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_record_event_postgres.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_record_event_transaction.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_response.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_restricted_direct_tables.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_result_returning.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_retry_side_effect_guard.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_return_default_safety.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_row_batch_update.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_row_cache_staleness.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_row_scoped_data_service.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_rules.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_rules_storage.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_s3_bucket_config.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_s3_list_client_files.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_s3_upload.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_scheduler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_schema_lock_config_other_backends.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_schema_migrations.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_search_paging_export.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_security_capability.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_security_events_table_gate.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_security_hardening.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_security_rate_limit_pg.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_server_cursor.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_session_control.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_settings.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_single_autocommit_safety.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_single_session_capability.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_sms_twilio_signature.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_spreadsheet_functions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_sql_statements_as_built.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_sqlite_backend.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_sqs_per_record_transactions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_ssm_config.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_ssm_config_export_path.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_ssm_config_require.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_store_user_data.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_sys_modified_count_postgres_demo.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_table_alter.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_table_claim.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_table_find_cache.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_table_purge.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_testing_fake_db.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_tiles.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_transaction_class_wrapping.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_transaction_commit_and_ownership.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_transaction_edge_cases.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_tx_lifecycle_retry.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_tx_read_cache_and_bulk.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_user_data.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_user_not_provisioned.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_validation_override.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_where_clause_validation.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_actions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_contract.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_definitions.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_designer.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_engine.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_features.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_operator.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_postgres.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_projection.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_review.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_traveler.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_workflow_views.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_write_hook_create_flow.py +0 -0
- {velocity_python-0.9.12 → velocity_python-0.9.14}/tests/test_write_hook_empty_strings.py +0 -0
|
@@ -36,7 +36,7 @@ import ipaddress
|
|
|
36
36
|
import json
|
|
37
37
|
import re
|
|
38
38
|
|
|
39
|
-
# cron expressions the scheduler (
|
|
39
|
+
# cron expressions the scheduler accepts (velocity.aws.scheduler.parse_cron)
|
|
40
40
|
NIGHTLY = "0 3 * * *"
|
|
41
41
|
HOURLY = "0 * * * *"
|
|
42
42
|
EVERY_15_MINUTES = "*/15 * * * *"
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"""Telling an operator about trouble a capability already coped with.
|
|
2
|
+
|
|
3
|
+
velocity publishes a failure event (:mod:`velocity.aws.failures`, the site's
|
|
4
|
+
alert topic and failures inbox) when a queue record, a request or a scheduler
|
|
5
|
+
tick ends in an unhandled exception. A capability that works through a list —
|
|
6
|
+
mailboxes, bank items — must NOT end that way: one bad item is caught,
|
|
7
|
+
recorded on its own row, and the rest carry on. That isolation is right, and
|
|
8
|
+
it is also how one item can sit stuck for weeks with nobody told: the queue
|
|
9
|
+
record succeeded, so there was nothing to publish, and the only trace was a
|
|
10
|
+
column on a row nobody was looking at.
|
|
11
|
+
|
|
12
|
+
Two things close that gap, both through the same event and inbox:
|
|
13
|
+
|
|
14
|
+
``report_handled(exc, …)``
|
|
15
|
+
Call it from the ``except`` branch that isolates one item, after the
|
|
16
|
+
failure is recorded and committed. The item still fails alone; the operator
|
|
17
|
+
now hears about it.
|
|
18
|
+
|
|
19
|
+
``Problem`` + ``run(cap, tx, …)``
|
|
20
|
+
Trouble that raises nothing at all — work that stopped advancing. A
|
|
21
|
+
capability declares ``health(tx, now)`` returning the problems it can see
|
|
22
|
+
in its own tables; ``run`` reports each one. The capability owns the
|
|
23
|
+
throttle (how often one standing problem is repeated), because only it
|
|
24
|
+
knows where to keep that stamp.
|
|
25
|
+
|
|
26
|
+
Neither ever raises: reporting trouble must not become the trouble.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
from __future__ import annotations
|
|
30
|
+
|
|
31
|
+
import logging
|
|
32
|
+
from dataclasses import dataclass, field
|
|
33
|
+
|
|
34
|
+
log = logging.getLogger(__name__)
|
|
35
|
+
|
|
36
|
+
SOURCE = "job"
|
|
37
|
+
ACTION_PREFIX = "health"
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@dataclass(frozen=True)
|
|
41
|
+
class Problem:
|
|
42
|
+
"""One standing problem a capability found in its own data.
|
|
43
|
+
|
|
44
|
+
``kind`` is a short stable word (``stalled``); ``subject`` names the thing
|
|
45
|
+
that is in trouble (a mailbox, an item id) and is part of what makes the
|
|
46
|
+
inbox row: two stalled mailboxes are two rows, the same mailbox stalled
|
|
47
|
+
tomorrow is the same row again. ``detail`` is the one sentence an operator
|
|
48
|
+
reads."""
|
|
49
|
+
|
|
50
|
+
capability: str
|
|
51
|
+
kind: str
|
|
52
|
+
subject: str
|
|
53
|
+
detail: str
|
|
54
|
+
extra: dict = field(default_factory=dict)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def action(self):
|
|
58
|
+
return ":".join((ACTION_PREFIX, self.capability, self.kind, self.subject))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class HealthProblem(RuntimeError):
|
|
62
|
+
"""The exception a :class:`Problem` is published as (it was never raised,
|
|
63
|
+
so it carries no traceback and the inbox groups it by its action)."""
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def _report(exc, **fields):
|
|
67
|
+
try:
|
|
68
|
+
from velocity.aws import failures
|
|
69
|
+
|
|
70
|
+
return failures.report(fields.pop("aws_context", None), exc, **fields)
|
|
71
|
+
except Exception:
|
|
72
|
+
log.warning("capability health: failure report failed", exc_info=True)
|
|
73
|
+
return None
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def report_handled(exc, *, action, capability=None, subject=None, aws_context=None):
|
|
77
|
+
"""Publish a failure the caller caught and recorded for one item.
|
|
78
|
+
|
|
79
|
+
``action`` is the queue action that was running; ``subject`` the item it
|
|
80
|
+
failed on. Returns the event, or ``None`` when nothing was published."""
|
|
81
|
+
return _report(
|
|
82
|
+
exc,
|
|
83
|
+
aws_context=aws_context,
|
|
84
|
+
source=SOURCE,
|
|
85
|
+
action=action,
|
|
86
|
+
extra={"capability": capability, "subject": subject, "handled": True},
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def report_problem(problem, *, aws_context=None):
|
|
91
|
+
return _report(
|
|
92
|
+
HealthProblem(problem.detail),
|
|
93
|
+
aws_context=aws_context,
|
|
94
|
+
source=SOURCE,
|
|
95
|
+
action=problem.action,
|
|
96
|
+
extra={
|
|
97
|
+
"capability": problem.capability,
|
|
98
|
+
"kind": problem.kind,
|
|
99
|
+
"subject": problem.subject,
|
|
100
|
+
**dict(problem.extra or {}),
|
|
101
|
+
},
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def run(cap, tx, *, now, aws_context=None):
|
|
106
|
+
"""Ask ``cap`` for its standing problems and report each. Returns them.
|
|
107
|
+
|
|
108
|
+
A capability without a ``health`` method has none. A ``health`` that
|
|
109
|
+
raises is logged and treated as "nothing to say" — the work the caller
|
|
110
|
+
just finished stands."""
|
|
111
|
+
check = getattr(cap, "health", None)
|
|
112
|
+
if not callable(check):
|
|
113
|
+
return []
|
|
114
|
+
try:
|
|
115
|
+
problems = list(check(tx, now) or [])
|
|
116
|
+
except Exception:
|
|
117
|
+
log.warning(
|
|
118
|
+
"capability health: %s.health raised",
|
|
119
|
+
getattr(cap, "name", cap),
|
|
120
|
+
exc_info=True,
|
|
121
|
+
)
|
|
122
|
+
return []
|
|
123
|
+
for problem in problems:
|
|
124
|
+
log.warning("capability health: %s — %s", problem.action, problem.detail)
|
|
125
|
+
report_problem(problem, aws_context=aws_context)
|
|
126
|
+
return problems
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
__all__ = [
|
|
130
|
+
"ACTION_PREFIX",
|
|
131
|
+
"HealthProblem",
|
|
132
|
+
"Problem",
|
|
133
|
+
"SOURCE",
|
|
134
|
+
"report_handled",
|
|
135
|
+
"report_problem",
|
|
136
|
+
"run",
|
|
137
|
+
]
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"""What a capability needs at RUNTIME: is it on for this site, and with what
|
|
2
|
+
settings.
|
|
3
|
+
|
|
4
|
+
Both answers come from the site's own database — the ``sys_capabilities`` row
|
|
5
|
+
:func:`velocity.aws.capabilities.provisioning.provision` materialises on every
|
|
6
|
+
backend deploy, and the environment's feature-flag row — never from the control
|
|
7
|
+
plane. Shared by every capability that checks itself on a request or a queue
|
|
8
|
+
job, so they cannot drift on the details:
|
|
9
|
+
|
|
10
|
+
* ``sys_capabilities.enabled`` / ``config`` are read through
|
|
11
|
+
:func:`~velocity.aws.capabilities.row_enabled` / ``load_config``, never
|
|
12
|
+
parsed here. Sites provisioned before velocity honoured declared types hold
|
|
13
|
+
both as TEXT until :func:`~velocity.aws.capabilities.upgrade_column_types`
|
|
14
|
+
casts them to BOOLEAN / JSONB; velocity's readers take either form, and
|
|
15
|
+
:func:`row_config` treats the blank TEXT spellings (whitespace, ``null``,
|
|
16
|
+
``[]``, bytes) as no policy, so the order of that upgrade and a deploy is
|
|
17
|
+
free.
|
|
18
|
+
* A blank policy value must not beat a flag. ``resolve_config`` lets the site's
|
|
19
|
+
policy win with a plain ``dict.update``, so an editor that saved ``""`` or
|
|
20
|
+
``[]`` would silently reset a knob to its code default. :func:`row_config`
|
|
21
|
+
drops blank entries: blank means "not set here".
|
|
22
|
+
* An operator tool runs outside Lambda, where nothing sets ``AppStage``:
|
|
23
|
+
:func:`settings` takes the environment's name explicitly.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from __future__ import annotations
|
|
27
|
+
|
|
28
|
+
import json
|
|
29
|
+
|
|
30
|
+
from velocity.aws import feature_flags
|
|
31
|
+
from velocity.aws.capabilities import load_config, resolve_config
|
|
32
|
+
from velocity.aws.capabilities import row_enabled as _row_on
|
|
33
|
+
from velocity.aws.capabilities.provisioning import SITE_TABLE
|
|
34
|
+
from velocity.cache import memo
|
|
35
|
+
|
|
36
|
+
CACHE_TTL_SECONDS = 60
|
|
37
|
+
|
|
38
|
+
_BLANK = (None, "", [], {})
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _as_dict(row):
|
|
42
|
+
if row is None:
|
|
43
|
+
return None
|
|
44
|
+
if hasattr(row, "to_dict"):
|
|
45
|
+
return dict(row.to_dict())
|
|
46
|
+
return dict(row)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def site_row(tx, name):
|
|
50
|
+
"""This site's row for capability ``name``, cached per container and tagged
|
|
51
|
+
with the table so provisioning's own writes drop the entry. A site that has
|
|
52
|
+
never provisioned a capability has no such table; ``exists()`` is the
|
|
53
|
+
cheap, honest answer (the pattern velocity's security guard uses)."""
|
|
54
|
+
|
|
55
|
+
def load():
|
|
56
|
+
table = tx.table(SITE_TABLE)
|
|
57
|
+
if not table.exists():
|
|
58
|
+
return None
|
|
59
|
+
return _as_dict(table.find({"name": name}))
|
|
60
|
+
|
|
61
|
+
return memo(
|
|
62
|
+
("capability-site-row", name), load, CACHE_TTL_SECONDS, tables=(SITE_TABLE,)
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def site_states(tx, known=()):
|
|
67
|
+
"""``{name: enabled}`` for this site: every row of ``sys_capabilities``,
|
|
68
|
+
plus ``False`` for each name in ``known`` the site has no row for — so a
|
|
69
|
+
caller can tell "off here" from "never heard of it". One cached read, the
|
|
70
|
+
same cache rules as :func:`site_row`."""
|
|
71
|
+
|
|
72
|
+
def load():
|
|
73
|
+
table = tx.table(SITE_TABLE)
|
|
74
|
+
if not table.exists():
|
|
75
|
+
return {}
|
|
76
|
+
return {
|
|
77
|
+
row["name"]: _row_on(row)
|
|
78
|
+
for row in map(_as_dict, table.select(columns=["name", "enabled"]))
|
|
79
|
+
if row.get("name")
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
found = memo(
|
|
83
|
+
("capability-site-states",), load, CACHE_TTL_SECONDS, tables=(SITE_TABLE,)
|
|
84
|
+
)
|
|
85
|
+
states = {str(name): False for name in known}
|
|
86
|
+
states.update(found)
|
|
87
|
+
return states
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def row_config(row):
|
|
91
|
+
"""The site's policy, without its blank entries.
|
|
92
|
+
|
|
93
|
+
A TEXT ``config`` (a site whose column types have not been upgraded yet)
|
|
94
|
+
may hold bytes, whitespace, JSON ``null`` or ``[]``; each is "no policy"
|
|
95
|
+
here (``load_config`` raises on them). Without this guard one such row
|
|
96
|
+
would fail every request that resolves the capability, and the upgrade /
|
|
97
|
+
deploy order would no longer be free. Anything else non-object still
|
|
98
|
+
raises ``ValueError``."""
|
|
99
|
+
raw = (row or {}).get("config")
|
|
100
|
+
if isinstance(raw, (bytes, bytearray)):
|
|
101
|
+
raw = raw.decode("utf-8")
|
|
102
|
+
if isinstance(raw, str):
|
|
103
|
+
raw = json.loads(raw) if raw.strip() else None
|
|
104
|
+
if raw is None or (isinstance(raw, (list, dict, str)) and not raw):
|
|
105
|
+
return {}
|
|
106
|
+
config = load_config(raw)
|
|
107
|
+
return {key: value for key, value in config.items() if value not in _BLANK}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
def row_enabled(row):
|
|
111
|
+
"""True when this site HAS the capability's row and it is not switched
|
|
112
|
+
off (NULL ``enabled`` = nobody turned it off). Unlike
|
|
113
|
+
:func:`velocity.aws.capabilities.row_enabled`, a missing row is off: a
|
|
114
|
+
capability runs only where provisioning materialised it."""
|
|
115
|
+
return bool(row) and _row_on(row)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def resolve(cap, row, flags):
|
|
119
|
+
"""defaults <- this environment's feature flags <- the site's policy."""
|
|
120
|
+
return resolve_config(cap, flags=flags, row_config=row_config(row))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
def settings(tx, cap, system=None):
|
|
124
|
+
return resolve(cap, site_row(tx, cap.name), feature_flags.get_cached(tx, system))
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def disabled_message(label, name):
|
|
128
|
+
return (
|
|
129
|
+
f"{label} is not enabled for this site. Enable the '{name}' capability "
|
|
130
|
+
"for this environment in Site Capabilities, then deploy the backend."
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
__all__ = [
|
|
135
|
+
"CACHE_TTL_SECONDS",
|
|
136
|
+
"disabled_message",
|
|
137
|
+
"resolve",
|
|
138
|
+
"row_config",
|
|
139
|
+
"row_enabled",
|
|
140
|
+
"settings",
|
|
141
|
+
"site_row",
|
|
142
|
+
"site_states",
|
|
143
|
+
]
|
|
@@ -194,6 +194,86 @@ def list_tables_with_sys_dirty(tx, *, schema: str = "public") -> list[str]:
|
|
|
194
194
|
]
|
|
195
195
|
|
|
196
196
|
|
|
197
|
+
_DIRTY_INDEX_SQL = """
|
|
198
|
+
SELECT t.relname AS table_name, i.relname AS index_name, x.indisvalid AS valid
|
|
199
|
+
FROM pg_index x
|
|
200
|
+
JOIN pg_class i ON i.oid = x.indexrelid
|
|
201
|
+
JOIN pg_class t ON t.oid = x.indrelid
|
|
202
|
+
JOIN pg_namespace n ON n.oid = t.relnamespace
|
|
203
|
+
WHERE n.nspname = %s
|
|
204
|
+
AND i.relname = ANY(%s)
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
def _sql_helper():
|
|
209
|
+
from velocity.db.servers.postgres.sql import SQL
|
|
210
|
+
|
|
211
|
+
return SQL
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
def dirty_index_state(tx, *, schema: str = "public") -> dict:
|
|
215
|
+
"""``{table: "ok" | "missing" | "invalid"}`` for every table carrying
|
|
216
|
+
``sys_dirty``: whether the sweep's partial index
|
|
217
|
+
(``(sys_modified) WHERE sys_dirty = TRUE``) is there and usable. An
|
|
218
|
+
``invalid`` one is what an interrupted ``CREATE INDEX CONCURRENTLY``
|
|
219
|
+
leaves behind."""
|
|
220
|
+
sql_helper = _sql_helper()
|
|
221
|
+
tables = list_tables_with_sys_dirty(tx, schema=schema)
|
|
222
|
+
names = {table: sql_helper.sys_dirty_index_name(schema, table) for table in tables}
|
|
223
|
+
found = {
|
|
224
|
+
str(row["table_name"]): bool(row["valid"])
|
|
225
|
+
for row in tx.execute(_DIRTY_INDEX_SQL, [schema, list(names.values())])
|
|
226
|
+
.as_dict()
|
|
227
|
+
.all()
|
|
228
|
+
if names.get(str(row["table_name"])) == str(row["index_name"])
|
|
229
|
+
}
|
|
230
|
+
return {
|
|
231
|
+
table: (
|
|
232
|
+
"missing" if table not in found else "ok" if found[table] else "invalid"
|
|
233
|
+
)
|
|
234
|
+
for table in tables
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
def ensure_dirty_indexes(tx, *, schema: str = "public", out=None) -> dict:
|
|
239
|
+
"""Create the sweep's partial index on every ``sys_dirty`` table that
|
|
240
|
+
lacks it (rebuilding an invalid one), ``CONCURRENTLY`` so a large table
|
|
241
|
+
keeps taking writes. Each statement runs standalone in autocommit
|
|
242
|
+
(``execute(single=True)``): call it on a transaction with no pending
|
|
243
|
+
work. Refused on a schema-locked engine. Returns ``{table: action}`` for
|
|
244
|
+
the tables it touched."""
|
|
245
|
+
from velocity.db import exceptions
|
|
246
|
+
|
|
247
|
+
if getattr(getattr(tx, "engine", None), "schema_locked", False):
|
|
248
|
+
raise exceptions.DbSchemaLockedError(
|
|
249
|
+
"Cannot create the sys_dirty indexes: schema is locked."
|
|
250
|
+
)
|
|
251
|
+
sql_helper = _sql_helper()
|
|
252
|
+
done = {}
|
|
253
|
+
for table, state in dirty_index_state(tx, schema=schema).items():
|
|
254
|
+
if state == "ok":
|
|
255
|
+
continue
|
|
256
|
+
try:
|
|
257
|
+
check_table_name(table)
|
|
258
|
+
except ValueError:
|
|
259
|
+
continue # a name velocity never makes (mixed case): left alone
|
|
260
|
+
name = sql_helper.sys_dirty_index_name(schema, table)
|
|
261
|
+
fqtn = f"{quote_identifier(schema)}.{quote_identifier(table)}"
|
|
262
|
+
if state == "invalid":
|
|
263
|
+
tx.execute(
|
|
264
|
+
f"DROP INDEX CONCURRENTLY IF EXISTS {quote_identifier(schema)}.{quote_identifier(name)}",
|
|
265
|
+
single=True,
|
|
266
|
+
)
|
|
267
|
+
tx.execute(
|
|
268
|
+
sql_helper.sys_dirty_index_sql(fqtn, schema, table, concurrently=True),
|
|
269
|
+
single=True,
|
|
270
|
+
)
|
|
271
|
+
done[table] = "rebuilt" if state == "invalid" else "created"
|
|
272
|
+
if out:
|
|
273
|
+
out(f" {table}: sys_dirty index {done[table]}")
|
|
274
|
+
return done
|
|
275
|
+
|
|
276
|
+
|
|
197
277
|
def select_stale_dirty_sys_ids(
|
|
198
278
|
tx,
|
|
199
279
|
table: str,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""The business-agnostic runtime a factory-built site's Lambdas share.
|
|
2
|
+
|
|
3
|
+
A site built from velocity's factory templates runs a ``QueueHandler`` and a
|
|
4
|
+
``Scheduler`` function next to its Data/Events functions. Everything those two
|
|
5
|
+
need that is not the site's own business logic lives here, so any Lambda
|
|
6
|
+
layer that carries velocity can run them:
|
|
7
|
+
|
|
8
|
+
- :mod:`.queue` — ``SiteQueueHandler``: the action dispatcher, the job
|
|
9
|
+
lifecycle on ``aws_job_activity``, ``HandlerLibrary``, permanent vs
|
|
10
|
+
transient failures, the default queue actions (dirty-row pipeline, work
|
|
11
|
+
model).
|
|
12
|
+
- :mod:`.queue_actions` — the actions every site answers:
|
|
13
|
+
``run-program-object``, ``run-capability``, ``record-auth-event``.
|
|
14
|
+
- :mod:`.tick` — ``SiteScheduler``: the ``sys_task_triggers`` tick.
|
|
15
|
+
- :mod:`.auth_audit` — the sign-in audit trigger's messages into
|
|
16
|
+
``sys_security_events``.
|
|
17
|
+
- :mod:`.security_log` — writing and reading security activity.
|
|
18
|
+
- :mod:`.continuation` — long queue jobs as bounded chains.
|
|
19
|
+
- :mod:`.limits` — size limits derived from the function's memory.
|
|
20
|
+
- :mod:`.jobs` — who queued a job and the job id it got.
|
|
21
|
+
- :mod:`.site_time` — "today" and "now" on the site's clock.
|
|
22
|
+
|
|
23
|
+
Submodules are imported on demand (``from velocity.aws.runtime import
|
|
24
|
+
queue``); importing this package loads none of them.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"auth_audit",
|
|
29
|
+
"continuation",
|
|
30
|
+
"jobs",
|
|
31
|
+
"limits",
|
|
32
|
+
"queue",
|
|
33
|
+
"queue_actions",
|
|
34
|
+
"security_log",
|
|
35
|
+
"site_time",
|
|
36
|
+
"tick",
|
|
37
|
+
]
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"""Sign-in audit: Cognito's Pre/Post-authentication triggers, recorded.
|
|
2
|
+
|
|
3
|
+
The factory auth stack's ``{Slug}AuthAudit-{env}`` trigger function puts one
|
|
4
|
+
message per sign-in attempt and per successful sign-in on the site's job
|
|
5
|
+
queue::
|
|
6
|
+
|
|
7
|
+
{"action": "record-auth-event",
|
|
8
|
+
"payload": {"guard": "auth.attempt" | "auth.login", "username", "user_sub",
|
|
9
|
+
"email", "user_not_found", "new_device", "client_id",
|
|
10
|
+
"pool_id", "at"}}
|
|
11
|
+
|
|
12
|
+
and the QueueHandler (``queue_actions.OnActionRecordAuthEvent``) writes it to
|
|
13
|
+
``sys_security_events`` through velocity's one audit sink, ``record_event``
|
|
14
|
+
(HECVAT AAAI-09).
|
|
15
|
+
|
|
16
|
+
What a row holds: ``guard`` (``auth.attempt`` / ``auth.login``), a one-line
|
|
17
|
+
``reason``, ``user_email`` (the account's email, else its username),
|
|
18
|
+
``user_sub`` and ``detail`` (client, new device, unknown account, the
|
|
19
|
+
trigger's own timestamp, and the pool). No IP address: Cognito passes none to
|
|
20
|
+
these triggers; the app's session-start and logout events carry the
|
|
21
|
+
server-observed address. Correlate on ``user_sub`` (and the pool), never on
|
|
22
|
+
email: email is an account attribute, not the identity.
|
|
23
|
+
|
|
24
|
+
A failed sign-in is not a row of its own: it is an ``auth.attempt`` with no
|
|
25
|
+
``auth.login`` for the same account shortly after (the viewer derives it).
|
|
26
|
+
|
|
27
|
+
Trust. The queue is site-internal, but other code of
|
|
28
|
+
the site can send to it, so a message is accepted only when:
|
|
29
|
+
|
|
30
|
+
* SQS says it was sent by this site's own trigger function (the record's
|
|
31
|
+
``SenderId`` ends with ``:{Slug}AuthAudit-{env}``, the Lambda's role session
|
|
32
|
+
name, derived from this QueueHandler's own function name);
|
|
33
|
+
* it names one of the two trigger guards, and every field has the type and
|
|
34
|
+
size the trigger sends;
|
|
35
|
+
* an unknown account carries no typed name (people type passwords there).
|
|
36
|
+
|
|
37
|
+
Anything else is permanent: refused, reported once, never retried. A write
|
|
38
|
+
that can't happen now (the site's table is missing because its schema lane
|
|
39
|
+
hasn't run, or the insert failed) is transient, so SQS retries it and, past
|
|
40
|
+
the redrive limit, the dead-letter queue keeps it for 14 days: an audit event
|
|
41
|
+
is never dropped without a trace.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
import datetime
|
|
45
|
+
import os
|
|
46
|
+
import re
|
|
47
|
+
|
|
48
|
+
from velocity.aws.capabilities.security import EVENTS_TABLE, record_event
|
|
49
|
+
|
|
50
|
+
# The trigger function's role in the factory naming ({Slug}AuthAudit-{env}) and
|
|
51
|
+
# the queue action its messages carry. The factory's auth stack template uses
|
|
52
|
+
# the same two constants.
|
|
53
|
+
AUTH_AUDIT_FUNCTION = "AuthAudit"
|
|
54
|
+
AUTH_AUDIT_ACTION = "record-auth-event"
|
|
55
|
+
|
|
56
|
+
GUARDS = {
|
|
57
|
+
"auth.attempt": "sign-in attempt",
|
|
58
|
+
"auth.login": "signed in",
|
|
59
|
+
}
|
|
60
|
+
SOURCE = "cognito-trigger"
|
|
61
|
+
TEXT_FIELDS = {
|
|
62
|
+
"username": 320,
|
|
63
|
+
"user_sub": 64,
|
|
64
|
+
"email": 320,
|
|
65
|
+
"client_id": 128,
|
|
66
|
+
"pool_id": 64,
|
|
67
|
+
"at": 40,
|
|
68
|
+
}
|
|
69
|
+
BOOL_FIELDS = ("user_not_found", "new_device")
|
|
70
|
+
DETAIL_KEYS = ("username", "client_id", "pool_id", "new_device", "user_not_found", "at")
|
|
71
|
+
|
|
72
|
+
# {Slug}QueueHandler-{env} -> {Slug}AuthAudit-{env} (naming.function_name)
|
|
73
|
+
_QUEUE_FUNCTION = re.compile(r"^(?P<slug>[A-Za-z0-9]+)QueueHandler-(?P<env>[a-z0-9]+)$")
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class InvalidAuthEvent(ValueError):
|
|
77
|
+
"""A message no retry can make valid (refused, reported, not retried)."""
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class AuthEventNotWritten(RuntimeError):
|
|
81
|
+
"""The row could not be written now; SQS retries, then dead-letters it."""
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def expected_sender(queue_function_name=None):
|
|
85
|
+
"""The trigger function whose messages this QueueHandler accepts, from the
|
|
86
|
+
QueueHandler's own name; None when the name doesn't follow the factory's
|
|
87
|
+
``{Slug}QueueHandler-{env}`` (then nothing is accepted)."""
|
|
88
|
+
name = queue_function_name or os.environ.get("AWS_LAMBDA_FUNCTION_NAME", "")
|
|
89
|
+
match = _QUEUE_FUNCTION.match(name)
|
|
90
|
+
if not match:
|
|
91
|
+
return None
|
|
92
|
+
return f"{match['slug']}{AUTH_AUDIT_FUNCTION}-{match['env']}"
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def check_sender(sender_id, queue_function_name=None):
|
|
96
|
+
expected = expected_sender(queue_function_name)
|
|
97
|
+
if not expected:
|
|
98
|
+
raise InvalidAuthEvent(
|
|
99
|
+
"record-auth-event: this queue handler's name gives no trigger to trust"
|
|
100
|
+
)
|
|
101
|
+
if not isinstance(sender_id, str) or not sender_id.endswith(f":{expected}"):
|
|
102
|
+
raise InvalidAuthEvent(f"record-auth-event: not sent by {expected}")
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def clean(payload):
|
|
106
|
+
"""The validated payload, or InvalidAuthEvent."""
|
|
107
|
+
if not isinstance(payload, dict):
|
|
108
|
+
raise InvalidAuthEvent("record-auth-event: payload must be an object")
|
|
109
|
+
guard = payload.get("guard")
|
|
110
|
+
if guard not in GUARDS:
|
|
111
|
+
raise InvalidAuthEvent(f"record-auth-event: unknown guard {guard!r}")
|
|
112
|
+
out = {"guard": guard}
|
|
113
|
+
for key, limit in TEXT_FIELDS.items():
|
|
114
|
+
value = payload.get(key)
|
|
115
|
+
if value is None or value == "":
|
|
116
|
+
continue
|
|
117
|
+
if not isinstance(value, str) or len(value) > limit:
|
|
118
|
+
raise InvalidAuthEvent(f"record-auth-event: bad {key}")
|
|
119
|
+
out[key] = value.strip()
|
|
120
|
+
for key in BOOL_FIELDS:
|
|
121
|
+
value = payload.get(key)
|
|
122
|
+
if value is None:
|
|
123
|
+
continue
|
|
124
|
+
if not isinstance(value, bool):
|
|
125
|
+
raise InvalidAuthEvent(f"record-auth-event: bad {key}")
|
|
126
|
+
out[key] = value
|
|
127
|
+
if out.get("user_not_found"):
|
|
128
|
+
out.pop("username", None) # never a typed name for an unknown account
|
|
129
|
+
out.pop("email", None)
|
|
130
|
+
out.pop("user_sub", None)
|
|
131
|
+
return out
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def _occurred(at):
|
|
135
|
+
"""The trigger's own time (ISO, UTC), or None (velocity uses now)."""
|
|
136
|
+
if not at:
|
|
137
|
+
return None
|
|
138
|
+
try:
|
|
139
|
+
when = datetime.datetime.fromisoformat(at)
|
|
140
|
+
except ValueError:
|
|
141
|
+
return None
|
|
142
|
+
return when if when.tzinfo else when.replace(tzinfo=datetime.timezone.utc)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def record(tx, payload):
|
|
146
|
+
"""Write one validated trigger message. Raises InvalidAuthEvent
|
|
147
|
+
(permanent: malformed) or AuthEventNotWritten (transient: retry, then the
|
|
148
|
+
dead-letter queue); returns True."""
|
|
149
|
+
event = clean(payload)
|
|
150
|
+
if not tx.table(EVENTS_TABLE).exists():
|
|
151
|
+
# transient, not permanent: the events wait in the queue and then the
|
|
152
|
+
# dead-letter queue (14 days) for the schema lane, instead of being lost
|
|
153
|
+
raise AuthEventNotWritten(
|
|
154
|
+
f"record-auth-event: {EVENTS_TABLE} is not provisioned in this site "
|
|
155
|
+
"(run its schema lane)"
|
|
156
|
+
)
|
|
157
|
+
guard = event["guard"]
|
|
158
|
+
reason = GUARDS[guard] + (
|
|
159
|
+
" (no such account)" if event.get("user_not_found") else ""
|
|
160
|
+
)
|
|
161
|
+
email = (event.get("email") or "").lower() or None
|
|
162
|
+
detail = {"source": SOURCE}
|
|
163
|
+
detail.update({k: event[k] for k in DETAIL_KEYS if k in event})
|
|
164
|
+
written = record_event(
|
|
165
|
+
tx,
|
|
166
|
+
guard,
|
|
167
|
+
reason,
|
|
168
|
+
user_email=email or event.get("username"),
|
|
169
|
+
user_sub=event.get("user_sub"),
|
|
170
|
+
detail=detail,
|
|
171
|
+
occurred_at=_occurred(event.get("at")),
|
|
172
|
+
)
|
|
173
|
+
if not written:
|
|
174
|
+
raise AuthEventNotWritten(
|
|
175
|
+
f"record-auth-event: {guard} not written (see the log)"
|
|
176
|
+
)
|
|
177
|
+
return True
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
__all__ = [
|
|
181
|
+
"AUTH_AUDIT_ACTION",
|
|
182
|
+
"AUTH_AUDIT_FUNCTION",
|
|
183
|
+
"AuthEventNotWritten",
|
|
184
|
+
"GUARDS",
|
|
185
|
+
"InvalidAuthEvent",
|
|
186
|
+
"check_sender",
|
|
187
|
+
"clean",
|
|
188
|
+
"expected_sender",
|
|
189
|
+
"record",
|
|
190
|
+
]
|