Skip to content

Support Azure Python client generation in the playground - #5989

Draft
Timothee Guerin (timotheeguerin) wants to merge 6 commits into
Azure:mainfrom
timotheeguerin:feat/python-playground
Draft

Timothee Guerin (timotheeguerin) wants to merge 6 commits into
Azure:mainfrom
timotheeguerin:feat/python-playground

Conversation

@timotheeguerin

@timotheeguerin Timothee Guerin (timotheeguerin) commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

The Azure playground does not offer @azure-tools/typespec-python, even though the Azure emitter already delegates to the browser-capable Python generator. Add it to the normal playground so users can generate Azure-branded Python clients:

emit:
  - "@azure-tools/typespec-python"
options:
  "@azure-tools/typespec-python":
    namespace: azure.example
    package-name: azure-example

PR testing: core is pinned to commit 983b5f1 from microsoft/typespec#12507, and the Python emitter is linked directly from that checkout. The normal playground build now exercises the matching emitter, bundler, and self-hosted wheel without a dependency patch or tarball URL. The temporary workspace/source pins must be replaced with released upstream dependencies before merging.

The standard build, all six existing Chromium/Firefox tests, and Azure documentation generation pass. This reuses the existing Pyodide runtime and does not change Python's main-thread execution or startup performance. No additional smoke tests are added.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

📦 Package size report

✅ No notable package size changes compared to the base branch.

14 package(s) with no notable change
Package Packed (base → head) Δ Packed Unpacked (base → head) Δ Unpacked
@azure-tools/typespec-azure-examples 97.00 KB → 96.99 KB -14 B (-0.0%) 487.04 KB → 487.04 KB —
@azure-tools/typespec-java 21.85 MB → 21.85 MB -12 B (-0.0%) 27.65 MB → 27.65 MB —
@azure-tools/azure-http-specs 157.06 KB → 157.06 KB — 1.29 MB → 1.29 MB —
@azure-tools/typespec-autorest 88.65 KB → 88.65 KB — 427.94 KB → 427.94 KB —
@azure-tools/typespec-autorest-canonical 7.42 KB → 7.42 KB — 26.00 KB → 26.00 KB —
@azure-tools/typespec-azure-core 144.67 KB → 144.67 KB — 771.38 KB → 771.38 KB —
@azure-tools/typespec-azure-portal-core 36.33 KB → 36.33 KB — 243.09 KB → 243.09 KB —
@azure-tools/typespec-azure-resource-manager 212.21 KB → 212.21 KB — 1.26 MB → 1.26 MB —
@azure-tools/typespec-azure-rulesets 6.27 KB → 6.27 KB — 38.83 KB → 38.83 KB —
@azure-tools/typespec-client-generator-core 271.63 KB → 271.63 KB — 1.43 MB → 1.43 MB —
@azure-tools/typespec-go 305.88 KB → 305.88 KB — 1.57 MB → 1.57 MB —
@azure-tools/typespec-metadata 15.88 KB → 15.88 KB — 62.08 KB → 62.08 KB —
@azure-tools/typespec-python 43.07 KB → 43.07 KB — 167.09 KB → 167.09 KB —
@azure-tools/typespec-ts 551.24 KB → 551.24 KB — 2.76 MB → 2.76 MB —

Packed = gzipped .tgz published to npm. Unpacked = total extracted size. 🆕 added, 🗑️ removed. Packages from the core/ submodule are not included.
🔴 grew · 🟢 shrank — only changes of at least 512 B and 0.5% are marked.

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

You can try these changes here

🛝 Playground 🌐 Website

@microsoft-github-policy-service microsoft-github-policy-service Bot added the meta:website TypeSpec.io updates label Nov 6, 2026

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

Labels

meta:website TypeSpec.io updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant