suds-community / suds

Suds is a lightweight SOAP python client for consuming Web Services. A community fork of the jurko fork.
https://suds.readthedocs.io/
GNU Lesser General Public License v3.0
172 stars 54 forks source link

modified the asdict functionality to recursively give suds object #92

Closed ivavi9 closed 1 year ago

ivavi9 commented 1 year ago

This fixes issue #9 Convert suds object to dict using SO and https://github.com/suds-community/suds/issues/9#issuecomment-1118093541 reference.

The code has modified asdict to take recursive variable set to False as default and added recursive_asdict to handle recursive suds logic. I have tested the code using a recursive example.

Screenshot 2023-05-13 at 2 10 00 AM

ivavi9 commented 1 year ago

Hi @phillbaker do I need to any changes or we are good to merge these changes?

ivavi9 commented 1 year ago

Hi @phillbaker. I have added the space after comma and also created a test_utils.py under test/ covering two unit tests. Kindly see if current version meets your expectation, let me know if any changes required.