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

Pytho Report Cms

The document describes a contact management system project written in Python using Tkinter. The project allows users to add, view, edit, search, and delete contacts from a database. It includes features to add new contacts by entering their name and number, view all contacts in a list, update contact details, search by name or number, and delete contacts. The project aims to develop a contact management system in Python and study relevant packages. It was implemented using Python, PyCharm IDE, SQLite database, and has functions for various CRUD operations.

Uploaded by

Priyanka
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)
43 views

Pytho Report Cms

The document describes a contact management system project written in Python using Tkinter. The project allows users to add, view, edit, search, and delete contacts from a database. It includes features to add new contacts by entering their name and number, view all contacts in a list, update contact details, search by name or number, and delete contacts. The project aims to develop a contact management system in Python and study relevant packages. It was implemented using Python, PyCharm IDE, SQLite database, and has functions for various CRUD operations.

Uploaded by

Priyanka
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/ 10

DEPARTMENT OF COMPUTER ENGINEERING

MICRO PROJECT REPORT

Academic year: 2022 – 2023

Subject: Programming with Python

Subject code: 22616

Title: Contact Management System

Submitted by:

Sr. Roll No. Enrolment No. Name


No.
1
Latthe Education Society’s Polytechnic, Sangli
Department of Computer Engineering

CERTIFICATE
This is to certify that this micro project is submitted in partial fulfilment of progressive

assessment in the course Programming with Python(22616) of sixth semester of Diploma in

Computer Engineering for the academic year 2022-23 as prescribe in the curriculum.

Sr. Roll No. Enrolment No. Name


No.
1

Course Co-ordinator
Rationale

The Contact Management project is written in Python using Tkinter. The project file contains
a python script (contact.py). Talking about the system, it allows the user to add and delete
contacts from the records, view the records, and so on. While adding the contact to record
items, the user has to enter the contact name and number. The system shows the contact
record in a list view. Also, the user can search for an item as it contains a search function too.
In short, this project mainly focuses on CRUD with a search function.

Features :
 The user can view the list of all contacts.
 You can freely add more contacts by supplying the needed details.
 The system has a function that can update the list of contact by using edit option .
 The system also allowed to delete some contact.

Aim of the project

• To develop Contact Management System in Python.


• To study various packages available for developing Contact Management System in
Python.

Intended course outcomes

1. Display message on screen using Python script on IDE.


2. Develop Python program to demonstrate use of Operators.
3. Perform operations on data structures in Python.
4. Develop functions for given problem.
5. Design classes for given problem.

Literature review

1. https://www.javatpoint.com/how-to-install-python
I studied, how to install Python on my machine

2. https://www.code project.com
I got knowledge of programming with python language and also worked on
the project on Contact Management System.

3. https://www.sqlitetutorial.net/sqlite-python/
I get information About my project.
Actual methodology

1. Firstly we collect the information about my project.


2. We discussed the topic of project with my subject teacher.
3. After taking guidance of my subject teacher and by the references of done related
website.
4. Later we sorted the collected information in proper way and arranged it as per the
requirement.
5. After arranging the information in proper way and arranged it as per the requirement.
6. After arranging the information We prepared the layout and contents of the project.
7. Lastly we made necessary corrections and gathered some of more required
information.
8. After arranging the information We prepared the layout and contents of the project.
9. Lastly we made necessary corrections and gathered some of more required
information.

Resources required

Sr. Name of Resource Broad Specification Quantity


No.
1 Computer System Processor - AMD 1
Ryzen 5 3500U with
Radeon Vega Mobile
Gfx 2.10 GHz

Installed RAM - 8.00


GB

System type - 64-bit


operating system, x64-
based processor

2 Additional Software Python, PyCharm 1


IDE, Microsoft Office

3 Operating System Windows 10 1


Program Code
#Contact book application
import sqlite3
dbase = sqlite3.connect('contacts.db')
dbase.execute('create table if not exists' +
' contact(name text,contact text)')
cur=dbase.cursor()

