Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support org-scoped batch package endpoint#76

Merged
lelia merged 7 commits into
mainSocketDev/socket-sdk-python:mainfrom
lelia/update-purl-endpoint-supportSocketDev/socket-sdk-python:lelia/update-purl-endpoint-supportCopy head branch name to clipboard
May 21, 2026
Merged

Support org-scoped batch package endpoint#76
lelia merged 7 commits into
mainSocketDev/socket-sdk-python:mainfrom
lelia/update-purl-endpoint-supportSocketDev/socket-sdk-python:lelia/update-purl-endpoint-supportCopy head branch name to clipboard

Conversation

@lelia

@lelia lelia commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds org_slug optional parameter to purl.post()
  • Routes to POST /v0/orgs/{slug}/purl when org_slug is provided
  • Falls back to the deprecated POST /v0/purl for backwards compatibility
  • Emits a DeprecationWarning when called without org_slug to guide callers toward the new endpoint

Adds

  • org_slug parameter on purl.post()
  • Unit test for org-scoped path routing
  • Unit test asserting legacy path is preserved when org_slug is omitted

Changes

  • README example updated to show org_slug usage

Reviewer Notes

🚨 NOTE: Should be reviewed in parallel with socket-python-cli companion PR (SocketDev/socket-python-cli#180), which passes org_slug in the CLI's license enrichment call. The CLI PR should not be merged until this SDK change is released.

refs: CE-86

lelia added 3 commits April 8, 2026 16:43
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
lelia added 3 commits April 8, 2026 17:21
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

🚀 Preview package published!

Install with:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketdev==3.1.0.dev2

# Conflicts:
#	pyproject.toml
#	socketdev/version.py
@lelia lelia merged commit 41039a8 into main May 21, 2026
7 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.