You are on page 1of 22

ST.VISHNA R.R.

N
SCHOOL

Session:-2023-2024

COMPUTER PROJECT WORK


TOPIC... PARKING MANAGEMENT
.

SUBMITTED BY SUBMITTED TO.


Samit Singh ASHWANI KR SHUKLA

12TH PCM SIR


BOARD ROLL.NO [PGT.COMPUTER]
ACKNOWLEDGEMENT

It give me great pleasure to express my gratitude


towards our Computer Science Teacher Mr. Ashwani
Kumar Shukla for his guidance, support and
encouragement throughout the duration of the project.
Without his motivation and help the successful
completion of this project would not have been
possible.

Samit Singh
CERTIFICATE

This is to certify that Samit Singh student of class 12th


(PCM), St. Vishna RRN School, Prayagraj has completed
the project topic Parking Management under by
guidance and complete it to my satisfaction. To the best
of my knowledge, the present work is the result of his
original investigation and study.

Mr. Ashwani Kumar Shukla


(PGT) Computer
INDEX

1-Python history (minimum 4 pages)


2-Mysql history (minimum 3 pages)
3-Project Details
4-Code
5-Project Output
6-Bibliography
7-Teacher remark
PYTHON HISTORY
Python History and Versions

• Python laid its foundation in the late 1980s.


• The implementation of Python was started in December 1989 by
Guido Van Rossum at CWI in Netherland.
• In February 1991, Guido Van Rossum published the code (labeled
version 0.9.0) to alt.sources.
• In 1994, Python 1.0 was released with new features like lambda,
map, filter, and reduce.
• Python 2.0 added new features such as list comprehensions,
garbage collection systems.
• On December 3, 2008, Python 3.0 (also called "Py3K") was released.
It was designed to rectify the fundamental flaw of the language.
• ABC programming language is said to be the predecessor of Python
language, which was capable of Exception Handling and interfacing
with the Amoeba Operating System.
• The following programming languages influence Python:
• ABC language.
• M

odula-3 Python

Version List

Python programming language is being updated regularly with new features


and supports. There are lots of update in Python versions, started from 1994
to current release.

A list of Python versions with its released date is given below.

Python Version Released Date

Python 1.0 January 1994

Python 1.5 December 31, 1997

Python 1.6 September 5, 2000

Python 2.0 October 16, 2000


Python 2.1 April 17, 2001

Python 2.2 December 21, 2001

Python 2.3 July 29, 2003

Python 2.4 November 30, 2004

Python 2.5 September 19, 2006

Python 2.6 October 1, 2008

Python 2.7 July 3, 2010

Python 3.0 December 3, 2008

Python 3.1 June 27, 2009

Python 3.2 February 20, 2011

Python 3.3 September 29, 2012

Python 3.4 March 16, 2014

Python 3.5 September 13, 2015

Python 3.6 December 23, 2016

Python 3.7 June 27, 2018

Python 3.8 October 14, 2019

Python Features

Python provides many useful features which make it popular and valuable
from the other programming languages. It supports object-oriented
programming, procedural programming approaches and provides dynamic
memory allocation. We have listed below a few essential features.

• Easy to Learn and Use


Python is easy to learn as compared to other programming languages. Its
syntax is straightforward and much the same as the English language. There
is no use of the semicolon or curly-bracket, the indentation defines the code
block. It is the recommended programming language for beginners.

• Expressive Language

Python can perform complex tasks using a few lines of code. A simple
example, the hello world program you simply type print("Hello World"). It
will take only one line to execute, while Java or C takes multiple lines.

• Interpreted Language

Python is an interpreted language; it means the Python program is executed


one line at a time. The advantage of being interpreted language, it makes
debugging easy and portable.

• Cross-platform Language

Python can run equally on different platforms such as Windows, Linux,


UNIX, and Macintosh, etc. So, we can say that Python is a portable language.
It enables programmers to develop the software for several competing
platforms by writing a program only once.

• Free and Open Source

Python is freely available for everyone. It is freely available on its official


