Acknowledgement: Abhinav
Acknowledgement: Abhinav
Abhinav
TABLE OF CONTENTS
S.NO. TOPIC PAGE NO.
1
1. SYNOPSIS
2
2. ABOUT PYTHON
3
3. ABOUT MYSQL
4
4. SYSTEM REQUIREMENT
5
5. SOURCE CODE
10
6. INPUT/OUTPUT DESIGN
13
7. BIBLIOGRAPHY
SYNOPSIS
This project titled, “GAME STORE
MANAGEMENT SYSTEM” is an application that
allows the Store manager to handle all the Game Store
management activities online or offline.
The existing is the one with MS Excel application with
a large volume of game records are stored in a tabular
format.The store manager finds it difficult to handle a
large volume of records.
The Store manager finds it difficult to extract the
required records for doing analysis and making the
decision at the management level. The existing system
does not have any constraint to deny duplication of
records.
The proposed system is the one which handle all the
required operations automatically in which front-end
application handles at the execution level and back-end
application handles at the storage level.
The proposed system is designed with Python IDLE as
front-end and MySQL as back-end.
ABOUT PYTHON
Python or python pandas is python’s library for data analysis.pandas have been
derived from ‘panel data system. Today pandas have become popular choice for
data analysis .
Data analysis refers to the process of evaluating big data sets using analytical
and satatistical tools as to discover useful information and conclusions to
support buisness decision making.
IDLE :-
Integrated Development and Learning Environment is an integrated
development environment (IDE) for Python. The Python installer for Windows
contains the IDLE module by default. IDLE can be used to execute a single
statement just like Python Shell and also to create, modify and execute Python
scripts.
Python Goals :-
In 1999, Guido van Rossum defined his goals for Python:
Advantages of Python :-
Limitations of python :-
Python works with an interpreter and not a compiler due to which its
execution speed is slow.
ABOUT MYSQL
SQL stands for Structured Query Language and is a programming language
which is designed for managing data which is held in a Relational Database
Management System [RDBMS] whereas MySQL is an open-source relational
database management system based on SQL.
Advantages of MySQL :-
It consists of a solid data security layer that protects sensitive data from
intruders. Also,
passwords are encrypted in MySQL.
It is free to use and can be downloaded from the MySQL official website
without any cost.
Its efficiency is high because it has a very low memory leakage problem.
It is faster, more reliable, and cheaper because of its unique storage
engine architecture.
Limitations of MySQL :-
SYSTEM
REQUIREMENTS
HARDWARE REQUIREMENTS:
SOFTWARE REQUIREMENT:
SOURCE CODE
#Module Import
import mysql.connector as sql
import tabulate
#Connecting to database
con = sql.connect(host='localhost', username='root', passwd='root',
database='games')
if con.is_connected() == True:
status = 'OK'
cursor = con.cursor()
else:
status = 'Disconnected'
#Option 1
def listGames():
cursor.execute('select * from games')
games = list(cursor.fetchall())
global header
header = ['ID', 'Name', 'Cost', 'Quantity', 'Developer']
return games
#Option 2
def add():
ident = int(input('Enter ID Number: '))
name = input('Enter Name of Game: ')
cost = float(input('Enter Cost of Game: '))
no = int(input('Enter Quantity of Game: '))
dev = input('Enter Publisher Name: ')
cursor.execute("INSERT INTO games VALUES({}, '{}', {}, {},
'{}') ".format(ident, name, cost, no, dev))
print('Record Added Successfully!')
#Option 3
def delete():
print(tabulate.tabulate(listGames(), headers = header,
tablefmt='grid'))
print()
print('Enter ID of the Record to be Deleted')
id = int(input('> '))
cursor.execute('DELETE FROM games WHERE
ID={}'.format(id))
print('Record has been Deleted Succssfully')
input()
#Option 4
def update():
print(tabulate.tabulate(listGames(), headers = header,
tablefmt='grid'))
print()
id = int(input('Enter ID of the Record Name to be Modified: '))
name = input('Enter the New Name of the Record: ')
cursor.execute("UPDATE games SET name='{}' WHERE id={}
".format(name, id))
print('Change Record Name Successfully!')
input()
#Option 5
def search():
name = input('Enter Name of Game: ')
cursor.execute("SELECT * FROM games WHERE
name='{}'".format(name))
result = cursor.fetchall()
print()
header = ['ID', 'Name', 'Cost', 'Quantity', 'Developer']
if result != []:
print('Game found!')
print(tabulate.tabulate(result, headers = header, tablefmt='grid'))
else:
print('Game not Found...')
input()
#Menu
while True:
print(f'''Status: {status}
GAME STORE
''')
ch = input('> ')
if ch.strip() == '1':
print(tabulate.tabulate(listGames(), headers = header,
tablefmt='grid'))
input('')
else:
print('Invalid Input. Try again.')
input()
ORIGINAL TABLE:
OUTPUT WITHOUT CHOICE
OUTPUT
BIBLIOGRAPHY
https://www.python.org/
https://www.mysql.com/
https://www.coursera.org/articles/what-is-python-used-for-a-
beginners-guide-to-using-python
https://www.digitalocean.com/community/tutorials/what-is-
mysql
https://www.tutorialspoint.com/mysql/mysql-introduction.htm