{ "info": { "author": "Robert Erb", "author_email": "bob.erb@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": ".. image:: https://img.shields.io/travis/rerb/django-fortune.svg\n.. image:: https://img.shields.io/codecov/c/github/rerb/django-fortune.svg\n.. image:: https://img.shields.io/pypi/v/django-fortune.svg\n.. image:: https://img.shields.io/pypi/pyversions/django-fortune.svg\n.. image:: https://img.shields.io/pypi/status/django-fortune.svg\n\ndjango-fortune\n==============\n\nA Django template-tag that provides a fortune.\n\nThe Template Tag\n----------------\n\n.. code:: html\n\n {% load fortune_tags %}\n {% fortune %}\n\nThe Management Commands\n-----------------------\n\n.. code:: bash\n\n $ python manage.py fortune # Get a fortune.\n Fortunes will improve after loading some. # Oops, no fortunes loaded.\n $ python manage.py fortune_list_packs # List available fortune packs.\n -- Installed: --\n -- Available: --\n art\n ascii-art\n computers\n cookie\n definitions\n .\n .\n $ python manage.py fortune_load_pack art # Load art fortunes.\n $ python manage.py fortune # Get an art fortune.\n\n \"My life is a soap opera, but who has the rights?\"\n -- Madame\n $ python manage.py fortune_unload_pack art # Unload art fortunes.\n $ python manage.py fortune # No fortunes available again. :-(\n Fortunes will improve after loading some.\n $\n\nThe Python Interface\n--------------------\n\n.. code:: python\n\n $ python manage.py shell\n .\n .\n >>> from fortune.models import Fortune, Pack\n >>> Fortune.fortune()\n 'Fortunes will improve after loading some.'\n >>> from fortune import utils\n >>> fortunes_path = utils.get_fortunes_path()\n >>> art_fortunes_path = fortunes.path.joinpath(\"art\")\n >>> Pack.load(str(art_fortunes_path))\n >>> Fortune.fortune()\n u\"\\nThey can't stop us... we're on a mission from God!\\n\\t\\t-- The Blues Brother\"\n >>> art_fortunes = Pack.objects.get(name=\"art\".title())\n >>> art_fortunes.unload()\n >>> Fortune.fortune()\n 'Fortunes will improve after loading some.'\n >>>\n\nInstallation\n------------\n\nInstall using pip;\n\n.. code:: bash\n\n $ pip install django-fortune\n\nthen add \"fortune\" to INSTALLED\\_APPS in your app's settings.py.", "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/rerb/django-fortune", "keywords": "django fortune", "license": "GPL3", "maintainer": null, "maintainer_email": null, "name": "django-fortune", "package_url": "https://pypi.org/project/django-fortune/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-fortune/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rerb/django-fortune" }, "release_url": "https://pypi.org/project/django-fortune/1.1.1/", "requires_dist": null, "requires_python": null, "summary": "A Django template-tag for fortunes.", "version": "1.1.1" }, "last_serial": 2003957, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d1a1657b56663050ab2e34034ee5fb58", "sha256": "360d5b7ada37342821e8160b17b97608981bcbf629c4452d3fa841f179c158d4" }, "downloads": -1, "filename": "django-fortune-0.1.tar.gz", "has_sig": false, "md5_digest": "d1a1657b56663050ab2e34034ee5fb58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13688, "upload_time": "2016-02-27T01:05:08", "url": "https://files.pythonhosted.org/packages/ca/df/8a4a08dc169ec93275a568a54493c7c8732d2d063349971ad0948615c307/django-fortune-0.1.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "a18b8b4f9abb11f611f578543799a0e8", "sha256": "5f1c88fe445bc1d8b30bb5cef2f97f0655e61893a426be083a822efbb2538aeb" }, "downloads": -1, "filename": "django-fortune-1.0.tar.gz", "has_sig": false, "md5_digest": "a18b8b4f9abb11f611f578543799a0e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18794, "upload_time": "2016-02-28T19:51:11", "url": "https://files.pythonhosted.org/packages/c4/72/9e049b8ee7f50a4321f8fb19198a3fc54538af4fa704caeb945950f7b2c1/django-fortune-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "db4c66697623e8e596c54008ce7d5213", "sha256": "9220ac86b32aee79583876b281b6dbe89a8ba6286c5d0aa863f057a2bdc621ac" }, "downloads": -1, "filename": "django-fortune-1.0.1.tar.gz", "has_sig": false, "md5_digest": "db4c66697623e8e596c54008ce7d5213", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18832, "upload_time": "2016-03-05T23:09:18", "url": "https://files.pythonhosted.org/packages/a9/a4/ad3b74a576744c702fa3351aec455d01e3c02228d4f6c410373ef3f5eb8d/django-fortune-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "8adcfa89ecf3cc91f1c19308313e37c2", "sha256": "f1f91304a85c2fdeecc3cd9d8038173e98ebc85acb4a545ea6f22eee2b108eed" }, "downloads": -1, "filename": "django-fortune-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8adcfa89ecf3cc91f1c19308313e37c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17663, "upload_time": "2016-03-05T23:31:49", "url": "https://files.pythonhosted.org/packages/cc/14/085030dd3fb1d1b4b68bed6c225ca81862050c8a6173b05034e59b5a0c19/django-fortune-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "b7eecffaaea0b84032853b11d6a5eeee", "sha256": "f21f0ee579740956bd4a7215ab86af4cce47b2f9e6acc63978646e853d8c06eb" }, "downloads": -1, "filename": "django-fortune-1.0.3.tar.gz", "has_sig": false, "md5_digest": "b7eecffaaea0b84032853b11d6a5eeee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17665, "upload_time": "2016-03-05T23:44:23", "url": "https://files.pythonhosted.org/packages/a7/76/7f3ca73ec01593d1a56fc1a0768716aa4feb5d434e971d37c3df71b7d170/django-fortune-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "25dc75e0218c78ca318a765affba6a73", "sha256": "6a713288581f6cb688eee42c14d3f7b9faf7ea2f0e42a561201cfe4d470319ae" }, "downloads": -1, "filename": "django-fortune-1.0.4.tar.gz", "has_sig": false, "md5_digest": "25dc75e0218c78ca318a765affba6a73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1017135, "upload_time": "2016-03-06T02:55:11", "url": "https://files.pythonhosted.org/packages/35/24/eb229d22d74756c4205a4cc3f91f544e06565bc8dfa0f1e9686cb23a6422/django-fortune-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "ed22e7831e4c76618a09c84d23affd12", "sha256": "871e42e2cbcfc962f8c0e51cb6fe5fa3f494b6806483c7f798c1b5fbc38b4a78" }, "downloads": -1, "filename": "django-fortune-1.0.5.tar.gz", "has_sig": false, "md5_digest": "ed22e7831e4c76618a09c84d23affd12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1017172, "upload_time": "2016-03-06T03:16:14", "url": "https://files.pythonhosted.org/packages/a7/54/818fb9556bda9eb389194e3b921e8210c76a7be32566e61dd2ad1219b218/django-fortune-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "e4c5ce12a54ea6a8f76f8f3006f0a101", "sha256": "6b852c70ba0218959ed1f2928a0fe86eef034638963ccceba2400543064e65d1" }, "downloads": -1, "filename": "django-fortune-1.0.6.tar.gz", "has_sig": false, "md5_digest": "e4c5ce12a54ea6a8f76f8f3006f0a101", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1018210, "upload_time": "2016-03-06T22:30:48", "url": "https://files.pythonhosted.org/packages/72/c9/4f22e0db418d92dcae447ff7bbb29fd8cdd2c2f85c297f13b168fa44a633/django-fortune-1.0.6.tar.gz" } ], "1.0b": [ { "comment_text": "", "digests": { "md5": "98bc65b5a9828d5997f9b9dab6f34b90", "sha256": "3d8969227eaa1ff492fae6011d3bf4f7a34cdf8d279f34dd4a3596cbaf03dfce" }, "downloads": -1, "filename": "django-fortune-1.0b.tar.gz", "has_sig": false, "md5_digest": "98bc65b5a9828d5997f9b9dab6f34b90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18451, "upload_time": "2016-02-28T19:37:45", "url": "https://files.pythonhosted.org/packages/f0/ab/ec746de9635cce8387aef5aa19042a852eee783baf193d5604b26457cc33/django-fortune-1.0b.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "a577cab0d2d2867dafc4c0cfb59ab747", "sha256": "d13b1c21df95f58465a6abd592fa594eb6188b149e2d9f772fb5762405ce6063" }, "downloads": -1, "filename": "django-fortune-1.1.0.tar.gz", "has_sig": false, "md5_digest": "a577cab0d2d2867dafc4c0cfb59ab747", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1019015, "upload_time": "2016-03-12T19:13:12", "url": "https://files.pythonhosted.org/packages/6d/3c/57cd341e712414a91583a389fc60d75d866d8e99d94eee904b05d4d8d816/django-fortune-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "d4579450b71ab6533f5160e279033a22", "sha256": "c9cb8c8538a69fc87b13fd17b6787a57f24fd6fa89748ab5357f4a6a949697f5" }, "downloads": -1, "filename": "django-fortune-1.1.1.tar.gz", "has_sig": false, "md5_digest": "d4579450b71ab6533f5160e279033a22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1019001, "upload_time": "2016-03-13T04:24:05", "url": "https://files.pythonhosted.org/packages/af/c6/26aa8b536d0dfc7cfe9eb869984e5b90fbfe7ee79579b9ff3e15021e2c83/django-fortune-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d4579450b71ab6533f5160e279033a22", "sha256": "c9cb8c8538a69fc87b13fd17b6787a57f24fd6fa89748ab5357f4a6a949697f5" }, "downloads": -1, "filename": "django-fortune-1.1.1.tar.gz", "has_sig": false, "md5_digest": "d4579450b71ab6533f5160e279033a22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1019001, "upload_time": "2016-03-13T04:24:05", "url": "https://files.pythonhosted.org/packages/af/c6/26aa8b536d0dfc7cfe9eb869984e5b90fbfe7ee79579b9ff3e15021e2c83/django-fortune-1.1.1.tar.gz" } ] }