CommunityToolkit.Aspire.Hosting.Python.Extensions
9.0.1-beta.83
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.83
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Python.Extensions -Version 9.0.1-beta.83
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.83" />
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.83
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.83"
#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.83&prerelease // Install CommunityToolkit.Aspire.Hosting.Python.Extensions as a Cake Tool #tool nuget:?package=CommunityToolkit.Aspire.Hosting.Python.Extensions&version=9.0.1-beta.83&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.88 | 0 | 11/27/2024 |
9.0.1-beta.87 | 0 | 11/27/2024 |
9.0.1-beta.86 | 34 | 11/27/2024 |
9.0.1-beta.84 | 39 | 11/24/2024 |
9.0.1-beta.83 | 39 | 11/22/2024 |
9.0.1-beta.82 | 39 | 11/21/2024 |
9.0.1-beta.81 | 29 | 11/19/2024 |
9.0.1-beta.80 | 28 | 11/19/2024 |
9.0.1-beta.79 | 32 | 11/19/2024 |
9.0.1-beta.77 | 32 | 11/15/2024 |
9.0.0 | 87 | 11/15/2024 |
9.0.0-beta.76 | 36 | 11/14/2024 |