A web-based scheduling application built with Python and Flask that helps users manage and select schedules.
flasktut/
βββ app.py # Main Flask application
βββ create_schedule.py # Schedule creation script
βββ schedules.py # Schedule management module
βββ static/
β βββ style.css # CSS styles
βββ templates/
β βββ index.html # Main HTML template
βββ Schedule.db # SQLite database
βββ requirements.txt # Dependencies
- Schedule management system
- Database integration (SQLite)
- Web interface with HTML/CSS
- Random schedule selection functionality
- Database persistence for schedules
- Automatic CSV export for Letterboxd import
- All schedules are automatically saved as CSV files in the
CSVs/folder - These files can be directly imported into Letterboxd as lists:
- Python 3.x
- Flask
- See
requirements.txtfor full dependencies
- Clone this repository
- Create and activate a virtual environment:
python -m venv .venv - Activate the environment:
.venv\Scripts\activate - Install dependencies:
pip install -r requirements.txt
Run the application:
python app.py
Access the web interface at http://localhost:5000
-
Main Screen:
- Select schedule from dropdown menu and confirm
- Click "Roll" to generate three random schedule options
- Options are pulled from the database
-
Selection:
- Three buttons appear with different schedule options
- Click any button to select your preferred schedule
- Your selection is displayed below the buttons
-
Exit:
- Use the "Exit" button to close the application
To add new schedules:
- Edit
schedules.pyto add your schedules - Run the script to update the database:
- Changes are automatically detected:
- Added films appear with default values (0 appearances, not watched)
- Removed films are deleted from the database
- Existing films remain unchanged
The system logs all modifications:
Added 2 films to Schedule_test: New Film 1, New Film 2
Removed 1 film from Schedule_test: Old Film
app.py- Main Flask applicationschedules.py- Schedule management logictemplates/- HTML templatesstatic/- CSS and static filesSchedule.db- SQLite database
MIT