Integration between Python and Bubble

I ideally would like to write a python code which takes data from our Bubble Database, run some kind of complex calculations and then return some output to the user. I would like to have the front end run by Bubble.
Does anyone know where to host the python code and then how to integrate it with Bubble?

Thank you

A FaaS provider such as AWS Lambda would suit you.

You can create/host your python function in AWS lambda.

Then you can use the AWS API gateway or function url to connect it with bubble via API connector.

any reference yt video which covers this?

Azure server less functions or AWS lambda. Then hit them from bubble via http request in the API Connector plugin.

Thank you! and thanks everyone for your answers

Do you also know something about Google Cloud?