0% found this document useful (0 votes)
10 views

Marriage Bureaue Project(IP)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Marriage Bureaue Project(IP)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 31

BNP T/S

CLASS-XII FINAL YEAR PROJECT-REPORT


(065)
SESSION (2020-2021)

Affiliated to CBSE up to +2 level: Affiliation No:430092


Managed by: DAV College Managing Committee
BNP T/S, Garhwa Jharkhand
Email: [email protected]

PROJECT WORK

1
ON
MARRIAGE BEAUREAW MANAGEMENT

SUBMITTED BY
NAME-VIKAS KUMAR
CLASS- XII A
ROLL NO.-22697806
UNDER GUIDANCE- Mr. Anup Kumar Singh

2
DECLARATION

I Vikas student of class XII Roll no.-22697806


here by that the presented project work on
MARRIAGE BEAUREAW MANAGEMENT is an
original copy. This project work had not been
submitted earlier to any other board or to the
same board for fulfillment of course of study. It
has been done by me with guide of Mr. Anup
Kumar Singh .

Signature of student:………….
Date:………….

3
ACKNOWLEDGEMENT

This is to acknowledge the co-operation of all the individuals


who have inspired, mentored, directed and seen the project
through to its completion.

I am especially grateful to Mr. Anup Kumar Singh my


project guide BNP T/S for allotting me work that entailed
responsibility and for his guidance, help and constant
encouragement throughout this project.

I express my gratitude to my friends and my parents for


their encouragement and support in our endeavor.

Name:-Vikas Kumar
Enrollment:-22697806

4
INDEX
Topic Page no.

06
TOOLS AND PLATFORM USED

My SQL Database 07

TABLE STRUCTURE 08-09

Python 10

11-20
INPUT(CODING)

21-27
PYTHON (OUTPUT)

5
TOOLS AND PLATFORM USED
SOFTWARE
Operating system: WINDOWS 10(64-bit)
Front END : PYTHON 3.7
Back END :My SQL Server 8.0 or Higher

HARDWARE
Processor : AMD A8

RAM : Min 256mb

6
My SQL Database
MySQL is a fast, easy-to-use RDBMS being used for many small and big
businesses. MySQL is developed, marketed and supported by MySQL AB,
which is a Swedish company. MySQL is becoming so popular because of
many good reasons –

 MySQL is released under an open-source license. So you have


nothing to pay to use it.
 MySQL is a very powerful program in its own right. It handles a large
subset of the functionality of the most expensive and powerful
database packages.
 MySQL uses a standard form of the well-known SQL data language.
 MySQL works on many operating systems and with many languages
including Python, PHP, PERL, C, C++, JAVA, etc.
 MySQL works very quickly and works well even with large data sets.
 MySQL is very friendly to PHP, the most appreciated language for
web development.
 MySQL supports large databases, up to 50 million rows or more in a
table. The default file size limit for a table is 4GB, but you can
increase this (if your operating system can handle it) to a theoretical
limit of 8 million terabytes (TB).
 MySQL is customizable. The open-source GPL license allows
programmers to modify the MySQL software to fit their own specific
environments.

In this project MySQL server and Python connector is used. MySQL server
is used to store the data and MySQL-Python connector is used to connect
the program of Python to MySQL server client.

TABLE STRUCTURE

7
8
9
Python
Python is a popular programming language. It was created by
Guido van Rossum, and released in 1991.

It is used for:

 web development (server-side),


 software development,
 mathematics,
 system scripting.

Modules or Package installed for using


this Project
1. mysqlclient: To install this run command (pip
install mysqlclient)

Description: This package contains the MySQLdb


module. It is written in C, and is one of the most
commonly used Python packages for MySQL.

2. pymysql: to install this run command (pip install


pymysql)

Description: This package contains the pymysql


module. It is written entirely in Python.

3. python connector: to install this run command (pip


install mysql-connector-python)

Description: This package contains the


mysql.connector module. It is written entirely in
Python.

10
CODING

 For mysql connection (to be run once only)

import mysql.connector as sql

conn= sql.connect(host='localhost', user = 'root', password

='root')

c1=conn.cursor()

11
c1.execute("create database marriage_bureaw_management")

c1.execute("use marriage_bureaw_management")

c1.execute("create table legends_details(name varchar (200),

address varchar(20), caste varchar (100), appearence

varchar(100), age bigint(55), profession varchar

(255),phone_no bigint)")

c1.execute("create table girls_details(name varchar (200),

address varchar(20), caste varchar (100), appearence

varchar(100), age bigint(55), profession varchar

(255),phone_no bigint)")

c1.execute("create table user_id(user_name varchar(55),

password int(20))")

conn.commit()

12
 Main Python program

