I want to create a Python script that allows me to connect to a Remote Machine via an RDP connection. I would really like to know if there are certain APIs in python I can exploit.
Not any I know, however you might be able to write a cython wrapper around libxrdp, which contains library functions for an rdp client. However the library is sparsely documented. There is also FreeRDP (which I don't know), but I'm not sure it's a much better alternative.
I am a bit puzzled by the following code:
d = {'x': 1, 'y': 2, 'z': 3}
for key in d:
print key, 'corresponds to', d[key]
What I don't understand is the key portion. How does Python recognize that it needs only to …