Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
23 views37 pages

CS Sarvesh

This document provides code and documentation for an apparel management system project created in Python. It includes: - Introduction to the project aims to manage product, customer, and worker details in an organized manner using Python and MySQL. - Requirements including hardware (processor, RAM, storage) and software (OS, Python). - Analysis of the project structure with 3 modules for products, customers, and workers, and MySQL tables to store user data. - Coding for each module with functions to add, modify, delete, and display data for products, customers, and workers by executing SQL queries on the MySQL tables.

Uploaded by

aswanthbalaa612
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)
23 views37 pages

CS Sarvesh

This document provides code and documentation for an apparel management system project created in Python. It includes: - Introduction to the project aims to manage product, customer, and worker details in an organized manner using Python and MySQL. - Requirements including hardware (processor, RAM, storage) and software (OS, Python). - Analysis of the project structure with 3 modules for products, customers, and workers, and MySQL tables to store user data. - Coding for each module with functions to add, modify, delete, and display data for products, customers, and workers by executing SQL queries on the MySQL tables.

Uploaded by

aswanthbalaa612
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/ 37

CONTENTS

NAME: SHARVESH S CLASS: XII - LOTUS

S.NO TOPIC PAGE NO

1 AIM 1

2 2
INTRODUCTION TO PYTHON

3 4
INTRODUCTION TO PROJECT

4 REQUIREMENTS 5

5 PROJECT ANALYSIS 6

6 CODING 7

7 OUTPUT 14

8 SUGGESTED

IMPROVEMENTS 20

9 BIBLIOGRAPHY 21
AIM

The project “APPARAL MANAGEMENT” is one of the efforts that


had been made to reduce the effort of humans that they input on the job. This
situation can be connected to our daily lives.This technology is applied to record
the dress details such as product details,customer details,workers details. Our
motive is to make this process easier by applying technology to it. In other
words, to update it.

The software is user-friendly. Again, we don’t want to be this software to


take on a lot of human effort. That’s our main intention, to present data in an
organized manner. Our motive is to make this process easier by applying tech to
it. In other words, to update it.
.
INTRODUCTION TO PYTHON

Python is a widely used general-purpose, high level programming language. It was


initially designed by Guido van Rossum in 1991 and developed by Python Software
Foundation. It was mainly developed for emphasis on code readability, and its syntax allows
programmers to express concepts in fewer lines of code. It is used for
 Web development(server-side),

 Software development,

 Mathematics,

 System scripting.

BENEFITS OF PYTHON:

 Python can be used on a server to create web applications.

 Python can be used alongside software to create workflows.

 Python can connect to database systems. It can also read and modify files.

 Python can be used to handle big data and perform complex mathematics.

 Python can be used for rapid prototyping, or for production-ready software


development.

 Python works on different platforms (Windows, Mac, Linux, Raspberry Pi ,etc).

 Python has a simple syntax similar to the English language.

 Python has syntax that allows developers to write programs with fewer lines than
some other programming languages.
 Python runs on an interpreter system, meaning that code can be executed as soon as it
is written. This means that prototyping can be very quick.

 Python has syntax that allows developers to write programs with fewer lines than some
other programming languages.

 Python runs on an interpreter system, meaning that code can be executed as soon as it
is written. This means that prototyping can be very quick.

 Python can be treated in a procedural way, an object-orientated way or a functional


way.

 The most recent major version of Python is Python 3, which we shall be using in this
tutorial. However, Python 2, although not being updated with anything other than
security updates, is still quite popular.

 In this tutorial Python will be written in a text editor. It is possible tto write Python in
an Integrated Development Environment, such as Thonny, Pycharm, Netbeans or
Eclipse which are particularly useful when managing larger collections of Python
files.

 Python was designed for readability, and has some similarities to the English language
with influence from mathematics.

 Python uses new lines to complete a command, as opposed to other programming


languages which often use semicolons or parentheses.

 Python relies on indentation, using whitespace, to define scope; such as the scope of
loops, functions and classes. Other programming languages often use curly-brackets
for this purpose.
INTRODUCTION TO THE PROJECT

INTRODUCTION:

This project APPARAL MANAGEMENT has been developed on Python and MySQL. The main
aim of this project is to manage all the details about product,customers and workers.

OBJECTIVES OF THE PROJECT IS

 To manage the details of products.

 To manage the details of customers.

 To manage the details of workers.

 To manage all information in organized manner.

 It tracks all the information of product,customers and workers.

 To provide the searching facilities based on various factors such as product,customers and
workers.

 Adding, updating viewing and if needed deleting of the records is improved which results in
proper resource management of apparal mangament.
REQUIREMENTS

HARDWARE REQUIRED:

 Processor :PENTIUM(ANY)

 RAM :512MB+

 Hard disk : SATA 40 GB ORABOVE

 MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0RMSI

K9MM-V VIA K8M800+8237R PLUS

 CD/DVD r/w multi drive combo: (If backup required)

 FLOPPY DRIVE 1.44 MB : (If Backup required)

 MONITOR 14.1 or 15 -17inch

 Key board and mouse

 Printer : (if print is required – [Hard copy])

SOFTWARE REQUIRED:

 Operating system : WINDOWS 7 AND ABOVE

 Python
PROJECT ANALYSIS

● The project “APPARAL MANAGEMENT” has 3 modules, (PRODUCT MODULE,


CUSTOMERS MODULE, WORKER MODULE).
● I have initially created an interface between Python and MySQL by installing
mysql.connector package to my project interpreter to ease the accessibility.
● I have used various tables to store the user data. The various tables used to store the
user data are:

 Database:
