A simple command-line inventory management system built in Python for tracking products, stock levels, and sales. This project was specifically created for Radhe Shyam company to help manage their goods inventory.
-
Product Management
- Add new products with details (name, description, company, price, stock, category)
- Update existing product information
- View all products with stock levels
- View detailed product information
-
Stock Management
- Track stock levels for all products
- Increase stock quantities
- Automatic stock updates when products are sold
- Out-of-stock notifications
-
Sales Operations
- Sell products with automatic stock deduction
- Quantity validation to prevent overselling
- Sales confirmation messages
-
Data Organization
- Categorize products (AC, Battery, TV, etc.)
- View products by price
- JSON-based data storage for easy backup and portability
- Clone or download this repository
- Ensure you have Python 3.7+ installed
- No additional dependencies required (uses only standard library)
Run the application:
python main.py- View all products - Display all products with current stock levels
- Add a product - Add new products or update existing ones
- Sell a product - Process sales and update inventory
- View stock of all products - Check stock levels across all items
- View price of all products - Display pricing information
- View details of a product - Get comprehensive product information
- Increase stock of a product - Add stock to existing products
- Update details of a product - Modify product information
Type 'q' to quit the application.
├── main.py # Main application file
├── database/
│ └── products.json # Product database (JSON format)
├── README.md
├── LICENSE.txt
└── .gitignore
Products are stored in JSON format with the following structure:
{
"Product Name": {
"Description": "Product description",
"Company": "Manufacturer name",
"Price": "0.0",
"Stock": "0",
"Category": "Product category"
}
}- JSON parsing errors
- File not found scenarios
- Invalid input validation
- Stock quantity checks
- Price validation
All data is automatically saved to database/products.json after each operation. The database file is created automatically if it doesn't exist.
This is a personal project for educational purposes. Feel free to fork and modify for your own use.
MIT License - see LICENSE.txt for details.
Created by Om Goyal
Note: This system is designed for small-scale inventory management and educational purposes. For production use, consider implementing proper database systems, user authentication, and data validation. This README.md was generated by Claude Sonnet 4.