Skip to content

Python — Support Post‑Emit Execution Step in Python Emitter #10230

@lirenhe

Description

@lirenhe

Context

We got the ask from Foundry team that Python SDK generation requires post‑generation scripts to update the generated code.
e.g. update code emitter outputs and to deal with emitted code issues that service team hasn't decided the correct approach for yet.

Currently, these are executed manually which is fragile and inconsistent.

Problems with Current State

  • Python pipelines may need to run adhoc custom PowerShell scripts after emission
  • No standardized way for Python emitter to trigger these steps

Proposal

Add post‑emit execution support in the Python emitter
The emitter should invoke a script after code emission but before downstream pipeline steps

Metadata

Metadata

Assignees

Labels

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

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions