Skip to content

OmGoyal27/inventory-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inventory Management System

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.

Features

  • 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

Installation

  1. Clone or download this repository
  2. Ensure you have Python 3.7+ installed
  3. No additional dependencies required (uses only standard library)

Usage

Run the application:

python main.py

Menu Options

  1. View all products - Display all products with current stock levels
  2. Add a product - Add new products or update existing ones
  3. Sell a product - Process sales and update inventory
  4. View stock of all products - Check stock levels across all items
  5. View price of all products - Display pricing information
  6. View details of a product - Get comprehensive product information
  7. Increase stock of a product - Add stock to existing products
  8. Update details of a product - Modify product information

Type 'q' to quit the application.

File Structure

├── main.py                 # Main application file
├── database/
│   └── products.json      # Product database (JSON format)
├── README.md
├── LICENSE.txt
└── .gitignore

Data Format

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"
    }
}

Error Handling

  • JSON parsing errors
  • File not found scenarios
  • Invalid input validation
  • Stock quantity checks
  • Price validation

Data Persistence

All data is automatically saved to database/products.json after each operation. The database file is created automatically if it doesn't exist.

Contributing

This is a personal project for educational purposes. Feel free to fork and modify for your own use.

License

MIT License - see LICENSE.txt for details.

Disclaimer

⚠️ THIS PROJECT IS NOT INTENDED FOR PROFESSIONAL USE. THE AUTHOR WILL NOT BE LIABLE FOR ANY DATA LOSS DUE TO THIS PROJECT.

Author

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.

About

An Inventory Management system, but just built for fun and learning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages