Git Product home page Git Product logo

bhs-ical's Introduction

This program generates a calendar and a planer for the 6-day BHS Calendar

  • It creates an .ics file to import a 6-day calendar to google calendar / icalendar. Calendar in phone example

  • It creates a printable PDF file containing a planner for the whole year. Weekly Calendar: Planer Weekly Planer: Planer

  • It generates statistics like: "This Monday you have 52 lessons of IB left until the end of the Year"

Dependencies

To run the script you will need the python icalendar Package. To generate the PDF you will also need reportlab Package.

How it works

The public holidays, breaks, training days, etc ... are stored in a csv file called dates_and_breaks.csv. Each day is split in 5 periods, and the starting time of each period is declared in schedule_times.py Each teacher / student then needs to create an excel file with their timetable and save it with the following format: timetable_files/timetable.csv.

To describe the classroom or location of our class, we will use an @ symbol. So for example teaching physics in the physics lab will be recorded as: Phys Y11 @PhysicsLab (Note that the location needs to have no spaces. So "@PL", @ChemLab or "@34" are acceptable, but "room 34" is not.)

newcal.py will import the breaks and holidays, the schedules and the specific timetable. It will then create a list of all the days from the first day of school to the last and exclude breaks + public_holidays + staff_induction + staff_prof_development + last_day_of_school). This leaves the variable d_o_t (day of teaching) only with the days when there are actual lessons.

Ideas

Possible improvements:

  • The PDF generator called sandbox.py needs to be refactored and generalized. It currently has too many hard-coded variables specific to my calendar.
  • Create a web interface for other teachers to upload their timetable and download the icalendar + planer.

bhs-ical's People

Contributors

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