vaticinator(6)
==============
v0.0.7
======
Vaticinator is yet another Python implementation of the
ancient and (in)famous `fortune` program from the
`bsdgames` package.
My motivation for writing it was more to have a
portable library I could use to fetch fortunes for
use in other projects. It's possible that one or
more of the existing ones have this (I looked
albeit briefly), but it was an itch I didn't mind
scratching.
It is still alpha maturity level, though the majority
of `fortune` behavior is implemented at the moment.
Example integration
=====================
This is a the code for a Django template tag that
displays a random fortune inside a template (with
all the options from the command line available).
This is basically why I created this project::
from django.template import Library
from vaticinator.vaticinator import Vaticinator
register = Library()
vaticinator = Vaticinator()
@register.simple_tag
def random_fortune(**kwargs):
vaticinator.set_default_options()
vaticinator.process_options(**kwargs)
return vaticinator.fortune
And the template::
<span>{% random_fortune 'short' 'all' %}</span>
Raw data
{
"_id": null,
"home_page": "https://github.com/hazelmollusk/vaticinator",
"name": "vaticinator",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.11, <4",
"maintainer_email": "",
"keywords": "fortune,games",
"author": "Matt Barry",
"author_email": "matt@hazelmollusk.org",
"download_url": "https://files.pythonhosted.org/packages/f5/dd/d2290054fa8d87df0bd90f147bbaf98896dbc401e6a0a420dc51bfa0b0b4/vaticinator-0.0.7.tar.gz",
"platform": null,
"description": "vaticinator(6)\n==============\nv0.0.7\n======\n\nVaticinator is yet another Python implementation of the\nancient and (in)famous `fortune` program from the \n`bsdgames` package.\n\nMy motivation for writing it was more to have a \nportable library I could use to fetch fortunes for\nuse in other projects. It's possible that one or\nmore of the existing ones have this (I looked\nalbeit briefly), but it was an itch I didn't mind\nscratching.\n\nIt is still alpha maturity level, though the majority \nof `fortune` behavior is implemented at the moment.\n\nExample integration\n=====================\n\nThis is a the code for a Django template tag that\ndisplays a random fortune inside a template (with\nall the options from the command line available).\nThis is basically why I created this project::\n\n\tfrom django.template import Library\n\tfrom vaticinator.vaticinator import Vaticinator\n\n\tregister = Library()\n\tvaticinator = Vaticinator()\n\n\t@register.simple_tag\n\tdef random_fortune(**kwargs):\n\t\tvaticinator.set_default_options()\n\t\tvaticinator.process_options(**kwargs)\n\t\treturn vaticinator.fortune\n\nAnd the template::\n\n\t<span>{% random_fortune 'short' 'all' %}</span>\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Yet another Python fortune implementation",
"version": "0.0.7",
"project_urls": {
"Changelog": "https://github.com/hazelmollusk/vaticinator/blob/main/CHANGELOG.rst",
"Discussion Forum": "https://github.com/hazelmollusk/vaticinator/discussions",
"Documentation": "https://vaticinator.readthedocs.io/en/latest/",
"Homepage": "https://github.com/hazelmollusk/vaticinator",
"Issue Tracker": "https://github.com/hazelmollusk/vaticinator/issues",
"webpage": "https://github.com/hazelmollusk/vaticinator"
},
"split_keywords": [
"fortune",
"games"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "26af986e84295973e650fe75f31a632ecf0f22f124d84f00cf4da6362d979cf1",
"md5": "909dd346171051f88510473c05baff67",
"sha256": "212f462e52043569503029664cefb5ee519ea0b848555e57280529673da95c1f"
},
"downloads": -1,
"filename": "vaticinator-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "909dd346171051f88510473c05baff67",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11, <4",
"size": 8360,
"upload_time": "2023-10-06T18:11:59",
"upload_time_iso_8601": "2023-10-06T18:11:59.254272Z",
"url": "https://files.pythonhosted.org/packages/26/af/986e84295973e650fe75f31a632ecf0f22f124d84f00cf4da6362d979cf1/vaticinator-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f5ddd2290054fa8d87df0bd90f147bbaf98896dbc401e6a0a420dc51bfa0b0b4",
"md5": "f6abba460d393ca521de013c6cfef8dc",
"sha256": "9261efdef2e7106cd220da624c835bd9147d53f6f99599eb2a8f8dcabd14dffa"
},
"downloads": -1,
"filename": "vaticinator-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "f6abba460d393ca521de013c6cfef8dc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11, <4",
"size": 22505,
"upload_time": "2023-10-06T18:12:00",
"upload_time_iso_8601": "2023-10-06T18:12:00.830671Z",
"url": "https://files.pythonhosted.org/packages/f5/dd/d2290054fa8d87df0bd90f147bbaf98896dbc401e6a0a420dc51bfa0b0b4/vaticinator-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-06 18:12:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hazelmollusk",
"github_project": "vaticinator",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"requirements": [],
"lcname": "vaticinator"
}