开发者

Python / Django Web service Confusion

开发者 https://www.devze.com 2023-01-16 14:24 出处:网络
I am trying to explore more about web service in Python/Django and to be honest i am quite confused. There are so many things like SOAPpy, XML-RPC, JSON-RPC REST开发者_如何学Cful, web service.

I am trying to explore more about web service in Python/Django and to be honest i am quite confused. There are so many things like SOAPpy, XML-RPC, JSON-RPC REST开发者_如何学Cful, web service.

Basically all i want to know is what is the standard way of implementing web service in Python/Django and has anyone implemented in live production environment


There isn't a 'standard' way, but a lot of people (including me) have used -- and like! -- Django Piston, which is actually also used to create the web service for BitBucket (where piston's source is hosted)

Also, if you're still learning about web services, I can highly recommend the O'Reilly book RESTful Web Services -- although it's a book with a focus on REST (which I agree is the best design pattern for a web service) it also explains RPC and SOAP, too.


There are so many things like SOAPpy, XML-RPC, JSON-RPC RESTful, web service.

This should give you a clue - there are different services out there that use one or more of these mechanisms.

Basically all i want to know is what is the standard way of implementing web service in Python/Django and has anyone implemented in live production environment

There is no single standard way of implementing a web service. This is as true for Django/Python as for other web frameworks.

Different people have used Django in different ways to create a web service to suit their needs.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号