A Python-based shipment tracking tool that automates the process of tracking medical shipments through the Indian Postal Service (IPS) system. This tool reads tracking numbers from Excel files, scrapes tracking information from the IPS website, categorizes shipments by status, and generates detailed Excel reports.
- Automated Tracking: Reads tracking numbers from Excel input files
- Web Scraping: Fetches real-time tracking data from IPS website
- Status Categorization: Automatically categorizes shipments into:
- Booked
- In Transit
- Inbound
- Outbound
- Delivered
- Notice Left
- Stuck/Customs
- Returned
- Excel Reports: Generates organized Excel files with categorized data
- GUI Dashboard: User-friendly interface for executing tracking operations
- Scheduled Execution: Ability to schedule tracking runs at specific times
- Location Enhancement: Automatically enriches location data with zip code information
MedshipmentTrackingTool/
├── src/
│ ├── tracker.py # Main tracking logic
│ ├── excel_handler.py # Excel file operations
│ ├── web_scraper.py # Web scraping functionality
│ ├── dashboard.py # GUI dashboard
│ └── scheduler.py # Scheduled execution
├── data/
│ └── Input-Data.xlsx # Input file with tracking numbers
├── output/ # Generated output files
├── config/
│ └── config.json # Configuration file
├── requirements.txt
└── README.md
- Python 3.7+
- See
requirements.txtfor package dependencies
- Clone the repository:
git clone https://github.com/Ricky512227/MedshipmentTrackingTool.git
cd MedshipmentTrackingTool- Install dependencies:
pip install -r requirements.txt- Configure the paths in
config/config.json:
{
"input_file": "data/Input-Data.xlsx",
"output_dir": "output",
"final_data_file": "output/Final-Data.xlsx"
}Run the dashboard:
python src/dashboard.pyRun tracking directly:
python src/tracker.pyThe input Excel file should have the following columns:
- Column A: Order ID
- Column B: First Name
- Column C: Last Name
- Column D: Tracking Number
The tool generates:
Final-Data.xlsx: Complete tracking data with all shipmentsData[timestamp].xlsx: Categorized Excel file with separate sheets for each status- Summary sheet with counts for each category
- This tool was developed for tracking medical shipments through the Indian Postal Service
- The tool scrapes data from
ipsweb.ptcmysore.gov.in - Some tracking numbers may not return data if they're not yet in the system
Private project - All rights reserved
Developed for DRITEE IMPEX