
Python SDK for the VGI (Vector Gateway Interface) protocol — host DuckDB scalar, table, aggregate, and table-in-out functions in an external worker over Arrow IPC.
Repo Query-farm/vgi-python, read from GitHub 22 h ago. Query-farm has not joined Take My Repo.
os.kill(pid, 0), which on Windows sends CTRL_C_EVENT to the whole console. It now uses OpenProcess/GetExitCodeProcess.VGI_IDLE_EXIT_SECONDS with --server granian is refused on Windows (granian can only be stopped there with a hard kill). Waitress idle exit works on every platform.ExternalizingStorage sends storage values at or over VGI_STORAGE_EXTERNALIZE_BYTES (default 512 KiB) to a blob vendor (region-pinned, pre-signed R2 URLs; VGI_BLOB_VENDOR_URL, token VGI_BLOB_VENDOR_TOKEN or VGI_CF_DO_TOKEN) and stores a small pointer. Reads verify size and SHA-256. The function storage API is unchanged.StorageEnvelopeError. Without a vendor, values over 1 MiB fail with an error naming VGI_BLOB_VENDOR_URL.VGI_STORAGE_EXTERNALIZE=1 (SQLite's format is unchanged otherwise).vgi-serve --http with the vendor externalizes large results and vends client upload URLs; VGI_RPC_MAX_REQUEST_BYTES advertises the request cap. Needs vgi[external].VGI_IDLE_EXIT_SECONDS: vgi-serve --http exits with status 0 after that many seconds with no request in flight (health checks don't count), under waitress and granian. For platforms that start the machine on the next request (Fly.io).Requires vgi-rpc 0.56.0.
VGI_STORAGE_PROFILE on Windows: call-site, per-RPC and per-execution attribution now works on Windows (paths are compared with os.path.normcase, so drive-letter case and separators no longer hide vgi frames). Call sites are always displayed with /.FunctionStorage (the buffered-table init payload, which carried resolved CREATE SECRET values and attach/transaction context; aggregate constant arguments; the streaming-aggregate session) is now encrypted and authenticated with AES-256-GCM under HKDF-SHA256(signing key, info="vgi.storage.payload.v1"), bound to its shard, execution, namespace and key. Workers without a signing key (subprocess/unix) use the per-user host-local key file. A payload that fails to authenticate raises StoragePayloadError; there is no plaintext fallback. The format ("sealed framework payload v1") is shared by every VGI SDK.pickle.loads.cloudflare-do.VGI_STORAGE_PROFILE=1 now attributes every storage call to its call site, execution, RPC and in-flight concurrency on every backend; VGI_STORAGE_PROFILE_FILE writes a JSONL dump and python -m vgi._storage_profile_report rebuilds the report.VGI_SIGNING_KEY. With VGI_ORCHARD_HOSTED=1 the worker refuses to start unless VGI_SIGNING_KEY is configured (not minted by vgi-serve) and at least 32 bytes. A per-process key made every machine restart, or a request served by another machine of the same deployment, break the sessions DuckDB already held (attach_opaque_data not recognized). Orchard's provisioner sets a per-deployment key as a Fly secret.https://<app>.fly.dev Field Addresses and honours the issuer's published vgi_field_address_patterns, so new hosting providers need no client release.