0% found this document useful (0 votes)
16 views25 pages

Class 12 Cs Project File On Store Mangement

The document is a project report for a General Store Management System developed by a student named Yug Sharma under the guidance of Mrs. Neha Verma. It details the system's functionalities, which include adding, updating, purchasing items, and displaying stock, utilizing Python, MySQL, and Tkinter for implementation. The project emphasizes practical applications in database management and GUI programming, showcasing essential skills in software development.
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)
16 views25 pages

Class 12 Cs Project File On Store Mangement

The document is a project report for a General Store Management System developed by a student named Yug Sharma under the guidance of Mrs. Neha Verma. It details the system's functionalities, which include adding, updating, purchasing items, and displaying stock, utilizing Python, MySQL, and Tkinter for implementation. The project emphasizes practical applications in database management and GUI programming, showcasing essential skills in software development.
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/ 25

SAMAR STUDY HALL

Responsibility to one’s community and


country above and beyond mere self

COMPUTER SCIENCE REPORT FILE


(SESSION:- 2024 -2025)

SUBMITTED To: SUBMITTED By:


Mrs. Neha Verma Aryaman Agarwal
12th Science A
Roll No.-

1
CERTIFICATE

This is to certify that “Yug sharma”


student of ‘12 science A’ has
successfully completed the Project File
on General Store Management
System with dedication and diligence
under the guidance of “Mrs. Neha
Verma” during the session 2024-2025.

Principal Internal External


sign Examiner Examinerm

2
Acknowlagement

I would like to convey my heartfelt


gratitude to “Mrs. Neha Verma” for
her tremendous support and assistance
in the completion of my Project File. I
would also like to thank our principal
“Mr. Anuj Bhatia” for providing me
with this wonderful opportunity to work
on a project.The completion of the
project would not have been possible
without their help and insights.

3
General Store
Management System
This project is a Python-based application designed
to manage the stock of a general store. It leverages
MySQL for database management and Tkinter for
the graphical user interface (GUI). The system
supports functionalities such as adding items,
updating stock, purchasing items, and displaying all
stock details. Below, we discuss the key
components of the project and their respective
roles.

Features

 Login System: A simple authentication mechanism


ensures secure access to the application.
 Add Items: Allows adding new items to the stock with
their code, name, quantity, and price.
 Update Stock: Enables users to increase the quantity
of an existing item.
 Buy Items: Decreases the quantity of a selected item
based on customer purchases.
 Display Stock: Lists all items currently available in
the store along with their details.

Technologies Used
4
1. MySQL
MySQL is an open-source relational database
management system (RDBMS) used to store and manage
the stock details. The database consists of a table named
stock with the following structure:

 I_Code (integer): Unique code for each item.


 I_Name (string): Name of the item.
 Qty (integer): Quantity of the item in stock.
 Price (float): Price per unit of the item.

MySQL provides robust querying capabilities, making it


an ideal choice for database operations in this project.

2. Tkinter
Tkinter is Python’s standard library for creating GUI
applications. It is used in this project to design the user
interface, which includes:

 Login Screen
 Main Menu
 Forms for adding, updating, and buying items
 Display of stock details

The GUI ensures a user-friendly experience, allowing


users to interact with the system intuitively.

3. MySQL Connectivity with Python

5
The project utilizes the mysql.connector library for
connecting Python with the MySQL database. This library
allows seamless execution of SQL queries directly from
the Python script.

Key Functions:
 connect( ): Establishes a connection to the MySQL
database.
 Cursor ( ): Provides an interface to execute SQL
commands.
 commit( ): Saves changes made to the database.
 fetchone( ) and fetchall( ): Retrieve query results.

6
PROGRAM

7
8
9
10
Code Overview:
Login System
The application starts with a login interface where the
user must enter a username and password. Correct
credentials grant access to the main menu.

Main Menu
The main menu provides buttons for the following
operations:
 Add Item: Captures item details through input fields
and inserts them into the database.
 Update Item: Increases the quantity of an existing item
based on user input.
 Buy Item: Decreases the quantity of an item after
validating stock availability.
 Display All Items: Opens a new window displaying all
stock details fetched from the database.

11
Error Handling
The project incorporates error handling to ensure a
smooth user experience:
 Database connection errors are caught and displayed.
 User input validation prevents invalid data from being
processed.
 Stock operations (e.g., buying more than available
quantity) are validated before executing queries.

12
OUTPUT
Login Window : Enter Username
And Root Password
Of Your SQL
Server

Error if Username or password is incorrect:

Main Window:
ADDING ITEMS:
MESSAGE BOX AFTER ADDING ITEMS:
STOCK AFTER ADDING ITEMS:

We can see that by


clicking DISPLAY ALL
ITEMS

BUYING ITEMS:
Here User
Typed
insufficient
QUANTITY
There are
only 1 cold
drink in
stock.

Error Due To insufficient QUANTITY:

Buying item again:


Message box after BUYING items
Successfully:

Stock after BUYING items Successfully:


UPDATING STOCK:

The
Update
function
will add
the
quantity
writen by
user to the
quantity in
the stock.

Message box after BUYING items


Successfully:
Stock after UPDATING items Successfully:

CLOSE:

The Program will Closed after clicking .


Conclusion
This General Store Management System is a practical
application demonstrating the integration of Python,
MySQL, and Tkinter. It provides essential functionalities
required for managing a small store, making it a valuable
tool for learning and practice in database and GUI
programming. The project showcases how to create a
comprehensive solution for real-world problems,
emphasizing the importance of data management, error
handling, and user interface design. Additionally, this
system can be extended with features such as
generating sales reports, user roles for different access
levels, and integrating barcode scanning for efficient
inventory management. It serves as a foundation for
developing more complex management systems.
By working on this project, one gains hands-on
experience with Python programming, database
connectivity, and GUI development—key skills in the field
of software development. It also encourages the
application of problem-solving and logical thinking to
design user-friendly solutions.

21
Bibliography
 Python Documentation: https://docs.python.org/
 MySQL Documentation: https://dev.mysql.com/doc/
 Tkinter Guide: https://tkdocs.com/
 GeeksforGeeks Articles on Python and MySQL
Integration: https://www.geeksforgeeks.org/
 TutorialsPoint MySQL Tutorial:
https://www.tutorialspoint.com/mysql/index.htm
 Stack Overflow Community Discussions:
https://stackoverflow.com/
 Real Python’s Tkinter Tutorials: https://realpython.com/

22
23
24
25

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy