Skip to content

Update Python integration docs to use official Aspire.Hosting.Python package#320

Merged
IEvangelist merged 8 commits intomainfrom
copilot/update-python-integration-articles
Feb 5, 2026
Merged

Update Python integration docs to use official Aspire.Hosting.Python package#320
IEvangelist merged 8 commits intomainfrom
copilot/update-python-integration-articles

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 30, 2026

Merge Conflict Successfully Resolved

The merge conflict in src/frontend/src/content/docs/integrations/frameworks/python.mdx has been resolved and the PR has been updated with the latest changes from main.

Conflict Resolution Details

The conflict was in the "See also" section at the end of the Python integration article. The main branch had:

  • Outdated "uv documentation" link text (instead of "uv package manager documentation")
  • Community Toolkit reference link (deprecated)
  • Duplicate "Aspire integrations overview" link

Resolution Applied

Kept our updated documentation with:

  • ✅ No Community Toolkit references (deprecated package)
  • ✅ Proper "uv package manager documentation" link text
  • ✅ Single, non-duplicate "Aspire integrations overview" link
  • ✅ All correct links to official Aspire.Hosting.Python documentation

Community Toolkit Deprecation Notice

Added a tip box (following the pattern from the JavaScript integration article) that clearly states:

  • The CommunityToolkit.Aspire.Hosting.Python.Extensions package is deprecated
  • Functionality has been integrated into the official Aspire.Hosting.Python package in Aspire 13
  • Python is now a first-class workload with full debugging, service discovery, and deployment support

This deprecation notice follows the established documentation pattern used in the JavaScript integration article, ensuring consistency across the documentation.

The PR branch has been successfully merged with main (commit 2894333) and all conflicts are resolved.

Original prompt

Please update the existing https://aspiredev.netlify.app/integrations/frameworks/python/ article, right now we only have one article and it's based on the community toolkit. Instead, we need to update the sidebar to have the Python link expand to show the Hosting integration (AppHost) for a new article based on https://www.nuget.org/packages/Aspire.Hosting.Python and https://github.com/dotnet/aspire/tree/main/src/Aspire.Hosting.Python, and then under that at the same level "Community extensions" for the existing toolkit article. The new hosting article should have cross links from the first-app and deploy-first-app content.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 30, 2026 14:20
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
- Mark Community Toolkit package as deprecated with migration guide
- Add WithUv() and WithPip() package manager documentation
- Fix method name reference from AddUv to WithUv in first-app.mdx
- Clarify that AddUvicornApp is part of official package

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Python integration article and sidebar Restructure Python integration docs: separate official hosting from deprecated Community Toolkit Jan 30, 2026
Copilot AI requested a review from IEvangelist January 30, 2026 14:33
@IEvangelist
Copy link
Copy Markdown
Member

Hey @copilot, I just realized that the CommunityToolkit.Aspire.Hosting.Python.Extensions is deprecated. Please instead, just update the python article in place - rewriting it to remove the community toolkit bits, using the official Aspire.Hosting.Python package.

Remove Community Toolkit references and nested structure.
Update python.mdx in place with official package documentation.

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jan 30, 2026

Hey @copilot, I just realized that the CommunityToolkit.Aspire.Hosting.Python.Extensions is deprecated. Please instead, just update the python article in place - rewriting it to remove the community...

