Add MicroPython as ReactPy executor

Open
#1,273 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
frontend

Research direction

Start with the existing ReactPyCsr executor and compare its current Pyodide-based client-side path with the linked MicroPython package guidance. Determine how an interpreter="micropython" option could render ReactPy and how required packages would be fetched or stored locally. Done means ReactPy can run through MicroPython with the proposed flag and its package requirements are served successfully.

Written by the indexing model from the issue text.

Description

priority-3-low
Current Situation

Currently, our client-side components use pyodide to execute ReactPy. However, Pyodide unfortunately has a pretty slow boot-up time.

Proposed Actions

Try using MicroPython to render ReactPy instead. Because MicroPython does not support installing packages from PyPi, this may involve creating our own system for manually fetching wheels, storing them locally, and then serving them.

There are some instructions on MicroPython's docs on how to build compatible apps, and a bit more detail on the micropython-lib docs.

Rather than this feature being a completely separate executor, it's likely that we will build it into the the existing ReactPyCsr executor via an ReactPyCsr(interpreter = "micropython") flag.

Dominant language
Python
Stars
8.1k
Forks
332
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reactive-python/reactpy

All issues in reactive-python/reactpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.