Skip to content

Adding the yield functionality to the python sdk#127

Merged
tyler-mairose-sp merged 2 commits intomainfrom
feature/yield
Mar 6, 2026
Merged

Adding the yield functionality to the python sdk#127
tyler-mairose-sp merged 2 commits intomainfrom
feature/yield

Conversation

@tyler-mairose-sp
Copy link
Contributor

Summary

  • Adds paginate_stream and paginate_stream_search methods to Paginator that use Python generators (yield) to stream results as each API page is received, instead of waiting for the full result set.
  • Adds paginate_stream_with_http_info and paginate_stream_search_with_http_info variants that return (first_response, iterator) so callers can inspect status_code/headers before consuming the stream.
  • All streaming methods accept an optional model parameter for typed iteration (e.g. Iterator[Account]).
  • Adds validation tests for streaming pagination (count, incremental consumption, model typing, search streaming, http_info variants).
  • Adds a v2025 streaming accounts example in example.py.

Test plan

  • All 22 validation tests pass via python scripts/build_and_validate_sdk.py
  • SDK builds successfully for all API versions (v3, beta, v2024, v2025, v2026)

Made with Cursor

@developer-relations-sp
Copy link
Contributor

This pull request has been mentioned on SailPoint Developer Community. There might be relevant details there:

https://developer.sailpoint.com/discuss/t/all-hands-on-tech-livestream-getting-to-know-the-python-sdk-with-ai-powered-coding/197099/1

@developer-relations-sp
Copy link
Contributor

This pull request has been mentioned on SailPoint Developer Community. There might be relevant details there:

https://developer.sailpoint.com/discuss/t/all-hands-on-tech-livestream-getting-to-know-the-python-sdk-with-ai-powered-coding/198143/1

@heather-storm-sp
Copy link

Hey @tyler-mairose-sp can you please add a link to the Jira this resolves? Thanks!

@tyler-mairose-sp tyler-mairose-sp merged commit 953bf8d into main Mar 6, 2026
2 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.

4 participants