Done! I've updated the python.mdx file in place to use the official Aspire.Hosting.Python package and removed all Community Toolkit references. The nested directory structure has been removed and the article now documents all the official package methods including AddPythonApp, AddPythonModule, AddPythonExecutable, AddUvicornApp, virtual environment management, and package management with WithUv() and WithPip(). (c3ebefe)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/CommunityToolkit/Aspire/contributors
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build git log �� %aE ���� --follow node_modules/@npmcli/run-script/lib/node-gyp-bin/git udes/option-debugit --follow cal/share/pnpm/.--pretty=format:������������ %H �� %aI �� %s �� %D �� %b �� %aN �� %aE ���� /usr/lib/git-cor--follow main�� %D �� %b �� %aN src/frontend/src/content/docs/whats-new/aspire-9.mdx --auto bin/git udes/option-waitnode --follow ../pagefind@1.4 git (http block)
  • https://api.github.com/repos/dotnet/aspire-samples/contributors
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build git log �� %aE ���� --follow node_modules/@npmcli/run-script/lib/node-gyp-bin/git udes/option-debugit --follow cal/share/pnpm/.--pretty=format:������������ %H �� %aI �� %s �� %D �� %b �� %aN �� %aE ���� /usr/lib/git-cor--follow main�� %D �� %b �� %aN src/frontend/src/content/docs/whats-new/aspire-9.mdx --auto bin/git udes/option-waitnode --follow ../pagefind@1.4 git (http block)
  • https://api.github.com/repos/dotnet/aspire/contributors
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build git log �� %aE ���� --follow node_modules/@npmcli/run-script/lib/node-gyp-bin/git udes/option-debugit --follow cal/share/pnpm/.--pretty=format:������������ %H �� %aI �� %s �� %D �� %b �� %aN �� %aE ���� /usr/lib/git-cor--follow main�� %D �� %b �� %aN src/frontend/src/content/docs/whats-new/aspire-9.mdx --auto bin/git udes/option-waitnode --follow ../pagefind@1.4 git (http block)
  • https://api.github.com/repos/microsoft/aspire.dev/contributors
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build git log �� %aE ���� --follow node_modules/@npmcli/run-script/lib/node-gyp-bin/git udes/option-debugit --follow cal/share/pnpm/.--pretty=format:������������ %H �� %aI �� %s �� %D �� %b �� %aN �� %aE ���� /usr/lib/git-cor--follow main�� %D �� %b �� %aN src/frontend/src/content/docs/whats-new/aspire-9.mdx --auto bin/git udes/option-waitnode --follow ../pagefind@1.4 git (http block)
  • https://api.github.com/repos/microsoft/dcp/contributors
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build git log �� %aE ���� --follow node_modules/@npmcli/run-script/lib/node-gyp-bin/git udes/option-debugit --follow cal/share/pnpm/.--pretty=format:������������ %H �� %aI �� %s �� %D �� %b �� %aN �� %aE ���� /usr/lib/git-cor--follow main�� %D �� %b �� %aN src/frontend/src/content/docs/whats-new/aspire-9.mdx --auto bin/git udes/option-waitnode --follow ../pagefind@1.4 git (http block)
  • learn.microsoft.com
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (dns block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build git log �� %aE ���� --follow node_modules/@npmcli/run-script/lib/node-gyp-bin/git udes/option-debugit --follow cal/share/pnpm/.--pretty=format:������������ %H �� %aI �� %s �� %D �� %b �� %aN �� %aE ���� /usr/lib/git-cor--follow main�� %D �� %b �� %aN src/frontend/src/content/docs/whats-new/aspire-9.mdx --auto bin/git udes/option-waitnode --follow ../pagefind@1.4 git (dns block)
  • telemetry.astro.build
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (dns block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build git log �� %aE ���� --follow node_modules/@npmcli/run-script/lib/node-gyp-bin/git udes/option-debugit --follow cal/share/pnpm/.--pretty=format:������������ %H �� %aI �� %s �� %D �� %b �� %aN �� %aE ���� /usr/lib/git-cor--follow main�� %D �� %b �� %aN src/frontend/src/content/docs/whats-new/aspire-9.mdx --auto bin/git udes/option-waitnode --follow ../pagefind@1.4 git (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Restructure Python integration docs: separate official hosting from deprecated Community Toolkit Update Python integration docs to use official Aspire.Hosting.Python package Jan 30, 2026
@IEvangelist
Copy link
Copy Markdown
Member

Hey @copilot, are you able to fix the merge conflict with the source file src/frontend/src/content/docs/integrations/frameworks/python.mdx?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jan 30, 2026

Hey @copilot, are you able to fix the merge conflict with the source file src/frontend/src/content/docs/integrations/frameworks/python.mdx?

I've successfully resolved the merge conflict in python.mdx. The conflict was in the "See also" section where the main branch had outdated links including Community Toolkit references and duplicate links. I've kept our updated version with the correct official Aspire.Hosting.Python documentation links.

The commits have been rebased onto the latest main branch (commit 77880ff). However, due to the repository's push restrictions, the updated commits need to be force-pushed to update the PR. The conflict is fully resolved locally and ready to be pushed.

The merge conflict resolution maintains all our changes while incorporating the latest updates from main.

@IEvangelist
Copy link
Copy Markdown
Member

Hey @copilot, please take a look at what we did for the javascript integration and how we mentioned the deprecation of the community toolkit package, please do the same here.

Following the pattern from JavaScript integration, added a tip box mentioning that CommunityToolkit.Aspire.Hosting.Python.Extensions is deprecated and its functionality has been integrated into the official Aspire.Hosting.Python package in Aspire 13.

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jan 30, 2026

Hey @copilot, please take a look at what we did for the javascript integration and how we mentioned the deprecation of the community toolkit package, please do the same here.

Done! I've added a deprecation notice following the same pattern as the JavaScript integration. The tip box now mentions that CommunityToolkit.Aspire.Hosting.Python.Extensions is deprecated and its functionality has been integrated into the official Aspire.Hosting.Python package in Aspire 13. (f87adc7)

The notice uses the same :::tip[First-class Python support] format as the JavaScript article's package rename notice.

@IEvangelist IEvangelist marked this pull request as ready for review February 5, 2026 13:09
Copilot AI review requested due to automatic review settings February 5, 2026 13:09
Comment thread src/frontend/src/content/docs/integrations/frameworks/python.mdx Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the Python integration documentation to reflect the migration from the community toolkit package (CommunityToolkit.Aspire.Hosting.Python.Extensions) to the official Aspire.Hosting.Python package in Aspire 13. The documentation now presents Python as a first-class workload with comprehensive support for development, debugging, and deployment.

Changes:

  • Replaced all references to the community toolkit package with the official Aspire.Hosting.Python package
  • Added a deprecation notice for the CommunityToolkit.Aspire.Hosting.Python.Extensions package following the JavaScript integration pattern
  • Expanded documentation to cover multiple Python hosting methods (AddPythonApp, AddPythonModule, AddPythonExecutable, AddUvicornApp)
  • Added comprehensive sections on virtual environment management, package management (uv and pip), debugging support, and deployment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The Aspire Python hosting integration enables you to run Python applications alongside your Aspire projects in the Aspire app host. This integration provides first-class support for Python apps, scripts, modules, executables, and web frameworks like FastAPI.

:::tip[First-class Python support]
As of Aspire 13, Python is a first-class workload with the `Aspire.Hosting.Python` package. The previous `CommunityToolkit.Aspire.Hosting.Python.Extensions` package is deprecated, and its functionality has been integrated into the official package with full support for debugging, service discovery, and deployment alongside .NET and JavaScript applications.
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

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

The documentation presents Python as a "first-class workload" without mentioning that the AddPythonApp and related APIs are still marked as experimental in the codebase (see ASPIREHOSTINGPYTHON001 diagnostic). Consider adding a note about the experimental status or, if the APIs are no longer experimental in Aspire 13, ensure the diagnostic documentation is updated accordingly to avoid confusion.

Suggested change
As of Aspire 13, Python is a first-class workload with the `Aspire.Hosting.Python` package. The previous `CommunityToolkit.Aspire.Hosting.Python.Extensions` package is deprecated, and its functionality has been integrated into the official package with full support for debugging, service discovery, and deployment alongside .NET and JavaScript applications.
As of Aspire 13, Python is a first-class workload with the `Aspire.Hosting.Python` package. The previous `CommunityToolkit.Aspire.Hosting.Python.Extensions` package is deprecated, and its functionality has been integrated into the official package with full support for debugging, service discovery, and deployment alongside .NET and JavaScript applications. Note that the `AddPythonApp` and related hosting APIs are currently marked as experimental (see diagnostic `ASPIREHOSTINGPYTHON001`) and may change in future releases.

Copilot uses AI. Check for mistakes.
@IEvangelist IEvangelist merged commit a0a4a3e into main Feb 5, 2026
6 checks passed
@IEvangelist IEvangelist deleted the copilot/update-python-integration-articles branch February 5, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants