Skip to content

Aspire Python Templates for Python Backend and Javascript Frontend #11865

Closed

Description

Summary

Create Aspire templates that target developers building applications with a Python backend and a Javascript frontend. The goal is to provide a similar experience to the current .NET templates, making it easy for non-.NET developers to quickly start new Aspire applications with Python and Javascript resources.

Motivation

Currently, Aspire templates are tailored for .NET developers and .NET resources. There is a growing need to support developers who work with Python for backend services and Javascript for frontend applications. Providing dedicated templates will help onboard these developers, making Aspire accessible to a wider audience and facilitating rapid prototyping and development.

Desired Functionality

  • New Aspire templates that scaffold projects with Python backend services and Javascript frontend applications.
  • Streamlined developer experience similar to the existing .NET-based templates.
  • Documentation and samples to illustrate usage and best practices.

Activity

  1. DamianEdwards commented on Oct 13, 2025

    @DamianEdwards
    Member

    Some more detail and open questions:

    • Single-file apphost.cs
    • JS Frontend (Consider a JavaScript frontend starter template #10287). React?
    • Python backend. Flask or FastAPI?
    • Same option for Redis container? Would only make sense to use from the backend.
    • Which venv managed to use?
    • OTel story. Should come from Python hosting integration, or code in template?
    • Only shows up in aspire and dotnet CLI, not Visual Studio. Outputs content that is not compatible with Visual Studio. Target dev environment is CLI and VS Code.
  2. davidfowl commented on Oct 13, 2025

    @davidfowl
    Collaborator
    • Single-file apphost.cs 👍🏾
    • JS Frontend (Consider a JavaScript frontend starter template #10287). React + Vite 👍🏾
      • Add the community toolkit
    • Python backend. FastAPI 👍🏾
    • Same option for Redis container? Would only make sense to use from the backend.
    • Which venv managed to use? - uv
    • code in template for OTEL (no auto instrumentation)
    • Only shows up in aspire and dotnet CLI, not Visual Studio. Outputs content that is not compatible with Visual Studio. Target dev environment is CLI and VS Code.
  3. eerhardt commented on Oct 14, 2025

    @eerhardt
    Member

    Starting on the initial app here - https://github.com/eerhardt/PythonStarter. We can make comments/PRs to it

  4. davidfowl commented on Oct 14, 2025

    @davidfowl
    Collaborator

    Make it public

  5. eerhardt commented on Oct 14, 2025

    @eerhardt
    Member

    Make it public

    Doh! Done.

  6. davidfowl commented on Oct 18, 2025

    @davidfowl
    Collaborator

    The first change is in! #12136 We have lots of follow up work to do here to polish this but what a great way to end the week 😄.

    Thanks Eric Erhardt (@eerhardt) !

  7. locked and limited conversation to collaborators on Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions