Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mpardalos/pymotd

A python Message of the Day script
https://github.com/mpardalos/pymotd

mit-license motd python python3

Last synced: 1 day ago
JSON representation

A python Message of the Day script

Awesome Lists containing this project

README

        

# pymotd

A python Message of the Day script. Configure it through the parameters passed
to the get_motd function in the `if __name__ == '__main__'` section at the end of
the file, or, if you are so inclined, by importing this file and calling the
get_motd function yourself.

In this default configuration, it prints a message similar to this:

```
I surely do hope that's a syntax error.
-- Larry Wall in <[email protected]>

/#\
/###\
/p^###\
/##P^q##\
/##( )##\
/###P q#,^\ Linux TARDIS 4.10.9-1-ARCH
/P^ ^q\ 7 updates available
```

The Arch ASCII image is not hardcoded, but is rather loaded from ~/.motd_image
(this can be changed). More messages can also be added and the fortune message
at the top can be swapped out for something else or removed entirely.

## Requirements

* Python 3
* colorama
* termcolor
* sh

These are also provided in requirements.txt form.

On Arch linux, these will be provided by the following packages:

* python-colorama
* python-termcolor
* python-sh