{ "info": { "author": "Kali Norby", "author_email": "kali norby at gmail com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Ruby", "Topic :: System :: Systems Administration" ], "description": "facterpy\n========\n\nPython library to provide a cached and dictionary-like interface to [Puppet's facter utility](http://puppetlabs.com/puppet/related-projects/facter).\n\nThe facter script is run to gather facts, and YAML output is used if pyYAML is installed.\n\nThe library is compatibile with Python 2 and Python 3 and *nix and OS X, although testing hasn't been extensive.\n\nUsage\n------\n\n```\n>>> import facter\n>>> f = facter.Facter()\n>>> f[\"architecture\"]\n'x86_64'\n>>> f.lookup(\"uptime_seconds\")\n195106\n>>> f.lookup(\"uptime_seconds\")\n195106\n>>> f.lookup(\"uptime_seconds\", cache=False)\n195234\n>>> f = facter.Facter(use_yaml=False)\n>>> f.lookup(\"uptime_seconds\")\n'195301'\n>>> f.get(\"not a fact\", \"mere opinion\")\n'mere opinion'\n```\n\nMore methods exist. Documentation to come.\n\nInstall\n---------\n\n```\npip install facter\n```\n\nor\n\n```\npip install facter[yaml]\n```\n\nto include pyYAML\n\nRequirements\n-------------\n\nRequired:\n\n- facter - must be installed through system packages or Ruby Gems\n- [six](https://pypi.python.org/pypi/six/) - Python 2 and 3 compatibility (marked in setup.py)\n\nOptional:\n\n- [pyYAML](http://pyyaml.org/wiki/PyYAML) - For YAML parsing of results\n\n\nProject State\n--------------\n\nThis is an alpha/early version and it hasn't been tested much. Please report any issues observed.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/knorby/facterpy", "keywords": "facter puppet ruby", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "facterpy", "package_url": "https://pypi.org/project/facterpy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/facterpy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/knorby/facterpy" }, "release_url": "https://pypi.org/project/facterpy/0.1/", "requires_dist": null, "requires_python": null, "summary": "Python library to provide a cached and dictionary-like interface to Puppet's facter utility", "version": "0.1" }, "last_serial": 2732704, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6710be755069c2f9d308b374fab03567", "sha256": "28198e1116fc70d71d319a7e4ca75fb392bd2905d119208d2dab89140addc9c4" }, "downloads": -1, "filename": "facterpy-0.1.tar.gz", "has_sig": false, "md5_digest": "6710be755069c2f9d308b374fab03567", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3944, "upload_time": "2013-09-16T01:11:08", "url": "https://files.pythonhosted.org/packages/86/d3/cd9bc1a3547da1788b99d5c6e5af8e8d4a27d132de8b796f9b02943eb7dd/facterpy-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6710be755069c2f9d308b374fab03567", "sha256": "28198e1116fc70d71d319a7e4ca75fb392bd2905d119208d2dab89140addc9c4" }, "downloads": -1, "filename": "facterpy-0.1.tar.gz", "has_sig": false, "md5_digest": "6710be755069c2f9d308b374fab03567", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3944, "upload_time": "2013-09-16T01:11:08", "url": "https://files.pythonhosted.org/packages/86/d3/cd9bc1a3547da1788b99d5c6e5af8e8d4a27d132de8b796f9b02943eb7dd/facterpy-0.1.tar.gz" } ] }