project_on_movie_management(new)
project_on_movie_management(new)
project_on_movie_management(new)
PROJECT REPORT ON
……………………………………………………………..
ROLL NO :
NAME :
CLASS :
PGT (CS)
1
PM SHRI KENDRIYA VIDYALAYA, BARWAHA
CERTIFICATE
subject Computer Science (083) laid down in the regulations of CBSE for the purpose
Barwaha.
Principal
2
TABLE OF CONTENTS [ T O C ]
01 ACKNOWLEDGEMENT 4
02 INTRODUCTION 5
04 PROPOSED SYSTEM 8
06 SOURCE CODE 9
DATABASE
07. 13
08. OUTPUT 14
09 REFERENCES 15
3
ACKNOWLEDGEMENT
Efforts and Support: You start by acknowledging that while your efforts were crucial,
the success of the project heavily relied on the encouragement and guidance from
others. This sets the tone for expressing gratitude to those who contributed.
Gratitude to Almighty God: Strength and Completion: You express a deep sense of
gratitude to God for providing you with the strength needed to complete the project.
This reflects your personal belief and recognition of a higher power’s role in your
success.
Gratitude to Parents: Constant Encouragement: You thank your parents for their
unwavering support and encouragement throughout the project. This highlights the
acknowledge the individuals who contributed to the project and continued to support
you despite your imperfections. This shows humility and appreciation for their patience
and understanding.
Vidyalaya, Barwaha, for their continuous motivation and assistance. This indicates the
Special Thanks to Mrs. Vaishali Maharana: Guide, Mentor, and Friend: You specifically
thank Mrs. Vaishali Maharana, your guide and mentor, who also acted as a friend. Her
4
critical reviews and problem-solving assistance were crucial in overcoming challenges
during the project. This emphasizes her multifaceted role in your success.
Vital Contributions: You acknowledge the guidance and support from all members who
contributed to the project. This includes those who helped directly or indirectly,
Support: You express gratitude for their ongoing support, indicating that their help was
not just a one-time effort but a continuous process throughout the project
5
PROJECT ON ……………………………………………
INTRODUCTION
When we think about the film industry it means we also need to think about the vast
amount of data generated by this industry due to which it becomes a necessity for film
industry to manage their data efficiently & analysis of this data are essential for
In this project we try to manage data of the movies industry through a user- friendly
python interface & robust MySql database .In this project the user can manage
efficiently the IMDB rating ,duration of movies, etc. across multiple movies . in this
movies management system user can easily search , insert data , update data , view
table & delete records which maintain the integrity & accuracy of data .
In this age of information where data is like a piece of gold for any industry to grow in
this competitive world as we all know that managing data is not luxury it’s a necessity
But the perk is if these data set’s managed efficiently can help in the growth of the
company.
With integration python with MySQL can efficient solution for managing movies .
python’s simplicity & seamless database interaction make easy to manipulate data
6
OBJECTIVES OF THE PROJECT
Write Programs Utilizing Modern Software Tools: Modern Software Tools: These
include integrated development environments (IDEs) like Visual Studio Code, Eclipse,
or IntelliJ IDEA, version control systems like Git, and other tools that facilitate software
development.
Practical Application: Students will learn to use these tools to write, test, and debug
scenarios.
Project Development: Students will apply these principles to design and develop small
code.
Problem Solving: Students will develop the ability to write clear and efficient procedural
code to solve specific problems, which is crucial for tasks that do not require the
complexity of OOP.
7
Theory: Knowledge of algorithms, data structures, computational theory, and
complexity.
Research Skills: Students will learn to conduct research, which involves identifying a
8
PROPOSED SYSTEM
business environment, these mistakes can be costly. Automation helps mitigate this risk
Efficiency and Performance: Automated systems can handle repetitive tasks more
efficiently than humans. They can process large volumes of data quickly and
physical ledgers and files. This method was not only labor-intensive but also prone to
and retrieve data electronically. This transition from paper to digital has streamlined
Software Benefits:
Automation: Tasks that previously required manual effort can now be automated,
Efficiency: Automated systems can perform tasks faster and more accurately than
9
Cost-Effectiveness: By reducing the need for manual labor and physical storage,
10
SOURCE CODE
================================================================
# code for the movie management
x = myc.connect(host="localhost",user="root",passwd="pin@53z1985",database="movie_management" )
# connecting py & MySql
mycursor = x.cursor()
# movie management
11
def add_data(q, w, e, r, t, y, u, i):
query = 'insert into movies values({0},{1},{2},{3},{4},{5},{6},{7})'.format(q, w, e, r, t, y, u, i)
mycursor.execute(query)
x.commit()
print('## record saved ##')
def delete_data(q):
query = 'delete from movies where movie_id = {}'.format(q)
mycursor.execute(query)
x.commit()
print('## record deleted ##')
def view_table():
query = 'select * from movies '
mycursor.execute(query)
mydata = mycursor.fetchall()
rowc = mycursor.rowcount
print('================================================================================')
print('total no of record found : ', rowc)
for record in mydata:
print(record[0],',',record[1],',',record[2],',',record[3],',',record[4],',',record[5],',',record[6],',',record[7])
def search(q):
query = 'select * from movies where movie_id = {}'.format(q)
mycursor.execute(query)
12
mydata = mycursor.fetchone()
print(mydata)
add_data(movie_id,name,rating,director,actor,genre,release_year,duration)
elif manipulation == 2: # this block is for updating existing record in the table movies
ans = 'y'
while ans == 'y':
print('================================================================================')
movie_id = int(input('Enter movie Id of the movie which you want to update :'))
new_imdb = float(input('Enter the new imdb rating of the movie :'))
update_data(movie_id, new_imdb)
elif manipulation == 3: # this block is for deleting existing record in the table movies
ans = 'y'
while ans == 'y':
print('================================================================================')
13
movie_id = int(input('Enter the movie Id to delete :'))
delete_data(movie_id)
elif manipulation == 4: # this block is for viewing record in the table movies
print('================================================================================')
view_table()
elif manipulation == 5: # this block is for searching existing record in the table movies
ans = 'y'
while ans == 'y':
print('')
movie_id = int(input('Enter movie_id of the movie which you wanna search :'))
search(movie_id)
ans = input('enter do you wanna search again y/n :')
# recommendation system
def DIRECTOR(x,y):
query = 'select * from movies where director = {} and IMdb_rating > {}'.format(x, y)
mycursor.execute(query)
mydata = mycursor.fetchall()
for record in mydata:
14
print(record[0],',',record[1],',',record[2],',',record[3],',',record[4],',',record[5],',',record[6],',',record[7])
def IMDB(x):
query = 'select * from movies where IMdb_rating > {}'.format(x)
mycursor.execute(query)
mydata = mycursor.fetchall()
for record in mydata:
print(record[0],',',record[1],',',record[2],',',record[3],',',record[4],',',record[5],',',record[6],',',record[7])
if recommendation == 1:
director = input('enter the name of the director for his best movies inside Apostrophe :')
imdb = float(input('enter the desired value of imdb according to you :'))
DIRECTOR(director,imdb)
elif recommendation == 2:
genre = input('enter the genre of which you want recommendation for the movie inside Apostrophe :')
imdb = float(input('enter the desired value of imdb according to you :'))
GENRE(genre,imdb)
elif recommendation == 3:
imdb = float(input('enter the desired value of imdb according to you :'))
IMDB(imdb)
x.close()
15
16
==================================================================== DATABASE
: MYSQL TABLES
17
OUTPUT
18
REFERENCES
***
19