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

Client-Side Python Components #1269

Merged
merged 36 commits into from
Feb 10, 2025

Conversation

Archmonger
Copy link
Contributor

@Archmonger Archmonger commented Feb 7, 2025

Description

This PR backports client-side python components from reactpy-django into reactpy.

The interface is largely the same, however, this PR also adds a way of configuring ReactPy via PyScript as a standalone application.

Issues Resolved

Follow Up Issue

Changelog

  • Add template tags for rendering pyscript components
  • Add pyscript_component component to embed pyscript components into standard ReactPy server-side applications
  • Create new ASGI app that can run standalone client-side ReactPy
  • Convert all ASGI dependencies into an optional reactpy[asgi] parameter to minimize client-side install size
  • Start throwing 404 errors when static files are not found

Checklist

Please update this checklist as you complete each item:

  • Tests have been developed for bug fixes or new functionality.
  • The changelog has been updated, if necessary.
  • Documentation has been updated, if necessary.
  • GitHub Issues closed by this PR have been linked.

By submitting this pull request I agree that all contributions comply with this project's open source license(s).

src/reactpy/asgi/executors/pyscript.py Dismissed Show dismissed Hide dismissed
@Archmonger Archmonger changed the base branch from main to develop February 7, 2025 05:24
@Archmonger Archmonger marked this pull request as ready for review February 9, 2025 10:16
@Archmonger Archmonger merged commit babc2de into reactive-python:develop Feb 10, 2025
17 checks passed
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.

Client Side Python Components
1 participant