This release is a pre-release and may not be stable for production use.
theword
Inspired by Python’s import this, The Trashmen, and The Family Guy, theword is a quirky library to answer that eternal question, “What’s the word?”
Installation
From any command line:
$ pip install theword
Emulating the Zen of Python
From any command line:
$ python -c "import theword"
_Surfin' Bird_, by The Trashmen
A well a everybody's heard about the bird
Bird, bird, bird, b-bird's the word
A well a bird, bird, bird, b-bird's the word
A well a bird, bird, bird, b-bird's the word
A well a bird, bird, b-bird's the word
General Usage
You can import any of the following:
from theword import TheWord, TheBird, what_is_the_word
Ask the question:
>>> what_is_the_word()
<theword.theword.TheBird object at 0x10f582d90> # Returns TheBird
>>> what_is_the_word().answer
'[E]verybody knows that the bird is the word!'
>>> print what_is_the_word() # We overloaded __str__
{"answer": "[E]verybody knows that the bird is the word!", "question": "What's the word?", "id": "The Bird"}
More quirky fun:
>>> what_is_the_word().play() # Turn on the volume, ensure your WiFi is on
{'artist': 'The Trashmen', 'title': "Surfin' Bird", 'question': "What's the word?", 'released': 1964, 'answer': '[E]verybody knows that the bird is the word!', 'id': 'The Bird'}
>>> what_is_the_word().celebrate() # Be prepared to laugh
{'answer': '[E]verybody knows that the bird is the word!', 'celebrated_on': "FOX's The Family Guy", 'question': "What's the word?", 'id': 'The Bird', 'celebrated_by': 'Seth MacFarlane'}
>>>
If you watch all the skits you will recognize this:
Sir, our math shows that the Bird is greater than or equal to the Word!
>>> isinstance(TheBird(), TheWord)
True
>>> issubclass(TheBird, TheWord)
True
Metadata
Release files for theword 1.0.1b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| theword-1.0.1b2.tar.gz | 2.5 kB | Without provenance | Details for theword-1.0.1b2.tar.gz |
Release files / theword-1.0.1b2.tar.gz
| Download URL | theword-1.0.1b2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a67eb7ca533e2f4a93212caf9498c76856382c68f887b871e3ce263d92532a5c
|
|
BLAKE2b-256 checksum How to use checksums |
783387b2459d28641e22a483a225f0c729fff8dcebea4d4581d19d53c66acdc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for theword 1.0.1b2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.