Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mpardalos/pymotd
- Owner: mpardalos
- License: mit
- Created: 2017-04-16T09:37:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-16T10:06:29.000Z (over 7 years ago)
- Last Synced: 2024-12-19T05:09:07.326Z (8 days ago)
- Topics: mit-license, motd, python, python3
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
* shThese are also provided in requirements.txt form.
On Arch linux, these will be provided by the following packages:
* python-colorama
* python-termcolor
* python-sh