Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105940 > unrolled thread
| Started by | justin walters <walters.justin01@gmail.com> |
|---|---|
| First post | 2016-03-28 18:35 -0700 |
| Last post | 2016-03-28 18:35 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Which are best, well-tested ways to create REST services, with Json, in Python? justin walters <walters.justin01@gmail.com> - 2016-03-28 18:35 -0700
| From | justin walters <walters.justin01@gmail.com> |
|---|---|
| Date | 2016-03-28 18:35 -0700 |
| Subject | Re: Which are best, well-tested ways to create REST services, with Json, in Python? |
| Message-ID | <mailman.124.1459215309.28225.python-list@python.org> |
On Mon, Mar 28, 2016 at 5:17 PM, David Shi <davidgshi@yahoo.co.uk> wrote: > Hello, Justin, > > I am thinking of a fast, responsive, secure way of doing this. Python at > server-side. It provides REST services. Data exchange with the > web--page. Formatted XML or Json. > > Ideally, it uses the least code. > > Any excellent literature describes this? I like articles which give > insight into the nitty-gritty. > > Looking forward to hearing from you. > > Regards. > > Shao > > > > David, Please reply all on this list. My preferred method is to use Django with Django Rest Framework. Django is a very mature and robust framework with a ton of features. I use it in production for several projects and have very few issues. It includes middleware authentication and security features as well. You can find the Django documentation here: https://docs.djangoproject.com/en/1.9/. If you've never used Django before, I recommend going through the official tutorial. It is also advised to use Python 3.4+. Django rest framework is probably one of the best documented packages out there. You can find it's documentation here: http://www.django-rest-framework.org/. The official tutorial is very in-depth. I would recommend working through it as well. DRF includes a lot of functionality and multiple authentication and serialization methods. There are other options as well depending on the scale of your project you may choose to use something like flask: http://flask.pocoo.org/ with flask-restful and sqlalchemy. Like I said my personal recommendation is Django and DRF as it is easy to set up, there isn't much overhead, and it scales very well. Does that answer your question, or were you looking for more information?
Back to top | Article view | comp.lang.python
csiph-web