A simple command-line based Inventory and Sales Management System built in Python. This project was made to practice core Python concepts - loops, conditions, file handling (JSON & CSV), and OOP.
- Add Product - add new products with ID, name, price, and quantity
- Update Product - update price or quantity of existing products
- Delete Product - remove a product permanently
- View All Products - see full product list with total amount
- Sell Product - sell a product, stock updates automatically
- Stock Check - prevents selling if quantity is not available
- Sales History - every sale is saved with date, time, price, and quantity
- Data Storage - all data is saved in
products.jsonandsales.csv, so it stays safe even after closing the program
- Python 3
- Built-in modules:
json,csv,datetime
main.py -> Starts the application, shows main menu
common.py -> Shared functions (input validation, save/load data)
product.py -> Product class and product management menu
sales.py -> Sales class and selling logic
products.json -> Stores product data
sales.csv -> Stores sales history
- Clone this repository
- Make sure Python 3 is installed
- Run the command:
python main.py - Follow the on-screen menu to add products, sell products, and view your inventory
This is a learning project. It is not built for production use, only to practice real Python concepts hands-on.
update soon