Nis
Nis
Thergaon Pune-33
I/II/III/IV/V/VI Semester
(Year: 2019-20)
Micro Project
Diploma In Computer Engineering
Title: inventory management system
CERTIFICATE
This is to certify that
Institute Seal
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________
Marks
Signature: _____________________________________________
10
11
12
13
14
15
16
Index
Sr.No Topic
1 Introduction
2 Abstract
3 Code
4 Output
5 Conclusion
References
6
1.Introduction
The Inventory Management System is a software application designed to
help businesses efficiently track and manage their stock. It enables users to
add new inventory items, update stock levels and prices, remove discontinued
products, and view available inventory in an organized manner. This system
reduces manual errors, improves inventory control, and ensures that
businesses maintain optimal stock levels. Developed using Python, it utilizes a
simple data structure to store inventory details, making it lightweight and
easy to use. The system can be enhanced with database integration, a
graphical user interface, or barcode scanning for better efficiency. Ideal for
small businesses, retail stores, and warehouses, this project provides a
practical solution for managing inventory effectively.
2.Abstract
The Inventory Management System is a Python-based software application
designed to streamline the process of tracking and managing inventory for
businesses. This system allows users to efficiently add, update, remove, and
view stock details, ensuring accurate record-keeping and reducing manual
errors. By maintaining real-time inventory data, businesses can optimize
stock levels, minimize losses, and improve operational efficiency. The system
is developed using Python and initially utilizes a simple dictionary for data
storage, with the potential for integration with databases such as SQLite or
MySQL for enhanced functionality. Future enhancements may include a
graphical user interface (GUI), barcode scanning, and cloud-based storage for
better accessibility. This project is particularly useful for small businesses,
retail stores, and warehouses seeking an easy-to-use and cost-effective
inventory management solution.
3.Code
import tkinter as tk
def add_inventory():
item_name = item_name_entry.get()
item_qty = int(item_qty_entry.get())
file.write(f'{item_name},{item_qty}\n')
item_name_entry.delete(0, tk.END)
item_qty_entry.delete(0, tk.END)
def update_inventory():
item_name = item_name_entry.get()
item_qty = int(item_qty_entry.get())
inventory_data = file.readlines()
if name == item_name:
file.write(f'{name},{item_qty}\n')
else:
file.write(line)
item_name_entry.delete(0, tk.END)
item_qty_entry.delete(0, tk.END)
def search_inventory():
search_name = item_name_entry.get()
if name == search_name:
result_label.config(text=f'{name} - {qty}')
return
item_name_entry.delete(0, tk.END)
def remove_inventory():
remove_name = item_name_entry.get()
inventory_data = file.readlines()
if name != remove_name:
file.write(line)
item_name_entry.delete(0, tk.END)
item_qty_entry.delete(0, tk.END)
def generate_inventory():
inventory_data = file.readlines()
inventory_text = '\n'.join(inventory_data)
result_label.config(text=inventory_text)
root = tk.Tk()
root.title("Inventory Management")
# input fields
item_name_entry = tk.Entry(root)
item_name_entry.grid(row=0, column=1, padx=5, pady=5)
item_qty_entry = tk.Entry(root)
command=add_inventory)
command=update_inventory)
command=search_inventory)
command=remove_inventory)
command=generate_inventory)
root.mainloop()
4. Output
5.Conclusion
The Inventory Management System is a simple yet effective solution for
tracking and managing stock levels in businesses. Developed using Python,
this system provides essential features such as adding, updating, removing,
and displaying inventory items. By implementing file-based storage using
JSON, it ensures data persistence even after the program is closed. The system
helps businesses maintain accurate stock records, reduce manual errors, and
optimize inventory control. It can be further enhanced by integrating a
database (MySQL/SQLite) or a graphical user interface (GUI) for better
usability. Overall, this project serves as a practical tool for small businesses,
retail stores, and warehouses to streamline their inventory management
process efficiently.
5. References
· Python Documentation - Data Structures:
https://docs.python.org/3/tutorial/datastructures.html