website www.python.org. It has a large community across the world that is
dedicatedly working towards make new python modules and functions.
Anyone can contribute to the Python community. The open-source means,
"Anyone can download its source code without paying any penny."

• Object-Oriented Language

Python supports object-oriented language and concepts of classes and objects


come into existence. It supports inheritance, polymorphism, and
encapsulation, etc. The object-oriented procedure helps to programmer to
write reusable code and develop applications in less code.

• Extensible

It implies that other languages such as C/C++ can be used to compile the code
and thus it can be used further in our Python code. It converts the program
into byte code, and any platform can use that byte code.
• Large Standard Library

It provides a vast range of libraries for the various fields such as machine
learning, web developer, and also for the scripting. There are various machine
learning libraries, such as Tensor flow, Pandas, Numpy, Keras, and Pytorch,
etc. Django, flask, pyramids are the popular framework for Python web
development.

• GUI Programming Support

Graphical User Interface is used for the developing Desktop application.


PyQT5, Tkinter, Kivy are the libraries which are used for developing the web
application.

• Integrated

It can be easily integrated with languages like C, C++, and JAVA, etc. Python
runs code line by line like C,C++ Java. It makes easy to debug the code.

• Embeddable

The code of the other programming language can use in the Python source
code. We can use Python source code in another programming language as
well. It can embed other language into our code.

• Dynamic Memory Allocation

In Python, we don't need to specify the data-type of the variable. When we


assign some value to the variable, it automatically allocates the memory to
the variable at run time. Suppose we are assigned integer value 15 to x, then
we don't need to write int x = 15. Just write x = 15.
MYSQL HISTORY

Introduction
MySQL, an open-source relational database management system, has a
rich and influential history in the realm of database technology. From its
inception in the mid-1990s to its current status as a leading database
solution, MySQL has played a crucial role in the development of dynamic
and scalable applications.

1: Inception and Early Years (1994-1995)


MySQL was born out of the collaborative efforts of Michael Widenius
and David Axmark in 1994. Initially developed to cater to the data
management needs of a specific project, MySQL quickly evolved into a
lightweight and fast database system.

In May 1995, MySQL 1.0 was released, marking the beginning of its
journey as an open-source database solution.

2: Open Source Revolution (1996)


The pivotal moment in MySQL's history came in 1996 when MySQL AB
was founded. This marked the decision to make MySQL an open-source
project, allowing developers worldwide to use, modify, and distribute the
software freely.

MySQL's open-source nature contributed significantly to its rapid


adoption and popularity.

3: Versions and Features (1996-2010)


As MySQL continued to gain traction, several versions were released,
each introducing new features and improvements. Notable releases
include MySQL 3.23 with support for transactions and MySQL 4.0 with
the introduction of the InnoDB storage engine.

The years leading up to 2010 were marked by MySQL's expansion and


maturation as a reliable database management system.
4: Sun Microsystems Era (2008)
In 2008, Sun Microsystems acquired MySQL AB for approximately $1
billion. This acquisition raised concerns within the open-source
community about MySQL's future. Despite the uncertainty, Sun
Microsystems committed to maintaining MySQL's open-source nature.

5: Oracle Corporation Acquisition (2010)


The landscape shifted again in 2010 when Oracle Corporation acquired
Sun Microsystems, bringing MySQL under Oracle's umbrella. This
acquisition sparked debates about Oracle's control over MySQL and its
commitment to open source.

Despite initial concerns, Oracle pledged to continue the development of


MySQL as an open-source database system.

6: The Rise of MariaDB (2010)


In response to the apprehensions surrounding MySQL's future, Michael
Widenius forked MySQL to create MariaDB in 2010. MariaDB aimed to
preserve the open-source principles of MySQL while providing an
alternative to the Oracle-controlled database.

7: MySQL 5.5 and 5.6 (2010-2013)


MySQL 5.5 and 5.6 brought significant improvements, including
enhancements to the InnoDB storage engine, better performance, and
increased reliability. These releases solidified MySQL's position as a
powerful and versatile database system.

8: MySQL 8.0 and Modern Features (2018)


