Python2 minutes to read

Where can I host a Python script for free and run it with my laptop off?

Match a Python script to a free worker, web app or scheduled job on Bothosting. Check the first result, memory budget and seven-day renewal.

Which Python projects fit the free plan?

Bothosting’s free Spark plan can run a small Python script on the host while your laptop is off. It includes one deployment, 256 MB of memory, 25% CPU and 512 MB of storage. Renew it in the dashboard every 7 days. A card is not required. See Spark’s free hosting limits.

The right profile depends on how the script gets its work. A Python program that listens to a queue belongs on a worker. A report that reads a file and exits belongs on a job. A web app receives requests and needs an HTTP profile. Choose a Python runtime.

Try a report with a visible result

For a first deployment, choose One-off Python script and upload the Python report starter. The archive contains main.py. The code uses the standard library, so the first run does not depend on downloading packages. Start the runner, open Runs and choose Run now.

Look for a successful result and a line containing python-report and the UTC completion time. Close your local editor and run the job again from the dashboard. A new timestamp confirms a second execution on the host. To run the same kind of report every hour, use the scheduled Python profile and set its interval to 3,600 seconds.

Check the biggest input you expect

A report that handles a ten-line file can use much more memory on a full month of data. Rehearse with a representative file, watch resource usage and time the job. Read data in smaller batches if the script only needs a running total. Count the disk space used by uploaded data, dependencies and any reports you save. A second independently running project needs another deployment slot. How deployment allocations work.