How to Cheaply run python on cloud?

Hi Friends,
I need to run a Python Script on cloud 24x7, for free
I used Replit, but the server disconnects as soon as I close my browser tabs.

Please suggest the free or the cheapest solution.

2 Likes

Oracle cloud infrastructure

1 Like

--------- Option 2

Here are some ways to run Python on the cloud:

  • Google Cloud

Use Cloud Shell to run your app, install dependencies, and run the Gunicorn HTTP server. You can also use Cloud Shell Editor for IDE support.

  • Container Registry

Use the Container Registry to move your code from your PC to a VM Instance. You can then deploy the image to GCE and create a free virtual machine.

  • Virtual environment

Set up a virtual environment for Python and install packages there. You can create a virtual environment by typing $ virtualenv -p python3 venv.

  • Secure copy

Use the secure copy command to upload existing code from your machine.

Python is a popular language for cloud computing because it’s simple, readable, and has a strong ecosystem. Google Cloud has tools to help Python developers build cloud-native applications.

-:: What seems useful to you, Simply search the keywords on Google and follow the top end solutions to set-up ::-

--------- Option 2

This may also help only if it’s script base: https://www.youtube.com/watch?v=JuBmG39zLY8&t=70

--------- Option 3

Lastly, for the cheapest ones, continue following this thread: https://www.reddit.com/r/learnpython/comments/1d6zh1p/cheapest_way_to_run_python_code_247_on_cloud/?rdt=34857

Happy learning!

4 Likes