Abstract:
The film industry relies heavily on efficient production management to ensure
timelycompletion,budgetadherence,andqualityoutput.Thisabstractpresentsa
systemfor managing movie production details, including insertion, deletion, and
tracking of movie records.
Theproposedsystemallowsusersto:
1. *InsertMovieRecords:*Addnewmoviedetails,includingtitle,budget,
release date, genre, and production notes.
2. *DeleteMovieRecords:*Removeexistingmovierecords,ensuringdata
consistency and integrity.
3. *TrackMovieDetails:*Monitorandupdatemovierecords,including
production status, casting, and location scouting.
Key Features:
1. *MovieDatabase:*Acentralizedrepositorystoringmoviedetails, including:
- Movietitle
- Budget(e.g.,$100million)
-Releasedate(e.g.,2023-12-15
- Genre(e.g.,Action,Comedy)
- Productionnotes(e.g.,filminglocations,cast)
2. *InsertionModule:*Allowsuserstoaddnewmovierecords,withvalidation
checks for data consistency.
3. *DeletionModule:*Enablesuserstoremoveexistingmovierecords,with
confirmation prompts to prevent accidental deletion.
1
4. *TrackingModule:*Providesreal-timeupdatesonmovieproductionstatus,
casting, and location scouting.
ExampleMovieRecords:
|MovieTitle|Budget|ReleaseDate|Genre|
|---|---|---|---|
|Avengers:Endgame|$356million|2019-04-26|Action,Adventure|
|TheLionKing|$250million|2019-07-19|Family,Adventure|
|Joker|$62million|2019-10-04|Drama,Thriller|
SystemBenefits:
1. *ImprovedDataAccuracy:*Reduceserrorsandinconsistenciesinmoviedata.
2. *EnhancedProductivity:*Streamlinesmovieproductionmanagement,saving
time and resources.
3. *BetterDecision-Making:*Providesreal-timeinsightsintomovieproduction
status and budget.
TechnicalRequirements:
1. *Front-end:*User-friendlyinterfacebuiltusingHTML,CSS,andJavaScript.
2. *Back-end:*Databasemanagementsystem(DBMS)usingMySQLor
MongoDB.
3. *APIIntegration:*OptionalintegrationwithexternalAPIsforautomateddata
updates.
Conclusion:
The proposed movie production management system offers an efficient and user-
friendlysolutionforinserting,deleting,andtrackingmoviedetails.Byleveraging
2
thissystem,filmproductioncompaniescanimprovedataaccuracy,enhance
productivity, and make informed decisions.
3
Hardware/SoftwareRequirements:
HardwareRequirements:
` ▪ Processor:Anymodernprocessor
▪ RAM:Atleast4GBofRAM
▪ Storage:Aminimumof10GBoffreedisk
SoftwareRequirements:
▪ OperatingSystem:CompatiblewithWindows,macOS, or
Linux.
▪ Python:Python3.6orlater.
▪ MySQL:MySQLServer5.7or later.
▪ IDE/TextEditor:AnycodeeditororIDE
▪ DatabaseManagementTool:MySQL
▪ MySQL:MySQLServer5.7orlater.
▪ IDE/TextEditor:AnycodeeditororIDE
▪ DatabaseManagementTool:MySQL
4
SOURCECODE:
importmysql.connectorasm
#Globalconnectionandcursor
con=m.connect(host='localhost',user='root',password='root')
cur = con.cursor()
C=0
defCreate_():
C=1
try:
cur.execute('CREATEDATABASEIFNOTEXISTSProduction_Management')
cur.execute("USE Production_Management")
cur.execute('''CREATETABLEIFNOTEXISTSMovie_( M_n
o INT PRIMARY KEY,
Movie_NameVARCHAR(20),
Hero varchar(20),
Heroinevarchar(20),
Directorvarchar(20),
Release_Date DATE,
Total_BudgetVARCHAR(15)
)''')
cur.execute('''CREATETABLEIFNOTEXISTSMovie_Det( M_no
INT PRIMARY KEY,
TheaterVARCHAR(30),
Rating INT,
DurationVARCHAR(10),
5
No_OttINT
)''')
cur.execute('''CREATETABLEIFNOTEXISTSArtist_( M_no
INT PRIMARY KEY,
Movie_NameVARCHAR(20),
Artist VARCHAR(25),
Art_roleVARCHAR(30),
Salary VARCHAR(10)
)''')
cur.execute('''CREATETABLEIFNOTEXISTSG_Artist( M_
no INT PRIMARY KEY,
Movie_NameVARCHAR(20),
G_Name VARCHAR(25),
NO_PersonINT,
G_salary INT,
I_salary INT,
G_Head VARCHAR(20),
G_H_salaryINT
)''')
con.commit()
print("Tableshavebeencreatedsuccessfully!")
except m.Error as e:
print("Errorcreatingtables:",{e})
##################
definsert_():
importmysql.connectorasm
6
con=m.connect(host='localhost',user='root',password='root',database='Production_Manageme
nt')
cu=con.cursor()
print("1.Movie_\n2.Movie_Det\n3.Artist_\n4.G_Artist")
ch=int(input("Enter Your Choice : "))
if ch==1:
print("YouHaveChoosenMovie_Table")
while True :
M_no = int(input("Enter the Movie No :"))Movie_name=
input("Enter the Movie Name :")
R_date=input("EntertheReleasingdate(YY/MM/DD):")
Hero= input("Enter the Hero Name :")
Heroine=input("EntertheHeroineName:")
Director=input("EntertheDirectorName:")
Budget=float(input("EntertheMovie'sBudget(crore):"))
cu.execute("insertintoMovie_values({},'{}','{}','{}','{}','{}',
{})".format(M_no,Movie_name,Hero,Heroine,Director,R_date,Budget))
print("Data Inserted Successfully")
con.commit()
c=input("EnterYourChoicetoBreak:") if c
in 'Yy':
break
elif ch==2:
print("YouHaveChoosenMovie_DetTable")
while True:
M_no=int(input('Enterthemovienumber:'))
theater=int(input('Enter the theater :'))
ratings=float(input('Enter the ratings:'))
7
duration=input('Enter the duration:')
no_ott=int(input('Enterthenumberofott:'))
cu.execute("insertintoMovie_Detvalues({},{},{},'{}',
{})".format(M_no,theater,ratings,duration,no_ott,))
con.commit()
print("Data Inserted Successfully")
c=input("EnterYourChoicetoBreak:") if c
in 'Yy':
break
elif ch==3:
print("YouHaveChoosenArtist_Table")
while True:
M_no=int(input('Enter the movie number:'))
movie_name=input('Enterthemoviename:')
artist_name=input('Enter the artist name:')
art_role=input('Enter the role:')
salary=int(input('Enter the salary:'))
cu.execute('insertintoArtist_values({},"{}","{}","{}",
{})'.format(M_no,movie_name,artist_name,art_role,salary))
con.commit()
print("Data Inserted Successfully")
c=input("EnterYourChoicetoBreak:") if c
in 'Yy':
break
elif ch==4:
print("YouHaveChoosenG_ArtistTable")
while True:
M_no=int(input('Enterthemovienumber:'))
8
movie_name=input('Enter the movie name:')
G_N=input('Enter the Group name:')
N_P=int(input('Enter the Total no person :'))
G_S=int(input('Enter the Group salary:'))
I_S=int(input('Enter the individuadal salary:'))
G_H=input('Enter the Group HEAD name:')
GHS_=int(input('EntertheGroupHeadSalary:'))
cu.execute('insertintoG_Artistvalues({},"{}","{}",{},{},{},"{}",
{})'.format(M_no,movie_name,G_N,N_P,G_S,I_S,G_H,GHS_))
con.commit()
print("Data Inserted Successfully")
c=input("EnterYourChoicetoBreak:") if c
in 'Yy':
break
##################
defDisplay_():
cur.execute("USE Production_Management")
print("1.Movie_ \n2.Movie_Det \n3.Artist_ \n4.G_Artist")
ch=int(input("Enterthetablenumbertodisplaydetails:"))
ifch==1:
print("Movie_ table records:")
cur.execute("SELECT*FROMMovie_")
FE=cur.fetchall()
elifch==2:
print("Movie_Det table records:")
cur.execute("SELECT*FROMMovie_Det")
9
FE=cur.fetchall()
elif ch == 3:
print("Artist_ table records:")
cur.execute("SELECT*FROMArtist_")
FE=cur.fetchall()
elifch==4:
print("G_Artist table records:")
cur.execute("SELECT*FROMG_Artist")
FE=cur.fetchall()
if FE==[]:
print("NoDetailsAreThere...!!!!") elif
FE !=[] :
foriinFE: print(i)
#######################
defupdate_():
con=m.connect(host='localhost',user='root',password='root',database='Production_Manageme
nt')
cur=con.cursor()
print("1.MOVIES\n2.MOVIE_DET\n3.ARTIST\n4.G_Artist")
ch=int(input("Enter the table no. to Update Details : "))
###########
if ch==1:
print("YouHavechoosenMOVIEStabletoupdate!!!")
print("1.M_no\n2.Movie_Name\n3.Release_Date\n
4. Budget\n5.Hero\n6.Heroine\n7.Director")
10
ch=int(input("Enterthecolumnno.toupdate:")) if
ch==1:
O_no=int(input("Enter the old movie no : "))
M_no=int(input("Enterthenewmovieno:"))
cur.execute("update Movie_ set M_no = %s where M_no= %s "%(M_no,O_no))
cur.execute("updateMovie_DetsetM_no=%swhereM_no=%s"%(M_no,O_no))
cur.execute("update Artist_ set M_no = %s where M_no= %s "%(M_no,O_no))
cur.execute("update G_Artist set M_no = %s where M_no= %s"%(M_no,O_no))
con.commit()
print("DatahasChanged...!!!")
elif ch==2:
M_no=int(input("EnterthemovienotoupdateMovieName:")) M_name=input("Enter
the new movie name : ")
cur.execute("updateMovie_setMovie_name='%s'whereM_no=%s"%
(M_name,M_no))
cur.execute("updateMovie_DetsetMovie_name='%s'whereM_no=%s"% (M_name,O_no))
cur.execute("updateArtist_setMovie_name='%s'whereM_no=%s"%
(M_name,O_no))
cur.execute("updateG_ArtistsetMovie_name='%s'whereM_no=%s"% (M_name,O_no))
con.commit()
print("DatahasChanged...!!!")
elif ch==3:
M_no=int(input("EnterthemovienotoupdateReleasedate:"))
R_Date=int(input("Enter the new Release Date : "))
cur.execute("updateMovie_setR_date=%swhereM_no=%s"%(R_Date,M_no))
con.commit()
print("DatahasChanged...!!!")
11
elifch==4:
M_no=int(input("EnterthemovienotoupdateBudget:"))
Budget=int(input("Enter the new Budget : "))
cur.execute("updateMovie_setTotal_budget=%swhereM_no=%s"%(Budget,M_no))
con.commit()
print("DatahasChanged...!!!")
elif ch==5:
M_no=int(input("EnterthemovienotoupdateMovieName:"))
H_Name=input("Enter the new Hero name : ")
cur.execute("updateMovie_setHero=%swhereM_no=%s"%(Budget,H_Name))
con.commit()
print("DatahasChanged...!!!")
elif ch==6:
M_no=int(input("EnterthemovienotoupdateMovieName:")) He_name=input("Enter
the new Heroine name : ")
cur.execute("updateMovie_setHeroine=%swhereM_no=%s"%(Budget,H_Name))
con.commit()
print("DatahasChanged...!!!")
elif ch==7:
M_no=int(input("EnterthemovienotoupdateMovieName:"))
D_name=input("Enter the new Director name : ")
cur.execute("updateMovie_setDirector=%swhereM_no=%s"%(Budget,D_Name))
con.commit()
print("DatahasChanged...!!!")
#######################
elifch==2:
print("YouHavechoosenMOVIE_DETtabletoupdate!!!")
print("1.NO_Theater\n2.Rating\n3.Duration\n4.No_OTT\n5.Profit\n6.Loss")
12
ch=int(input("Enterthecolumnno.toupdate:")) if
ch==1:
M_no=int(input("EnterthemovienotoupdateNoofTheater:")) N_Tno=int(input("Enter
the new data of no of Theater : "))
cur.execute("updateMovie_DetsetTheater=%swhereM_no=%s"%(N_Tno,M_no))
con.commit()
print("DatahasChanged...!!!")
elif ch==2:
M_no=int(input("EnterthemovienotoupdateRating:"))
N_R=float(input("Enter the updated Rating : "))
cur.execute("updateMovie_DetsetRating=%swhereM_no=%s"%(N_R,M_no))
con.commit()
print("DatahasChanged...!!!")
elif ch==3:
M_no=int(input("Enter the movie no to update Duration : "))
N_D=input("EnterthenewlyupdatedDuration(HH/MM/SS):")
cur.execute("updateMovie_DetsetDuration=%swhereM_no=%s"%(N_D,M_no))
con.commit()
print("DatahasChanged...!!!")
#############
elifch==3:
print("YouHavechoosenARTIST_tabletoupdate!!!")
print("1.Artist\n 2.Art_Role\n 3.Salary")
ch=int(input("Enter the column no. to update : "))
if ch==1:
M_no=int(input("EnterthemovienotoupdateArtist:"))
Ar=input("Enter the new data of ARTIST: ")
cur.execute("updateArtist_setArtist=%swhereMovie_no=%s"%(Ar,M_no))
13
con.commit()
elif ch==2:
M_no=int(input("EnterthemovienotoupdateArtist:")) Ar_r=input("Enter
the new data of ARTIST_ROLE: ")
cur.execute("updateArtist_setArt_role=%swhereMovie_no=%s"%(Ar_r,M_no))
con.commit()
elifch==3:
M_no=int(input("EnterthemovienotoupdateArtist:")) Sal=int(input("Enter
the new data of no of Theater : "))
cur.execute("updateArtist_setsalary=%swhereMovie_no=%s"%(Sal,M_no))
con.commit()
######################
elifch==4:
print("YouHavechoosentableG_ARTISTtoupdate!!!")
print("1.G_Name \n 2.Salary \n 3.G_Head ")
ch=int(input("Enter the column no. to update : "))
if ch==1:
M_no=int(input("EntertheMovienotoupdateGroupName:"))
Gn=input("Enter the updated Group Name : ")
cur.execute("updateG_ARTISTsetG_Name='%s'whereM_no=%s"%(Gn,M_no))
con.commit()
print("DatahasChanged...!!!")
elif ch==2:
M_no=int(input("EntertheMovienotoupdateSalary:"))
I_S=int(input("Entertheupdatedsalaryofperperson:"))
N_P=int(input("Enter the no person in the Gruop : "))
cur.execute("update G_ARTIST setI_Salary= '%s' where M_no= %s "%(I_S,M_no))
cur.execute("updateG_ARTISTsetNO_Person='%s'whereM_no=%s"%(N_P,M_no))
14
cur.execute("updateG_ARTISTsetG_Salary=N_(P*'%s')whereM_no=%s"%(I_S,M_no))
con.commit()
print("DatahasChanged...!!!")
elif ch==3:
M_no=int(input("EntertheMovienotoupdateGroupHeadSalary:")) G_H_N=input("Enter
the Group Head Name : ")
sal=int(input("EntertheupdatedSalary:"))
cur.execute("updateG_ARTISTsetG_H_Salary=%swhere M_no=%s"%(sal,M_no))
cur.execute("updateG_ARTISTsetG_Head=%swhereM_no=%s"%(G_H_N,M_no))
con.commit()
print("DatahasChanged...!!!")
###################
defDelete_():
con=m.connect(host='localhost',user='root',password='root',
database='Production_Management')
cur = con.cursor() print("1.MOVIES\n2.MOVIE_DET\
n3.ARTIST\n4. G_Artist") ch = int(input("Enter the table no.
to delete details: "))
ifch==1:
print("You have chosen the MOVIES table to delete!")
M_no=int(input("EntertheM_notodeleterecords:"))
cur.execute("DELETE FROM Movie_ WHERE M_no = %s" %(M_no,))
cur.execute("DELETEFROMMovie_DetWHEREM_no=%s"%(M_no,))
cur.execute("DELETE FROM Artist_ WHERE M_no = %s"%(M_no,))
cur.execute("DELETE FROM G_Artist WHERE M_no = %s"%(M_no,))
con.commit()
print("DatahasDeleted...!!!")
elif ch == 2:
15
print("YouhavechosentheMOVIE_DETtabletodelete!")
M_no = int(input("Enter the M_no to delete records: "))
cur.execute("DELETEFROMMovie_DetWHEREM_no=%s"%(M_no,))
con.commit()
print("DatahasDeleted...!!!")
elif ch == 3:
print("YouhavechosentheARTISTtabletodelete!")
M_no = int(input("Enter the M_no to delete artist records: "))
cur.execute("DELETEFROMArtist_WHEREM_no=%s"%(M_no,)) con.commit()
print("DatahasDeleted...!!!")
elif ch == 4:
print("YouhavechosentheG_ARTISTtabletodelete!")
M_no=int(input("EntertheM_notodeletegroupartistrecords:"))
cur.execute("DELETE FROM G_Artist WHERE M_no = %s"(M_no,))
con.commit()
print("DatahasDeleted...!!!")
else:
print("Invalidchoice!")
cur.close()
con.close()
##################
defPro_Loss():
importmysql.connectorasm
con=m.connect(host='localhost',user='root',password='root',
database='Production_Management')
cur=con.cursor()
try:
16
whileTrue:
M_no=input("EntertheMovieno:") if
M_no.isdigit():
cur.execute('SELECTtotal_budgetFROMMovie_WHEREM_no=%s'%(M_no))
result = cur.fetchone()
ifresultis None:
print("NoMovieFound")
continue
total_budget=int(result[0])
collection=int(input("Entertheoverallcollection(crores):")) if
total_budget > collection:
loss=total_budget-collection
print("TheMoviehasaloss.LossAmountis(crores):",loss) elif
total_budget < collection:
profit=collection-total_budget
print("TheMoviehasaprofit.ProfitAmountis(crores):",profit) else:
print("ThereisneitherLossnorProfit!") ch
= input("Do you want to exit? (Y/N): ") if
ch.lower() == "y":
break
else:
print("EnterTheValidMovienumber.......")
except:
print("InsertAnyData")
cur.close()
con.close()
17
##################
importmysql.connectorasm
defDel_Tab(C):
con=m.connect(host='localhost',user='root',password='root',
database='Production_Management')
cur= con.cursor()
print("Youhavechosentodeleteatable.")
print("1.MOVIE\n2.MOVIE_DET\n3.ARTIST\n4.G_Artist\n5.DATABASE") ch =
int(input("Enter the choice: "))
try:
ifch== 1:
cur.execute("DROPTABLEMovie_")
print("TableMovie_hasbeendeletedsuccessfully.") elif
ch == 2:
cur.execute("DROPTABLEMovie_Det")
print("TableMovie_Dethasbeendeletedsuccessfully.")
elif ch == 3:
cur.execute("DROPTABLEArtist_")
print("TableArtist_hasbeendeletedsuccessfully.")
elif ch == 4:
cur.execute("DROPTABLEG_Artist")
print("TableG_Artisthasbeendeletedsuccessfully.") elif
ch == 5:
cur.execute("DROPDATABASEPRODUCTION_MANAGEMENT;")
print("DATABASEhasbeendeletedsuccessfully.") C=0
18
return
else:
print("Invalidchoice.Pleaseenteranumberbetween1and4.")
except :
print("Table Already Deleted...!!")
cur.close()
con.close()
##################
defH_H_D():
whileTrue:
print("WhichOneyouwanttoExamine.........")
print("1.Hero\n2.Heroine\n3.Director\n4.Exit")
ch = int(input("Enter your choice: "))
ifch== 1:
print("YouHaveChosenHero.....!!!")
Na=input("EnterHeroName:")
cur.execute('SELECTMovie_NameFROMMovie_WHEREHero="%s"'%(Na)) result =
cur.fetchone()
ifresult==[]:
print("NoHeroFound")
continue
elif result !=[] :
foriinresult:
print(i)
elif ch == 2:
print("YouHaveChosenHero.....!!!")
19
H_Na=input("EnterHeroineName:")
cur.execute('SELECTMovie_NameFROMMovie_WHEREHeroine="%s"'%(H_Na)) result =
cur.fetchone()
ifresult==[]:
print("NoHeroFound")
continue
elifresult!=[]:
foriinresult:
print(i)
elif ch == 3:
print("YouHaveChosenHero...!!!")
D_Na=input("Enter Hero Name :")
cur.execute('SELECTMovie_NameFROMMovie_WHEREDirector="%s"'%(D_Na)) result =
cur.fetchone()
ifresult==[]:
print("NoHeroFound")
continue
elif result !=[] :
foriinresult:
print(i)
elif ch==4:
print("Program Ended...!!!")
break
else:
print("EnteraValidone.........")
#####################################################################
20
defMain_Menu():
while True:
print("1.Insert\n2.Display\n3.Update\n4.Delete\n5.
Profit/Loss\n6.Delete_Table\n7.View Hero/Heroine/Director Movies\n8. Exit")
ch = int(input("Enter your choice: "))
if ch == 1:
insert_()
elif ch == 2:
Display_()
elif ch == 3:
update_()
elif ch == 4:
Delete_()eli
f ch == 5:
Pro_Loss()
elifch==6:
Del_Tab(C)
if C==0:
break
elifch==7:
H_H_D()
elif ch==8:
print("Exiting...")
break
else:
print("Invalidchoice!Pleaseselectagain.")
21
#############################################################################
#
Create_()
#Runmainmenu
Main_Menu()
#Closetheconnectionattheendoftheprogram cur.close()
con.close()
22
23
PYTHON OUTPUT
INSERT…
24
25
DISPLAY….
26
UPDATE….
27
28
DELETETHERECORDS…
29
PROFITOR LOSS
30
EXAMINEABOUTTHEHEROORHEROINEORDIRECTORINOURPRODUCTION
DELETINGDATABASE …
31
MYSQLOUTPUT
AFTERINSERT…
AFTERDELETINGARECORD…
32
AFTERUPDATE
…
33
AFTERDELETINGTABLEANDDATABASE…
34
BIBLIOGRAPHY
PythonDocumentation:
Python3.documentation.PythonSoftwareFoundation,2023.Availableonline:
https://docs.python.org/3/
Python.org:
Pythonofficialsite.PythonSoftwareFoundation,2023.Availableonline:
https://www.python.org/
Computer science with python:
https://www.scribd.com/document/477771535/Computer-Science-with-Python-
12th-Sumita-Arora-pdf
MySQl:
www.mysql.com
35