Travel Management System built using Python's Tkinter and MySQL database
Trip Planner is a Travel management system built with Python and MySQL as my final 12th grade Python project.
It provides functionalities to book a flight and hotel in one system making the travel booking process easier.
- The system requires a login whos data is stored using python files,
- GUI display and buttons using tkinter
- and stores the full booking of flights using MySQL connect.
Login |
---|
Sign Up has restraints for 10 digit contact number and verifies the reentered password.
It stores the username and password in files as nested lists : [[Username,Pass], [Nilin,Nil],]
When Loging in the username is searched for in the file and password is verified.
Finally the login sign is replaced by the username.
Book Flight |
---|
Enter date into a calander that is verified by current date
Flight distance save in mysql table accessed
Flight cost calculated using distance, avg cost and random module for increments
MySql also verified to make sure only 5 bookings at a time
(Gives fully booked error on 6 flight booked)
Displays a bill as well.
Hotel Booking |
---|
Takes only valid information from the user
Saves the information of those who booked a Executive Twin Room specially in a file
Displays a final bill
End Report |
---|
Takes values from the txt files generated by the flight window (no of people in each flight)
and from the hotel window (no of people who booked Executive Twin Room)
- Done in Python version 3
- Tkinter GUI
- Python + MySQL connector
The modules that are required are:
-
a Laptop
-
Text Editor or IDE (I used IDLE)
Libraries used:
-
tkinter
-
datetime
-
tkcalendar
-
math
-
random
-
mysql.connector
-
PIL
to install the libraries (math and random are default):
py -m pip install [options] [library] ...
Created by Nilin Rose [email protected]