Skip to content

📅 Script that create a calendar file (.ics) with all holidays in year, based in Brazil/Recife-PE holidays.

License

Notifications You must be signed in to change notification settings

frankjuniorr/holidays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Holidays

Description

Script that create a calendar file (.ics) with all holidays in year, based in Brazil/Recife-PE holidays. This file generated is sent by email, and user should be import manually in Google Calendar

  • The script only add holidays that different to Saturday and Sunday
  • The script also add Carnival \o/

Pre-requisite

  1. Enable an 2-step-authentication in yout Google Account (this is necessary to next step)
  2. Create and App Password to Mail

Config

The script use the environment variables to config email:

  • EMAIL_FROM: Sender email
  • EMAIL_TO: Receiver email
  • EMAIL_APP_PASSWORD: App Password created

Install

pip3 install -r requirements.txt

Run Locally

Create a file called .env with this content:

export EMAIL_FROM="sender_email@email.com"
export EMAIL_TO="receiver_email@email.com"
export EMAIL_APP_PASSWORD="<APP_PASSWORD>"

After, run source .env

Use

python3 app.py

License:

Creative Commons License

About

📅 Script that create a calendar file (.ics) with all holidays in year, based in Brazil/Recife-PE holidays.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages