krz/daily-poem

Poetry emailed, at your will.

clone: git clone https://gitbay.org/krz/daily-poem.git

main:

040000 .github/
100644 .gitignore46
100644 LICENSE.txt639
100644 README.nfo1378
100644 main.py1307
100644 requirements-dev.in16
100644 requirements-dev.txt525
100644 requirements.in9
100644 requirements.txt334
040000 tests/
┌──────────────────────────────────────────────────────────────┐
│  D A I L Y   P O E M                       [ KRZ ]   krz.sh  │
└──────────────────────────────────────────────────────────────┘

WHAT
  python program. requests a random poem from the poetrydb api and
  emails it to a configured list of addresses.

REQUIRES
  python, and a way to send mail (e.g. mailutils on debian).

RUN
      git clone <REPO_URL>
      cd daily-poem
      pip install -r requirements.txt

  edit main.py and set:
  - sender_email: the from address
  - recipient_emails: a list of to addresses
  - smtp_server: smtp host, defaults to localhost

  then:

      python main.py

┌──────────────────────────────────────────────────────────────┐
│  krz.sh                                                      │
└──────────────────────────────────────────────────────────────┘