Skip to content

Client-Side Python Components #1269

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

Merged
merged 36 commits into from
Feb 10, 2025
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
58a4e37
First draft of pyscript support
Archmonger Feb 5, 2025
6dea8b3
move standalone to executors module
Archmonger Feb 5, 2025
9dccf73
prototype pysript executor
Archmonger Feb 5, 2025
e4f5901
functional rendering on standalone pyscript
Archmonger Feb 6, 2025
02d114c
Fix pyscript event handling
Archmonger Feb 6, 2025
f30a041
Resolve type checker warnings
Archmonger Feb 6, 2025
e6136a0
move jinja template tag module
Archmonger Feb 6, 2025
027f090
remove standard installation extra
Archmonger Feb 6, 2025
afbd437
automate pyscript/morphdom static building
Archmonger Feb 6, 2025
6f092a8
Move optional dependencies up
Archmonger Feb 6, 2025
6b1e50b
remove unused dependency
Archmonger Feb 6, 2025
5afa28b
fix tests
Archmonger Feb 6, 2025
2119fb1
Reduce dependencies by making ASGI optional
Archmonger Feb 7, 2025
36c6642
Use local ReactPy wheel for unpublished releases.
Archmonger Feb 7, 2025
d944643
move asgi_component_html function
Archmonger Feb 7, 2025
8f29887
remove useless async
Archmonger Feb 7, 2025
d5f3bec
docstring for ReactPyCSR
Archmonger Feb 7, 2025
74d13ef
ReactPyCSRApp
Archmonger Feb 7, 2025
208cdc6
Add JS as known third party pkg
Archmonger Feb 7, 2025
4169d46
Add changelog
Archmonger Feb 7, 2025
28c4374
Add JS as known third party pkg
Archmonger Feb 7, 2025
f0c47dc
Expose pyscript components at top level
Archmonger Feb 7, 2025
9a485bd
CSR -> Pyodide
Archmonger Feb 7, 2025
1e74681
Temporary fix to pyscript bug
Archmonger Feb 7, 2025
459bcc5
use new pyscript syntax
Archmonger Feb 7, 2025
f387f6d
regex based python minification
Archmonger Feb 7, 2025
16082ae
component_paths -> file_paths
Archmonger Feb 8, 2025
bab3d71
Add some test cases
Archmonger Feb 8, 2025
9a3418f
refactor executors module
Archmonger Feb 8, 2025
5f680b8
Add tests for standalone pyscript
Archmonger Feb 9, 2025
5d2877b
Add configuration option to standlone reactpy to auto-load pyscript
Archmonger Feb 9, 2025
1f6fb2c
Some pyscript component tests
Archmonger Feb 9, 2025
23213d1
100% coverage
Archmonger Feb 9, 2025
4749212
Fix type check warnings
Archmonger Feb 9, 2025
c9d16c3
format imports
Archmonger Feb 9, 2025
ea46a94
self review
Archmonger Feb 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
Archmonger committed Feb 6, 2025
commit 5afa28bbe67e012a2fcd418890a9e2ad5a41636c
4 changes: 2 additions & 2 deletions tests/test_asgi/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def display(page):
templates = Jinja2Templates(
env=JinjaEnvironment(
loader=JinjaFileSystemLoader("tests/templates"),
extensions=["reactpy.jinja.Component"],
extensions=["reactpy.templatetags.Jinja"],
)
)

Expand Down Expand Up @@ -59,7 +59,7 @@ async def test_unregistered_root_component():
templates = Jinja2Templates(
env=JinjaEnvironment(
loader=JinjaFileSystemLoader("tests/templates"),
extensions=["reactpy.jinja.Component"],
extensions=["reactpy.templatetags.Jinja"],
)
)

Expand Down