CommunityToolkit.Aspire.Hosting.Python.Extensions
9.0.1-beta.81
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.81
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Python.Extensions -Version 9.0.1-beta.81
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.81" />
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.81
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.81"
#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.81&prerelease // Install CommunityToolkit.Aspire.Hosting.Python.Extensions as a Cake Tool #tool nuget:?package=CommunityToolkit.Aspire.Hosting.Python.Extensions&version=9.0.1-beta.81&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.83 | 36 | 11/22/2024 |
9.0.1-beta.82 | 38 | 11/21/2024 |
9.0.1-beta.81 | 28 | 11/19/2024 |
9.0.1-beta.80 | 26 | 11/19/2024 |
9.0.1-beta.79 | 30 | 11/19/2024 |
9.0.1-beta.77 | 30 | 11/15/2024 |
9.0.0 | 75 | 11/15/2024 |
9.0.0-beta.76 | 35 | 11/14/2024 |