Aditya Singh
Aditya Singh

Reputation: 372

Zeep vs Requests for SOAP APIs in Python

So I know that Python's requests module can be used to handle REST APIs, and as per this answer here, requests can also handle SOAP APIs as well. I've worked only with REST APIs so far, but of the few people I know who work with SOAP APIs, they almost always use another module zeep.

Is there anything I'm missing? Why is there a need for a whole seperate module, when it is possible using requests as well - and more importantly, why doesn't anybody just uses requests instead of using zeep?

Upvotes: 2

Views: 1543

Answers (1)

rightsized
rightsized

Reputation: 180

Ease of use and reusability. While you could use the requests module and write raw XML, Zeep is a high level interface which generates the XML automatically

Upvotes: 4

Related Questions