Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

article for python - uvicorn #2134

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tommasodotNET
Copy link
Contributor

@tommasodotNET tommasodotNET commented Nov 19, 2024

Adds an article for Python Extensions.
Extension available:

  • Uvicorn

Fixes #2091


Internal previews

📄 File 🔗 Preview link
docs/community-toolkit/hosting-python-extensions.md .NET Aspire Community Toolkit Python hosting extensions
docs/toc.yml docs/toc

@@ -0,0 +1,58 @@
---
title: Python hosting extensions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: Python hosting extensions
title: Community Toolkit Python hosting extensions

ms.date: 11/19/2024
---

# .NET Aspire Community Toolkit Python hosting extensions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# .NET Aspire Community Toolkit Python hosting extensions
# Community Toolkit Python hosting extensions

Comment on lines +46 to +47
var uvicorn = builder.AddUvicornApp("uvicornapp", "../uvicornapp-api", "main:app")
.WithHttpEndpoint(env: "PORT");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var uvicorn = builder.AddUvicornApp("uvicornapp", "../uvicornapp-api", "main:app")
.WithHttpEndpoint(env: "PORT");
var uvicorn = builder.AddUvicornApp(
name: "uvicornapp",
projectDirectory: "../uvicornapp-api",
appName: "main:app"
)
.WithHttpEndpoint(env: "PORT");
builder.Build().Run();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Community Toolkit New article]: Python extensions
2 participants