GithubHelp home page GithubHelp logo

indrajit912 / washingmachineslots Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 85 KB

Codes for creating washing machine slots. This is the script that I use to generate the monthly slots for the washing machine in Research Scholars' Hostel, Inidan Statistical Institute Bangalore.

License: MIT License

Python 92.88% HTML 7.12%
cli latex python3

washingmachineslots's Introduction

Washing Machine Slots Generator

This Python project provides a convenient way to manage and generate washing machine slots for a specified month and year. The project consists of a WashingMachine class and a main.py script that utilizes the class to create a PDF representation of the washing machine slots.

Author: Indrajit Ghosh

Project URL: WashingMachineSlots

WashingMachine Class

Description

The WashingMachine class represents a washing machine with the ability to manage slots and generate a PDF schedule.

Class Structure

The class has the following attributes and methods:

Attributes

  • name (str): The name of the washing machine.
  • timings (dict): A dictionary of predefined slot timings.
  • slots (dict): A dictionary storing the booked slots.

Methods

  • book_slot: Book a specific slot for a given day, month, and year.
  • book_recurring_slot: Book a preferred slot in a recurring manner.
  • vacant_slot: Mark a specific slot as vacant.
  • generate_pdf: Generate a PDF representation of the washing machine slots for a specified month and year.
  • Other utility methods for managing slots and data.

Usage

To use the WashingMachine class, you can import it into your script and create an instance of the class. You can then use its methods to manage and generate washing machine slots. Example usage can be found in the provided main.py script.

main.py Script

Description

The main.py script provides a command-line interface for generating washing machine slots and creating a PDF schedule.

Usage

You can run the main.py script from the command line with the following options:

  • python3 main.py: Generates washing machine slots for a specific month (user input) of the current year.
  • python3 main.py <month>: Generates washing machine slots for the specified month of the current year.
  • python3 main.py -m <month> -y <year>: Generates washing machine slots for the specified month and year.

Before running the script, you can customize your preferred slots by modifying the CHOICES list in the script.

Getting Started

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Install any necessary dependencies.
  4. Run the main.py script according to the usage instructions.

Dependencies

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

washingmachineslots's People

Contributors

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