A dad joke widget for your Textual applications
Project description
Textual Dad Joke
Introduction
This library provides a widget that displays a dad joke. No, I'm not even kidding.
Installing
The package can be installed with pip
or related tools, for example:
$ pip install textual-dad-joke
Then what?
Import it as you would any other widget from a library:
from textual_data_joke import DadJoke
and then compose the DadJoke
widget into your application as you would any
other widget.
The widget has a tell
method if you want it to tell another joke. It'll
also swallow any errors but will post a DadJoke.FellFlat
message if there
was an error.
Erm... okay. Anything else I should know?
The widget needs an internet connection and is using icanhazdadjoke.com as the backend. Also, I won't be held responsible for the content of any joke served. That's all on you.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file textual_dad_joke-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: textual_dad_joke-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b4b0d8d37be51e3552af2c432359f023e5ef0f7f31207e3507a4950c31afc77 |
|
MD5 | 4ab7f5144484b4baf24c5b625dc36afd |
|
BLAKE2b-256 | 91c96427580b5ffb5f5ee23c5267341eb168828dade1ff55f8a62f6bba1065f6 |