**Ngizohola nge-tl;dr mayelana nokusingathwa kwamahhala kwe-python. Sithole inkampani enikezela ngezinhlelo zokubamba i-python mahhala ngaphandle kokuhlupheka Uma udinga ukusingathwa kwewebhu kwamahhala kwezinhlelo zokusebenza ze-Python (mahhala njengakubhiya) futhi ungazidingi: - Isizinda Esingokwezifiso / Amathuluzi Wokuthengisa / Ibhulogi - Ukusekela kwezobuchwepheshe - I-bandwidth eningi noma isikhathi se-CPU Uma udinga kuphela iseva yamahhala yephrojekthi eseceleni ye-python bayindlela yakho engcono kakhulu. Bhalisa lapha: **PythonAnywhere** (isixhumanisi esihlobene nesipho samahhala, sithumele cishe abantu abangu-700) **Uma usebenzisa isayithi lakho ukwakha ibhizinisi hlola i-Opalstack. Bangumsingathi okhokhelwayo olungele i-Python; ngemali encane efika ku-$10 ngenyanga uthola ukwesekwa okungcono kwezobuchwepheshe kanye nokuthuthukiswa okuningi (amakheli e-imeyili, izitifiketi zamahhala ze-SSL, Izifaki zebhulogi ye-WordPress, izingosi zolwazi ze-Postgres, ukwesekwa kwe-Ruby/Node.js/PHP). Lokhu kungakusiza ukuthi wakhe **iwebhusayithi echwepheshile** futhi isize **ukuyikhulisa ibe yibhizinisi eliphumelelayo **Ukusingathwa Kwamahhala KwePython âÃÂàIzinto Engifisa Ukuzazi Ngokushesha** Ndawana thize laphaya, ngiyaqiniseka ukuthi kukhona inkampani yokusingatha echaza ngokuqhubekayo ukulinganiselwa kwayo. **ngaphambi** ubanikeze ikhadi lakho lesikweletu. Kukhona abantu abaningi laphaya abangabamba izicelo ze-Python uma phatha umsebenzi wokusetha i-VPS engalungiselelwe. Mhlawumbe akunzima kakhulu uma wazi ukuthi kanjani kodwa angazi futhi, ngokweqiniso, angazi. Anginandaba nokufunda. Uma kuziwa ekusingatheni i-Python, ngibheka inketho esebenza nje. . Ngendlela, uma ufuna nje ukuhlola i-prototyping yesicelo sakho, izinhlaka eziningi zewebhu zePython zikuvumela ukuthi usebenzise iseva ye-dev kukhompyutha yakho ephathekayo. Awumdingi umsingathi wangempela kuze kube yilapho usulungele ukuthunyelwa emhlabeni wangaphandle. Lokhu kufanele kube ngokwanele ukukusiza ukuthi uthuthukise i-prototype esebenzayo yohlelo lwakho lokusebenza. Kodwa inqubo yokuthola umsingathi we-python omuhle (okhululekile) ukuze ashicilele iphrojekthi yakho yokuqala kuwebhu inezingqinamba ezimbalwa le ndatshana ezokusiza ukuthi uzinqobe. Uma unamasayithi ambalwa ayisisekelo (i-PHP, i-WordPress, njll), cishe uzoba nobudlelwano obukhona nempahla yokubamba i-LAMP. Laba bantu empeleni bayi-dime neshumi nambili. Kodwa-ke, ozokuthola ngokushesha ukuthi ukusingathwa kweseva yePython akuzilungele lezi zinkampani. Udinga ukuqonda leli gebe ukuze ukwazi ukulibona kusenesikhathi bese udlulela enkampanini elandelayo. Ungakwazi ukuvala udonga abasebenzisi be-PHP kuseva efanayo ukusuka komunye nomunye ngokukhawulela ukufinyelela kwabo ngekhonsoli yokuphatha eyakhiwe kakhulu. Izinhlelo zokusebenza zePython zidinga ukufinyelela okujulile ohlelweni oluyisisekelo lweskripthi se-PHP. Lokhu kudinga ukutshalwa kwezimali okukhulu ekusingatheni nasekuphathweni kweseva. Lokhu kwaba isivimbamgwaqo: kuyilapho i-Python iwulimi olunamandla kakhulu kune-PHP, i-PHP / LAMP inikeze indlela eshibhile nelula yokuthunyelwa kwe-newbie. Lokho kukwenza usheshe uthenge i-VPS esezingeni eliphansi, engaba ngu-$50/ngenyanga ngenkonzo yamakhasimende enhle. Ngiphinde ngikhethe ukubhekana nenkampani yokubamba ezinikele ngokusobala emphakathini wePython. Lokhu kusho ukuklama indawo yabo ukuze basisekele futhi basebenze emaqenjini abo edeski losizo nabantu abanolwazi ngolimi. Kwenza ukuxazulula izinkinga ngohlelo lokusebenza lwePython kube lula kakhulu. Wonke umuntu ophrofayili kulesi sihloko uyinkampani eqinile, ebamba iqhaza emphakathini wePython, futhi yakhe izinqubo zokuthunyelwa kwezicelo ezinobungani bePython. **Lokho Okutholayo Nongakutholi (I-Upsell Engenakugwemeka Okukhokhelwayo Uma usebenzisa lokhu ukusingatha iphrojekthi eseceleni noma isayithi lekilasi, yeqela esihlokweni esilandelayo. Uma usebenzisa lokhu ngezinhloso zebhizinisi noma zomsebenzi, kufanele unikeze okuthile ezintweni ezimbalwa ezizokugcina zikwenze uthuthukele ohlelweni olukhokhelwayo. Njengoba isivumelwano sokuthuthukisa ngokuvamile sinikezwa ngehora lesidingo sakho (ngemuva kokuthi usuvele udlulele kuplathifomu yabo futhi ungenaso isikhathi / amandla okuthuthela kwenye indawo), amanani awavamile ukuncintisana kakhulu. Ngakho-ke kufanelekile ukuhlola uma ufuna ukuthenga uhlelo olukhokhelwayo kusukela ekuqaleni (futhi uthole isilinganiso esihle kulokho). Njengoba usuphile kuyo yomibili imihlaba, nanka amaphuzu abalulekile omehluko phakathi kwezinhlelo zamahhala nezikhokhelwayo: Igama lakho lesizindaâÃÂàlibiza u-$10 âÃÂà20 ngonyaka, libukeka linobuchwepheshe kakhulu. futhi i-ÃÂÃÂisunguliwe kune-mysite.freehost.com, ikuvumela ukuthi wakhe izethameli kanye nethrafikhi yosesho lwe-Google futhi uthathe lezi zithameli uma uhamba nawe. shiya. Ukusekelwa Kobuchwepheshe âÃÂÃÂNgenza amakholi angu-2 ¢ÃÂà 3 ngonyaka futhi iphendulwa ngokushesha. Ababungazi bamahhala abavamile ukuphendula ngaphandle kwalapho wena-¢ Kuthinta abanye (uma kunjalo, bavele bakuqalise) I-SSLâÃÂÃIyabantu bango-2019 yamahhala, sebenzisa i-HTTPS. Esinye sezici engizikhonzile kwa-Webfaction ukunikezwa kwesitifiketi se-SSL esizenzakalelayo samahhala esivela ku-Lets Encrypt. Lokhu kungonga cishe amadola angamashumi amabili ngonyaka ngewebhusayithi ngayinye uma kuqhathaniswa nabasingathi abaningi bezentengiso. Ukusetha Kalula:Izinhlelo zokubamba ezikhokhelwayo ngokuvamile zihlanganisa izinto ezifana nezifaki zephakheji, ukuhlanganiswa kwesizindalwazi esilula, ikhono lokuphonsa ibhulogi ye-WordPress engxenyeni yewebhusayithi yakho, njll. Lokhu kungakongela isikhathi nokukhungatheka. ion emisebenzini engabalulekile. Amakheli E-imeyili Angenamkhawulo âÃÂÃÂ(abheke emahlombe ethukile) Angisho ukuthi sesake sakwenza lokhu (ukusiza inhlangano esiza umphakathi ukuthi iqoqe imali, kunjalo) kodwa unamandla okudala amakheli e-imeyili angenamkhawulo uma ungumnikazi wesizinda sakhoâÃÂæ. Izikhangiso& Ubumfihlo:Kuncike ohlelweni (Python Anywhere inhle), kodwa uthole abantu abambalwa abasingatha mahhala laphaya abanemikhuba emibi kulo mnyango. Futhi, vele, umsingathi wamahhala uvamise ukukubuka njengohlu olukhulu lwe-imeyili lokuthengisa okuphezuluâ¢ÃÂæ Umkhawulokudonsa Olinganiselwe Akuyona inkinga ngempela ngaphandle kokuthi okuthile okudalayo kuhamba ngegciwane ku-Hacker News noma i-Reddit, ngaleso sikhathi iwebhusayithi yakho izoba mnyama ngokushesha. Angikwazi ukusola ababungazi bamahhala ngalokhu. Ukusingathwa kwewebhu, umkhawulokudonsa, nokusekelwa kwamakhasimende kubiza imali futhi kufanele bakwenze ndawana thize. Imodeli yebhizinisi lokubamba mahhala igxile ekukhanyiseni abasebenzisi bamahhala ngezinto ezicasulayo ezincane ukuze bakholwe abantu ukuthi bathuthukele ohlelweni olukhokhelwayo (ngamanani angaphezulu kwesilinganiso, njengoba sebevele basendaweni yakho). Akuyona inkinga yephrojekthi ejabulisayo, kodwa qiniseka ukuthi empeleni awukwenzi. **ngidinga** noma yini kuboâÃÂæ Uma wakha iphrojekthi ebucayi enezifiso zentengiso, isikhathi sikanjiniyela nokuthembeka kubaluleke kakhulu kunokheshi. Uma kufanele ngichithe imizuzu engaphezu kweyi-10 ngenyanga nginakekela âÃÂÃÂibhokisiâÃÂà noma (okubi kakhulu) ngibhekana nokucisha, iwebhu ye-python yamahhala uhlelo lokubamba alukufanele. **Izinketho zamahhala zokubamba i-Python ** [Ibuyekezwe ngoJanuwari 2019] Ngokudabukisayo, lolu hlu lunciphile kusukela sabuyekezwa okokugcina. Sizohamba ngezinketho ezintathu lapha, enye yazo ehlala iyisinqumo esihle kakhulu, ezinye ezimbili zinamathisele izintambo ezibalulekile emnikelweni wazo. Uhlelo lwethu lwesine alusakhululekile. Uma kukhona oxhumene kahle e-Washington DC futhi efuna ukufukula umnotho, sicela uphakamise ukuthi axhase ngebheyili ye-GARP ( **G**uhulumeni **A**usizo lwe-**R**unning **P**ython); amaseva wamahhala wePython wawo wonke umuntu! Kulungile, buyela ezinkethweni zangempelaâÃÂæ Okokuqala, i-PythonAnywhere. Banohlelo lwe-akhawunti yabaqalayo olumahhala (njengakubhiya) futhi lukunikeza izisekelo ezidingekayo ukuze uthole isicelo sakho sokuqala sewebhu ku-inthanethi futhi sibonakale. Uhlelo luhlanganisa ukusetshenziswa kwesizinda esingaphansi (.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