Previous page

Next page

Print this page

Parallels Python API by Example

This chapter provides code samples and descriptions of how to perform the most common tasks using the Parallels Python API. Each sample is provided as a complete function that can be used in your own program. Each sample function accepts a parameter -- usually an object of class prlsdkaspi.Server identifying the Parallels Service or an object of class prlsdkapi.Vm identifying a virtual machine. The Creating a Basic Application section shows how to create and initialize the prlsdkapi.Server object and contains a skeleton program that can be used to run individual examples provided later in this chapter. To run the examples, simply paste a sample function into the program and then call it from main() passing the correct object and/or other required values.

In This Chapter

Creating a Basic Application

Connecting to Parallels Service and Logging In

Host Operations

Virtual Machine Operations

Remote Desktop Access

Please send us your feedback on this help page