Please implement and enable for all users (independant from their plan) support for Python3 scripts.
Explanation
Python3 allows to dynamically generate fully dynamical website that offer more complex functionality, with PHP may not offer or by with (if the implementation of them would be possible) then it would be more difficult
So what is this “complex functionality” that you are referring to? Can you give me an example of something that Python really does better than PHP that makes sense for a website on web hosting?
In my own experience, Python and PHP are equally capable programming languages, and how “easy” something is depends mostly on the quality of the tools and frameworks you use and your familiarity with the language. But you having more experience with Python or just preferring it over PHP doesn’t make it better or more capable as a language.
There are many cases I can think of where Python is better than PHP, but most of these are not related to websites, and the ones which are all require running long running processes. And even with Python support on premium hosting, you don’t get long running processes, because Python is called on-demand by running it through Passenger.
For example: Generate a site content basing on API request, handle of socket’s, generating fully dynamic websites, bridging in between code wrotten in different programming languages, etc.
Again: I wrote that it “may” be better if some of them, but not that it is
Laravel and a bunch of other frameworks just sent you a “Huh”?
The PHP socket extension right now:
While that probably wasn’t here at InfinityFree, we’re talking PHP right now. And if you are talking about IF, then I’m pretty sure we won’t give you websocket even if with python supported.
Sigh That’s pretty much what PHP had been doing since the very first day it was created.
This one is more interesting, though I’m pretty sure that PHP can also do it with different implementations.
Unfortunatelly, currently PHP’s capitibilities are still very limited in this matter and doesn’t offer full support for many languages or functionalities
I still don’t quite understand why you need Python for you website, and what it can do for you website that PHP can’t do. Having support for more programming languages is in the back of our mind. But if you say you would like to have it, I would like to know why exactly you would like to have it. Features should be implemented for their utility, not just “others have it so we should too”.
You can already do this with PHP. Contentful is a platform that can do this, and it works with PHP. And even then, generating pages based on a HTTP payload can be done from basically any language.
Can you please elaborate on this one? What socket handling do you need in your website?
Literally every server side language can do this.
True, shipping custom modules to talk to your own programs is a lot more common with Python than it is with PHP.
But just to be clear on the exact purpose for this: do you have a use case where you need to have this ability to host your website?
At the begining, I would like to mention that it’s quite difficult to explain all with simple words, so I try to do it in a more descriptive way. Let me give a example:
I have a modular project (with is by Python called “apllication”) that implements separate protocols for client-server (application): communication, client interaction, API, resources transfer (to reduce branwith load), administration propouses (including resources and modules management), sharing to the client about the app state, bridging in between modules wroten in different programming languages, etc.
It’s true that some php framework may offer partially similiar possibilities, but they doesn’t offer same level of functionality.
Additionally, php frameworks are less effocient and require more files then a python3
This sounds interesting. PHP might be bad at something notably data exchange, which is something I ran into recently, and Python may have the upper hand here.
However, I think I have to make it clear that we won’t give you python3 for free.
Feel free to continue the chat, but don’t get your hopes up.
Doing non-HTTP stuff with PHP is indeed quite painful. Python is better for this (especially with Asyncio), but Node.js or Go would be even better.
That said, the way Python works on premium hosting also won’t let you do this. You don’t get to run your own Python process, instead you can just register some HTTP endpoints to run your Python code through Passenger. You have to remember that Python support on web hosting doesn’t make it any other service than web hosting.
And then there is the browser validation system that’s present on free hosting that will prevent any kind of non-browser access, including access from API clients and mobile apps.
So even if free hosting had the same Python support as premium hosting, you still wouldn’t be able to host your project with us.
It sounds like web hosting is general is just not a good fit for your project. You may want to get a VPS instead, or try to find some specialized hosting that’s better suited for your application.
I don’t know if that’s true, but I can tell you that it heavily depends on the framework. Also, number of files are not usually a limitation.
At least with PHP, you could host your entire website in a single index.php file with no extra dependencies. You’ll probably run into the file size limit on free hosting, but it’s possible.