Skip to main content

A Python library for interacting with the VMWare Fusion CLI

Project description

PyPI - Version GitHub License

vmware-fusion-py

This Python module provides a convenient way to control and interact with VMware Fusion virtual machines using the vmrun command-line utility. Built and tested for VMware Fusion on arm64 MacOS

Features

  • Full coverage of the vmrun CLI
    • Start, stop, reset, suspend, pause, and unpause virtual machines
    • Manage snapshots (create, delete, list, and revert)
    • Manage network adapters (list, add, set, and delete)
    • Manage port forwarding for host networks
    • Run programs and scripts in the guest operating system
    • Manage files and directories in the guest operating system
    • Manage shared folders between the host and guest
    • Interact with the guest operating system (type keystrokes, capture screenshots, etc.)
    • Clone virtual machines
    • Upgrade virtual machines and install VMware Tools

Prerequisites

  • Python 3.x
  • VMware Fusion on MacOS
  • vmrun command-line utility (included with VMware Fusion)

Installation

Pip

pip install vmware-fusion-py

From Source

  1. Clone the repository or download the source code.
  2. Install the package using pip install .

Usage

Initialization

# Get vmrun path or provide the path as a string
vmrun_path = shutil.which("vmrun")
if not vmrun_path:
    # vmrun is installed automatically alongside VMware Fusion. Install VMware
    exit()
# Initiate client
client = VMware(vmrun_path=vmrun_path)

Presets

client = VMware(
    vmrun_path="/path/to/vmrun",
    host_type="ws",
    vm_password="password",
    guest_user="username",
    guest_password="password",
    vm_path="/path/to/vm"
)

License

This project is licensed under the MIT License.

Contributors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vmware_fusion_py-1.0.0b1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

vmware_fusion_py-1.0.0b1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file vmware_fusion_py-1.0.0b1.tar.gz.

File metadata

  • Download URL: vmware_fusion_py-1.0.0b1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for vmware_fusion_py-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 bfcf43124796ff11d12ef0c98d2a048f4f4aab958ad74db81929ed7d498081e8
MD5 f06c115c3be3e97e7f393a01b13e9622
BLAKE2b-256 af896ccb6063148ad63ace9a225ca23333cff0aec7432615404f082759849da6

See more details on using hashes here.

File details

Details for the file vmware_fusion_py-1.0.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for vmware_fusion_py-1.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea70a58e9139c8b0bd0788b197c934a44d5c8a5226d35bd2bd48be33806173d8
MD5 0c414b9e5d6640bfe353e97a11e21e8d
BLAKE2b-256 1165683e2614fb9bdb31b6c8e7cadf394cedd67fe21215760b3ef1e01cd221f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page