You are on page 1of 4

B R IE F O V E R V IE W O F P R O J E C T

The main objective of the python project on fashion store management is to manage the
details of sales, discounts, payments, products, and inventory digitally.

The project is totally built at administrative end and only administrator is


guaranteed the access.

The purpose of the project is to build an application program to reduce the manual
work for managing the sales, discounts, stock, and payments.
It tracks all the details about stocks, products, and inventory; it also prints various
reports as per input given by the user.

M o d u le u s e d a n d th e ir p u r p o s e s

1. MySql.connector module :-
MySQL Connector/Python enables Python programs to access MySQL databases,
using an API that is compliant with the Python Database API Specification v2.0 (PEP
249). It is written in pure Python and does not have any dependencies except for the
Python Standard Library.

MySql.connector module has a set of methods in which one is used in this project:

connect ( ) :- After we have installed Python MySql connector, we can write python
scripts using MySql.connector library that can connect to MySql databases from
within Python. Next we need to establish connection to a MySql database using
connect() function of mysql.connector package. The connect() function of
mysql.connector establishes connection to a MySql database and requires four
parameters, which are : =mysql.connector.connect( host=, user=, passwd=
[,database=]

2. OS module :-

This module provides a portable way of using operating system dependent


functionality. If you just want to read or write a file see open(), if you want to
manipulate paths, see the os.path module, and if you want to read all the lines in all
the files on the command line see the fileinput module. For creating temporary files
and directories see the tempfile module, and for high-level file and directory
handling see the shutil module.

3. Platform module :-

The Platform module is used to retrieve as much possible information about the
platform on which the program is being currently executed. Now by platform info, it
means information about the device, it’s OS, node, OS version, Python version, etc.

4. Pandas module :-

Pandas is a Python package that provides fast, flexible, and expressive data
structures designed to make working with "relational" or "labeled" data both easy
and intuitive. It aims to be the fundamental high-level building block for doing
practical, real world data analysis in Python.

5. Datetime module :-

In Python, date and time are not data types of their own, but a module named
DateTime can be imported to work with the date as well as time. Python Datetime
module comes built into Python, so there is no need to install it externally.

M y S Q L T a b le s

Sales Table:
P y th o n S o u r c e C o d e

import os

import platform

import mysql.connector

import pandas as pd

import datetime

mydb=mysql.connector.connect(host="localhost",user="root",passwd="rushil",data
base="fashion")

mycursor=mydb.cursor()

def AddProduct():
L=[]
stk=[]
pid=input("Enter the Product ID : ")
L.append(pid)
IName=input("Enter the Product Name : ")
L.append(IName)
brnd=input("Enter the Product Brand Name : ")
L.append(brnd)
fr=input("Enter Male/Female/Kids : ")
L.append(fr)
sn=input("Enter Winter/Summer : ")
Output Screens:

(Main Menu)

(Add Product)

You might also like