print("_ _ _ _\n\\\\\\\\ ////\n \\\\\\\ ////\n \\\\\\\\

////\n \\\\\\\\ ////\n \\\\\\\\ ////\n \\\\\\\\ ////\

n \\\\\\\\//// \n \\\\\\///\n \\\\//\n \\/ikas\n °°")

print("\n")

print(" _ _\n |||°°°°°°°°\n ||| °°°° \n ||| °°°°\n ||| °°°° \n |||

°°°°\n ||| °°°° \n ||| °°°°\n |||°°°°°°° \n ||| \n ||| \n |||riya")

print("\n")

print(" ================== \n ================== \n

|||| \n ||||\n ||||\n ||||\n ||||\n ||||\n ||||\n ||||\n ||||\n ||||

anya's")

print("\n")

print(" _ _\n |||°°°°°°°°\n ||| °°°° \n ||| °°°°\n ||| °°°° \n |||

°°°°\n ||| °°°° \n ||| °°°°\n |||°°°°°°° \n ||| \n ||| \n |||roject")

import mysql . connector as sql

conn=sql.connect(host='localhost',user='root',passwd='root',dat

abase='marriage_bureaw_management')

cur = conn.cursor()

13
print('*****************************************************MARRIAG

E BUREAW

MANAGEMENT**************************************************')

print('1.REGISTER')

print('2.LOGIN')

n=int(input('Enter your choice:'))

if n== 1:

name=input('Enter your User name:')

passwd=int(input('Enter your Password(only numbers):'))

print()

V_SQLInsert="INSERT INTO user_id

(password,user_name) values (" + str (passwd) + ",' " + name

+ " ') "

cur.execute(V_SQLInsert)

conn.commit()

print()

print('USER created succesfully')

14
if n==2 :

name=input('Enter your Username=')

print()

passwd=int(input('Enter your Password='))

V_Sql_Sel="select * from user_id where password='"+str

(passwd)+"' and user_name= ' " +name+ " ' "

cur.execute(V_Sql_Sel)

if cur.fetchone() is None:

print()

print('Invalid username or password')

else:

print()

import mysql.connector as sql

conn=sql.connect(host='localhost',user='root',passwd='root',dat

abase='marriage_bureaw_management')

if conn.is_connected():

c1=conn.cursor()

15
print('______________________________________________

__________________WELCOME TO VPT MARTIMONIAL

SERVICE

__________________________________________________

_____')

c='y'

while c.lower()=='y':

print('=======================')

print("1.provide details")

print('2. in search of bride or groom')

choice=int(input('enter the choice:'))

if choice==1:

print('==========================')

print('5.Male customer details')

print('6.Female customer details')

choice=int(input('enter the choice:-'))

16
if choice==2:

print('========================')

print('3. Handsome Groom ')

print('4. Beautiful Bride ')

choice=int(input('enter the choice-'))

if choice == 5 :

a=(input('enter the name:'))

b=(input('enter the address:'))

c=(input('enter the caste:'))

d=(input('enter the appreance:'))

e=(input('enter the age:'))

f=(input('enter the profession:'))

g=(input('enter the phone_no:'))

c1=conn.cursor()

sql_insert="insert into legends_details

values( '{}','{}','{}','{}','{}','{}','{}')".format(a,b,c,d,e,f,g)

c1.execute(sql_insert)

17
conn.commit()

print ('Data inserted')

c=input('do you want to continue (y/[n]:)')

if choice==6:

h=(input('enter the name:'))

i=(input('enter the address:'))

j=(input('enter the caste:'))

k=(input('enter the appreance:'))

l=(input('enter the age:'))

m=(input('enter the profession:'))

n=(input('enter the phone_no:'))

c1=conn.cursor()

sql_insert="insert into girls_details

values( '{}','{}','{}','{}','{}','{}','{}')".format(h,i,j,k,l,m,n)

c1.execute(sql_insert)

conn.commit()

print("Details are successfully inserted")

c=input('do you want to continue (y/[n]:)')

18
if c =='y' :

continue

else:

print('THANK YOU FOR VISITING OUR

WEBSITE' )

print('VISIT AGAIN')

if choice==3:

prof=(input('Enter the profession:'))

c1.execute("select* from legends_details where

profession='{}'". format(prof))

data= c1.fetchall()

print("name\t\t address\t\t caste\t\t appreance\t\t age\

t\t profession\t\t phone_no \t\t ")

for i in data:

print (data [0][0],'\t\t',data[0][1],'\t\t',data[0][2],'\t\

t',data [0][3],'\t\t',data[0][4],'\t\t',data[0][5],'\t\t',data[0][6],'\t\t')

c=input('do you want to continue (y/[n]:)')

if c =='y' :

19
continue

else:

print('THANK YOU FOR VISITING OUR

WEBSITE' )

print('VISIT AGAIN')

print('=========================')

if choice==4:

appearence=(input('Enter the appearence:'))

c1.execute("select* from girls_details where

appearence='{}'". format(appearence))

data= c1.fetchall()

print("name\t\t address\t\t caste\t\t appreance\t\t age\

t\t profession\t\t phone_no \t\t ")

for i in data:

print (data [0][0],'\t\t',data[0][1],'\t\t',data[0][2],'\t\

t',data [0][3],'\t\t',data[0][4],'\t\t',data[0][5],'\t\t',data[0][6],'\t\t')

c=input('do you want to continue (y/[n]:)')

if c =='y' :

20
continue

else:

print('THANK YOU FOR VISITING OUR

WEBSITE' )

print('VISIT AGAIN')

21
22
MENU

23
24
TO REGISTER

TO PROVIDE DETAILS
25
TO LOGIN

26
27
MAIN MENU 2

28
TO SEARCH BRIDE OR GROOM

29
LIMITATIONS

1. PASSWORD CHARACTERS ARE VISIBLE IN DATA.


2. IT WORKS ONLY OFFLINE.
3. YOU CAN’T SEARCH BRIDE OR GROOM BY
CASTE.
4. THERE IS NO OPTION TO UPLOAD PIC OF BRIDE
OR GROOM.
5. DELETED RECORD WILL BE DELETED
PERMANENTLY.

30
BIBLIOGRAPHY

HELP TAKEN TO COMPLETE THIS PROJECT IS FROM:


 GUIDE MR. ANUP KUMAR SINGH
 pythonworld.in
 Google.co.in
 W3schools.com

31

You might also like