def welcome():
inn = input("All or New or Edit or Search or Delete: ")
return inn.lower()
def check(sname):
cur.execute(f'select name from contact where name="{sname}"')
obj = cur.fetchone()
if obj:
return True
else:
return False
def valid_no(sname):
while True:
scontact = input(f"Enter {sname}'s phone no: ")
if len(scontact)== 10 or len(scontact)== 8:
return scontact
else:
print("Number is invalid.")

def delete():
sname = input('Enter the name to be deleted: ')
sname = sname.title()
if check(sname):
cur.execute(f"delete from contact where name='{sname}'")
print("Delete successful")
else:
print(f"No contact exist named '{sname}'")
dbase.commit()
def new():
sname = input("Enter new contact name: ")
sname = sname.title()
scontact=valid_no(sname)
cur.execute('insert into contact values(?,?)',
(f'{sname}', f'{scontact}'))
print("new contact added!")
dbase.commit()
def all():
cur.execute('select * from contact')
obj = cur.fetchall()
if obj==None:
print("No contact exist!")
for a in obj:
print('name: ', a[0], ' no: ', a[1])
dbase.commit()

def update_number():
sname = input("Enter the contact name to be updated: ")
sname = sname.title()
if check(sname):
scontact = valid_no(sname)
cur.execute(f'update contact set contact="{scontact}" where name="{sname}"')
print("update successful")
else:
print(f"No contact exist named {sname}")
dbase.commit()

def update_name():
snum = input("Enter the contact number to be edited: ")
sname = input("Enter the new contact name: ")
cur.execute(f'select name from contact where contact="{snum}"')
obj=cur.fetchone()
if obj:
cur.execute(f'update contact set name="{sname.title()}" where contact="{snum}"')
print("update successful")
else:
print(f"No contact exist which has number: {snum}")
dbase.commit()

def search_number():
snum = input("Enter the contact number to be searched: ")
cur.execute(f'select name from contact where contact like "%{snum}%"')
obj = cur.fetchone()
if obj:
obj = obj[0]
print("name: ", obj)
cur.execute(f'select contact from contact where name="{obj}"')
obj = cur.fetchone()
print("contact: ", obj[0])
else:
print(f"No contact exist which has number: {snum}")
dbase.commit()

def search_name():
sname = input("Enter the contact name to be searched: ")
cur.execute(f'select name from contact where name like "%{sname}%"')
obj=cur.fetchone()
if obj:
obj = obj[0]
print("name: ",obj)
cur.execute(f'select contact from contact where name="{obj}"')
obj=cur.fetchone()
print("contact: ",obj[0])
else:
print(f"No contact exist which named: {sname}")
dbase.commit()

#main
print("WELCOME!!")
while(True):
inn = welcome()
if inn=='new':
new()
elif inn=='all':
all()
elif inn=='edit':
while True:
i = input("Edit name or number: ")
if i=='name':
update_name()
break
elif i=='number' or i=='num':
update_number()
break
else:
print("Select from the option")
elif inn=='search':
while True:
i = input("Search name or number: ")
if i=='name':
search_name()
break
elif i=='number' or i=='num':
search_number()
break
else:
print("Select from the option")
elif inn=='delete':
delete()
elif inn=='exit':
print('VISIT AGAIN!!')
break
else:
print("Select from the option")

dbase.close()
Output
Skill developed

1. I have learned various python packages

2. I have learned CRUD operation.

3. I have also learned to devlop Contact Management System.

Area of future improvement

1. We can add printer in future.

2. We can give more advance software for Contact Management System


including more facilities.

3. Create the master slave data structure to reduce the overload of the
database queries.

Application

Contact management software is designed to help you keep track of your contact
records and improve your workflow. It can store contact information, track
communication history, and manage tasks.

When you have a lot of contacts, it can be challenging to keep track of them all.
Contact management software can help you organize your contacts, keep track of
their information, and eliminate backlogs in your workflow.
Action Plan

Name of
Planned
Sr Planned Start responsible
Details of activity finish
no. date team
date
members

Discussion and
1. finalization of topic

Preparation and
2. submission of
project proposal

Planning layout of micro


3. project

4. Content preparation

Discussion about
5. required resources

Correction and
6. implementation

7. Seminar

Submission of
8. microproject
report

You might also like