CommunityToolkit.Aspire.Hosting.Python.Extensions
9.2.2-beta.227
Prefix Reserved
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.Python.Extensions --version 9.2.2-beta.227
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Python.Extensions -Version 9.2.2-beta.227
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Python.Extensions" Version="9.2.2-beta.227" />
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Python.Extensions" Version="9.2.2-beta.227" />
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Python.Extensions" />
paket add CommunityToolkit.Aspire.Hosting.Python.Extensions --version 9.2.2-beta.227
#r "nuget: CommunityToolkit.Aspire.Hosting.Python.Extensions, 9.2.2-beta.227"
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.Python.Extensions&version=9.2.2-beta.227&prerelease
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Python.Extensions&version=9.2.2-beta.227&prerelease
CommunityToolkit.Aspire.Hosting.Python.Extensions library
Provides extensions methods and resource definitions for the .NET Aspire AppHost to extend the support for Python applications. Current support includes:
- Uvicorn
- Uv
Getting Started
Install the package
In your AppHost project, install the package using the following command:
dotnet add package CommunityToolkit.Aspire.Hosting.Python.Extensions
Initialize the Python virtual environment
Please refer to the Python virtual environment section for more information.
Uvicorn example usage
Then, in the Program.cs file of AddUvicornApp
, define a Uvicorn resource, then call Add
:
var uvicorn = builder.AddUvicornApp("uvicornapp", "../uvicornapp-api", "main:app")
.WithHttpEndpoint(env: "UVICORN_PORT");
Uv example usage
Then, in the Program.cs file of AddUvApp
, define a Uvicorn resource, then call Add
:
var uvicorn = builder.AddUvApp("uvapp", "../uv-api", "uv-api")
.WithHttpEndpoint(env: "PORT");
Additional Information
https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-python-extensions
Feedback & contributing
Product | Versions 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 is compatible. 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. |
-
net8.0
- Aspire.Hosting (>= 9.1.0)
- Aspire.Hosting.Python (>= 9.1.0)
-
net9.0
- Aspire.Hosting (>= 9.1.0)
- Aspire.Hosting.Python (>= 9.1.0)
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 |
---|---|---|
9.3.1-beta.253 | 48 | 4/1/2025 |
9.3.1-beta.252 | 96 | 3/27/2025 |
9.3.1-beta.250 | 91 | 3/27/2025 |
9.3.1-beta.249 | 88 | 3/27/2025 |
9.3.1-beta.248 | 89 | 3/27/2025 |
9.3.1-beta.247 | 96 | 3/27/2025 |
9.3.1-beta.244 | 438 | 3/25/2025 |
9.3.1-beta.242 | 439 | 3/24/2025 |
9.3.1-beta.241 | 118 | 3/19/2025 |
9.3.0 | 181 | 3/19/2025 |
9.3.0-beta.239 | 114 | 3/19/2025 |
9.2.2-beta.237 | 116 | 3/19/2025 |
9.2.2-beta.236 | 80 | 3/14/2025 |
9.2.2-beta.230 | 113 | 3/13/2025 |
9.2.2-beta.229 | 109 | 3/13/2025 |
9.2.2-beta.228 | 125 | 3/11/2025 |
9.2.2-beta.227 | 118 | 3/11/2025 |
9.2.2-beta.226 | 122 | 3/11/2025 |
9.2.2-beta.225 | 127 | 3/11/2025 |
9.2.2-beta.224 | 120 | 3/11/2025 |
9.2.2-beta.223 | 126 | 3/10/2025 |
9.2.2-beta.222 | 129 | 3/10/2025 |
9.2.2-beta.220 | 126 | 3/9/2025 |
9.2.2-beta.218 | 120 | 3/9/2025 |
9.2.2-beta.217 | 165 | 3/7/2025 |
9.2.2-beta.216 | 163 | 3/7/2025 |
9.2.2-beta.215 | 164 | 3/7/2025 |
9.2.2-beta.214 | 166 | 3/5/2025 |
9.2.2-beta.213 | 155 | 3/5/2025 |
9.2.2-beta.212 | 156 | 3/5/2025 |
9.2.2-beta.211 | 158 | 3/4/2025 |
9.2.2-beta.210 | 165 | 3/4/2025 |
9.2.2-beta.208 | 63 | 3/3/2025 |
9.2.1 | 120 | 3/3/2025 |
9.2.1-beta.207 | 79 | 3/2/2025 |
9.2.1-beta.206 | 49 | 3/1/2025 |
9.2.1-beta.205 | 58 | 2/27/2025 |
9.2.1-beta.204 | 51 | 2/26/2025 |
9.2.1-beta.203 | 54 | 2/26/2025 |
9.2.0 | 92 | 2/26/2025 |
9.2.0-beta.202 | 50 | 2/26/2025 |
9.2.0-beta.201 | 51 | 2/26/2025 |
9.2.0-beta.199 | 53 | 2/26/2025 |
9.2.0-beta.198 | 54 | 2/26/2025 |
9.1.1-beta.197 | 56 | 2/25/2025 |
9.1.1-beta.196 | 53 | 2/25/2025 |
9.1.1-beta.195 | 52 | 2/25/2025 |
9.1.1-beta.194 | 47 | 2/25/2025 |
9.1.1-beta.193 | 44 | 2/25/2025 |
9.1.1-beta.192 | 52 | 2/24/2025 |
9.1.1-beta.191 | 60 | 2/24/2025 |
9.1.1-beta.190 | 56 | 2/19/2025 |
9.1.1-beta.189 | 53 | 2/19/2025 |
9.1.1-beta.188 | 58 | 2/19/2025 |
9.1.1-beta.187 | 62 | 2/19/2025 |
9.1.1-beta.183 | 68 | 2/18/2025 |
9.1.1-beta.182 | 66 | 2/18/2025 |
9.1.1-beta.181 | 59 | 2/18/2025 |
9.1.1-beta.180 | 61 | 2/17/2025 |
9.1.1-beta.178 | 59 | 2/17/2025 |
9.1.1-beta.177 | 68 | 2/12/2025 |
9.1.1-beta.176 | 74 | 2/11/2025 |
9.1.1-beta.175 | 59 | 2/11/2025 |
9.1.1-beta.173 | 61 | 2/10/2025 |
9.1.1-beta.169 | 52 | 2/6/2025 |
9.1.1-beta.168 | 55 | 2/5/2025 |
9.1.1-beta.166 | 54 | 2/5/2025 |
9.1.1-beta.165 | 51 | 2/5/2025 |
9.1.1-beta.164 | 58 | 2/3/2025 |
9.1.1-beta.162 | 60 | 2/3/2025 |
9.1.1-beta.155 | 54 | 1/30/2025 |
9.1.1-beta.154 | 51 | 1/30/2025 |
9.1.1-beta.153 | 49 | 1/30/2025 |
9.1.1-beta.152 | 46 | 1/29/2025 |
9.1.1-beta.150 | 52 | 1/29/2025 |
9.1.1-beta.148 | 49 | 1/26/2025 |
9.1.1-beta.147 | 52 | 1/26/2025 |
9.1.1-beta.146 | 53 | 1/23/2025 |
9.1.1-beta.145 | 53 | 1/22/2025 |
9.1.1-beta.144 | 45 | 1/22/2025 |
9.1.1-beta.142 | 48 | 1/22/2025 |
9.1.1-beta.140 | 52 | 1/22/2025 |
9.1.1-beta.139 | 51 | 1/21/2025 |
9.1.1-beta.138 | 46 | 1/20/2025 |
9.1.1-beta.137 | 44 | 1/17/2025 |
9.1.1-beta.136 | 41 | 1/15/2025 |
9.1.1-beta.135 | 21 | 1/15/2025 |
9.1.1-beta.134 | 20 | 1/15/2025 |
9.1.1-beta.128 | 40 | 1/9/2025 |
9.1.1-beta.127 | 34 | 1/9/2025 |
9.1.1-beta.126 | 45 | 1/9/2025 |
9.1.1-beta.125 | 44 | 1/9/2025 |
9.1.1-beta.124 | 45 | 1/9/2025 |
9.1.0 | 195 | 12/12/2024 |
9.1.0-beta.123 | 61 | 1/3/2025 |
9.1.0-beta.122 | 58 | 1/3/2025 |
9.1.0-beta.121 | 58 | 1/2/2025 |
9.1.0-beta.120 | 52 | 12/30/2024 |
9.1.0-beta.119 | 52 | 12/30/2024 |
9.1.0-beta.118 | 55 | 12/30/2024 |
9.1.0-beta.116 | 52 | 12/30/2024 |
9.1.0-beta.114 | 52 | 12/30/2024 |
9.1.0-beta.113 | 52 | 12/30/2024 |
9.1.0-beta.112 | 58 | 12/18/2024 |
9.1.0-beta.110 | 56 | 12/16/2024 |
9.1.0-beta.109 | 54 | 12/12/2024 |
9.0.1-beta.108 | 57 | 12/12/2024 |
9.0.1-beta.107 | 55 | 12/11/2024 |
9.0.1-beta.106 | 61 | 12/12/2024 |
9.0.1-beta.104 | 56 | 12/11/2024 |
9.0.1-beta.102 | 56 | 12/6/2024 |
9.0.1-beta.99 | 56 | 12/6/2024 |
9.0.1-beta.98 | 55 | 12/6/2024 |
9.0.1-beta.95 | 57 | 12/5/2024 |
9.0.1-beta.94 | 53 | 12/5/2024 |
9.0.1-beta.93 | 47 | 12/2/2024 |
9.0.1-beta.92 | 56 | 11/30/2024 |
9.0.1-beta.91 | 52 | 11/30/2024 |
9.0.1-beta.90 | 57 | 11/29/2024 |
9.0.1-beta.89 | 54 | 11/29/2024 |
9.0.1-beta.88 | 56 | 11/27/2024 |
9.0.1-beta.87 | 50 | 11/27/2024 |
9.0.1-beta.86 | 58 | 11/27/2024 |
9.0.1-beta.84 | 63 | 11/24/2024 |
9.0.1-beta.83 | 61 | 11/22/2024 |
9.0.1-beta.82 | 66 | 11/21/2024 |
9.0.1-beta.81 | 55 | 11/19/2024 |
9.0.1-beta.80 | 47 | 11/19/2024 |
9.0.1-beta.79 | 56 | 11/19/2024 |
9.0.1-beta.77 | 53 | 11/15/2024 |
9.0.0 | 121 | 11/15/2024 |
9.0.0-beta.76 | 56 | 11/14/2024 |