Consuming HTTP Services in Python Transcripts
Chapter: Calling SOAP services from Python
Lecture: Installing suds for Python 3
Login or purchase this course to watch this video and the rest of the course contents.
0:01 Now I don't always do examples of how to install things, like pip install the thing, or go to PyCharm and hit command or alt enter
0:09 and it will say do you want to install this, you say yes, okay, but, working with suds-jurko is a little bit different,
0:14 it's not entirely intuitive, so let me just give you this quick rundown, so if we say, first of all which pip are we working with, notice,
0:21 I've activated our virtual environment and just for kicks we'll say which version this is from Python 3, okay, so Python 3.6. great,
0:31 now, if I say pip list what do we have installed, requests, a few other random things that came along with the packaging tools,
0:38 and that's about it, we have no suds, clearly, suds is not in that list, so if I say pip install suds, and hit enter that would be super wrong,
0:48 because that is going to install the five year old Python 2 only version,
0:51 it probably won't even install it actually, but if it does, it's still going to be wrong,
0:55 so what we install is suds-jurko, okay, so the name of the package is suds-jurko. Successfully installed, suds-jurko, version .6.
1:07 Cool, so let's go over here and run Python, that is my virtual environment Python, if I come down here and say import suds_jurko or something,
1:16 that would be wrong, I just import suds, okay, the package name has to be non conflicting with regular suds,
1:22 but other than that, the API and everything is basically old school suds, just made for Python 3 so now we have all the things
1:28 we want to do with this thing right here.