{"id":22960,"library":"vmware-vapi-common-client","title":"VMware vAPI Common Services Client Bindings","description":"Python bindings for VMware vAPI Common Services, providing client libraries to interact with VMware Cloud Foundation (VCF) APIs. Current version 2.61.2 (older stable). The VCF SDK Python releases (up to 9.0.0.0) have replaced this package with the vcf-sdk-python namespace.","status":"maintenance","version":"2.61.2","language":"python","source_language":"en","source_url":"https://github.com/vmware/vcf-sdk-python","tags":["vmware","vapi","cloud-foundation","sdk"],"install":[{"cmd":"pip install vmware-vapi-common-client==2.61.2","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from com.vmware.vapi.bindings.stub import StubConfiguration","symbol":"StubConfiguration","correct":"from com.vmware.vapi.bindings.stub import StubConfiguration"}],"quickstart":{"code":"from vmware.vapi.bindings.stub import StubConfiguration\nfrom vmware.vapi.core import VapiClient\nfrom vmware.vapi.security.client_security import create_user_security_context\n\n# Example of creating a StubConfiguration\nstub_config = StubConfiguration()\n\n# For authentication, use environment variables\nusername = os.environ.get('VCF_USERNAME', '')\npassword = os.environ.get('VCF_PASSWORD', '')\nif username and password:\n    security_ctx = create_user_security_context(username, password)\n    stub_config.security_context = security_ctx\n\nprint(\"vAPI client configuration ready\")","lang":"python","description":"Basic setup of StubConfiguration with optional user security context."},"warnings":[{"fix":"Use 'pip install vcf-sdk-python' and update imports: from vcf.platform import Vcenter etc.","message":"This library is superseded by vcf-sdk-python (namespace vcf). New projects should use 'pip install vcf-sdk-python' and import from vcf.*","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"For VCF SDK 9+, install vcf-sdk-python and use: from vcf.bindings.stub import StubConfiguration.","message":"Version 2.61.2 is the last PyPI release from the old vapi-common-client series. The new VCF SDK (9.0.0.0) changed module structure: StubConfiguration is now in vcf.bindings.stub.","severity":"breaking","affected_versions":"9.0.0.0+"},{"fix":"Always set VCF_USERNAME and VCF_PASSWORD before creating the client.","message":"Authentication via environment variables (VCF_USERNAME, VCF_PASSWORD) is required for most API calls. If not set, security_context is None and calls may fail with authentication errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.61.2':27 '9.0.0.0':37 'api':24 'bind':6,8 'client':5,15 'cloud':21,52 'cloud-found':51 'common':3,12 'current':25 'foundat':22,53 'interact':18 'librari':16 'namespac':48 'older':28 'packag':41 'provid':14 'python':7,33,47 'releas':34 'replac':39 'sdk':32,46,54 'servic':4,13 'stabl':29 'vapi':2,11,50 'vcf':23,31,45 'vcf-sdk-python':44 'version':26 'vmware':1,10,20,49","created_at":"2026-04-27T17:07:59.897614+00:00","updated_at":"2026-04-27T17:07:59.897614+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'com.vmware.vapi.bindings'"},"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://vmware.com","github":"https://github.com/vmware/vcf-sdk-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/vmware-vapi-common-client/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking","devops"],"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}}