Git Product home page Git Product logo

headcount's Introduction

Headcount sheet automation

This project automates filling out part of the headcount sheets for the Champions program at Eliot Upper.

The script can fill out all the sheets for 1 week. It generates two files: one for Pre-K and one for Grade school kids. Each file has a sheet for each day.

How to use:

  1. Download project
  2. Install dependencies
  3. Replace text file contents
  4. Run Python script

Download project:

Go to https://github.com/ljiang09/headcount. In the top right ish of the screen, click the green "Code" button to show a drop down menu. In this drop down, click "Download ZIP". Once downloaded, unzip into your computer.

Install dependencies:

To run the code, you must first install some libraries that the code relies on. In the command line, run the following commands:

pip install xlwt

pip install numpy

If you are using the newer version of Python (Python 3), replace pip with pip3.

Replace text file contents:

To generate headcount sheets for the week, you need to update the text file that stores all the data. This is found in headcount_data.txt.

If you look in headcount_data.txt, you'll see a horizontal line =================== near the top. Above all this line, you need to copy and paste the daily totals in the format Wednesday: 48.

Below this, you can copy and paste everything from the table sent in the weekly email, straight as it is.

If you need an example of how to format the entire file, look at example_data_format.txt.

Run Python script

Now, you can finally run the python script and generate Excel files for each day. In the command line, navigate to the folder where this ReadMe file is stored. Then, type either python main.py or python3 main.py, press enter, and see the newly-generated Excel sheets!

headcount's People

Contributors

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