The release of MySQL 8.0 in 2018 marked a new chapter in MySQL's
history. It introduced features such as roles-based access control (RBAC),
improved support for spatial data, and enhanced JSON support. MySQL
8.0 demonstrated the ongoing commitment to innovation and
responsiveness to evolving technological needs.

9: Community and Forks (2010s)


Throughout its history, the MySQL community has played a crucial role
in the database system's development. In addition to MariaDB, other
10: MySQL in the Cloud (2010s)
MySQL adapted seamlessly to the rise of cloud computing. It became a
popular choice for database deployments on various cloud platforms,
offering benefits such as scalability, ease of management, and
accessibility. MySQL's compatibility with cloud services such as Amazon
RDS, Google Cloud SQL, and Microsoft Azure Database for MySQL
further solidified its presence in the cloud.

11: Conclusion and Future Prospects


As of my last knowledge update in January 2022, MySQL continues to be
a cornerstone in the world of relational databases. Its history is marked
by resilience, adaptability, and a commitment to open source. The
database system's future prospects remain promising as it evolves to
meet the changing needs of the tech industry.
Project Detail Of : "Parking
Management System using MySQL and
Python"
1. Introduction
The "Parking Management System" project is designed to streamline
vehicle management within a parking facility. Leveraging the capabilities
of MySQL, a robust relational database, and Python, a versatile
programming language, this project aims to create an efficient and user-
friendly solution for managing vehicle information, modifications,
deletions, customer lists, and feedback.

2. Project Overview
The Parking Management System comprises a command-line interface
(CLI) application where users can perform various tasks related to
parking management. The system stores data in a MySQL database,
ensuring data integrity and persistence.

3. Implementation Details
3.1 Environment Setup
To run the Parking Management System, users need to set up a local
environment with MySQL and Python installed. Instructions for
environment setup are provided in the documentation.

3.2 MySQL Database


The MySQL database named "Information" is utilized to store vehicle-
related information. The database schema includes the following fields:

 Vehicle Number (V_No)


 Owner's Name
 Contact
 Payment
 Added On
 Exited On
3.3 Parking Management Tasks
3.3.1 Adding Vehicle Information
Users can add new vehicle information by entering details such as
Vehicle Number, Owner's Name, Contact, Payment, Added On, and
Exited On. The system executes an SQL INSERT query to store this
information in the MySQL database.

3.3.2 Modifying Vehicle Information


Existing vehicle information can be modified by entering the Vehicle
Number. The system retrieves the current details, displays them to the
user, and prompts for updated information. An SQL UPDATE query is
then executed to apply the modifications.

3.3.3 Removing Existing Vehicle


Users can delete a vehicle's information by entering the Vehicle Number.
The system executes an SQL DELETE query to remove the specified
record from the database.

3.3.4 Customers List


A command allows users to view a list of all customers and their
respective vehicle information. The system retrieves data using an SQL
SELECT query and displays it in tabular format using the Pandas library.

3.3.5 Feedback
Users can submit feedback by entering text. The system acknowledges
the submission.

3.3.6 About Us
Displays information about the project and its creators, including the
purpose of the Parking Management System and contact details.

3.3.7 Log Out


Exits the application.

4. Code Structure
The Python code utilizes the mysql.connector library for MySQL database
connectivity and the pandas library for data presentation. The code is
organized into functions corresponding to each parking management
task.

5. Future Enhancements
The Parking Management System can be expanded in the future to
include additional features such as user authentication, graphical user
interface (GUI) implementation, and integration with external APIs for
enhanced functionalities.

6. Conclusion
The Parking Management System showcases the seamless integration of
MySQL and Python, providing a practical solution for managing parking-
related data. The project demonstrates fundamental concepts in
database management, SQL operations, and Python programming.

7. References
 MySQL Documentation: https://dev.mysql.com/doc/
 Python Documentation: https://docs.python.org/
 Pandas Documentation: https://pandas.pydata.org/pandas-docs/stable/
CODE
import mysql.connector as con
import pandas as pd

