{"id":22961,"library":"vmware-vcenter","title":"vCenter Python SDK","description":"Client library for vCenter Automation APIs. Version 9.0.0.0 targets VMware Cloud Foundation 9.0. Provides Pythonic access to vCenter RESTful endpoints for managing inventory, VMs, datastores, and more.","status":"active","version":"9.0.0.0","language":"python","source_language":"en","source_url":"https://github.com/vmware/vcf-sdk-python","tags":["vcenter","vmware","sdk","automation"],"install":[{"cmd":"pip install vmware-vcenter","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"HTTP client for API calls","package":"requests","optional":true},{"reason":"Date/time parsing","package":"python-dateutil","optional":true}],"imports":[{"wrong":"from vmware.vcenter import VcenterClient","symbol":"VcenterClient","correct":"from vmware.vcenter.client import VcenterClient"}],"quickstart":{"code":"from vmware.vcenter import VcenterClient\nclient = VcenterClient(server='vcenter.example.com', username='admin', password='password')\n# or use session\ntokens = client.get_tokens()\nprint(client.vm.list())","lang":"python","description":"Connect to vCenter and list VMs."},"warnings":[{"fix":"Use 'pip install vmware-vcenter' and import 'from vmware.vcenter import ...'","message":"The package was renamed from 'vmware_vcenter' to 'vmware-vcenter' for PyPI, but import path uses dots: 'vmware.vcenter'.","severity":"breaking","affected_versions":">=9.0.0"},{"fix":"Use os.environ.get('VCENTER_USERNAME'), os.environ.get('VCENTER_PASSWORD')","message":"Authentication details are sensitive. Do not hardcode credentials in code; use environment variables or a secrets vault.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to VcenterClient with session token management.","message":"The old synchronous client pattern is deprecated; prefer async or session-based approach.","severity":"deprecated","affected_versions":"<9.0.0"}],"env_vars":null,"search_vec":"'9.0':16 '9.0.0.0':11 'access':19 'api':9 'autom':8,34 'client':4 'cloud':14 'datastor':28 'endpoint':23 'foundat':15 'inventori':26 'librari':5 'manag':25 'provid':17 'python':2,18 'rest':22 'sdk':3,33 'target':12 'vcenter':1,7,21,31 'version':10 'vms':27 'vmware':13,32","created_at":"2026-04-27T17:08:00.035914+00:00","updated_at":"2026-04-27T17:08:00.035914+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'vmware.vcenter'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"9.1.0.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.vmware.com/products/vcenter.html","github":"https://github.com/vmware/vcf-sdk-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/vmware-vcenter/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}