Skip to main content

What is this?

Have you ever wondered how you get the login messages when you log into your school’s or companies’ servers?

Have you ever wondered why some people get quotes of the day as their login messages and some get the same boring notices everyday?

Have you ever wondered how you can configure your system to deliver you some reasonably smart quotes and only discovered that you don’t have write permission to /etc/motd?

If you have answered yes to any of the above questions, then QuoteOfTheDay is for you. This module simply goes to The Quotations Page (www.quotationspage.com) to pull the quotes and motivational quotes of the day for the past 10 days, pickles the cached quotes in your home directory (so we are all good netizens), and randomly picks one to display on your console everytime you invoke the qotd script. As a bonus feature, you can also invoke this script in your .login files to see a quote of the day (or the session anyway) :P.

Download:

Just grab the source package from below or follow the URL to download the latest revision from the repository.

Install:

Unzip or untar the package, change directory into the extracted distribution and type:

$ python setup.py install

or if you want to do a user-specific installation:

$ python setup.py install --install-lib $YOUR_PYTHON_SITE_PACKAGES_PATH --install-scripts $YOUR_PYTHON_SCRIPT_PATH

or

$ python setup.py install --home ~/

or something to these effects, as long as the end-users have access to the qotd script.

If you want to see a quote every time you login using a terminal, you can put something similiar to the following in your .bash_profile or .bashrc if you use BASH.

if [ -f ~/bin/qotd ]; then ~/bin/qotd; fi

As usual, consult your shell’s manual to find out how to invoke a script at login time.

Feedback and Bug reports:

See this GitHub repository.

Release Notes:

  • 0.7.3 Moved to GitHub and re-added to PyPi

  • 0.7.1 No more ugly stacktraces when internet connection cannot be established

  • 0.7 release Fixed a few Unicode handling bugs, most notably a crasher and replace the Unicode replacement character with a space.

  • 0.7b4 Simplified error handling code.

  • 0.7b3 Rewrote connection handling to deal with redirects Added extra robustness to deal with bad XML data.

  • 0.7b2 Fixed bug where weird unicode string bombs out str().

  • 0.7b1 Initial beta release.

Release files for QuoteOfTheDay 0.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for QuoteOfTheDay 0.7.4
File Size Uploaded
QuoteOfTheDay-0.7.4.tar.gz 5.0 kB Details

Release files / QuoteOfTheDay-0.7.4.tar.gz

Download URL QuoteOfTheDay-0.7.4.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
67355589c78ac4faa0d187e3352331185d8dc62cd2d767e3199c3f871fdae9f9
BLAKE2b-256 checksum
How to use checksums
f63330171148a6c5233a24dfd3ff98f4ba1c1b2d9f5ff81bffb7a871b1a89c37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.7.4 This release

1 release file

0.7.3

1 release file

0.7.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page