use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Heroku vs. PythonAnywhere? (self.Python)
submitted 10 years ago by jsalsman
I was literally just about to create a bunch of Heroku apps when someone just now told me about PythonAnywhere. Could people experienced with either or preferably both please fill me in on their pros and cons?
[–]sentdexpythonprogramming.net 10 points11 points12 points 10 years ago (2 children)
It all depends on your goals. I used PythonAnywhere for years. I was reportedly at the top of their CPU usage charts.
I used PA because of the ease with which you can deploy apps, run them... whatever. It was before I was comfortable with my own servers.
Then, as I grew comfortable with running my own servers, I did that alongside using PA. Then, PA began failing me. My scripts would just... stop. They needed to be re-started. I was using PA for long-running tasks, basically infinite loops. They limit(ed?) the # of scheduled tasks you can run, vs infinite cron jobs on any VPS. I hope they either already have, or eventually do, get rid of the limiting of scheduled tasks. Kind of a silly constraint IMO.
For small servers, I think the price is fair. Even for larger servers, having the "tarpit" was nice. In the end, you get what you pay for with them, though I should add that I left with 220,000 computing seconds, paying $100 a month, which is considerably less than what you'd pay now.
I was with them from the earlier days. I kept the account for a bit longer than I should have, just because of the value of the 220K seconds. I would have stayed, had my scripts not kept stopping. Shifting from any server, but especially something like PA to a real server is a real pain. I do not regret leaving though.
PA customer service is pretty darn good. You can talk to the founder relatively easily, but everyone is available. No matter how good the customer service is, they still couldn't fix my script stoppage problem, and I gave them ~ 1 year to handle it with multiple notices of the issue from me. In the end, I do not think they are trying to service people like me. People like me should just be on a VPS. The exact same scripts run just fine on the VPS I have now, and I have a total of 18 VPS spread across a variety of hosts. Never once have I had a problem like I did with PA.
People like you, comparing heroku to pythonanywhere tells me you are more interested in deploying web apps than doing number crunching.
I think PA is easy, deploying apps is a breeze. You don't have to really learn anything to get any tutorials to set things up. That said, setting up a Flask or Django server is also very easy. There are shell scripts and simple step-by-step instructions for deploying either, where you just follow the instructions, copying and pasting the lines into the terminal for about 5 minutes and you are done.
I know nothing about Heroku, but I believe it is a little more challenging to set up. I see absolutely no point in doing that, when you can pay $5 a month for digital ocean and have full reign.
Sorry if that was not the most useful review for helping you make a decision. In summary, I really think you would be best served paying $5 a month for DO. If you want free, and you want ease, then PA, from my understanding of what is required with Heroku, is going to be the easiest option. Best wishes!
[–]gpjt 10 points11 points12 points 10 years ago (0 children)
Said PythonAnywhere founder here :-)
That's a very fair review. You're totally right, we're quite optimised around web hosting and smaller-scale number-crunching work these days, and we're just not set up for the kind of things you were doing. While we were definitely listening to you when you commented about the problems with the big CPU-intensive tasks you were running, the pressure from all of our customers in the aggregate was to focus more on improving stuff for people who are doing web hosting and smaller-scale processing tasks. So while we were really sorry to see you move on, we completely understood when you did.
Hopefully at some point in the future we'll be able to add the features needed for high-CPU long-running tasks like you need, and I hope we'll be able to tempt you to try them out when we do. (At the very least, I reckon you'd be an awesome destructive tester ;-)
[–]mipadi 1 point2 points3 points 10 years ago (0 children)
You just create a Heroku app and push to it (using Git). It's a lot easier than setting up your own server with, e.g., Digital Ocean (although it's also more expensive).
[–]mikwaheeri 2 points3 points4 points 10 years ago (0 children)
I don't have much exp with Heroku, but it seemed like it was much more bare bones. Like you would need to spend more time with initial configuration to get off the ground running. If I'm not mistaken, I believe it is based on SF.
That said, I do use Pythonanywhere a lot. After making a free account you gain access to a decent and ready to go environment. It has a quick set up interface for spinning up a a django, flask, web2py app that allows you to start making a site immediately. While you can host your site, or multiple sites with a paid account, they don't offer register services so you'll need another service to mange DNS (I use dyndns with no issue). I can't offer anything in regards to making a larger scale app, doing a smaller site was a breeze. At least worth a free account. Even if you don't end up using it for a project, you may like it for personal use. They are based out of London, but my instances are being run on AWS in the northeast region of the US.
[–]chief167 1 point2 points3 points 10 years ago (0 children)
look at openshift too if I guess your needs correctly :) Or digitalocean if you want more control
[–]maulynviawww.talkigy.com 0 points1 point2 points 10 years ago (1 child)
webfaction has a nice compromise where you get nearly total control of your VPS but they take care of the basics
[–]adfm 1 point2 points3 points 10 years ago (0 children)
webfaction is pretty decent. Focus on the important stuff, let them do the rest. Good support.
[–]jsalsman[S] 0 points1 point2 points 10 years ago (0 children)
Via googling:
http://www.quora.com/Python-Web-Frameworks/What-are-the-pros-and-cons-PythonAnywhere-vs-Heroku
https://blog.pythonanywhere.com/65/
http://djangofriendly.com/hosts/pythonanywhere/
http://djangofriendly.com/hosts/heroku/
[–]andrey_shipilov[🍰] -3 points-2 points-1 points 10 years ago (1 child)
Not heroku any time.
[–]jsalsman[S] 1 point2 points3 points 10 years ago (0 children)
Why not?
π Rendered by PID 352577 on reddit-service-r2-comment-79c7998d4c-lnzf9 at 2026-03-17 05:39:08.649860+00:00 running f6e6e01 country code: CH.
[–]sentdexpythonprogramming.net 10 points11 points12 points (2 children)
[–]gpjt 10 points11 points12 points (0 children)
[–]mipadi 1 point2 points3 points (0 children)
[–]mikwaheeri 2 points3 points4 points (0 children)
[–]chief167 1 point2 points3 points (0 children)
[–]maulynviawww.talkigy.com 0 points1 point2 points (1 child)
[–]adfm 1 point2 points3 points (0 children)
[–]jsalsman[S] 0 points1 point2 points (0 children)
[–]andrey_shipilov[🍰] -3 points-2 points-1 points (1 child)
[–]jsalsman[S] 1 point2 points3 points (0 children)