Giter Site home page Giter Site logo

daknob / grade_spammer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zakkak/grade_spammer

0.0 2.0 0.0 124 KB

A python script parsing excel files with student grades and sending out the grades with personal e-mails

License: MIT License

Python 100.00%

grade_spammer's Introduction

grade_spammer

A python script parsing excel files with student grades and sending out the grades with personal e-mails

Dependencies

  1. python3
  2. python3-xlrd

Usage

usage: spammer.py [-h] [-s SHEET] -H HEADER_ROW -e EMAIL_COLUMN -l LESSON
                  [-c ASSIGNMENT_COLUMNS] [-D] [-f] [-v] [-V]
                  spreadsheet

The Spammer!!!

positional arguments:
  spreadsheet

optional arguments:
  -h, --help            show this help message and exit
  -s SHEET, --sheet SHEET
                        choose the sheet to parse in range 0..99 (default: 0)
  -H HEADER_ROW, --header-row HEADER_ROW
                        choose the header row, assignment names will be read
                        from there. All rows bellow it will be
                        parsed.(default: 0)
  -e EMAIL_COLUMN, --email-column EMAIL_COLUMN
                        choose the column containing the students' e-mails.
  -l LESSON, --lesson LESSON
                        the lesson number (i.e. 255).
  -c ASSIGNMENT_COLUMNS, --assignment-columns ASSIGNMENT_COLUMNS
                        choose the columns containing the assignments' grades.
                        Supports comma separated values (i.e. A,C,D) and
                        ranges (i.e. A,C:D). (default: Will parse all columns
                        after the e-mail column)
  -D, --dry-run         perform a dry run (default: False)
  -f, --force           force the execution without asking for
                        confirmation.(default: False)
  -v, --verbose         run in verbose mode (default: False)
  -V, --version         show program's version number and exit

Examples

Assume a test.xls file with the following contents:

A B C D E F D
1 Name Surname ID e-mail Assignment 1 Assignment 2 Assignment 3
2 John Smith 1600 [email protected] 4 8 9
3 Μιράντα Παπαδοπούλου 524 [email protected] 6 7.5 9.9
4 Foivos Zakkak 642 [email protected] 3.5 4 6

To send the grades for assignments 1 and 2 you can run:

spammer.py test.xls -H 1 -e D -l 255 -c E:F

or

spammer.py test.xls -H 1 -e D -l 255 -c :F

in the second case the script will print all columns after the one containig the e-mail until column F.

To send the grades for assignments 1 and 3 you can run:

spammer.py test.xls -H 1 -e D -l 255 -c E,D

grade_spammer's People

Contributors

zakkak avatar

Watchers

 avatar  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.