Connect Python to Edge via API's

Hello community,
we are currently preparing a research project in which OpenEMS will be used for an energy system. Since we have already implemented several methods in Python that will be used in the project, we are curious if there is an easy way to connect Edge to a Python environment. One possibility would probably be to implement a REST API. Are there any other possibilities?
Any help would be greatly appreciated.
Thank you very much!

See here:

for the API’s

I also use Python and OpenEMS together. For the simulation of real components such as Meter and ESS, I integrate these via Modbus TCP so that I am as close as possible to a real connection. If I only have individual values, I use the Rest API.

Thanks for your help!