ReactPy now powers Tethys Platform for building applications in pure Python by leveraging any declarative ReactJS library #1325
shawncrawley
started this conversation in
Share
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Attention, everyone! I've been waiting for literally over a year now to officially share the awesome news that a project called Tethys Platform has now officially released a version, 4.4.2, on PyPi and Conda that fully incorporates ReactPy in a very simple, yet powerful, app development framework. Tethys Platform itself was built on Django and its primary goal is to empower web app development for the geoscience community and others that use Python heavily for their science, but are not web developers. ReactPy has certainly helped to that end, as Tethys Platform web applications can now be developed using a single Python file, nothing more! Not only that, but in a one-liner you can essentially import any fully (or almost fully) declarative ReactJS package and use it immediately. You can also nest any components from any packages within each other however you'd like!
Tethys Platform is not just a web application development framework, but a whole self-hosted user and app management portal. Getting started with trying it out for your own development - even just in a "playground" setting is as easy as 1, 2, 3:
python -m venv /path/to/new/environment source /path/to/new/environment/bin/activate pip install tethys-platform tethys quickstartThis will create and start your own localhost Tethys Platform Portal at localhost:8000, where you can log in with
admin:passand then generate a boilerplate app via the GUI that you can then develop further, or import one from an existing zipfile or git clone URL.I developed an app myself called the "Component Playground" which is the equivalent to a JSFiddle wherein you can play around with developing quickly. The code for this app is available here. Here's an example screenshot of the app in action, showing code on the left and the rendered preview on the right.

Here's a close-up of the code, followed below by a close-up of the preview:
Note the
lib.registercommand that essentially does the equivalent ofimport react-grid-layout@1.5.3 as rglso it can then be used immediately vialib.rgl.This example was largely taken from the official
react-grid-layoutpage here.Here are some resources for getting started:
https://docs.tethysplatform.org/en/stable/#quick-start
https://docs.tethysplatform.org/en/stable/tutorials/component_app_basics.html
https://docs.tethysplatform.org/en/stable/tethys_sdk/components.html
https://docs.tethysplatform.org/en/stable/recipes.html#component-apps
https://github.com/shawncrawley/tethysapp-component_playground
Let me know if I can help or answer any questions about any of this. Would love to get some feedback and continue to build on it - and on ReactPy itself of course. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions