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 — feat(user-agent): rename the client to socket-python-cli by jdalton · Pull Request #320 · SocketDev/socket-python-cli

feat(user-agent): rename the client to socket-python-cli #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
lelia merged 3 commits into main from ua/lowercase-client-name
Nov 3, 2026

Uh oh!

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

Merged

feat(user-agent): rename the client to socket-python-cli #320

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3 commits
Select commit Hold shift + click to select a range
ffcc07b
feat(user-agent): rename client to socket-python-cli
jdalton Aug 27, 2026
820ea6f
fix(user-agent): refresh CLI for 2.11.11
lelia Nov 3, 2026
390dba8
fix(deps): use Python SDK 3.6.2
lelia Nov 3, 2026
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

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

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

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

Diff view
Diff view

There are no files selected for viewing

9 changes: 9 additions & 0 deletions 9 CHANGELOG.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## 2.11.11

### Changed: use lowercase Python CLI User-Agent

- Use `socket-python-cli/` consistently for direct API and SDK requests.

### Changed: bump the Socket Python SDK to 3.6.2

- Bumped the pinned Socket Python SDK (`socketdev`) from `3.6.1` to `3.6.2`
to reject retired API credentials before use.

### Changed: bump pinned Coana CLI to 15.14.1

- Bumped the pinned reachability engine (the Coana CLI) from `15.14.0` to
Expand Down
2 changes: 1 addition & 1 deletion 2 pyproject.toml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies = [
"gitpython==3.2.1",
"packaging==26.3",
"python-dotenv==1.2.4",
"socketdev==3.6.1",
"socketdev==3.6.2",
"beautifulsoup4==4.15.0",
"markdown==3.11.2",
"brotli==1.2.1; platform_python_implementation == 'CPython'",
Expand Down
3 changes: 2 additions & 1 deletion 3 socketsecurity/__init__.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__author__ = 'socket.dev'
__version__ = '2.11.11'
USER_AGENT = f'SocketPythonCLI/{__version__}'
USER_AGENT_NAME = 'socket-python-cli'
USER_AGENT = f'{USER_AGENT_NAME}/{__version__}'
3 changes: 2 additions & 1 deletion 3 socketsecurity/socketcli.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from socketdev import socketdev
from socketdev.fullscans import FullScanParams

from socketsecurity import USER_AGENT_NAME
from socketsecurity.config import CliConfig, truncate_commit_message
from socketsecurity.core import Core
from socketsecurity.core.classes import Diff
Expand Down Expand Up @@ -240,7 +241,7 @@ def apply_git_context(config: CliConfig) -> Tuple[bool, Optional[Git]]:


def build_socket_sdk(config: CliConfig) -> socketdev:
cli_user_agent_string = f"SocketPythonCLI/{config.version}"
cli_user_agent_string = f"{USER_AGENT_NAME}/{config.version}"
return socketdev(
token=config.api_token,
timeout=get_api_request_timeout(config),
Expand Down
35 changes: 35 additions & 0 deletions 35 tests/unit/test_user_agent.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import pytest
import requests

from socketsecurity import __version__
from socketsecurity.config import CliConfig
from socketsecurity.core.cli_client import CliClient
from socketsecurity.core.socket_config import SocketConfig
from socketsecurity.socketcli import build_socket_sdk


@pytest.mark.parametrize("transport", ["direct", "sdk"])
def test_cli_api_requests_identify_the_same_product(monkeypatch, transport):
captured = []

def send(session, request, **kwargs):
captured.append(request)
response = requests.Response()
response.status_code = 200
response._content = b"{}"
return response

monkeypatch.setattr(requests.sessions.Session, "send", send)
if transport == "direct":
CliClient(SocketConfig(api_key="synthetic-test-token")).request(
"organizations"
)
else:
sdk = build_socket_sdk(
CliConfig(api_token="synthetic-test-token", repo="test-repo")
)
sdk.api.do_request("organizations")

assert len(captured) == 1
assert captured[0].headers["User-Agent"] == f"socket-python-cli/{__version__}"
assert captured[0].headers["Authorization"].startswith("Basic ")
8 changes: 4 additions & 4 deletions 8 uv.lock
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

Loading
Oops, something went wrong.

Uh oh!

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

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.