Funny motd (funmotd)
A cool tool to display random quotes from Movies and TV Shows as motd on Terminal when you open.
Installation
$ pip3 install funmotd
How it works?
The __init__.py first picks a random TV Shows/Movies with weights and again picks a quote randomly from selected TV Show/Moves. You can see available of quotes in quotes_db.py
When you install package, the CLI will add entry in .bashrc, it will execute whenever bash is loaded
Usage
$ funmotd --help
usage: funmotd [-h] [-l] [-e MODIFY MODIFY] [-n NSFW] [-v]
Displays TV Show and Movie Quotes as 'motd' on Terminal
optional arguments:
-h, --help show this help message and exit
-l View Available TV Show/Movies & Configuration
-e MODIFY MODIFY Modify Weights
-n NSFW Enable/Disable NSFW Quotes
-v show program's version number and exit
How to Configure?
List Available TV Show/Movies
$ funmotd -l
** Configuration **
+------------------------+-------------+
| TV Shows/Movies Quotes | Weights |
+------------------------+-------------+
| breaking_bad | 60 |
| friends | 10 |
| game_of_thrones | 100 |
| jokes | 0 |
| movies | 10 |
+------------------------+-------------+
| NSFW | True |
+------------------------+-------------+
Modify Weights
You can modify weights to see which TV Shows/Movies mostly
$ funmotd -e game_of_thrones 90
[*] Configuration Modified
$ funmotd -l
** Configuration **
+------------------------+-------------+
| TV Shows/Movies Quotes | Weights |
+------------------------+-------------+
| breaking_bad | 60 |
| friends | 10 |
| game_of_thrones | 90 |
| jokes | 0 |
| movies | 10 |
+------------------------+-------------+
| NSFW | True |
+------------------------+-------------+
Enable/Disable NSFW Quotes
There are some quotes "NSFW", so this option helps to enable/disable.
$ funmotd -n no
[*] Configuration Modified
$ funmotd -l
** Configuration **
+------------------------+-------------+
| TV Shows/Movies Quotes | Weights |
+------------------------+-------------+
| breaking_bad | 60 |
| friends | 10 |
| game_of_thrones | 90 |
| jokes | 0 |
| movies | 10 |
+------------------------+-------------+
| NSFW | False |
+------------------------+-------------+
Can I add any other quotes?
Yes, but not with CLI (may be in future versions). Right now, you have to edit quotes_db.py and run funmotd -l to update the configuration.
The quotes_db.py follow below dictionary structure.
all_quotes = {
'<tv_show_movie_name>' : [
[ # NSFW Quote's list
{'quote': '<whatever the NSFW quote it is>', 'character': '<name of the character>', 'name': '<name of the TV Show/ Movie>'}
],
[ # NON-NSFW Quote's list
{'quote': '<whatever the NORMAL quote it is>', 'character': '<name of the character>', 'name': '<name of the TV Show/ Movie>'}
]
]
}
Uninstall
$ pip3 uninstall funmotd
And remove CLI entry in .bashrc
Metadata
Release files for funmotd 1.1
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 |
|---|---|---|---|---|
| funmotd-1.1.tar.gz | 14.7 kB | Without provenance | Details for funmotd-1.1.tar.gz |
Release files / funmotd-1.1.tar.gz
| Download URL | funmotd-1.1.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe9203cd0f8e7b79153ff2d5144bece876e1a29a48b62061b3c771756da899de
|
|
BLAKE2b-256 checksum How to use checksums |
0ff298c8e6b229aa40e8c2555c5d542d8c5ff9e26cd766d9d4880450d69f2a82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for funmotd 1.1
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.