Skip to content

aasimsyed/theater-showtimes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theater Showtimes Calculator

Calculate optimal movie showtimes for a theater based on operating hours.

Features

  • Parse movie lists with titles, ratings, and runtimes
  • Handle theater operating hours by day of week
  • Calculate optimal showtimes with cleanup periods
  • Support multiple movies per day
  • Validate time formats and ranges

Installation

  1. Clone the repository:
git clone https://github.com/username/theater-showtimes.git
cd theater-showtimes
  1. Create and activate virtual environment:
python -m venv venv
source venv/bin/activate  # Unix
venv\Scripts\activate     # Windows
  1. Install dependencies:
pip install -r requirements.txt

Usage

  1. Create a movies CSV file:
Movie Title,Release Year,MPAA Rating,Run Time
Test Movie,2023,PG-13,2:00
  1. Create a theater hours text file:
Monday - Friday 9:00am - 11:30pm
Saturday - Sunday 12:00pm - 11:59pm
  1. Run the calculator:
python -m src.main movies.csv hours.txt

Testing

Run tests with pytest:

python -m pytest

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages