A simple and interactive shopping cart application built with Python. This project includes both a command-line interface and a web-based UI using Streamlit.
Try the app live: Shopping Cart Demo
- Add items to your cart with custom quantities
- Update quantities of existing products
- Remove items from the cart
- View cart contents at any time
- Checkout functionality to complete your purchase
- Reset cart option to start fresh
- Python 3.7 or higher
- pip (Python package installer)
- Clone this repository:
git clone https://github.com/yourusername/shopping-cart-system.git
cd shopping-cart-system- Install the required dependencies:
pip install -r reqirements.txtRun the terminal-based cart system:
python cart_system.pyNavigate through the menu by entering numbers 1-5:
- 1 - Add item to cart
- 2 - Update item in cart
- 3 - Remove item from cart
- 4 - View cart
- 5 - Buy and Exit
Launch the interactive web application:
streamlit run cart_app.pyThe app will open in your default browser. Use the expandable sections to:
- ➕ Add products
- ✏️ Update quantities
- ❌ Remove items
- 🛒 Checkout when ready
shopping-cart-system/
│
├── cart_system.py # Command-line cart application
├── cart_app.py # Streamlit web interface
├── reqirements.txt # Project dependencies
└── README.md # Project documentation
- Python - Core programming language
- Streamlit - Web interface framework
- Session State - For maintaining cart data
Add screenshots of your Streamlit app here
Contributions are welcome! Feel free to:
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
Sayed Hamza
- GitHub: @Sayedcodes
Give a ⭐️ if you like this project!
Made by Sayed Hamza❤️