Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Cotten Blackwell
Cotten Blackwell
10,425 Points

Flask-RESTful or Flask API: Which framework will be used in the "Build a REST API with Flask" course coming this month?

For those of us who can't wait for the "Build a REST API with Flask" course coming this month, can you please give us a point in the right direction -- if we have to explore this on our own until then?

Also, how are we tracking for having the course released this month, please? And how do I volunteer to test-drive or beta-test it before it's ready for prime time?

Thanks!

Cotten Blackwell

P.S. Just to be crystal clear, I'm referring to these competing frameworks:

http://flask-restful-cn.readthedocs.org/en/0.3.4/ http://www.flaskapi.org/

From a quick read it looks like Flask-RESTful is more ready for prime time, so I'm going to jump in with that if I don't hear back from the Forums....

Richard Lu
Richard Lu
20,185 Points

I'd like to know too. I'm so excited for this!!! :)

5 Answers

Any major reason behind this shift of priorities? Looking at the upcoming courses, more and more seem to be based around things I'm not interested in (proprietary stuff like IOS development / Unity). I was really looking forward to this class. Are there any more Python classes (or workshops... the recent ones have been pretty great) to come in the next few months?

César Jardim
César Jardim
4,847 Points

Yeah, I feel the same way. I'm going full speed on the Learn Python track so I'd get to this specific workshop :(

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

My current focus is getting a couple more Django courses out and some general Python workshops. After that, I'll be back to this Flask course.

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

First of all, I have some bad news. The Flask RESTful API is coming...but not this month. Due to some priority shifts here at Treehouse, it's gonna be delayed for at least a couple of months. I really need to move that on the roadmap.

OK, bad news out of the way, on to the actual question. I haven't actually decided which library I'll use for the API bit. I was thinking about just building it inside Flask itself. No framework at all. Maybe make a library for it?

That, though, would be a lot of work, so we'll probably use a library. I've been looking at flask-potion lately, too, and I think it would be a pretty solid library to use. Both of the ones you posted above seem really solid, too. Flask-RESTful kind of wins just because of cats.

What your thoughts on Flask-Potion?

Cotten Blackwell
Cotten Blackwell
10,425 Points

Kenneth, thanks for ringing in on this -- and thanks for the Flask and Python courses, which I've been digging!

Honestly, I don't know enough to know whether flask-potion is a better option thank Flask-RESTful; so seriously, (and cats out of the equation) which one would you recommend?

For context, I'm trying to apply what I learned from the Flask course to build a Python-based replacement back end for the parts of Parse.com we used in this project from the Objective-C track:

https://teamtreehouse.com/library/build-a-selfdestructing-message-iphone-app/using-parsecom-as-a-backend-and-adding-users/what-is-an-api-what-does-it-mean-to-use-one

Thanks again,

Cotten

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Flask-RESTful looks like it's pretty far along in its implementation but maybe not complete?

Flask-API seems pretty beta right now, to me. I don't think I'd use it.

Flask-Potion seems the easiest to get going since it can be used just by tying into your existing models.

Out of the three, I'd probably start with flask-potion and use it until it didn't work for me any more, then look at more robust solutions (Django maybe?). I haven't been through that iOS course so I'm not sure what all the parse.com API is doing for you but I'd imagine it could be replicated fairly simply if it's just storing messages.

Cotten Blackwell
Cotten Blackwell
10,425 Points

Thanks, Kenneth -- much appreciated!

James Smith
PLUS
James Smith
Courses Plus Student 454 Points

Folks - thanks for treehouse it has been very helpful for me. I just completed a very complicated social networking site (with PHP as the main server side scripting), the launch of the beta testing will be on the way very soon. However, I am planning on building an Android app for it and I have been taking some Android course, though very helpful.

But, I am really looking for ways to access the website-database using Android app. Will this course help with this knowledge based? And is that what Content negotiation means?

I have very limited knowledge in mobile app - I am trying to catch up. Any feedback will greatly be appreciated!!

James Smith
James Smith
Courses Plus Student 454 Points

Also, the course I am taking are very helpful, but I am mainly looking database manipulation using android mobile.