Skip to content

[python] Add SDK version to REST User-Agent - #10106

Open
hutiefang76 wants to merge 1 commit into
apache:masterfrom
hutiefang76:frank/paimon-8543-sdk-user-agent
Open

hutiefang76 wants to merge 1 commit into
apache:masterfrom
hutiefang76:frank/paimon-8543-sdk-user-agent

Conversation

@hutiefang76

Copy link
Copy Markdown
Contributor

What is changed

Adds PyPaimon and Python version information to the default REST User-Agent. PVFS now uses the standard header.User-Agent key and adds its PythonPVFS prefix without replacing an explicitly configured value.

Version metadata that cannot be read or parsed falls back to unknown, so requests continue normally.

Verification

  • /private/tmp/paimon-8543-venv/bin/python -m pytest pypaimon/tests/user_agent_test.py pypaimon/tests/build_info_test.py pypaimon/tests/rest/api_test.py pypaimon/tests/pvfs_oss_filesystem_test.py -q
  • /private/tmp/paimon-8543-venv/bin/flake8 --config=dev/cfg.ini ...
  • python -m compileall for changed Python files

Closes #8543

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.

[Feature] Add sdk version information to REST User-Agent

1 participant