**IâÃÂÃÂll lead with the tl;dr about free python hosting. We found a company who offers free python hosting plans with no hassle If you need free web hosting for Python apps (free as in beer) and donâÃÂÃÂt need:
- A Custom Domain / Marketing Tools / Blog
- Technical Support
- Much bandwidth or CPU time
If you only need a free server for a python side project they are your best option. Sign Up here:
**PythonAnywhere** (affiliate link to free offer, weâÃÂÃÂve sent them about 700 peopleâÃÂæ) **If you are using your site to build a business check out Opalstack. TheyâÃÂÃÂre a paid Python-friendly host; for as little as $10 per month you get better technical support and many upgrades (email addresses, free SSL certificates, WordPress Blog Installers, Postgres databases, Ruby / Node.js / PHP support). These can help you build a **more professional website** and help **scale it up into an effective business **Free Python Hosting âÃÂàStuff I Wish I Knew Sooner**
Somewhere out there, IâÃÂÃÂm sure there is a hosting company that proactively explains their limitations
**before** you give them your credit card. There are a lot of people out there who can âÃÂÃÂhostâÃÂàPython applications âÃÂàif you handle thework of setting up an un-configured VPS. Probably not very hard if you know how âÃÂàbut I donâÃÂÃÂt and, quite honestly, donâÃÂÃÂt care to learn. When it comes to Python hosting, IâÃÂÃÂm looking for an option that âÃÂÃÂjust worksâÃÂÃÂ.
By the way, if you just want to test prototyping your application, most Python web frameworks allow you to run a dev server on your laptop. You donâÃÂÃÂt need a real host until youâÃÂÃÂre ready to deploy to the outside world. This should be enough to get you through developing a good working prototype of your application. But the process of finding a good (ideally free) python host to publish your first project to the web has few quirks that this article will help you overcome.
If you have a couple of basic sites (PHP, WordPress, etc), youâÃÂÃÂll probably have an existing relationship with a LAMP hosting outfit. These folks are literally a dime a dozen. However, what youâÃÂÃÂre going to quickly discover is Python server hosting is not a good fit for these companies. You need to understand this gap so you can spot it early and move onto the next company.
You can wall off PHP users on the same server from each other by limiting their access via a highly structured management console. Python applications need deeper access to the underlying system that a PHP script. This requires a large investment in hosting and server management. This became a roadblock: while Python is a much more powerful language than PHP, PHP / LAMP offered a cheaper and simpler deployment path for a newbie. That quickly punts you up into buying a low-end VPS, which can be $50/month with good customer service.
I also prefer to deal with a hosting firm that is explicitly committed to the Python community. This means designing their environment to support us and staffing their help desk teams with people who have exposure to the language. It makes resolving problems with a Python application much easier. Everyone profiled in this article is a solid company, active Python community participant, and has build Python-friendly application deployment processes.
**What You Get and What You DonâÃÂÃÂt (The Inevitable Upsell To Paid
If youâÃÂÃÂre using this to host a side project or a class site, skip to the next topic.
If you are using this for business or career purposes, you should probably give some though to a couple of factors that will eventually cause you to upgrade to a paid plan. Since the upgrade deal is usually offered in your hour of need (after youâÃÂÃÂve already moved onto their platform and donâÃÂÃÂt have the time / energy to move elsewhere), the pricing is rarely very competitive. So it is worth assessing if you want to buy a paid plan from the start (and get a good rate on that).
Having lived in both worlds, here are the key points of difference between free and paid plans:
Your own domain nameâÃÂàcosts $10 âÃÂà20 per year, looks substantially more professional and âÃÂÃÂestablishedâÃÂàthan mysite.freehost.com, allows you to build an audience and Google search traffic and take this audience with you if you leave. Technical Support âÃÂÃÂI make 2 âÃÂà3 calls a year and it gets answered quickly. Free hosts rarely respond unless youâÃÂÃÂre affecting others (in which case, they just boot you) Free SSLâÃÂàItâÃÂÃÂs 2019 people, use HTTPS. One of my favorite features at Webfaction is the free automated SSL certificate provisioning from Lets Encrypt. This saves me about twenty dollars per year per website relative to most commercial hosts. Easier Setup:Paid hosting plans generally include things like package installers, easy database integration, ability to drop a WordPress blog into part of your website, etc. This can save you aof time and frustration on non-core activities. Unlimited Email Addresses âÃÂÃÂ(look over shoulder nervously) Not saying weâÃÂÃÂve ever done this (to help a charity raise money, of course) but you have the ability to create unlimited email addresses if you own your own domainâÃÂæ. Ads & Privacy:Depends on the program (Python Anywhere is great), but youâÃÂÃÂve got a few free hosting folks out there with unsavory practices in this department. Plus, of course, the free host usually looks at you as a massive email list for up-sellsâÃÂæ Limited BandwidthâÃÂàNot really a problem unless something you create goes viral on Hacker News or Reddit, at which point your website will quickly go darkâÃÂæ
I canâÃÂÃÂt blame the free hosts for this. Web hosting, bandwidth, and customer support costs money and they have to make it up somewhere. The free hosting business model basically revolves around gaslighting the free users with petty annoyances to convince people to upgrade to a paid plan (at above average pricing, since they are already on your platform). Not an issue for a fun project, but make sure you donâÃÂÃÂt actually
**need** anything from themâÃÂæ
If youâÃÂÃÂre building a serious project with commercial ambitions, developer time and reliability is more precious than cash. If I have to spend more than 10 minutes a month maintaining âÃÂÃÂthe boxâÃÂàor (worse) dealing with an outage, the free python web hosting plan isnâÃÂÃÂt worth it.
**Free Python Hosting Options**
[Updated January 2019] Sadly, this list has shrunk since our last revision. WeâÃÂÃÂre going to walk through three options here, one of which remains a very good choice, the other two having attached significant strings to their offerings. Our fourth plan isnâÃÂÃÂt free anymoreâÃÂæ
If anyone good connections in Washington DC and wants to stimulate the economy, please propose they fund a GARP bailout (
**G**overnment **A**ssistance for **R**unning **P**ython); free Python servers for everyone! Ok, back to the real optionsâÃÂæ
First up, PythonAnywhere. They have a beginner account plan that is free (as in beer) and gives you the basics required to get your first web application online and visible. The plan includes use of a subdomain (.pythonanywhere.com) for hosting your project (another $20 saved). The configuration and setup process is managed through a nice simple console; the free plan includes easy setup for several major web frameworks (Django, web2py, flask, bottle) and supports both Python 2 (2.7) and 3 (3.3, 3.4). YouâÃÂÃÂre allowed to host one low-bandwidth web application for free, additional applications require an upgrade to a paid plan. The free plan comes with access to a MySQL database; PostGres is available but requires upgrading to a paid plan.
After looking at the providers, PythonAnywhere (click here for details & signup) emerged as my recommendation as the best free python hosting option for hobby projects and first time users. The console makes it easy to get started, there is a high level of support and guidance, and you get âÃÂÃÂall the stuffâÃÂàrequired to get going on a real project without any really annoying strings. Paid plans are reasonable âÃÂàthe first one starts at $5/month and expands the capabilities of your first application; the second costs $12/month (better value) and lets you to host multiple projects using that account. But best of all, free python hosting does actually indeed mean free: you can run a single app on the free plan as a fully functional (but small), continuously operating Python website for an indefinite time. Unlike the next couple of optionsâÃÂæ
**Update âÃÂàEducators PythonAnywhere has a special program for educators which simplifies managing environments for a large class of students. Details provided here.]
One potential alternative is HerokuâÃÂÃÂs free tier, which announced a pricing change. They simplified things: you can get a free dyno (virtual instance that runs a web application) with the capability of handling some worker processing as well. This is enough to demo a small project and is good preparation for people who intend to use Heroko professionally. One very nice plus: Heroku is closely integrated with Git âÃÂàallowing you to deploy an application directly from your Git repository. You can scale the application by adding additional processors, which will cost you a modest amount of money.
However, theyâÃÂÃÂve gotten a bit aggressive in their strategy for upgrading people to their $7 âÃÂÃÂhobbyistâÃÂàtier. Their free plans are only able to operate online for 18 out of every 24 hours. In practical terms, since the web has a global audience, your project will be offline for at least part of the day. This also very impractical if youâÃÂÃÂre hoping to get your project listed in GoogleâÃÂÃÂs search results; they often index content on sub-domains, but are unlikely to rank a project thatâÃÂÃÂs offline for 6 hours per day very highly in their results. So while Heroku is an decent option if you want to do a quick demo or show a potential employer you can use Heroku, consider using other Python hosting plans for long term personal projects.
OpenShift is another possible option; they are maintained by the original red hat board and offer a cloud service platform. They provide the ability to run three small applications on their platform within the scope of the free plan. However, their pricing scheme seems to have learned from HerokuâÃÂÃÂs example and includes an âÃÂÃÂapplication idlingâÃÂàprovision within the free plan which will pause your site if thereâÃÂÃÂs a significant gap in traffic (suggestion solution being to upgrade to a paid plan). ItâÃÂÃÂs potentially worth checking out if you want to use their platform for larger projects.
Google App Engine
* on our list (and ranked highly) but their free python hosting offering seems to have disappeared into a âÃÂÃÂgive us your credit card and weâÃÂÃÂll give you $300 of free services for 60 daysâÃÂàdeal. Unfortunately too rich for my hobbyist blood. A pity, since their prior deal let you to host up to 10 small websites on their platform and was great place to get started. Google has historically been Python-friendly and they use it for many projects internally. was* **Who We Picked** (Updated for 2021)
If youâÃÂÃÂre looking to build a business around your side project, you should consider upgrading to a paid plan with a developer friendly hosting company. The cost ($10 âÃÂà$25 per month) is well worth the extra support. This includes everything from Free SSL certificates (via Lets Encrypt), support for a broader set of software packages and languages (WordPress, PHP), technical support, and a more robust server infrastructure. This simplifies your life when youâÃÂÃÂre trying to turn a web application into a self-supporting business.
Since my wife and I knew right out of the gate we were going to use our web hosting for commercial purposes, we wound up getting an entry level developer plan from WebFaction. (unfortunately no longer in operation; GoDaddy bought them andthem down last year). Between two consulting businesses and a digital publishing side project, we knew we would be eventually forced to move to a paid program. For us, the best python hosting service would be one which saved us time and frustration.
The good news is aof WebFaction employees left after the GoDaddy acquisition and recreated the WebFaction experience at a new hosting company: OpalStack.. So weâÃÂÃÂre going to talk about them instead.
OpalStack offers a shared hosting environment for Python. This runs behind an nginx server (nearly bulletproof) with the ability to serve static content directly from nginx (very fast). In addition to Python, they provide installers for many PHP packages (including WordPress). YouâÃÂÃÂve got shell access to the server and can set up your own scripts and tools. Tech support is very Python friendly; many of their support team have significant Python experience.
Why we decided to go with OpalStack (and favorite features):
- Ability to use own own domain name (lets us build and retain an audience)
- Python literate customer support (saves a ton of time)
- Free SSL certificates from LetâÃÂÃÂs Encrypt (saves time, money, helps Google Rankings)
- Generous system for shared resources (many basics donâÃÂÃÂt count against your quota)
- Easy Integration with non-Python blogging and content management tools (time saver); lots of fast installers that co-exist with custom python web applications
- Ability to run advertising and generate revenue without interference
- Easy upgrades to dedicated virtual and physical servers (weâÃÂÃÂve got two beefy VPSâÃÂÃÂs today)
So while it costs about $10 per month more, it is worth it from a time and money perspective. If you are using it for business, this is likely a better fit with your goals.
We use them to manage the 30+ websites (with lots of traffic) weâÃÂÃÂve built over the past eight years and are very happy with their service. They offer a free trial for new developers âÃÂàsign up for a free trial using this link. (affiliate link)
Updated: February 2021