CommunityToolkit.Aspire.Hosting.Python.Extensions
9.0.1-beta.87
Prefix Reserved
This is a prerelease version of CommunityToolkit.Aspire.Hosting.Python.Extensions.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.Python.Extensions --version 9.0.1-beta.87
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Python.Extensions -Version 9.0.1-beta.87
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="CommunityToolkit.Aspire.Hosting.Python.Extensions" Version="9.0.1-beta.87" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommunityToolkit.Aspire.Hosting.Python.Extensions --version 9.0.1-beta.87
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CommunityToolkit.Aspire.Hosting.Python.Extensions, 9.0.1-beta.87"
#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.
// Install CommunityToolkit.Aspire.Hosting.Python.Extensions as a Cake Addin #addin nuget:?package=CommunityToolkit.Aspire.Hosting.Python.Extensions&version=9.0.1-beta.87&prerelease // Install CommunityToolkit.Aspire.Hosting.Python.Extensions as a Cake Tool #tool nuget:?package=CommunityToolkit.Aspire.Hosting.Python.Extensions&version=9.0.1-beta.87&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CommunityToolkit.Aspire.Hosting.Python.Extensions library
Provides extensions methods and resource definitions for the .NET Aspire AppHost to support running Uvicorn applications.
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.
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");
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Aspire.Hosting (>= 9.0.0)
- Aspire.Hosting.Python (>= 9.0.0)
-
net9.0
- Aspire.Hosting (>= 9.0.0)
- Aspire.Hosting.Python (>= 9.0.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.0.1-beta.92 | 26 | 11/30/2024 |
9.0.1-beta.91 | 22 | 11/30/2024 |
9.0.1-beta.90 | 35 | 11/29/2024 |
9.0.1-beta.89 | 34 | 11/29/2024 |
9.0.1-beta.88 | 35 | 11/27/2024 |
9.0.1-beta.87 | 32 | 11/27/2024 |
9.0.1-beta.86 | 40 | 11/27/2024 |
9.0.1-beta.84 | 40 | 11/24/2024 |
9.0.1-beta.83 | 40 | 11/22/2024 |
9.0.1-beta.82 | 40 | 11/21/2024 |
9.0.1-beta.81 | 30 | 11/19/2024 |
9.0.1-beta.80 | 29 | 11/19/2024 |
9.0.1-beta.79 | 33 | 11/19/2024 |
9.0.1-beta.77 | 33 | 11/15/2024 |
9.0.0 | 90 | 11/15/2024 |
9.0.0-beta.76 | 37 | 11/14/2024 |