Python on Premium tiers

A few quick questions before I flip the switch to Premium:

  1. What Python version is available?
  2. Do I get my own venv?
  3. Does it include pip install ... (for installing libraries, e.g. numpy)?
  4. Can PHP run Python and how (exec, shell_exec, proc_open)?
  5. Can Python write in /tmp or a similarly ephemeral file system location?

Thanks

Further Premium Hosting inquiries should be sent to iFastNet directly (at support[dot]ifastnet[dot]com) instead of this forum.

For your question, Python on Premium Hosting is pretty much complimentary instead of being actually useful. You don’t get long running Python processes but rather Python files are executed through Passenger in a way similar to PHP files.

5 Likes

I had a quick check on what’s actually available on premium hosting. I’ve never actually used that functionality myself, and remember that premium hosting is provided by iFastNet, not InfinityFree. So consider my reply to be the level of a long time customer, not an official source.

You can choose the Python version used. You can pick version 2.7, and 3.3 up to 3.13.

Yes, it appears to spin up a custom virtualenv for every application.

Sort-of, as far as I can tell.

You don’t get SSH access on Premium Hosting plans (only Business Hosting), so running the commands directly is not possible. But I think you can point the server to a requirements.txt file and click a button to install the dependencies.

Yes, shell funtions are disabled by default for security, but you can enable them and use that to trigger commands, including Python commands.

Sure, /tmp is writeable as always.

4 Likes

Thanks, hope you’re right.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.