# Establish the database connection


c = con.connect(host='localhost', user='root',
password='3117', database='samit')

if c.is_connected():
cur = c.cursor()

while True:
print(' WELCOME TO MYPARKING')
print(' Enter your Choices:')
print('Press 1 for Adding Vehicle info')
print('Press 2 for Modifying Vehicle info')
print('Press 3 for Removing Existing Vehicle')
print('Press 4 for Customers List')
print('Press 5 for Feedback')
print('Press 6 to know About Us ')
print('Press 7 for Log Out')
ch = eval(input("Enter Your Choice:"))

if ch == 1:
print("ENTER VEHICLE INFORMATION TO ADD")
VN = input("Enter Your Vehicle No.:")
ON = input("Enter the Owner's Name:")
MN = input("Enter Contact:")
PY = input("Enter the Payment:")
AO = input("Enter Added on:")
EO = input("Enter Exited on:")

Qry = "INSERT INTO MyParking VALUES (%s, %s,


%s, %s, %s, %s)"
values = (VN, ON, MN, PY, AO, EO)
try:
cur.execute(Qry, values)
c.commit()
print("Record Inserted Successfully!")
except con.Error as e:
print("Error:", e)

elif ch == 2:
n = input("Enter the Vehicle No. you want to
modify:")
Qry = "SELECT * FROM MyParking WHERE V_No=%s"
cur.execute(Qry, (n,))
rec = cur.fetchone()
print(rec)

i = input("Enter the Owner's Name:")


j = input("Enter Contact:")
k = input("Enter the Payment:")
l = input("Enter Added on:")
m = input("Enter Exited on:")

Qry = "UPDATE MyParking SET Owner_Name=%s,


Contact=%s, Payment=%s, Added_On=%s, Exited_On=%s WHERE
V_No=%s"
values = (i, j, k, l, m, n)

try:
cur.execute(Qry, values)
c.commit()
print("Record Updated!")
except con.Error as e:
print("Updation Failed! Error:", e)

elif ch == 3:
i = input("Enter the Vehicle No. you want to
Delete:")
Qry = "DELETE FROM MyParking WHERE V_NO=%s"
try:
cur.execute(Qry, (i,))
c.commit()
if cur.rowcount > 0:
print("Record Deleted!")
else:
print("Deletion Failed!")
except con.Error as e:
print("Deletion Failed! Error:", e)

elif ch == 4:
Qry = "SELECT * FROM MyParking"
cur.execute(Qry)

if cur.rowcount > 0:
data = cur.fetchall()
df = pd.DataFrame(data, columns=["V_No",
"Owner's Name", "Contact", "Payment", "Added_On",
"Exited_On"])
print(df)
print()
else:
print("Records are Empty!!")

elif ch == 5:
print('Please Share Your Feedback:')
n = input()
print('Your Feedback has been Submitted!!')

elif ch == 6:
print(' ABOUT US')
print('Parking is the act of stopping and
disengaging a vehicle and leaving it unoccupied. Parking
on one or both sides of a road is often permitted, though
sometimes with restrictions. To solve this problem, we
have created this Parking Management System.')
print('As we have worked a lot to make this
parking system, generally known as MyParking, it is owned
by our company director Mr. Yash Jaiswal and managed by
Mr. Ritesh Mishra.')
print('To know more about us, you can contact
us at email: myparking64@gmail.com.')
print('We hope that we have not disappointed
you.')
print('
-The Director')

elif ch == 7:
break # Exit the loop when the user chooses
to log out

else:
print("Enter a valid choice!!")

# Close the connection outside the loop


c.close()

else:
print("CONNECTION ERROR!!!")
PROJECT OUTPUT
BIBLIOGRAPHY
In My Opinion I have successfully completed my project
By taking help of my subject teacher, (NCERT) Course Book
And some useful websites
Which Are: -
1. www.wikipedia.com
2. www.youtube.com
3. www.quora.com
4. www.geekforgeeks.com

I did My coding work in Visual Studio Code Editor.


TEACHER’S REMARK

You might also like