I have some data coming from a SOAP API using Suds which I need to parse in my Python script. Before I go off and write a parser (ther
There is a class method called dict in suds.client.Client class which takes a sudsobject as input and returns a Python dict as output. Check it out here: Official Suds Documentation
The resulting snippet becomes as elegant as this:
from suds.client import Client
# Code to obtain your suds_object here...
required_dict = Client.dict(suds_object)
You might also want to check out items class method (link) in the same class which extracts items from suds_object similar to items method on dict.