- Apparal_Management_Sysytem

 Tables:
-product
-customers
-workers

● In the module product – User can view the details of product. User can add , update ,
delete or display the details of the product.
● In the module customers – User can view the details of customers. User can add , update,
delete or display the details of the customers.
● In the module workers – User can view the details of workers. User can add , update,
delete or display the details of the workers.
CODINGS
import mysql.connector as s
con=s.connect(host="localhost", user='root', passwd='')
if con.is_connected():
cur = con.cursor()
cur.execute("create database if not exists Apparal_Management_System")
cur.execute("use Apparal_Management_System")
cur.execute("create table if not exists Workers(worker_name varchar (20), age int, idno int,
experience_in_years int)")
cur.execute("create table if not exists Products (name_of_product varchar (20), rate float)")
cur.execute("create table if not exists Customers (name varchar (20),age int, phone int)")
con.commit()

#product

def p_add():
pname=input("Enter product name: ")
rate=float(input("Enter rate: "))
cur.execute("insert into Products values ('{}',{})".format (pname, rate))
print("Records added successfully...")
con.commit()

def p_modify():
rate=int(input("Enter rate to be modified: "))
pname=input ("Enter from which product name to be modified: ")
cur.execute("update Products set rate={} where name_of_product='{}'".format(rate,pname))
print("Records updated successfully...")
con.commit()

def p_delete():
name=input ("Enter the name of the product to be deleted: ")
cur.execute("delete from Products where name_of_product='{}'".format(name))
print("Records successfully deleted...")
con.commit()

def p_display():
cur.execute("Select * from Products")
l=cur.fetchall()
print("Records:")
for i in l:
print(i)

#customer
def c_add():
name=input("Enter name: ")
age=int(input("Enter age: "))
phone=int(input("Enter phone number: "))
cur.execute("insert into Customers values('{}', {}, {})".format(name, age, phone))
print ("Records added successfully...")
con.commit()

def c_modify():
age=int(input("Enter age to be modified: "))
name=input("Enter from which name should be modified: ")
cur.execute("update Customers set age={} where name='{}'".format (age, name))
print("Records updated successfully...")
con.commit()
def c_delete():
c=input('Enter the name to be deleted: ')
cur.execute("delete from Customers where name='{}'".format(c))
print("Record deleted successfully...")

def c_display ():


cur.execute("select * from Customers")
l=cur.fetchall()
print("Records:")
for i in l:
print(i)

#workers

def w_add():
name=input("Enter a name: ")
age=int(input("Enter age: "))
idno=int(input("Enter id no: "))
experience=int(input("Enter year: "))
cur.execute("insert into Workers values('{}', {}, {}, {})". format (name, age, idno, experience))
print ("Records added successfully...")
con.commit()

def w_modify():
age=int(input("Enter age to be modified: "))
name=input("Enter for which name should be modified: ")
cur.execute("update Workers set age={} where worker_name='{}'".format (age, name))
print("Records updated successfully...")
con.commit()

def w_delete():
id=int(input ("Enter id to be deleted: "))
cur.execute("delete from Workers where idno={}".format(id))
print ("Records deleted successfully...")
con.commit()

def w_display():
cur.execute("select * from Workers")
l=cur.fetchall()
print("Records:")
for i in l:
print(i)

print("*"*138)
print("*"*20,"Apparal Management System","*"*22)
print("*"*138)
ch="y"
while ch=="y":
print("1.Product Details\n2.Customer Details\n3.Worker Details\n4.Exit")
c=int(input("Enter your choice: "))
if c==1:
d="y"
while d=="y":
print("Product Details")
print("1.Add Product\n2.Update Product\n3.Delete Product\n4.Display Product")
s=int(input("Enter your choice: "))
if s==1:
p_add()
elif s==2:
p_modify()
elif s==3:
p_delete()
elif s==4:
p_display()
else:
print("Invalid input")
d=input("Do you want to continue with Product module y/n: ")

elif c==2:
d="y"
while d=="y":
print("Customer Details")
print("1.Add Customer\n2.Update Customer\n3.Delete Customer\n4.Display Customer")
s=int(input("Enter your choice: "))
if s==1:
c_add()
elif s==2:
c_modify()
elif s==3:
c_delete()
elif s==4:
c_display()
else:
print("Invalid input")
d=input("Do you want to continue with Customer module - y/n: ")

elif c==3:
d="y"
while d=="y":
print("Worker Details")
print("1.Add Worker\n2.Update Worker\n3.Delete Worker\n4.Display Worker")
s=int(input("Enter your choice: "))
if s==1:
w_add()
elif s==2:
w_modify()
elif s==3:
w_delete()
elif s==4:
w_display()
else:
print("Invalid input")
d=input("Do you want to continue with Worker module - y/n: ")
ch=input("Do you want to continue with Aparal management - y/n: ")
print("Exited!!!!!Thank you..........")
OUTPUT
SUGGESTED IMPROVEMENTS

 This is an offline program, in future, it can be developed further as an

online application too.

 Prices of the product can be updated with ease through a synced

mobile app through further updates.

 Providing facilities to attach the tax added to the price of the products

can also be implemented in the future.

 Notifications can also be sent to the users regarding the purchase and

the money spent to complete the purchases.

 Transaction history can be maintained to be viewed in the future.

 And to make the usage of the software at more ease and inclusion of

Graphic User Interface (GUI) for more elegant and interactive

software experience.

\
\
BIBLIOGRAPHY

BOOKS REFERRED:

Computer science With Python -ClassXII By :SumitaArora

WEB SITES REFERED:

Website : https://www.python.org

You might also like