Skip to content

LAYELKMANOJ/expiry-date-checker-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ Expiry Date Tracker System


A simple Python-based command-line tool to help users keep track of items and their expiry dates. This system allows users to add items with expiry dates, view all stored items, and get alerts for items that are expiring within 7 days.


πŸš€ Features


βœ… Add items with expiry dates

πŸ”” Get notified about items expiring within the next 7 days

πŸ“‹ View a list of all items

πŸ’Ύ Data persistence using a JSON file (expiry_database.json)

πŸ› οΈ Requirements

Python 3.x

No external libraries required β€” uses only built-in Python modules (json, datetime).

πŸ“ File Structure

expiry_tracker.py # Main Python script expiry_database.json # JSON file that stores item data (auto-created if not present) README.md # This file

πŸ§‘β€πŸ’» How to Use

Clone the Repository or Download the script.

Run the script using:

python expiry_tracker.py Follow the menu options:

πŸ“¦ Welcome to the Expiry Date Tracker System

MENU

  1. Add item with expiry date
  2. View items nearing expiry (within 7 days)
  3. View all items
  4. Exit

🧾 Example Adding an Item:

Enter item name: Milk

Enter expiry date (YYYY-MM-DD): 2025-06-10

βœ… 'Milk' added with expiry date 2025-06-10

Viewing Near-Expiry Items: ___

⚠ Items nearing expiry (within 7 days):

- Milk (Expires: 2025-06-10) ___

πŸ’‘ Future Improvements (Suggestions)

GUI interface using Tkinter or PyQt

Notification support (email or local alert)

Batch import/export feature for large inventories

Expired items cleanup option

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages