Code Monkey home page Code Monkey logo

report-generator's Introduction

PRIME automated report generator

Setup

  • python -m venv .venv
  • .venv/bin/activate (bash)
    .venv\Scripts\activate (Windows)
  • pip install -r requirements.txt

Usage

  • Columns in the spreadsheet that are shown as charts in the document must be named as follows: num/{ChartName}/{SeriesName}/{ColumnName}. For example, the column storing the student's Expectancy Beliefs score for week 2 would be named num/eb/My score/Week2. Here eb is the name of the graph in the Word template, My score is the name of the row in the graph's data, and Week2 is the name of the column in the graph's data.
  • The script reads student data from the 'student_identification' sheet of the Excel document. Note that the rows must match the order of the students in the main sheet.
  • Make sure that the Word and Excel files used as input match the file path constants SPREADSHEET and TEMPLATE in main.py.
  • Now the script can be run with python main.py. The generated documents will be saved in the out folder.

ย 

Related repository for the library used to manipulate charts in Word documents: https://github.com/juliavdkris/docx-charts

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.