Professional Documents
Culture Documents
Parking Management System
Parking Management System
SYSTEM:
DONE BY:
1:) P.KAMALNAYAK
2:) P.RAHUL
INDEX:
1.) INTRODUCTION
6.) CONCLUSION
7.) BIBILOGRAPHY
INTRODUCTION:
A Parking management system or PMS, is a computer essential
system software for modern maintenance of all types of vehicles that are used
by our people.
Under complete supervision the vehicle is safeguarded and by the information
provided by the customer the record has been created in such a way, that
includes the date, time, vehicle number, colour of the vehicle, company the
vehicle belongs to, model, etc…of the vehicle.
And Name, phone number, address, etc…of the customer.
PROJECT OVERVIEW:
Python-VERSION-3.8 OR 3.9
Mysql-VERSION-8.0
Spyder-VERSION-5.2 OR 5
Pandas(Library)-3.8 OR 3.9
Python-VERSION- 3.9
Mysql-VERSION-8.0
Spyder-VERSION-5.2
Pandas(Library)-3.9
CONCLUSION:
This software has its advantages and disadvantages but it can help
with the record storage system.
We don’t have to worry about the misplacing of the records which is a great
clash while storing the records in separate files.
BIBILOGRAPHY:
DATABASES:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| airlines |
| information_schema |
| mysql |
| nayaks |
| parking__system |
| parking_sys |
| parking_system |
| performance_schema |
| sys |
| world |
+--------------------+
10 rows in set (0.01 sec)
Database changed
+-----------------------+
| Tables_in_parking_sys |
+-----------------------+
| login |
| parking_space |
| parking_type |
| transaction |
+-----------------------+
+-------+-------------+------+-----+---------+----------------+
+-------+-------------+------+-----+---------+----------------+
+-------+-------------+------+-----+---------+----------------+
+----+-------+---------+
| id | name | pwd |
+----+-------+---------+
| 1 | kamal | nayak |
| 2 | rahul | kishore |
+----+-------+---------+
+-------+-------------+------+-----+---------+----------------+
+-------+-------------+------+-----+---------+----------------+
+-------+-------------+------+-----+---------+----------------+
+----+-------------+--------+
| id | name | price |
+----+-------------+--------+
| 2 | CAR | 50.00 |
| 3 | BUS | 250.00 |
| 4 | TRUCK | 350.00 |
| 5 | TROLLY | 450.00 |
+----+-------------+--------+
+---------+-------------+------+-----+---------+----------------+
+---------+-------------+------+-----+---------+----------------+
+---------+-------------+------+-----+---------+----------------+
+----+---------+--------+
| id | type_id | status |
+----+---------+--------+
| 1| 1 | open |
| 2| 2 | open |
| 3| 3 | open |
| 4| 4 | open |
| 5| 5 | open |
| 6| 1 | open |
| 7| 1 | open |
| 8| 1 | open |
| 9| 1 | open |
| 10 | 1 | open |
+----+---------+--------+
+------------+-------------+------+-----+---------+----------------+
+------------+-------------+------+-----+---------+----------------+
+------------+-------------+------+-----+---------+----------------+
+----+---------------+------------+------------+------------+--------+
+----+---------------+------------+------------+------------+--------+
+----+---------------+------------+------------+------------+--------+
SOURCE CODE:
import mysql.connector
import time
global conn,cursor
conn = mysql.connector.connect(
cursor = conn.cursor()
def clear():
for _ in range(65):
print()
def introduction():
msg = '''
FIRST OF ALL I NEED TO THANK MY COMPUTER SCIENCE MAM MISS.PRITHI FOR PROVIDING
THE PROPER GUIDENCE AND LEADING ME AND MY FRIENDS WHO ALL HELPED ME IN THIS
PROJECT AND I ALSO WANT
LETS START.........
FIRST OF ALL PARKING MANAGEMENT IS VERY COMMON PROBLEM IN CITIES AND ESPECIALLY
WHERE EVERYONE NEEDS
THIS OFTEN LEADS TO LOSS OF THE VEHICLE IF IT IS NOT PARKED AT THE RIGHT PLACE,
\n\n\n\n'''
for x in msg:
print(x, end='')
time.sleep(0.002)
def made_by():
msg = '''
Roll No : 11 & 14
Session : 2022-23
\n\n\n
'''
for x in msg:
print(x, end='')
time.sleep(0.002)
def display_parking_type_records():
records = cursor.fetchall()
for row in records:
print(row)
def login():
while True:
clear()
cursor.fetchall()
rows = cursor.rowcount
if rows!=1:
else:
print('\n\n\n')
break
def add_parking_type_record():
clear()
name = input('Enter Parking Type( 1. Two wheelar 2. Car 3. Bus 4. Truck 5. Trolly ) : ')
cursor.execute(sql)
no = cursor.fetchone()
def add_parking_slot_record():
clear()
parking_type_id = input(
'Enter Parking Type( 1. Two wheelar 2. Car 3. Bus 4. Truck 5. Trolly ) :')
("{}","{}");'.format(parking_type_id,status)
cursor.execute(sql)
no = cursor.fetchone()
display_parking_type_records()
def modify_parking_type_record():
clear()
print('-'*100)
field=''
if choice==1:
field='name'
if choice==2:
field='price'
sql = 'update parking_type set '+ field +' = "' + value +'" where id ='+ park_id +';'
cursor.execute(sql)
display_parking_type_records()
clear()
print(' M O D I F Y P A R K I N G S P A C E R E C O R D ')
print('-'*100)
field = ''
if choice == 1:
field = 'type_id'
if choice ==2:
field = 'status'
print('\n\n\n')
cursor.execute(sql)
def add_new_vehicle():
clear()
print('-'*100)
entry_date = date.today()
("{}","{}","{}");'.format(vehicle_id,parking_id,entry_date)
cursor.execute(sql)
clear()
print('-'*100)
exit_date = date.today()
cursor.execute(sql)
record = cursor.fetchone()
days = (exit_date-record[2]).days
if days ==0:
days = days+1
amount = record[1]*days
clear()
print('-'*100)
print('Parking ID : {}'.format(record[0]))
print('Vehicle ID : {}'.format(vehicle_id))
sql1 = 'update transaction set exit_date ="{}" , amount ={} where vehicle_id ="{}" \
cursor.execute(sql1)
cursor.execute(sql2)
wait = input('Vehicle Out from our System Successfully.......\n Press any key to continue....')
def search_menu():
clear()
print(' S E A R C H P A R K I N G M E N U ')
field = ''
if choice == 1:
field = 'id'
if choice == 2:
if choice == 3:
field = 'status'
if choice == 1 or choice==3:
else:
cursor.execute(sql)
results = cursor.fetchall()
records = cursor.rowcount
print(row)
if records < 1:
def parking_status(status):
clear()
print('-'*100)
cursor.execute(sql)
records = cursor.fetchall()
print(row)
def vehicle_status_report():
clear()
print('-'*100)
cursor.execute(sql)
records = cursor.fetchall()
print(row)
def money_collected():
clear()
cursor.execute(sql)
result = cursor.fetchone()
clear()
print('-'*100)
print(result[0])
def report_menu():
while True:
clear()
print(' P A R K I N G R E P O R T S ')
print('-'*100)
print('1. Parking Types \n')
field = ''
if choice == 1:
display_parking_type_records()
if choice == 2:
parking_status("open")
if choice == 3:
parking_status("full")
if choice == 4:
vehicle_status_report()
if choice == 5:
money_collected()
if choice ==6:
break
def main_menu():
clear()
login()
clear()
introduction()
while True:
clear()
print(' P A R K I N G M A N A G E M E N T S Y S T E M')
print('*'*100)
print('\n\n')
if choice == 1:
add_parking_type_record()
if choice == 2:
add_parking_slot_record()
if choice == 3:
modify_parking_type_record()
if choice == 4:
modify_parking_space_record()
if choice == 5:
add_new_vehicle()
if choice == 6:
remove_vehicle()
if choice == 7:
search_menu()
if choice == 8:
report_menu()
if choice == 9:
break
made_by()
if __name__ == "__main__":
main_menu()
OUTPUT:
Enter your id :KAMAL
FIRST OF ALL I NEED TO THANK MY COMPUTER SCIENCE MAM MISS.PRITHI FOR PROVIDING
THE PROPER GUIDENCE AND LEADING ME AND MY FRIENDS WHO ALL HELPED ME IN THIS PROJECT AND I ALSO
WANT
LETS START.........
FIRST OF ALL PARKING MANAGEMENT IS VERY COMMON PROBLEM IN CITIES AND ESPECIALLY WHERE
EVERYONE NEEDS
TO GO FOR EXAMPLE PUBLIC PLACES SUCH AS THEATRE, MALL, RAILWAY STATION, AIRPORT,ETC...
THIS OFTEN LEADS TO LOSS OF THE VEHICLE IF IT IS NOT PARKED AT THE RIGHT PLACE,
****************************************************************************************************
5. Vehicle Login
6. Vehicle Logout
7. Search menu
8. Report menu
9. Close application
Roll No : 11 & 14
Session : 2022-23