**Jag kommer att leda med tl;dr om gratis python-värd. Vi hittade ett företag som erbjuder gratis python-värdplaner utan krångel. Om du behöver gratis webbhotell för Python-appar (gratis som i öl) och inte behöver: - En anpassad domän / Marknadsföringsverktyg / Blogg - Teknisk support - Mycket bandbredd eller CPU-tid Om du bara behöver en gratis server för ett python-projekt är de det bästa alternativet. Anmäl dig här: **PythonAnywhere** (affiliatlänk till gratiserbjudande, vi har skickat dem cirka 700 personer’) **Om du använder din webbplats att bygga ett företag kolla in Opalstack. De är en betald Python-vänlig värd; för så lite som $10 per månad får du bättre teknisk support och många uppgraderingar (e-postadresser, gratis SSL-certifikat, WordPress-blogginstallatörer, Postgres-databaser, Ruby / Node.js / PHP-stöd). Dessa kan hjälpa dig att bygga en **mer professionell webbplats** och hjälpa **skala upp den till ett effektivt företag **Gratis Python Hosting âÃÂàSaker jag önskar att jag visste förr** Någonstans där ute är jag säker på att det finns ett webbhotell som proaktivt förklarar sina begränsningar **innan** du ger dem ditt kreditkort. Det finns många människor där ute som kan ”hosta” Python-applikationer – om du hantera arbetet med att sätta upp en okonfigurerad VPS. Förmodligen inte särskilt svårt om du vet hur âÃÂàmen jag vet inte och, helt ärligt, inte  bryr sig inte om att lära. När det kommer till Python-hosting letar jag efter ett alternativ som bara fungerar’ . Förresten, om du bara vill testa att prototypa din applikation, låter de flesta Python-webbramverk dig köra en dev-server på din bärbara dator. Du behöver inte en riktig värd förrän du är redo att distribuera till omvärlden. Detta borde räcka för att du ska kunna utveckla en fungerande prototyp av din applikation. Men processen att hitta en bra (helst gratis) python-värd för att publicera ditt första projekt på webben har några egenheter som den här artikeln hjälper dig att övervinna. Om du har ett par grundläggande webbplatser (PHP, WordPress, etc), kommer du förmodligen att ha ett befintligt förhållande till en LAMP-värddräkt. Dessa människor är bokstavligen en dime ett dussin. Men vad du snabbt kommer att upptäcka är att Python-servervärd inte passar dessa företag. Du måste förstå detta gap så att du kan upptäcka det tidigt och gå vidare till nästa företag. Du kan stänga av PHP-användare på samma server från varandra genom att begränsa deras åtkomst via en mycket strukturerad hanteringskonsol. Python-applikationer behöver djupare åtkomst till det underliggande systemet än ett PHP-skript. Detta kräver en stor investering i hosting och serverhantering. Detta blev en vägspärr: medan Python är ett mycket kraftfullare språk än PHP, erbjöd PHP / LAMP en billigare och enklare distributionsväg för en nybörjare. Det leder dig snabbt till att köpa en low-end VPS, som kan kosta $50/månad med bra kundservice. Jag föredrar också att ta itu med ett värdföretag som uttryckligen är engagerat i Python-communityt. Det innebär att designa sin miljö för att stödja oss och bemanna sina helpdesk-team med människor som har exponering för språket. Det gör det mycket lättare att lösa problem med en Python-applikation. Alla som profileras i den här artikeln är ett gediget företag, aktiv deltagare i Python-gemenskapen och har byggt Python-vänliga applikationsdistributionsprocesser. **Vad du får och vad du inte gör (den oundvikliga merförsäljningen att betala Om du använder detta för att vara värd för ett sidoprojekt eller en klasswebbplats, hoppa till nästa ämne. Om du använder detta för affärs- eller karriärsyften bör du antagligen fundera på ett par faktorer som så småningom kommer att få dig att uppgradera till en betald plan. Eftersom uppgraderingserbjudandet vanligtvis erbjuds i din nödtimme (efter att du redan har flyttat in på deras plattform och inte har tid / energi för att flytta någon annanstans) är prissättningen sällan särskilt konkurrenskraftig. Så det är värt att bedöma om du vill köpa en betald plan från början (och få ett bra pris på det). Efter att ha levt i båda världarna, här är de viktigaste skillnaderna mellan gratis och betalda planer: Ditt eget domännamnâÃÂàkostar $10 âÃÂà20 per år, ser betydligt mer professionellt ut och âÃÂÃÂestablishedâÃÂàän mysite.freehost.com, låter dig bygga en publik och Google söktrafik och ta denna publik med dig om du lämna. Teknisk support âÃÂÃÂJag ringer 2 âÃÂà3 samtal per år och det besvaras snabbt. Gratis värdar svarar sällan om du inte ÃÂàpåverkar andra (i vilket fall startar de bara upp dig) Gratis SSLâÃÂàDet är 2019 personer, använd HTTPS. En av mina favoritfunktioner hos Webfaction är den kostnadsfria automatiserade SSL-certifikatleveransen från Lets Encrypt. Detta sparar mig cirka tjugo dollar per år per webbplats i förhållande till de flesta kommersiella värdar. Enklare installation: Betalda värdplaner inkluderar i allmänhet saker som paketinstallatörer, enkel databasintegration, möjlighet att släppa en WordPress-blogg på en del av din webbplats, etc. Detta kan spara tid och frustrationer icke-kärnverksamhet. Obegränsat antal e-postadresser (titta nervöst över axeln) Jag säger inte att vi någonsin har gjort detta (för att hjälpa en välgörenhetsorganisation att samla in pengar, förstås) men du har möjlighet att skapa ett obegränsat antal e-postadresser om du äger din egen domän. Annonser& Sekretess: Beror på programmet (Python Anywhere är bra), men du har ett par gratis värdfolk där ute med motbjudande metoder i den här avdelningen. Plus, naturligtvis, den kostnadsfria värden vanligtvis ser på dig som en enorm e-postlista för uppförsäljning. Begränsad bandbredd. Egentligen inte ett problem om inte något du skapar blir viralt på Hacker News eller Reddit, då din webbplats snabbt kommer att bli mörk. Jag kan inte skylla på gratisvärdarna för detta. Webbhotell, bandbredd och kundsupport kostar pengar och de måste ta igen det någonstans. Affärsmodellen för gratis hosting kretsar i grund och botten kring att gaslighting de fria användarna med små irritationsmoment för att övertyga folk att uppgradera till en betald plan (till priser över genomsnittet, eftersom de redan finns på din plattform). Inte ett problem för ett roligt projekt, men se till att du inte gör det faktiskt **behöver** allt från dem… Om du bygger ett seriöst projekt med kommersiella ambitioner, är tid och tillförlitlighet för utvecklare mer värdefull än pengar. Om jag måste spendera mer än 10 minuter i månaden på att underhålla "the box"eller (värre) hantera ett avbrott, den kostnadsfria pythonwebben värdplan är inte värt det. **Gratis Python-värdalternativ** [Uppdaterad januari 2019] Tyvärr har den här listan krympt sedan vår senaste revidering. Vi kommer att gå igenom tre alternativ här, varav ett förblir ett mycket bra val, de andra två har fäst betydande strängar till sina erbjudanden. Vår fjärde plan är inte gratis längre. Om någon har bra kontakter i Washington DC och vill stimulera ekonomin, vänligen föreslå att de finansierar en GARP-räddningsaktion ( **G**regering **A**stöd för **R**unning **P**ython); gratis Python-servrar för alla! Ok, tillbaka till de verkliga alternativen… Först ut, PythonAnywhere. De har en nybörjarkontoplan som är gratis (som i öl) och ger dig grunderna som krävs för att få din första webbapplikation online och synlig. Planen inkluderar användning av en underdomän (.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