Skip to content

@W-22865124 Update Python Client library for 262#20

Merged
rjiangsalesforce merged 17 commits into
mainfrom
rjiang-262-update
Jul 8, 2026
Merged

@W-22865124 Update Python Client library for 262#20
rjiangsalesforce merged 17 commits into
mainfrom
rjiang-262-update

Conversation

@rjiangsalesforce

Copy link
Copy Markdown
Collaborator

Pull Request

Description

Updating the python client for the 262 release of VizQL Data Service.

Fixes:

Type of Change

Please delete options that are not relevant.

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • Other (describe): Schema update + test updates

Checklist

  • I have read the contributing guidelines
  • I have added tests where applicable
  • I have updated documentation where applicable
  • I have added a clear title to this PR
  • My changes follow the project's coding style
  • I have checked for sensitive information (e.g., no secrets or passwords)

Screenshots (if applicable)

Add screenshots or code snippets if this PR changes UI or major behavior.

Additional Notes

Anything else reviewers should know.

Comment thread python_sdk/src/examples/common.py
@yunlong-zhang-sfdc

Copy link
Copy Markdown
Collaborator

I was wondering if we need to add some examples for the live workbook queries??

rjiangsalesforce and others added 7 commits June 30, 2026 11:12
Adds three example-runner CLI args — --workbook-datasource-id,
--global-session-header, --x-session-id — that, when all supplied,
trigger an additional set of queries against a workbook datasource.
Workbook queries reuse simple Query payloads via the new
WORKBOOK_QUERY_FUNCTIONS list and are dispatched on a clone of the
VizQLDataServiceClient carrying Global-Session-Header and X-Session-Id
headers. Includes a new VizQLDataServiceClient.with_headers(...) public
method that returns a non-mutating clone with merged headers (via
attrs.evolve on the inner AuthenticatedClient, preserving cookies,
timeout, follow_redirects, httpx_args, and raise_on_unexpected_status).

Tests cover payload shapes, request serialization, args gating
(including whitespace-only rejection), CRLF/NUL header validation,
help-text wording, and end-to-end dispatch through sync_examples.execute
and async_examples.execute.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Health
src 100%
src.api 96%
src.examples 36%
tests 100%
Summary 90% (1450 / 1603)

Comment thread python_sdk/src/examples/sync_live_workbook_examples.py

@yunlong-zhang-sfdc yunlong-zhang-sfdc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also add a section in contributing.md to have the new examples.py command?

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Health
src 100%
src.api 96%
src.examples 36%
tests 100%
Summary 90% (1450 / 1603)

4 similar comments
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Health
src 100%
src.api 96%
src.examples 36%
tests 100%
Summary 90% (1450 / 1603)

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Health
src 100%
src.api 96%
src.examples 36%
tests 100%
Summary 90% (1450 / 1603)

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Health
src 100%
src.api 96%
src.examples 36%
tests 100%
Summary 90% (1450 / 1603)

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Health
src 100%
src.api 96%
src.examples 36%
tests 100%
Summary 90% (1450 / 1603)

@rjiangsalesforce
rjiangsalesforce merged commit 025504d into main Jul 8, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants