Skip to content

wsparcie/shopdb

Repository files navigation

ShopDataMaster

Python BCrypt Colorama Status License

A simple console-based shop management system with automated data generation and secure login capabilities.

Features

  • Secure Authentication: BCrypt-based login system
  • Data Management:
    • Users
    • Products
    • Orders
    • Reviews
  • Automated Generation: Random data generation for testing
  • Interactive Console: Colorful terminal interface
  • Data Persistence: File-based storage system

Features in Detail

Data Management

  • User Management:
    • Personal information storage
    • Address tracking
    • Contact details
  • Product Inventory:
    • Stock tracking
    • Price management
    • Product descriptions
    • Brand and type categorization
  • Order Processing:
    • Multi-product orders
    • Quantity tracking
    • Total price calculation
    • Stock updates
  • Review System:
    • Rating system
    • User comments
    • Average rating calculation
    • Product feedback

Technical Features

  • Error Handling:
    • Robust exception management
    • File operation safety
    • Data validation
  • Data Generation:
    • Random user data
    • Product inventory generation
    • Order simulation
    • Review creation
  • Security:
    • BCrypt password hashing
    • Secure login system
    • Session management

Usage

  1. Install dependencies:

    pip install -r requirements.txt
  2. Run the program:

    python __shopdb__.py
  3. First-time setup:

    • Create a login credential when prompted
    • System will generate sample data automatically
  4. Available commands:

    • us: Manage users
    • pd: Manage products
    • ord: Manage orders
    • rev: Manage reviews
    • sv: Save changes
    • ex: Exit program
  5. Data operations:

    • ls: List items
    • sr: Sort items
    • fl: Filter items
    • add: Add new item
    • del: Delete item
    • mdf: Modify item

Prerequisites

  • Python 3.12+
  • Required Python packages:
    bcrypt>=4.1.2
    colorama>=0.4.6
    

Screenshots

Console Interface Orders Management Products View Order Details

License

MIT License - feel free to use and modify as needed.

About

A simple console-based shop management program

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages