Skip to content

M0neySSH/DemoKART

Repository files navigation

DemoKART Terminal Demo

🛒 DemoKART CLI

A beautifully crafted, feature-rich Shopping Cart built purely in Python.

Python 3.8+ License: MIT UI: Rich DB: SQLite

FeaturesInstallationUsageContributing


⚡ Introduction

DemoKART takes the standard command-line shopping cart project and elevates it to a stunning visual experience. Utilizing the Rich text library to generate beautiful console panels, tables, and colors, it turns a simple terminal into a premium backend interface.

Data is managed securely and persistently using SQLite, while unique transaction receipts are generated dynamically into scannable QR Codes.


✨ Features

👤 User Architecture

  • Secure Registration with Email & Regex Phone Validation
  • Unique ID Engine: Auto-generates 6-character IDs
  • Paginated Database: Beautiful multi-page user viewer

🛍️ Inventory Management

  • Add / Update Float-Pricing & Integer Quantity
  • Live Stock Sync
  • Paginated Catalog

💳 Cart & Checkout

  • Live Auto-Calculator: Deduplicates logic from cart lists
  • Defensive Input: Blocks over-budget/out-of-stock items

🧾 Digital Receipts & Analytics

  • QR Generation: Outputs scannable .png receipts
  • Analytics: Persistent Sales Tracking

🔎 Want to learn more?

Check out our detailed FEATURES.md file for a deep dive into the system!


⚙️ Installation

DemoKART requires virtually no setup beyond its pip dependencies.

# 1. Clone the repository
git clone https://github.com/M0neySSH/DemoKART.git

# 2. Enter the directory
cd DemoKART

# 3. Install required packages
pip install rich pyqrcode pypng

💻 Usage

Running DemoKART is as simple as launching the script. The SQLite database (data.db) will auto-generate if it does not already exist!

python main.py

🎮 The Workflow:

  1. Hit 1 to Register a new user. Keep note of the generated 6-digit ID!
  2. Hit 4 to Fill the Shop with stock.
  3. Hit 8 to Buy Items. Enter your ID, checkout, and experience the generated QR receipt!

🛡️ Exception Handling & Stability

Built with Defensive Programming, the application guarantees it will never crash due to bad user input during runtime. Prompt inputs are strictly cast to their required paradigms, continuously validating strings, integers, and floats without terminating the program.


🤝 Contributing & License

Contributions, issues, and feature requests are heartily welcome!
Take a look at the CONTRIBUTING.md guide and the CHANGELOG.md to see where the project is heading.


This project is MIT licensed.
Developed with ❤️ by Manish

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages