{ "info": { "author": "Sixty North AS", "author_email": "rob@sixty-north.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: Other/Proprietary License", "Programming Language :: Python :: 3.6" ], "description": "==========\nPinventory\n==========\n\n*Pinventory* is an Ansible Dynamic Inventory for locating and\ncategorising Raspberry Pi computers on the local network.\n\nInstallation\n============\n\nIn the Python environment which you are using::\n\n $ python setup.py install\n\nA wrapper script called simply ``pinventory`` will be installed\nwhich can be used to invoke the Python package.\n\nDirect usage\n============\n\nTo obtain an Ansible inventory of Raspberry Pi computers on the\nLAN::\n\n $ pinventory --list --pretty\n {\n \"_meta\": {\n \"hostvars\": {\n \"10.0.0.149\": {\n \"hostname\": \"lime\",\n \"ip\": \"10.0.0.149\",\n \"mac\": \"b8:27:eb:a5:93:c5\"\n },\n \"10.0.0.186\": {\n \"hostname\": \"raspberrypi\",\n \"ip\": \"10.0.0.186\",\n \"mac\": \"b8:27:eb:73:9d:67\"\n }\n }\n },\n \"raspberries\": {\n \"hosts\": [\n \"10.0.0.149\",\n \"10.0.0.186\"\n ]\n }\n }\n\nTo obtain the host variables for a particular host::\n\n $ pinventory --host 10.0.0.149 --pretty\n {\n \"hostname\": \"lime\",\n \"ip\": \"10.0.0.149\",\n \"mac\": \"b8:27:eb:a5:93:c5\"\n }\n\n\nInvocation from Ansible\n=======================\n\nPass the ``pinventory`` executable using the ``-i`` inventory option, and\nAnsible will execute it as a *dynamic inventory*. For example, assuming\n``pinventory`` is available on the PATH, to run an ad hoc Ansible command\non all Raspberry Pi devices on the LAN, use::\n\n $ ansible raspberries -i `which pinventory` \n\nCustomisation\n=============\n\nBy default the returned inventory includes *all* Raspberry Pi\ncomputers on the local network. The contents of the inventory\nand variables associated with each host can be customised by\nproviding pluggable functions at two ``pkg_resources`` entry\npoints capable of transforming the default inventory and\nhost variables respectively. Example functions can be found\nin the ``pinventory.transforms.hostsvars`` and\n``pinventory.transforms.inventory`` sub-modules.\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sixty-north/pinventory", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pinventory", "package_url": "https://pypi.org/project/pinventory/", "platform": "", "project_url": "https://pypi.org/project/pinventory/", "project_urls": { "Homepage": "https://github.com/sixty-north/pinventory" }, "release_url": "https://pypi.org/project/pinventory/0.5.0/", "requires_dist": [ "docopt" ], "requires_python": "", "summary": "An Ansible dynamic inventory for locating and categorising Raspberry Pis on the LAN.", "version": "0.5.0" }, "last_serial": 2604058, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "d1d6d824769e665da2143bda5ac6a447", "sha256": "4e3d3863c82c21c5c37b0581d9463c71eb021980298dba427fbfd1c925551264" }, "downloads": -1, "filename": "pinventory-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d1d6d824769e665da2143bda5ac6a447", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9030, "upload_time": "2017-01-28T20:56:26", "url": "https://files.pythonhosted.org/packages/74/7d/11152aeee7e19418ee6a4bf7ec79a74ef0b67207f0428cb6902198031a5a/pinventory-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f0fb04625baa74ac8d86df78770be681", "sha256": "cb3ad47964184f066bcba069182379a906732d1bd88556132cb6308562549067" }, "downloads": -1, "filename": "pinventory-0.5.0.tar.gz", "has_sig": false, "md5_digest": "f0fb04625baa74ac8d86df78770be681", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6914, "upload_time": "2017-01-28T20:56:27", "url": "https://files.pythonhosted.org/packages/a1/62/e044628ed102e6b1d5ea234e502f3bfcb0d0d850fe48af999bde1b756ccc/pinventory-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d1d6d824769e665da2143bda5ac6a447", "sha256": "4e3d3863c82c21c5c37b0581d9463c71eb021980298dba427fbfd1c925551264" }, "downloads": -1, "filename": "pinventory-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d1d6d824769e665da2143bda5ac6a447", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9030, "upload_time": "2017-01-28T20:56:26", "url": "https://files.pythonhosted.org/packages/74/7d/11152aeee7e19418ee6a4bf7ec79a74ef0b67207f0428cb6902198031a5a/pinventory-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f0fb04625baa74ac8d86df78770be681", "sha256": "cb3ad47964184f066bcba069182379a906732d1bd88556132cb6308562549067" }, "downloads": -1, "filename": "pinventory-0.5.0.tar.gz", "has_sig": false, "md5_digest": "f0fb04625baa74ac8d86df78770be681", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6914, "upload_time": "2017-01-28T20:56:27", "url": "https://files.pythonhosted.org/packages/a1/62/e044628ed102e6b1d5ea234e502f3bfcb0d0d850fe48af999bde1b756ccc/pinventory-0.5.0.tar.gz" } ] }