{"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":[{"note":"Package uses dots, not underscores in import path.","wrong":"from vmware_vcenter import VcenterClient","symbol":"VcenterClient","correct":"from vmware.vcenter 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,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run: pip install vmware-vcenter and import: from vmware.vcenter import VcenterClient","cause":"Installing old package name or using wrong import path.","error":"ModuleNotFoundError: No module named 'vmware_vcenter'"},{"fix":"Prefix server with https:// e.g., server='https://vcenter.example.com'","cause":"Missing https:// in server parameter.","error":"ValueError: Invalid server URL"},{"fix":"Set verify=False on client creation (not recommended for production) or provide CA bundle.","cause":"vCenter certificate is self-signed or not trusted.","error":"requests.exceptions.ConnectionError: HTTPSConnectionPool ... Max retries exceeded"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}