Skip to content

[python] add support for exact client name#10750

Open
iscai-msft wants to merge 3 commits into
microsoft:mainfrom
iscai-msft:python/addExactSupport
Open

[python] add support for exact client name#10750
iscai-msft wants to merge 3 commits into
microsoft:mainfrom
iscai-msft:python/addExactSupport

Conversation

@iscai-msft
Copy link
Copy Markdown
Member

cc @dargilco @howieleung

Once this is in, you can add @clientName(exact("stream"), "python") to your stream parameter and it won't get padded. It will also help with other instances where you don't want case conversion or padding. We will generate exactly what's passed into the exact function, we won't do any snake casing either.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label May 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - feature ✏️

add support for exact client names

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 20, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@10750

commit: 96c92fb

@azure-sdk-automation
Copy link
Copy Markdown

azure-sdk-automation Bot commented May 20, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@dargilco
Copy link
Copy Markdown
Member

That's awesome! thank you @iscai-msft !!!

Copy link
Copy Markdown
Member

@tadelesh tadelesh left a comment

Choose a reason for hiding this comment

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

Can we move the judgement to a helper function and do not repeat in every place?

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@iscai-msft iscai-msft requested a review from tadelesh May 21, 2026 18:51
@iscai-msft iscai-msft enabled auto-merge May 21, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants