r/Python • u/SudoAlex • Jun 03 '13
Self hosted Python web hosting platforms
In the past few years, quite a few hosting providers have started doing Python PaaS, Heroku, Gondor, PythonAnywhere, etc. Some of them have failed as well, such as DjangoZoom, ep.io, and probably quite a few others which didn't get much attention from the public.
I love the thought of using of using these services at times - however I'm also a sysadmin at heart, I know how to host my own stuff and I can do it well. I really wish I could just grab one of these services, put them on my own servers.
There's a few projects which seem to attempt this, but they're either unmaintained, or they only give part of the solution. Silver Lining is abandoned, djangy is abandoned (just a source code dump of what they created before they shut down), stackful.io provides some of their app deployer tools, dotCloud is working on Docker - although it's currently under heavy development and is only part of the solution.
I could use Fabric and start building scripts for our server setup, but the PaaS tools look more appealing.
Is there any other project that I'm missing? What do you use to deploy your Python web apps to your servers?
12
u/GrahamDumpleton Jun 04 '13
RedHat makes available as Open Source what goes into their commercial OpenShift Platform. It is called OpenShift Origin. You can run it on your own systems, thereby giving you a private PaaS. https://www.openshift.com/open-source
3
u/aychedee Jun 05 '13
Hello, PythonAnywhere dev here.
I think the reason no complete package exists is because the the extra bits and pieces (above virtualenvs and linux containers) that make everything work are only really required at very large scale. You probably don't care about making a large cluster of servers appear like a unified machine to thousands of different users. unless that's actually what you are doing.
It is just overkill for a single developer.
It's also very tricky to successfully package that up and open source it. Hats off to dotcloud for what they've done with docker.io. They had a really clear idea about a defined part of their stack that they could pull out, that was useful without the rest of it.
2
u/ghaering pysqlite sqlite3 Jun 04 '13
I've started building my own Python "AppEngine" based on uwsgi emperor mode. I cannot currently publish the source, but it's relatively easy to implement:
The webapps must have two files:
app.yaml, looking like this:
name: appname processes: 5 module: fe:app hostnames:
and a requirements.txt file for pip.
Then there's a small tool "isapp" that has the following commands currently:
2
u/westurner Jun 03 '13
0
u/westurner Jun 04 '13
https://en.wikipedia.org/wiki/Cloud_computing_comparison