Skip to content

SK-2813: Fix and clean up SDK sample files#243

Merged
saileshwar-skyflow merged 2 commits into
saileshwar/SK-2813-python-v2-code-clean-up-and-fixesfrom
saileshwar/SK-2817-update-samples
May 20, 2026
Merged

SK-2813: Fix and clean up SDK sample files#243
saileshwar-skyflow merged 2 commits into
saileshwar/SK-2813-python-v2-code-clean-up-and-fixesfrom
saileshwar/SK-2817-update-samples

Conversation

@saileshwar-skyflow
Copy link
Copy Markdown
Collaborator

Why:
The sample files had several issues that would confuse or break a developer following them:

  • Placeholder values were missing angle brackets (e.g. 'SKYFLOW_ID2' instead of '<SKYFLOW_ID2>'), making them look like real values.
  • deidentify_file.py had a file handle resource leak — open() was called without a context manager, leaving the handle open if the API call threw an error.
  • credentials_options.py had a mismatched vault ID — .vault('YOUR_VAULT_ID') didn't match the configured primary vault ID 'YOUR_VAULT_ID1'.
  • signed_token_generation_example.py had incorrect API usage — unpacking generate_signed_data_tokens as token, signed = ... only works for one token, but the example passed two tokens.
  • deidentify_file_async.py had extra indentation on two parameters inside the request constructor.

Outcome:
All six sample files are corrected, consistent, and copy-pasteable. A developer following any sample will get working code without silent failures or confusing placeholder formats. No README changes were needed — it was already accurate.

@saileshwar-skyflow saileshwar-skyflow merged commit 263deab into saileshwar/SK-2813-python-v2-code-clean-up-and-fixes May 20, 2026
4 checks passed
saileshwar-skyflow added a commit that referenced this pull request May 20, 2026
…e fixes (#242)

* SK-2833: Add backward-compatible deprecation shims for update_log_level and FileUploadRequest (#244)

* SK-2813: Fix and clean up SDK sample files (#243)
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.

3 participants