I have an existing app with minimal UI backed by a web API.
I’m interested in using Reflex to reimplement and improve the UI, but I don’t see any documentation regarding integrating existing code in to a Reflex app.
Sure I could copy/paste the relevant classes over, but I’d rather import the code, preferably without having to package it and put it in requirements.txt.
Make your reflex app in a separate repo and make your existing code into a package that can be installed (you said you don’t want to do this)
Put your reflex app in the same repo as your existing code and have the reflex app just import the modules. You may have to update your $PYTHONPATH when you run your app to include the root directory with your existing code so that it can be imported.