{ "info": { "author": "Marin Atanasov Nikolov", "author_email": "dnaeon@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "vConnector - VMware vSphere Connector Module for Python\n=======================================================\n\n.. image:: https://img.shields.io/pypi/v/vconnector.svg\n :target: https://pypi.python.org/pypi/vconnector/\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/dm/vconnector.svg\n :target: https://pypi.python.org/pypi/vconnector/\n :alt: Downloads\n\nvConnector is a wrapper module around\n`pyVmomi VMware vSphere bindings `_,\nwhich provides methods for connecting and retrieving of\nobjects from a VMware vSphere server.\n\nThe purpose of vConnector is to provide the basic primitives for\nbuilding complex applications. vConnector can also be used for\nmanaging the user/pass/host credentials for your vSphere environment\nusing an SQLite database, which in turn can be shared between\nmultiple applications requiring access to your vSphere environment\nthrough a common interface.\n\nRequirements\n============\n\n* `Python 2.7.x, 3.2.x or later `_\n* `docopt `_\n* `pyVmomi `_\n* `tabulate `_\n\nContributions\n=============\n\nvConnector is hosted on\n`Github `_. Please contribute\nby reporting issues, suggesting features or by sending patches\nusing pull requests.\n\nInstallation\n============\n\nThe easiest way to install vConnector is by using ``pip``:\n\n.. code-block:: bash\n\n $ pip install vconnector\n\nIn order to install the latest version of vConnector from the\nGithub repository simply execute these commands instead:\n\n.. code-block:: bash\n\n $ git clone https://github.com/dnaeon/py-vconnector.git\n $ cd py-vconnector\n $ python setup.py install\n\t\nApplications using vConnector module\n====================================\n\n* `vPoller - Distributed vSphere API Proxy `_\n* `vEvents - VMware vSphere Events from the command-line `_\n\nUsing the vconnector-cli tool\n=============================\n\nUsing the ``vconnector-cli`` tool you can manage the user/pass/host\ncredentials of your vSphere environment. The ``vconnector-cli`` tool\nstores this information in an SQLite database file,\nwhich also makes it easy to be shared between applications.\n\nFirst, initialize the vConnector database by executing the\ncommand below:\n\n.. code-block:: bash\n\n $ vconnector-cli init\n\nHere is how to add a new vSphere host to the vConnector database:\n\n.. code-block:: bash\n\n $ vconnector-cli -H vc01.example.org -U root -P p4ssw0rd add\n\nHere is how to update an already existing vSphere host\nfrom the vConnector database:\n\n.. code-block:: bash\n\n $ vconnector-cli -H vc01.example.org -U root -P newp4ssw0rd update\n\nHere is how to remove a vSphere host using vconnector-cli:\n\n.. code-block:: bash\n\n $ vconnector-cli -H vc01.example.org remove\n\nHere is how to enable a vSphere host using vconnector-cli:\n\n.. code-block:: bash\n\n $ vconnector-cli -H vc01.example.org enable\n\nHere this is how to disable a vSphere host:\n\n.. code-block:: bash\n\n $ vconnector-cli -H vc01.example.org disable\n\nAnd here is how to get the currently registered vSphere hosts from\nthe vConnector database:\n\n.. code-block:: bash\n\n $ vconnector-cli get\n +---------------------------+---------------------+--------------+-----------+\n | Hostname | Username | Password | Enabled |\n +===========================+=====================+==============+===========+\n | vc01.example.org | root | p4ssw0rd | 0 |\n +---------------------------+---------------------+--------------+-----------+\n \nUsing the vConnector API\n========================\n\nHere are a few examples of using the ``vconnector`` module API.\n\nConnecting to a vSphere host:\n\n.. code-block:: python\n\n >>> from vconnector.core import VConnector\n >>> client = VConnector(\n ... user='root',\n ... pwd='p4ssw0rd',\n ... host='vc01.example.org'\n ...)\n >>> client.connect()\n\nDisconnecting from a vSphere host:\n\n.. code-block:: python\n\n >>> client.disconnect()\n\nRe-connecting to a vSphere host:\n\n.. code-block:: python\n\n >>> client.reconnect()\n\nHow to get a ``VMware vSphere View`` of all ``VirtualMachine``\nmanaged objects:\n\n.. code-block:: python\n\n >>> from __future__ import print_function\n >>> from vconnector.core import VConnector\n >>> client = VConnector(\n ... user='root',\n ... pwd='p4ssw0rd',\n ... host='vc01.example.org'\n ...)\n >>> client.connect()\n >>> vms = client.get_vm_view()\n >>> print(vms.view)\n (ManagedObject) [\n\t'vim.VirtualMachine:vm-36',\n\t'vim.VirtualMachine:vm-129',\n\t'vim.VirtualMachine:vm-162',\n\t'vim.VirtualMachine:vm-146',\n\t'vim.VirtualMachine:vm-67',\n\t'vim.VirtualMachine:vm-147',\n\t'vim.VirtualMachine:vm-134',\n\t'vim.VirtualMachine:vm-88'\n ]\n >>> client.disconnect()\t\n\nHow to get a ``Managed Object`` by a specific property, e.g. find the\nManaged Object of an ESXi host which name is ``esxi01.example.org``:\n\n.. code-block:: python\n\n >>> from __future__ import print_function\n >>> import pyVmomi\n >>> from vconnector.core import VConnector\n >>> client = VConnector(\n ... user='root',\n ... pwd='p4ssw0rd',\n ... host='vc01.example.org'\n ... )\n >>> client.connect()\n >>> host = client.get_object_by_property(\n ... property_name='name',\n ... property_value='esxi01.example.org',\n ... obj_type=pyVmomi.vim.HostSystem\n ... )\n >>> print(host.name)\n 'esxi01.example.org'\n >>> client.disconnect()\n\nHow to collect properties for ``vSphere Managed Objects``, e.g. get\nthe ``name`` and ``capacity`` properties for all ``Datastore``\nmanaged objects:\n\n.. code-block:: python\n\n >>> from __future__ import print_function\n >>> import pyVmomi\n >>> from vconnector.core import VConnector\n >>> client = VConnector(\n ... user='root',\n ... pwd='p4ssw0rd',\n ... host='vc01.example.org'\n ... )\n >>> client.connect()\n >>> datastores = client.get_datastore_view()\n >>> result = client.collect_properties(\n ... view_ref=datastores,\n ... obj_type=pyVmomi.vim.Datastore,\n ... path_set=['name', 'summary.capacity']\n ...)\n >>> print(result)\n [{u'summary.capacity': 994821799936L, u'name': 'datastore1'}]\n >>> client.disconnect()\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/dnaeon/py-vconnector/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dnaeon/py-vconnector", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "vconnector", "package_url": "https://pypi.org/project/vconnector/", "platform": "", "project_url": "https://pypi.org/project/vconnector/", "project_urls": { "Download": "https://github.com/dnaeon/py-vconnector/releases", "Homepage": "https://github.com/dnaeon/py-vconnector" }, "release_url": "https://pypi.org/project/vconnector/0.6.0/", "requires_dist": null, "requires_python": "", "summary": "VMware vSphere Connector Module for Python", "version": "0.6.0", "yanked": false, "yanked_reason": null }, "last_serial": 6045819, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "ea60f45f1b89c65659d6b02949a4ac77", "sha256": "2954d5cc4ed82db3a8ef57184a69f948c245cf15fe554915bb100de5da148848" }, "downloads": -1, "filename": "vconnector-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ea60f45f1b89c65659d6b02949a4ac77", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8979, "upload_time": "2014-09-14T08:40:31", "upload_time_iso_8601": "2014-09-14T08:40:31.788364Z", "url": "https://files.pythonhosted.org/packages/9f/c9/c1cf75d438033eefb6952219976a2718c8d167d8dbe83456420e820a7b09/vconnector-0.3.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "2bbb423860f894de92f8a667dd70d737", "sha256": "f73cf03a381cbb9563a5378bf3201f4238380e4116001910cdb910557bfafdc1" }, "downloads": -1, "filename": "vconnector-0.3.1.tar.gz", "has_sig": false, "md5_digest": "2bbb423860f894de92f8a667dd70d737", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9038, "upload_time": "2014-11-20T10:48:42", "upload_time_iso_8601": "2014-11-20T10:48:42.215085Z", "url": "https://files.pythonhosted.org/packages/70/11/64db155546db91241a1145137979e80501ea16b06777f9cef31a3c4ad5fa/vconnector-0.3.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "24c7d85b1f0a8f390bc424cdcaabe7cf", "sha256": "96466e2bbf74815dfdd8dff1146eab391a708682e58a0d6123273e90c1a0a193" }, "downloads": -1, "filename": "vconnector-0.3.3.tar.gz", "has_sig": false, "md5_digest": "24c7d85b1f0a8f390bc424cdcaabe7cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10779, "upload_time": "2015-01-29T16:53:06", "upload_time_iso_8601": "2015-01-29T16:53:06.446515Z", "url": "https://files.pythonhosted.org/packages/a5/a7/393ca1e6a7c9b533cdb1182f4b320205b2114c74b707a99bbbfda5751d11/vconnector-0.3.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "7acb1b304891cb3dd9ef6d1124606dfd", "sha256": "9dcc32dd5001731e1322e631ddc6e6279f190c9c83bb1af62b87ead05cf74214" }, "downloads": -1, "filename": "vconnector-0.3.5.tar.gz", "has_sig": false, "md5_digest": "7acb1b304891cb3dd9ef6d1124606dfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11149, "upload_time": "2015-01-30T13:06:47", "upload_time_iso_8601": "2015-01-30T13:06:47.642102Z", "url": "https://files.pythonhosted.org/packages/86/15/90044a43e495227f9088865628d0a0d19f411e9e2704bca2d9ce376bd346/vconnector-0.3.5.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.7": [ { "comment_text": "", "digests": { "md5": "0445c8cae54ae14a4e8ac4c9ac3e0954", "sha256": "f6ba554faf28c718234eb4aac4a25a71b4b4192b5fe2beae0e3143c9a770f8e4" }, "downloads": -1, "filename": "vconnector-0.3.7.tar.gz", "has_sig": false, "md5_digest": "0445c8cae54ae14a4e8ac4c9ac3e0954", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11326, "upload_time": "2015-02-24T09:13:02", "upload_time_iso_8601": "2015-02-24T09:13:02.140215Z", "url": "https://files.pythonhosted.org/packages/07/53/79fe84f9ba7a48417060d2778481767c56956006ebbd27fdb253a1001508/vconnector-0.3.7.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.9": [ { "comment_text": "", "digests": { "md5": "f954ac0f36ef2251a756cbc93227f657", "sha256": "44493c268267172e8ac75c529ca896b8fcb66fe6784ba684b638be7c07c3afd3" }, "downloads": -1, "filename": "vconnector-0.3.9.tar.gz", "has_sig": false, "md5_digest": "f954ac0f36ef2251a756cbc93227f657", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11810, "upload_time": "2015-05-11T06:52:44", "upload_time_iso_8601": "2015-05-11T06:52:44.890481Z", "url": "https://files.pythonhosted.org/packages/47/5b/3349fef1cc830066bcf42cc42aef437a6d837b695987c451977f53308f85/vconnector-0.3.9.tar.gz", "yanked": false, "yanked_reason": null } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "f2998136acb3284f0349020835509543", "sha256": "1a47ac4d0acf21706e828dd3fbda81e8337b3f57ba8ae03187249f67852e355d" }, "downloads": -1, "filename": "vconnector-0.4.0.tar.gz", "has_sig": false, "md5_digest": "f2998136acb3284f0349020835509543", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11881, "upload_time": "2015-05-11T12:51:18", "upload_time_iso_8601": "2015-05-11T12:51:18.643912Z", "url": "https://files.pythonhosted.org/packages/71/5b/ee799bf6808f06d31302ac96110616da5437ddcc4dea0ec86d109e2463be/vconnector-0.4.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "254754cc4fad1e14ae69591a5d0faf63", "sha256": "8255cc21e36624ecd82a5226ab34df2c7ca39f96965c749dcb5289d5197c6415" }, "downloads": -1, "filename": "vconnector-0.4.1.tar.gz", "has_sig": false, "md5_digest": "254754cc4fad1e14ae69591a5d0faf63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12020, "upload_time": "2015-11-26T11:29:40", "upload_time_iso_8601": "2015-11-26T11:29:40.070178Z", "url": "https://files.pythonhosted.org/packages/64/8f/df5e95c594ea6efaba016f648a6b8ce06141a022583587d890cd1adb9b5b/vconnector-0.4.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "fb60a33216e1bd4491861ee65f01a1cc", "sha256": "a8cd364857f8acb3581d22c89f8222070ba0125795721b07103d96aa996bd808" }, "downloads": -1, "filename": "vconnector-0.4.2.tar.gz", "has_sig": false, "md5_digest": "fb60a33216e1bd4491861ee65f01a1cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12211, "upload_time": "2015-12-04T10:42:42", "upload_time_iso_8601": "2015-12-04T10:42:42.853789Z", "url": "https://files.pythonhosted.org/packages/4f/4f/7c96c9ab92fb71cd7d5d9a7b72be6918d8a1d318b888c2e51dafc82c30ed/vconnector-0.4.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "4f85193fd586299b89a0eeafed38e1f6", "sha256": "1d94e16d73ae6f92aeeb948a8e24f34fed2f101ca2099f353d9310848b9ae32f" }, "downloads": -1, "filename": "vconnector-0.4.3.tar.gz", "has_sig": false, "md5_digest": "4f85193fd586299b89a0eeafed38e1f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12223, "upload_time": "2015-12-04T11:15:30", "upload_time_iso_8601": "2015-12-04T11:15:30.578230Z", "url": "https://files.pythonhosted.org/packages/59/1d/1960e83684d18da89464ff32dcbc28a5edd611a02fc26d1acf2fe7e3f876/vconnector-0.4.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "73aa013225455d743c9e4585192755db", "sha256": "3f5227c96e9e6dc6b31f989b56dedca990990c4ad14ef9972bd3cb692484d79c" }, "downloads": -1, "filename": "vconnector-0.4.4.tar.gz", "has_sig": false, "md5_digest": "73aa013225455d743c9e4585192755db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12291, "upload_time": "2015-12-10T10:22:26", "upload_time_iso_8601": "2015-12-10T10:22:26.291818Z", "url": "https://files.pythonhosted.org/packages/25/c6/9a760045a4609e74a4a3736bfbf5eab5b4baa9ff5cbd800ca4ca3e7d5e20/vconnector-0.4.4.tar.gz", "yanked": false, "yanked_reason": null } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "d2429129ba195e675de56a89a8439343", "sha256": "b05c870dea0f950188465856918a866eb5c28df9a18b6e3b63d10534c1a9486b" }, "downloads": -1, "filename": "vconnector-0.4.5.tar.gz", "has_sig": false, "md5_digest": "d2429129ba195e675de56a89a8439343", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12302, "upload_time": "2015-12-11T07:10:31", "upload_time_iso_8601": "2015-12-11T07:10:31.032242Z", "url": "https://files.pythonhosted.org/packages/b2/f5/82b5248a2967b83bc66c3e0fe077f976ce99dad887775b845ff33ebc816a/vconnector-0.4.5.tar.gz", "yanked": false, "yanked_reason": null } ], "0.4.6": [ { "comment_text": "", "digests": { "md5": "f601216f0a0f4265ad612351a4fcc601", "sha256": "311d6e466903533c6393a195c717392860de9a83bc2ed1087c1e7d9ce6d42a0e" }, "downloads": -1, "filename": "vconnector-0.4.6.tar.gz", "has_sig": false, "md5_digest": "f601216f0a0f4265ad612351a4fcc601", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12313, "upload_time": "2015-12-15T09:43:48", "upload_time_iso_8601": "2015-12-15T09:43:48.870001Z", "url": "https://files.pythonhosted.org/packages/6a/5e/7abd2153a519f624d949526d3196f6a3dbfd0e9fbec0f5a9bc85da6a12e5/vconnector-0.4.6.tar.gz", "yanked": false, "yanked_reason": null } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "056ade3db0112e09198e7d282d225f1c", "sha256": "a6baf722e12fd23bbee55a02224fc4949229a2f3481c2f2a640c3cfeb47f9201" }, "downloads": -1, "filename": "vconnector-0.5.0.tar.gz", "has_sig": false, "md5_digest": "056ade3db0112e09198e7d282d225f1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12186, "upload_time": "2018-05-02T07:02:10", "upload_time_iso_8601": "2018-05-02T07:02:10.608692Z", "url": "https://files.pythonhosted.org/packages/55/a9/49994318620de25de7e26941680bccbc27c98540b24785ff7495dd7b2b65/vconnector-0.5.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "c250481f1d95721142109065b095b5e4", "sha256": "513b3812b041adbd873836d87755e7bb635c145346e313360024ca95a9c4cd0d" }, "downloads": -1, "filename": "vconnector-0.5.1.tar.gz", "has_sig": false, "md5_digest": "c250481f1d95721142109065b095b5e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12190, "upload_time": "2018-10-25T16:08:09", "upload_time_iso_8601": "2018-10-25T16:08:09.241216Z", "url": "https://files.pythonhosted.org/packages/6b/f0/db8ebaace7cd13adfc6732b4172a79615fe9d81383b585f4255e7069a81a/vconnector-0.5.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "46b5eb3df385ec137a204817ce7c100c", "sha256": "37fd3044525c9b30dcfee6a2203e1e0a78d87fcf9cd193eae68466a29a9ce9b3" }, "downloads": -1, "filename": "vconnector-0.5.3.tar.gz", "has_sig": false, "md5_digest": "46b5eb3df385ec137a204817ce7c100c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12340, "upload_time": "2018-12-16T09:38:00", "upload_time_iso_8601": "2018-12-16T09:38:00.963187Z", "url": "https://files.pythonhosted.org/packages/4e/0c/9e4ce2ae265ef51f29a026dabdd3f662934dd051244905d012da94d603b2/vconnector-0.5.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "7f2e1a9fffca841061c2ace84984fe3e", "sha256": "57d6bdc1f464da9e00034fc3b9bd106c6fb9eedd8df57547ce4ddd19d1d08239" }, "downloads": -1, "filename": "vconnector-0.6.0.tar.gz", "has_sig": false, "md5_digest": "7f2e1a9fffca841061c2ace84984fe3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12337, "upload_time": "2019-10-29T08:09:26", "upload_time_iso_8601": "2019-10-29T08:09:26.001343Z", "url": "https://files.pythonhosted.org/packages/22/9e/52cae036555ec85f0508e2d294b6bf491e496c3463784853d6f88a905662/vconnector-0.6.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7f2e1a9fffca841061c2ace84984fe3e", "sha256": "57d6bdc1f464da9e00034fc3b9bd106c6fb9eedd8df57547ce4ddd19d1d08239" }, "downloads": -1, "filename": "vconnector-0.6.0.tar.gz", "has_sig": false, "md5_digest": "7f2e1a9fffca841061c2ace84984fe3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12337, "upload_time": "2019-10-29T08:09:26", "upload_time_iso_8601": "2019-10-29T08:09:26.001343Z", "url": "https://files.pythonhosted.org/packages/22/9e/52cae036555ec85f0508e2d294b6bf491e496c3463784853d6f88a905662/vconnector-0.6.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }