{ "info": { "author": "Gregor von Laszewski", "author_email": "laszewski@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: MacOS X", "Environment :: OpenStack", "Environment :: Other Environment", "Environment :: Plugins", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows :: Windows 10", "Operating System :: OS Independent", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3.7", "Topic :: Internet", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: User Interfaces", "Topic :: System", "Topic :: System :: Distributed Computing", "Topic :: System :: Shells", "Topic :: Utilities" ], "description": "# Cloudmesh Inventory\n\n[![Version](https://img.shields.io/pypi/v/cloudmesh-inventory.svg)](https://pypi.python.org/pypi/cloudmesh-inventory)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/cloudmesh/cloudmesh-inventory/blob/master/LICENSE)\n[![Python](https://img.shields.io/pypi/pyversions/cloudmesh-inventory.svg)](https://pypi.python.org/pypi/cloudmesh-inventory)\n[![Format](https://img.shields.io/pypi/format/cloudmesh-inventory.svg)](https://pypi.python.org/pypi/cloudmesh-inventory)\n[![Format](https://img.shields.io/pypi/status/cloudmesh-inventory.svg)](https://pypi.python.org/pypi/cloudmesh-inventory)\n[![Travis](https://travis-ci.com/cloudmesh/cloudmesh-inventory.svg?branch=master)](https://travis-ci.com/cloudmesh/cloudmesh-inventory)\n\n\n## Instalation and Documentation\n\nPlease note that several packages are available which are pointed to in the\ninstalation documentation.\n\n| | Links |\n|---------------|-------|\n| Documentation | |\n| Code | |\n| Instalation Instructions | |\n\nSometimes its necessary to maintain a simple inventory. Naturally if you\nknow python you can do this with dicts. However to manage a large number\nof items with repeated values its is of advantage to do this from the\ncommandline.\n\nWe have written such a tool that lets you easily manage the resources in\na table format.\n\n## Installation\n\nMake sure you have a new version of python and pip. We tested with\n\n* python 3.7.3\n* pip 19.0.3\n\n### Instalation with pip\n\nYou will need the followng other cloudmesh modules before you can\ninstall via pip:\n\n```bash\n$ pip insatll cloudmesh-common\n$ pip insatll cloudmesh-cmd5\n$ pip insatll cloudmesh-inventory\n```\n\n\n### Instalation from source\n\nTo install it form source (which is the current method) use:\n\n\n mkdir ~/github\n cd ~/github\n\n git clone https://github.com/cloudmesh-common.git\n git clone https://github.com/cloudmesh-cmd5.git\n git clone https://github.com/cloudmesh-inventory.git\n\n cd ~/github/cloudmesh-common\n python setup.py install\n pip install -e .\n\n cd ~/github/cloudmesh-cmd5\n python setup.py install\n pip install -e .\n\n cd ~/github/cloudmesh-inventory\n python setup.py install\n pip install -e .\n\nConfiguration\n-------------\n\nYour inventory will be located at\n\n ~/.cloudmesh/inventory.yaml\n\nYou can also change the yaml file by hand, but the cm command is more\nconvenient.\n\nAn example file will look as follows:\n\n g001:\n cluster: gregor\n comment: test\n host: g001\n ip: 127.0.0.1\n label: g001\n metadata: None\n name: g001\n owners: gvonlasz\n project: cloudmesh\n service: compute\n g002:\n cluster: gregor\n comment: test\n host: g002\n ip: 127.0.0.1\n label: g002\n metadata: None\n name: g002\n owners: gvonlasz\n project: cloudmesh\n service: compute\n\nBUGS\n----\n\nThis command has not be extensively tested and we are sure we have not\nyet implemented everything. Please help improving it by forking and\ncontributing via pull requests.\n\nManpage\n-------\n\n Usage:\n inventory add NAMES [--label=LABEL]\n [--service=SERVICES]\n [--project=PROJECT]\n [--owners=OWNERS]\n [--comment=COMMENT]\n [--cluster=CLUSTER]\n [--ip=IP]\n inventory set NAMES for ATTRIBUTE to VALUES\n inventory delete NAMES\n inventory clone NAMES from SOURCE\n inventory list [NAMES] [--format=FORMAT] [--columns=COLUMNS]\n inventory info\n\n Arguments:\n\n NAMES Name of the resources (example i[10-20])\n\n FORMAT The format of the output is either txt,\n yaml, dict, table [default: table].\n\n OWNERS a comma separated list of owners for this resource\n\n LABEL a unique label for this resource\n\n SERVICE a string that identifies the service\n\n PROJECT a string that identifies the project\n\n SOURCE a single host name to clone from\n\n COMMENT a comment\n\n Options:\n\n -v verbose mode\n\n Description:\n\n add -- adds a resource to the resource inventory\n\n list -- lists the resources in the given format\n\n delete -- deletes objects from the table\n\n clone -- copies the content of an existing object\n and creates new once with it\n\n set -- sets for the specified objects the attribute\n to the given value or values. If multiple values\n are used the values are assigned to the and\n objects in order. See examples\n\n map -- allows to set attibutes on a set of objects\n with a set of values\n\n Examples:\n\n cm inventory add x[0-3] --service=openstack\n\n adds hosts x0, x1, x2, x3 and puts the string\n openstack into the service column\n\n cm lits\n\n lists the repository\n\n cm x[3-4] set temperature to 32\n\n sets for the resources x3, x4 the value of the\n temperature to 32\n\n cm x[7-8] set ip 128.0.0.[0-1]\n\n sets the value of x7 to 128.0.0.0\n sets the value of x8 to 128.0.0.1\n\n cm clone x[5-6] from x3\n\n clones the values for x5, x6 from x3\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cloudmesh/cloudmesh-inventory", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "cloudmesh-inventory", "package_url": "https://pypi.org/project/cloudmesh-inventory/", "platform": "", "project_url": "https://pypi.org/project/cloudmesh-inventory/", "project_urls": { "Homepage": "https://github.com/cloudmesh/cloudmesh-inventory" }, "release_url": "https://pypi.org/project/cloudmesh-inventory/4.0.24/", "requires_dist": [ "pytimeparse", "cloudmesh-common", "cloudmesh-configuration", "cloudmesh-cmd5", "cloudmesh-sys" ], "requires_python": "", "summary": "A command called inventory and foo for the cloudmesh shell", "version": "4.0.24" }, "last_serial": 5634910, "releases": { "1.2.8": [ { "comment_text": "", "digests": { "md5": "e93386c7ad60066d3f85a0427ed3ec01", "sha256": "c710ae0736c4f3f78bcb7775786c2e2bbc13a193e6d2e2c73d5e4026c4c33068" }, "downloads": -1, "filename": "cloudmesh_inventory-1.2.8.tar.bz2", "has_sig": false, "md5_digest": "e93386c7ad60066d3f85a0427ed3ec01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7097, "upload_time": "2015-05-01T19:14:49", "url": "https://files.pythonhosted.org/packages/98/f8/60f8c608a35f83837c9f946b90dd5693979fcf7991bf314da5a9d72e847c/cloudmesh_inventory-1.2.8.tar.bz2" }, { "comment_text": "", "digests": { "md5": "82bbf708d6123fd5a922b8405d81bcce", "sha256": "f240eaecab0035200bbb6d9c6aaa08a07eae5b934f2b3f76670eeaef7ebbf422" }, "downloads": -1, "filename": "cloudmesh_inventory-1.2.8.zip", "has_sig": false, "md5_digest": "82bbf708d6123fd5a922b8405d81bcce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13958, "upload_time": "2015-05-01T19:14:53", "url": "https://files.pythonhosted.org/packages/5d/16/048bd384e63a6d5a543aa32bff9bc458e5117a8d5e57df47ef1449b3898c/cloudmesh_inventory-1.2.8.zip" } ], "4.0.21": [ { "comment_text": "", "digests": { "md5": "58cd397c4525235fe6b60245e89da07c", "sha256": "dabfa8319cfc571881d7eedcd018a5e706a9562e9592f790f16ea5f26e7e1759" }, "downloads": -1, "filename": "cloudmesh_inventory-4.0.21-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "58cd397c4525235fe6b60245e89da07c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10441, "upload_time": "2019-04-09T05:29:03", "url": "https://files.pythonhosted.org/packages/5f/31/ae8679c084be433947c8ddf3cbbcff186edc3da58a43fc2ae9b6a1fb0cf6/cloudmesh_inventory-4.0.21-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "42b3da609daa8343c61123391371391c", "sha256": "0ac08582c84594d18b90a70e4b7924b9db5666e5c9a419852ecf8f88400ff143" }, "downloads": -1, "filename": "cloudmesh-inventory-4.0.21.tar.gz", "has_sig": false, "md5_digest": "42b3da609daa8343c61123391371391c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8832, "upload_time": "2019-04-09T05:29:05", "url": "https://files.pythonhosted.org/packages/9a/91/a48a2faac0219b68a5beef7701d9c22855cd2b417f499c39c0050b46c1a3/cloudmesh-inventory-4.0.21.tar.gz" } ], "4.0.24": [ { "comment_text": "", "digests": { "md5": "19b305771cc576b0d629652e89f0eb21", "sha256": "93c70024c9a5f48afda81fa8ba87246663770c25ff82edbcb7ce29636e4b2717" }, "downloads": -1, "filename": "cloudmesh_inventory-4.0.24-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "19b305771cc576b0d629652e89f0eb21", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10456, "upload_time": "2019-07-30T22:44:30", "url": "https://files.pythonhosted.org/packages/83/41/370a35b6309255383002396f4d430b7d6e795a65200ddb34dd325fcdd098/cloudmesh_inventory-4.0.24-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "074c4e8e23dd3fe851b1e4c06560b15a", "sha256": "bd6e87cf94fc4a7e96966cc000f18abfec8cb9cead68829a7bb43072992211aa" }, "downloads": -1, "filename": "cloudmesh-inventory-4.0.24.tar.gz", "has_sig": false, "md5_digest": "074c4e8e23dd3fe851b1e4c06560b15a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8831, "upload_time": "2019-07-30T22:44:40", "url": "https://files.pythonhosted.org/packages/56/9c/786c24af23e822a756727dfcabd138cad2de745389cf345d2e44d5e7166d/cloudmesh-inventory-4.0.24.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "19b305771cc576b0d629652e89f0eb21", "sha256": "93c70024c9a5f48afda81fa8ba87246663770c25ff82edbcb7ce29636e4b2717" }, "downloads": -1, "filename": "cloudmesh_inventory-4.0.24-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "19b305771cc576b0d629652e89f0eb21", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10456, "upload_time": "2019-07-30T22:44:30", "url": "https://files.pythonhosted.org/packages/83/41/370a35b6309255383002396f4d430b7d6e795a65200ddb34dd325fcdd098/cloudmesh_inventory-4.0.24-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "074c4e8e23dd3fe851b1e4c06560b15a", "sha256": "bd6e87cf94fc4a7e96966cc000f18abfec8cb9cead68829a7bb43072992211aa" }, "downloads": -1, "filename": "cloudmesh-inventory-4.0.24.tar.gz", "has_sig": false, "md5_digest": "074c4e8e23dd3fe851b1e4c06560b15a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8831, "upload_time": "2019-07-30T22:44:40", "url": "https://files.pythonhosted.org/packages/56/9c/786c24af23e822a756727dfcabd138cad2de745389cf345d2e44d5e7166d/cloudmesh-inventory-4.0.24.tar.gz" } ] }