Aspire.Hosting.CodeGeneration.Python 13.6.4

Prefix Reserved
dotnet add package Aspire.Hosting.CodeGeneration.Python --version 13.6.4
                    
NuGet\Install-Package Aspire.Hosting.CodeGeneration.Python -Version 13.6.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspire.Hosting.CodeGeneration.Python" Version="13.6.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspire.Hosting.CodeGeneration.Python" Version="13.6.4" />
                    
Directory.Packages.props
<PackageReference Include="Aspire.Hosting.CodeGeneration.Python" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aspire.Hosting.CodeGeneration.Python --version 13.6.4
                    
#r "nuget: Aspire.Hosting.CodeGeneration.Python, 13.6.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aspire.Hosting.CodeGeneration.Python@13.6.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aspire.Hosting.CodeGeneration.Python&version=13.6.4
                    
Install as a Cake Addin
#tool nuget:?package=Aspire.Hosting.CodeGeneration.Python&version=13.6.4
                    
Install as a Cake Tool

Aspire.Hosting.CodeGeneration.Python

Provides Python AppHost scaffolding and generates Python bindings for Aspire hosting APIs. This is tooling for writing the AppHost in Python, not an integration for hosting a Python application.

Getting started

Python AppHost support is experimental. Install the Aspire CLI and Python 3.11 or later. In a new directory for your AppHost, enable the feature and initialize it:

aspire config set features.experimentalPolyglot:python true
aspire init --language python

The CLI restores this code-generation package automatically for a Python AppHost. Do not install it with aspire add.

Edit apphost.py to define your resources using the generated aspire_app module. The CLI sets up the AppHost virtual environment and installs its dependencies, preferring uv when available and otherwise using Python's venv and pip.

Generated bindings

Bindings are generated from Aspire Type System (ATS) metadata in Aspire.Hosting and the hosting integrations configured in aspire.config.json. The generated module in .aspire/modules/ calls the .NET AppHost server through JSON-RPC.

Run aspire restore from the AppHost directory to regenerate bindings without starting the AppHost. Use aspire run to run it. Do not edit .aspire/modules/; change your AppHost or integration references instead.

Additional documentation

Feedback & contributing

https://github.com/microsoft/aspire

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.6.4 86 10/24/2026
13.6.3 93 10/21/2026
13.6.2 106 10/20/2026
13.6.1 124 10/7/2026
13.6.0 143 9/29/2026
13.5.4 129 9/15/2026
13.5.3 174 8/25/2026
13.5.2 136 8/21/2026
13.5.1 136 8/20/2026
13.5.0 149 8/18/2026
13.4.6 200 6/19/2026
13.4.5 156 6/17/2026
13.4.4 152 6/15/2026
13.4.3 150 6/8/2026
13.4.2 164 6/3/2026
13.4.1 151 6/3/2026
13.4.0 173 6/1/2026
13.3.5 152 5/21/2026
13.3.4 140 5/19/2026
13.3.3 155 5/15/2026
Loading failed