Migration of existing code base to RevPI
Posted: 09 May 2025, 15:28
Hi,
The RevPI hardware looks really great and we consider using it for some of our gateways.
Our code base has grown and we'd like to avoid reimplementing everything from scratch. It's mostly Python code, using e.g. asyncio, threads, etc. Concerning interfaces we need access to UART, gpio and network.
Is it possible to import the RevPi functions from the python package and run the code via the standard python interpreter (preferably even in a docker image)?
What I've seen so far is that RevPI has its own framework to run the code. I guess that would mean major modifications on our side.
Best,
Jürgen
The RevPI hardware looks really great and we consider using it for some of our gateways.
Our code base has grown and we'd like to avoid reimplementing everything from scratch. It's mostly Python code, using e.g. asyncio, threads, etc. Concerning interfaces we need access to UART, gpio and network.
Is it possible to import the RevPi functions from the python package and run the code via the standard python interpreter (preferably even in a docker image)?
What I've seen so far is that RevPI has its own framework to run the code. I guess that would mean major modifications on our side.
Best,
Jürgen