azure-samples-python-management icon indicating copy to clipboard operation
azure-samples-python-management copied to clipboard

Recommendation to use REST API in Python

Open hammad93 opened this issue 2 years ago • 1 comments

With the necessity of installing multiple dependencies and then the overhead of managing and updating them, utilizing the REST API instead of the Python SDK has been easier. There are no dependencies as requests is bulit-in and there's no updates required. While I think the Python SDK is still necessary, I wanted to provide this perspective for developers to just use requests and make the REST API call is also a good solution.

It also looks like the samples have the sample JSON data structures that the REST API expects too.

hammad93 avatar Nov 16 '23 18:11 hammad93

Comparing with REST API call with requests, Python SDK can provide other function (e.g. authentication/customized policy/unified exception/...). Each way has pros/cons, and developers can choose any way they like to use Azure service.

msyyc avatar Nov 28 '23 03:11 msyyc