GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(user-agent): identify the Python SDK consistently by lelia · Pull Request #127 · SocketDev/socket-sdk-python

Conversation

@lelia

@lelia lelia commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

⚠️ DO NOT MERGE until backend changes are confirmed deployed ⚠️

The Python SDK defaults to SocketSDKPython/<version>, while the Python CLI is moving to a lowercase product name. Use socket-sdk-python/<SDK version> for standalone SDK requests and preserve every explicit caller override, including CLI and Basics identities.

Blocked on backend deployment. Keep this PR in draft and do not merge or release it until depscan recognizes both SDK prefixes and attributes them to py-sdk. Backend dependency raised as PR. Client releases must follow deployment, not merely backend PR merge.

Public Changelog

Use a consistent lowercase Python SDK User-Agent while preserving application-specific overrides.

Validation

  • 206 SDK unit tests passed, 1 skipped, and 82 subtests passed. Wheel metadata, source archive, runtime, and default User-Agent all report 3.6.3.
  • Prepared HTTP requests cover the default identity, legacy and lowercase CLI overrides, Basics and arbitrary overrides, an explicitly empty override, GET requests, and multipart POST uploads.
  • Ruff passed for the new module and tests; git diff --check passed. Added code contains no comments requiring revision in the fourth-wall audit.

Rollout and reviewer context

  • Prior art: feat(user-agent): rename the client to socket-python-cli socket-python-cli#320 by jdalton. The CLI identifies itself when using the SDK; standalone SDK consumers retain the SDK identity.
  • This draft targets SDK 3.6.3; the package version and changelog are prepared for that release. Backend deployment remains a prerequisite for merging or releasing.
  • The backend must retain SocketSDKPython/ as an alias so existing SDK clients remain recognizable.

Note

Medium Risk
Default User-Agent changes how the API attributes traffic until the backend maps the new prefix (and legacy SocketSDKPython/); rollout is coordinated with depscan deployment.

Overview
Stand-alone SDK HTTP requests now send socket-sdk-python/{version} instead of SocketSDKPython/{version}, centralizing the default in a new socketdev/user_agent module consumed by API.do_request.

Behavior for user_agent= is unchanged: explicit values (including empty string) still replace the default so the CLI, Basics, and other wrappers can identify themselves. README and an Unreleased changelog entry document the new default.

New unit tests assert the default header on direct do_request calls and on endpoint wrappers (org.get, basics.get_config), plus GET/POST and several override strings.

Reviewed by Cursor Bugbot for commit 847da08. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lelia
Identify Python SDK requests consistently
a75398f
Assisted-by: Codex:GPT-6
@lelia lelia mentioned this pull request Nov 3, 2026
fix(user-agent): identify Basics API requests SocketDev/socket-basics#133
Draft
@lelia
Merge branch 'main' into codex/python-sdk-user-agent
847da08
@lelia

lelia commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

bugbot run

cursor[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Nov 4, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 847da08. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lelia
chore(release): prepare SDK 3.6.3
f33d39c
Set the package version and identify the User-Agent changelog
entry as the 3.6.3 release.

Assisted-by: Codex:GPT-6

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments

At least 1 approving review is required to merge this pull request.

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@lelia
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.