vaticinator(6)
v0.1.0
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(*args, **kwargs):
vaticinator.set_default_options()
vaticinator.process_options(*args, **kwargs)
return vaticinator.fortune
And the template::
<span>{% random_fortune 'short' 'all' %}</span>
Metadata
Release files for vaticinator 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vaticinator-0.1.0.tar.gz | 22.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vaticinator-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.2 kB
Release files / vaticinator-0.1.0.tar.gz
| Download URL | vaticinator-0.1.0.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8745e6d1abc5a7a74c34a0d46d66dfd67e3e4eadaf61e200d12e333b22084a63
|
|
BLAKE2b-256 checksum How to use checksums |
48c3a9de66c35d590a2cda0ea0ebe2762d12aaae77c9c03da1e68fe11bd71532
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / vaticinator-0.1.0-py3-none-any.whl
| Download URL | vaticinator-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acacb9c44db23008dc80d363ef9dfa6a72cbb3398b4631996baae79641b8cf06
|
|
BLAKE2b-256 checksum How to use checksums |
1e1b9f1080087aa8adb02345d3c724eb56f56768bf27144d7b6cbf0476ee2f7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|