Skip to main content

A simple quote of the day script users can invoke from their home directories without modifying /etc/motd.

Project description

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 BitBucket link.

Release Notes:

  • 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

QuoteOfTheDay-0.7.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file QuoteOfTheDay-0.7.2.tar.gz.

File metadata

File hashes

Hashes for QuoteOfTheDay-0.7.2.tar.gz
Algorithm Hash digest
SHA256 1d4fc2ca1bf7b52168325f1023e46a413c45c8f6d51997533934dd7a770faeb9
MD5 308df2123e5c4b2de68976a7b6e42e7e
BLAKE2b-256 7536ae5898a688bb8daad11135cb3f4db5e6073d460a61fe56018b8004016e16

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page