{ "info": { "author": "Drew Pearce", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3" ], "description": "# legos.fact-sphere\n\n[![Travis](https://img.shields.io/travis/drewpearce/legos.fact_sphere.svg)]() [![PyPI](https://img.shields.io/pypi/pyversions/legos.fact_sphere.svg)]() [![PyPI](https://img.shields.io/pypi/v/legos.fact_sphere.svg)]()\n\n[![PyPI](https://img.shields.io/pypi/wheel/legos.fact_sphere.svg)]() [![PyPI](https://img.shields.io/pypi/l/legos.fact_sphere.svg)]() [![PyPI](https://img.shields.io/pypi/status/legos.fact_sphere.svg)]()\n\nFetch a random \"fact\" from the Portal2 Fact Sphere\n\n## Usage\n\n- `!fact` returns a random fact\n\n## Installation\nYou can install locally (by cloning the repo) or from PyPi\n### Local\ncd into the current directory\n`pip3 install .`\n\n### From PyPi\n`pip3 install legos.fact_sphere`\n\n### Add to Legobot\nThis is a Lego designed for use with [Legobot](https://github.com/Legobot/Legobot), so you'll get Legobot along with this. To deploy it, import the package and add it to the active legos like so:\n\n```python\n# This is the legobot stuff\nfrom Legobot import Lego\n# This is your lego\nfrom legos.fact_sphere import FactSphere\n\n# Legobot stuff here\nlock = threading.Lock()\nbaseplate = Lego.start(None, lock)\nbaseplate_proxy = baseplate.proxy()\n\n# Add your lego\nbaseplate_proxy.add_child(FactSphere)\n```\n\n## Tweaking\n\nWhile you can use this one as-is, you could also add a localized version to your Legobot deployment by grabbing [fact_sphere.py](legos/fact_sphere.py) and deploying it as a local module. [Example of a Legobot instance with local modules](https://github.com/voxpupuli/thevoxfox/)\n\n## Contributing\n\nAs always, pull requests are welcome.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/drewpearce/legos.fact_sphere", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "legos.fact-sphere", "package_url": "https://pypi.org/project/legos.fact-sphere/", "platform": "", "project_url": "https://pypi.org/project/legos.fact-sphere/", "project_urls": { "Homepage": "https://github.com/drewpearce/legos.fact_sphere" }, "release_url": "https://pypi.org/project/legos.fact-sphere/0.2.2/", "requires_dist": null, "requires_python": "", "summary": "'Lego for getting a random \"fact\" from the Portal 2 Fact Sphere'", "version": "0.2.2" }, "last_serial": 4365571, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "63a92b58a81cb8b866cd1fbe10bd4702", "sha256": "3abbbdb426671d2917f556fc97659f79d934dbfa8b5c71bfeec3b54de57aa819" }, "downloads": -1, "filename": "legos.fact_sphere-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "63a92b58a81cb8b866cd1fbe10bd4702", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7761, "upload_time": "2018-10-04T03:39:09", "url": "https://files.pythonhosted.org/packages/90/78/166a7fbc2da31382030e04ae99593486423b83e1ab3e9b905aebec58366a/legos.fact_sphere-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "43a22692d9fbda2ac7448ee51d6d913f", "sha256": "f40efd5918dece3bcb7d94f2a7d1e8ce9567eeff8442e0075684680dcf04b68c" }, "downloads": -1, "filename": "legos.fact_sphere-0.1.1.tar.gz", "has_sig": false, "md5_digest": "43a22692d9fbda2ac7448ee51d6d913f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2498, "upload_time": "2018-10-04T03:39:10", "url": "https://files.pythonhosted.org/packages/c2/e6/6151524548682283631578fd89dfd6f41af46a06c1cdc5c0fa9173eab887/legos.fact_sphere-0.1.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "830f1a577e4ee29019dcfa36451258ee", "sha256": "afa45895340b378d26cce95a7c8eac8d3c2a4030e047d0c28f23c5d10a2fe8d9" }, "downloads": -1, "filename": "legos.fact_sphere-0.2.2.tar.gz", "has_sig": false, "md5_digest": "830f1a577e4ee29019dcfa36451258ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8056, "upload_time": "2018-10-11T19:03:28", "url": "https://files.pythonhosted.org/packages/7c/2f/019f5fed41f736ee97fad4e2b7f7b7714bd80b9426ecc85a065132bfbb6c/legos.fact_sphere-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "830f1a577e4ee29019dcfa36451258ee", "sha256": "afa45895340b378d26cce95a7c8eac8d3c2a4030e047d0c28f23c5d10a2fe8d9" }, "downloads": -1, "filename": "legos.fact_sphere-0.2.2.tar.gz", "has_sig": false, "md5_digest": "830f1a577e4ee29019dcfa36451258ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8056, "upload_time": "2018-10-11T19:03:28", "url": "https://files.pythonhosted.org/packages/7c/2f/019f5fed41f736ee97fad4e2b7f7b7714bd80b9426ecc85a065132bfbb6c/legos.fact_sphere-0.2.2.tar.gz" } ] }