GithubHelp home page GithubHelp logo

sigplan-m-toolkit's Introduction

Scripts for SIGPLAN-M renewal

Setup

This repo is only tested on python 3.10.

First, install all the dependencies by running:

pip install -r requirements.txt

Since this repo will access google sheet. You need to first authorize gspread to access to your account. Follow the setup procedure in this link: https://docs.gspread.org/en/v5.7.1/oauth2.html.

Since I use Mac and the script will invoke the 'Mail' app in Mac to send the email, it is recommended that this script is run on MacOS (feel free to update the script to invoke other mail clients).

Usage

To automatically generate emails for mentor renewal for a particular month, modify the variable index_key in renew_email_gen.py. Assuming you have already authorized gspread and set the variable properly, run the following command:

python renew_email_gen.py

This will automatically generate all renewal emails for a particular month as email drafts in the Mail app. It will not send the email so that you have the chance to do manual modifications before sending.

Note that this script only generates email for the mentors. To generate email for the mentees, directly copy paste the content in SIGPLAN-M: Mentee Renewal.md. The emails for all mentees to be renewed should be printed as stdout when you run the renew_email_gen.py under the section 'mentee emails' in the form of a comma-separated string.

This repo also support automated formatting for renewal success email and rematch_email. To send a renewal success email, open renew_success_email_gen.py and update the names and emails of the mentor and mentee. The output of this script is a Mail email draft as well.

To send a rematch email, open rematch_email_gen.py and update the name of the mentee. The output of this script is also a Mail email draft.

sigplan-m-toolkit's People

Contributors

thelyad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.