{ "info": { "author": "Julien B.", "author_email": "julien@toshokan.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities" ], "description": "PyRVtools\n=========\n\nExtract useful information from an RVTools ESX inventory file.\n\nPurpose of that module\n----------------------\n\nDid you have ever ask to an VMWare administrator to have an access to\nhis vCenter to run some scripts by API ? No ? Me yes and a least that\ncan i say : it's not easy ! ;-)\n\nMore seriously, it very often hard to get access to this kind of VM\nbecause it's very sensitive part of the infrastructure and because the\nguys generally are not in the same team as you and they not trust you\n(neither in your scripts !), so it does not help. But, to be honest,\nyou'll probably do the same thing if the situation was reversed.\n\nBut sometimes, they can send you an RVTools extraction (so an Excel\nfile) from that vCenter and you want to use it in a Python script.\nYou'll prefer have to access directly to the vCenter by API call to get\nfresh data but it's better than nothing...\n\nThat's why i coded this library : to help to use this kind of inputs to\nextract some useful information from it.\n\nHow to install it\n-----------------\n\nYou can install pyRvtools by using pip :\n\n``pip install pyrvtools``\n\nHow to use it\n-------------\n\nYou can search for 5 kind of major objects with that module: -\nDataCenter - Clusters - Hosts - DataStores - VirtualMachine\n\nEach of them have a specific number of properties. You can iterate on\nall object or focus only on one of them giving his name.\n\nHere is some examples (please refer to the list of properties below if\nyou're looking for a metric):\n\n.. code:: python\n\n import os\n from pyrvtools import PyRvtools\n\n PATH = os.sep.join(['your_path', 'your_file.xls'])\n rvtools = PyRvtools(PATH)\n\n # For all the dataCenters\n for dc in rvtools.get_datacenters():\n print('DC: %s Clusters: %s' % (dc, dc.clusters))\n\n # Only for a specific DataCenter\n one_dc = rvtools.get_datacenter_by_name('MY_DC')\n print('DC: %s Clusters: %s' % (one_dc, one_dc.clusters))\n\n # For all the Cluster\n for cluster in rvtools.get_clusters():\n print('Cluster: %s Hosts: %s' % (cluster, cluster.hosts))\n\n # Only for a specific Cluster\n one_cluster = rvtools.get_clusters_by_name('MY_CLUSTER')\n print('Cluster: %s Hosts: %s' % (one_cluster, one_cluster.hosts))\n\n # For all the DataStores\n for ds in rvtools.get_datastores():\n print('DS: %s Hosts: %s' % (ds, ds.hosts))\n\n # Only for a specific DataStore\n one_ds = rvtools.get_datastore_by_name('MY_DS')\n print('DS: %s Hosts: %s' % (one_ds, one_ds.hosts))\n\n # For all the hosts\n for esx in rvtools.get_hosts():\n print('ESX: %s VM:%s' % (esx, esx.vm))\n\n # Only for a specific host\n one_esx = rvtools.get_host_by_name('MY_ESX_NAME')\n print('ESX: %s VM:%s' % (one_esx, one_esx.vm))\n\n # For all the VirtualMachine\n for vm in rvtools.get_vm():\n print('VM: %s DataStore:%s' % (vm, vm.datastore))\n\n # Only for a specific VM\n one_vm = rvtools.get_vm_by_name('MY_VM')\n print('VM: %s DataStore:%s' % (one_vm, one_vm.datastore))\n\nProperties of objects\n---------------------\n\n**Cluster** \n- datacenter \n- hosts\n\n**DataCenter** \n- clusters \n- hosts\n\n**DataStore** \n- capacity_mb \n- free_mb \n- free_percent \n- hosts \n- inuse_mb \n- naa \n- number_of_hosts \n- number_of_vms \n- provisioned_mb\n- sioc_enable \n- type \n- version\n\n**Host** \n- boot_time \n- cluster \n- cpu_usage_percent \n- datacenter \n- esx_version \n- hba \n- memory_mb \n- memory_usage_percent \n- model \n- number_of_cores \n- number_of_cpu \n- number_of_vcpu \n- number_of_vm\n- vm\n\n**VirtualMachine** \n- cluster \n- cpu \n- datacenter \n- datastore \n- host \n- inuse_mb \n- memory \n- os \n- power_on \n- power_state \n- provisioned_mb \n- unshared_mb \n- vmdk \n- vnetwork \n- vpartition\n\nLicense\n-------\n\nThis library is licensed under GPL3.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jbrt/pyrvtools", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "pyrvtools", "package_url": "https://pypi.org/project/pyrvtools/", "platform": "", "project_url": "https://pypi.org/project/pyrvtools/", "project_urls": { "Homepage": "https://github.com/jbrt/pyrvtools" }, "release_url": "https://pypi.org/project/pyrvtools/1.0.1/", "requires_dist": [ "xlrd" ], "requires_python": "", "summary": "Extract useful information from an RVTools ESX inventory file", "version": "1.0.1" }, "last_serial": 3806282, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "bbd6f9e6cf4470b9fbea9a65130777d1", "sha256": "13168f2654aeb794e18d5c67ee21ad110743829c42caecb91921d55076555637" }, "downloads": -1, "filename": "pyrvtools-0.5.tar.gz", "has_sig": false, "md5_digest": "bbd6f9e6cf4470b9fbea9a65130777d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4617, "upload_time": "2017-09-17T08:40:18", "url": "https://files.pythonhosted.org/packages/17/1a/b1b7ed6f6550d04e30e53aa698937631fa732ad0e5073f153f03d1707977/pyrvtools-0.5.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "2e802790b688404a7c50b81473fab16c", "sha256": "e90250ccf58f78a13421e9016014d24e1df2482ee46822de5ba1025932e6aecb" }, "downloads": -1, "filename": "pyrvtools-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2e802790b688404a7c50b81473fab16c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6349, "upload_time": "2017-09-24T09:49:22", "url": "https://files.pythonhosted.org/packages/a7/c2/9354b5c9571c56336763b3d278630d65a8db5ae24fae1286ff59971f674f/pyrvtools-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "29c3c51a24b94cc96d8e54f81f9cf8d4", "sha256": "5be926a9d7349b7d2fd84ab07a439f53127e4054947b5e949f1353cd1be4b8e0" }, "downloads": -1, "filename": "pyrvtools-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "29c3c51a24b94cc96d8e54f81f9cf8d4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9874, "upload_time": "2018-04-25T10:43:55", "url": "https://files.pythonhosted.org/packages/be/25/16b89b8b571951b70fa8e01ae77f8849099c3e6d54e9c0d123788e6703ce/pyrvtools-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "54c3a135970a3abca3ca84037bb72500", "sha256": "5dc7c09cf4a06798436b77286faafe360c0ed58460534b24c1d99ada078d1353" }, "downloads": -1, "filename": "pyrvtools-1.0.1.tar.gz", "has_sig": false, "md5_digest": "54c3a135970a3abca3ca84037bb72500", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8414, "upload_time": "2018-04-25T10:43:57", "url": "https://files.pythonhosted.org/packages/c4/24/fab56fd790b43e4c2ce2fb13f9fa20b67d49aadef5d79324426b5d03c32b/pyrvtools-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "29c3c51a24b94cc96d8e54f81f9cf8d4", "sha256": "5be926a9d7349b7d2fd84ab07a439f53127e4054947b5e949f1353cd1be4b8e0" }, "downloads": -1, "filename": "pyrvtools-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "29c3c51a24b94cc96d8e54f81f9cf8d4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9874, "upload_time": "2018-04-25T10:43:55", "url": "https://files.pythonhosted.org/packages/be/25/16b89b8b571951b70fa8e01ae77f8849099c3e6d54e9c0d123788e6703ce/pyrvtools-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "54c3a135970a3abca3ca84037bb72500", "sha256": "5dc7c09cf4a06798436b77286faafe360c0ed58460534b24c1d99ada078d1353" }, "downloads": -1, "filename": "pyrvtools-1.0.1.tar.gz", "has_sig": false, "md5_digest": "54c3a135970a3abca3ca84037bb72500", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8414, "upload_time": "2018-04-25T10:43:57", "url": "https://files.pythonhosted.org/packages/c4/24/fab56fd790b43e4c2ce2fb13f9fa20b67d49aadef5d79324426b5d03c32b/pyrvtools-1.0.1.tar.gz" } ] }