CommunityToolkit.Aspire.Hosting.Python.Extensions
9.3.0
Prefix Reserved
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.Python.Extensions --version 9.3.0
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Python.Extensions -Version 9.3.0
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Python.Extensions" Version="9.3.0" />
paket add CommunityToolkit.Aspire.Hosting.Python.Extensions --version 9.3.0
#r "nuget: CommunityToolkit.Aspire.Hosting.Python.Extensions, 9.3.0"
// Install CommunityToolkit.Aspire.Hosting.Python.Extensions as a Cake Addin #addin nuget:?package=CommunityToolkit.Aspire.Hosting.Python.Extensions&version=9.3.0 // Install CommunityToolkit.Aspire.Hosting.Python.Extensions as a Cake Tool #tool nuget:?package=CommunityToolkit.Aspire.Hosting.Python.Extensions&version=9.3.0
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.252 | 36 | 2 days ago |
9.3.1-beta.250 | 33 | 2 days ago |
9.3.1-beta.249 | 30 | 2 days ago |
9.3.1-beta.248 | 33 | 2 days ago |
9.3.1-beta.247 | 40 | 2 days ago |
9.3.1-beta.244 | 99 | 4 days ago |
9.3.1-beta.242 | 100 | 4 days ago |
9.3.1-beta.241 | 110 | 9 days ago |
9.3.0 | 143 | 10 days ago |
9.3.0-beta.239 | 108 | 10 days ago |
9.2.2-beta.237 | 110 | 10 days ago |
9.2.2-beta.236 | 75 | 14 days ago |
9.2.2-beta.230 | 108 | 16 days ago |
9.2.2-beta.229 | 102 | 16 days ago |
9.2.2-beta.228 | 120 | 18 days ago |
9.2.2-beta.227 | 113 | 18 days ago |
9.2.2-beta.226 | 117 | 18 days ago |
9.2.2-beta.225 | 122 | 18 days ago |
9.2.2-beta.224 | 115 | 18 days ago |
9.2.2-beta.223 | 120 | 18 days ago |
9.2.2-beta.222 | 123 | 18 days ago |
9.2.2-beta.220 | 121 | 19 days ago |
9.2.2-beta.218 | 115 | 19 days ago |
9.2.2-beta.217 | 160 | 22 days ago |
9.2.2-beta.216 | 157 | 22 days ago |
9.2.2-beta.215 | 160 | 22 days ago |
9.2.2-beta.214 | 161 | 23 days ago |
9.2.2-beta.213 | 150 | 23 days ago |
9.2.2-beta.212 | 151 | 23 days ago |
9.2.2-beta.211 | 153 | 24 days ago |
9.2.2-beta.210 | 160 | 24 days ago |
9.2.2-beta.208 | 58 | a month ago |
9.2.1 | 114 | a month ago |
9.2.1-beta.207 | 74 | a month ago |
9.2.1-beta.206 | 44 | a month ago |
9.2.1-beta.205 | 53 | a month ago |
9.2.1-beta.204 | 46 | a month ago |
9.2.1-beta.203 | 49 | a month ago |
9.2.0 | 87 | a month ago |
9.2.0-beta.202 | 44 | a month ago |
9.2.0-beta.201 | 46 | a month ago |
9.2.0-beta.199 | 48 | a month ago |
9.2.0-beta.198 | 49 | a month ago |
9.1.1-beta.197 | 51 | a month ago |
9.1.1-beta.196 | 48 | a month ago |
9.1.1-beta.195 | 47 | a month ago |
9.1.1-beta.194 | 42 | a month ago |
9.1.1-beta.193 | 38 | a month ago |
9.1.1-beta.192 | 47 | a month ago |
9.1.1-beta.191 | 55 | a month ago |
9.1.1-beta.190 | 51 | a month ago |
9.1.1-beta.189 | 48 | a month ago |
9.1.1-beta.188 | 52 | a month ago |
9.1.1-beta.187 | 57 | a month ago |
9.1.1-beta.183 | 63 | a month ago |
9.1.1-beta.182 | 60 | a month ago |
9.1.1-beta.181 | 53 | a month ago |
9.1.1-beta.180 | 56 | a month ago |
9.1.1-beta.178 | 53 | a month ago |
9.1.1-beta.177 | 63 | 2 months ago |
9.1.1-beta.176 | 68 | 2 months ago |
9.1.1-beta.175 | 54 | 2 months ago |
9.1.1-beta.173 | 55 | 2 months ago |
9.1.1-beta.169 | 47 | 2 months ago |
9.1.1-beta.168 | 50 | 2 months ago |
9.1.1-beta.166 | 48 | 2 months ago |
9.1.1-beta.165 | 45 | 2 months ago |
9.1.1-beta.164 | 52 | 2 months ago |
9.1.1-beta.162 | 55 | 2 months ago |
9.1.1-beta.155 | 49 | 2 months ago |
9.1.1-beta.154 | 46 | 2 months ago |
9.1.1-beta.153 | 42 | 2 months ago |
9.1.1-beta.152 | 40 | 2 months ago |
9.1.1-beta.150 | 46 | 2 months ago |
9.1.1-beta.148 | 43 | 2 months ago |
9.1.1-beta.147 | 46 | 2 months ago |
9.1.1-beta.146 | 48 | 2 months ago |
9.1.1-beta.145 | 47 | 2 months ago |
9.1.1-beta.144 | 40 | 2 months ago |
9.1.1-beta.142 | 42 | 2 months ago |
9.1.1-beta.140 | 46 | 2 months ago |
9.1.1-beta.139 | 45 | 2 months ago |
9.1.1-beta.138 | 41 | 2 months ago |
9.1.1-beta.137 | 40 | 2 months ago |
9.1.1-beta.136 | 36 | 2 months ago |
9.1.1-beta.135 | 16 | 2 months ago |
9.1.1-beta.134 | 15 | 2 months ago |
9.1.1-beta.128 | 35 | 3 months ago |
9.1.1-beta.127 | 29 | 3 months ago |
9.1.1-beta.126 | 40 | 3 months ago |
9.1.1-beta.125 | 39 | 3 months ago |
9.1.1-beta.124 | 40 | 3 months ago |
9.1.0 | 189 | 4 months ago |
9.1.0-beta.123 | 56 | 3 months ago |
9.1.0-beta.122 | 53 | 3 months ago |
9.1.0-beta.121 | 53 | 3 months ago |
9.1.0-beta.120 | 48 | 3 months ago |
9.1.0-beta.119 | 48 | 3 months ago |
9.1.0-beta.118 | 51 | 3 months ago |
9.1.0-beta.116 | 48 | 3 months ago |
9.1.0-beta.114 | 48 | 3 months ago |
9.1.0-beta.113 | 48 | 3 months ago |
9.1.0-beta.112 | 54 | 3 months ago |
9.1.0-beta.110 | 52 | 3 months ago |
9.1.0-beta.109 | 50 | 4 months ago |
9.0.1-beta.108 | 53 | 4 months ago |
9.0.1-beta.107 | 51 | 4 months ago |
9.0.1-beta.106 | 51 | 4 months ago |
9.0.1-beta.104 | 52 | 4 months ago |
9.0.1-beta.102 | 52 | 4 months ago |
9.0.1-beta.99 | 52 | 4 months ago |
9.0.1-beta.98 | 51 | 4 months ago |
9.0.1-beta.95 | 53 | 4 months ago |
9.0.1-beta.94 | 48 | 4 months ago |
9.0.1-beta.93 | 42 | 4 months ago |
9.0.1-beta.92 | 52 | 4 months ago |
9.0.1-beta.91 | 48 | 4 months ago |
9.0.1-beta.90 | 52 | 4 months ago |
9.0.1-beta.89 | 50 | 4 months ago |
9.0.1-beta.88 | 51 | 4 months ago |
9.0.1-beta.87 | 46 | 4 months ago |
9.0.1-beta.86 | 54 | 4 months ago |
9.0.1-beta.84 | 58 | 4 months ago |
9.0.1-beta.83 | 56 | 4 months ago |
9.0.1-beta.82 | 61 | 4 months ago |
9.0.1-beta.81 | 51 | 4 months ago |
9.0.1-beta.80 | 43 | 4 months ago |
9.0.1-beta.79 | 52 | 4 months ago |
9.0.1-beta.77 | 49 | 4 months ago |
9.0.0 | 117 | 4 months ago |
9.0.0-beta.76 | 52 | 4 months ago |