A comprehensive manufacturing production tracking system designed for automotive and composite manufacturing environments. Track production scrap, SMC (Sheet Moulding Compound) scrap, operator downtime, and generate detailed analytics.
Parts Tracker is a dual-interface application (GUI and CLI) designed for manufacturing facilities to track production efficiency, scrap rates, downtime events, and operator performance. Originally designed for automotive composite manufacturing, it features specialized SMC (Sheet Moulding Compound) tracking for parts like hood panels, bumper covers, and door panels.
- Scrap Tracking: Log production scrap with detailed reasons (foreign material, smear, chip, burn, etc.)
- SMC (Sheet Moulding Compound) Scrap: Specialized tracking for composite manufacturing defects (incomplete fill, flash/excess material, air bubbles, fiber showing, etc.)
- Downtime Logging: Track operator downtime with categorized reasons (mechanical issues, material shortage, training, etc.)
- Order Management: Create and track production orders with part numbers and quantities
- Operator Interface: Streamlined interface for production floor workers
- Administrator Interface: Comprehensive management and analytics dashboard
- Secure Authentication: SHA-256 hashed credentials with brute force protection
- Privacy Protection: Anonymized operator data with secure storage
- Operator Analytics: Performance metrics, efficiency tracking, and scrap rate analysis
- Detailed Reports: Individual operator deep-dive analytics with historical trends
- Real-time Data: Live tracking of production metrics and downtime events
- Shift Reporting: Daily and shift-based analytics for production planning
- Secure Authentication: Multi-layer security with hashed credentials
- Brute Force Protection: Account lockout after failed login attempts
- Input Validation: Comprehensive sanitization against injection attacks
- Audit Logging: Complete login attempt and activity tracking
- Python 3.7 or higher
- Required Python packages:
sqlite3(included with Python)tkinter(included with Python - for GUI version)hashlib(included with Python)datetime(included with Python)re(included with Python)
-
Clone the repository:
git clone https://github.com/yourusername/partstracker.git cd partstracker -
Run the application:
GUI Version:
python "pparts tracker.py"CLI Version:
python parts_tracker_cli.py
-
First-time setup:
- The application will automatically initialize the SQLite database
- Default admin accounts are created:
- Username:
FeuerWasser, Password:Jennifer124! - Username:
supervisor, Password:super456
- Username:
The GUI version provides a full-featured graphical interface with:
Login Screen:
- Secure operator or administrator login
- Automatic account lockout protection
Operator Interface:
- Track regular scrap entries
- Log SMC (Sheet Moulding Compound) scrap
- Record downtime events
- View personal activity history
Administrator Interface:
- Create and manage production orders
- View comprehensive operator analytics
- Add/remove operators from the system
- Access detailed performance reports
- Monitor all system activity
The command-line version offers the same functionality through a text-based menu system:
Admin Menu:
- Create new orders
- View recent scrap entries
- View operator analytics
- View detailed operator analytics
- Manage operators
- View downtime entries
- View SMC scrap entries
- Exit
Operator Menu:
- Track scrap for existing orders
- Track downtime
- Track SMC scrap
- View personal scrap entries
- View personal downtime entries
- View personal SMC scrap entries
- Exit
The application uses SQLite with the following tables:
scrap_entries: Regular production scrap trackingsmc_scrap_entries: SMC (Sheet Moulding Compound) specific scrapdowntime_entries: Operator downtime eventsoperators: Operator management (with hashed names)orders: Production order trackingadmin_credentials: Secure administrator authenticationlogin_attempts: Security audit logging
Specialized features for composite manufacturing:
Part Types:
- Hood panels
- Door panels
- Bumper covers
- Fender assemblies
- And other automotive composite parts
SMC Scrap Reasons:
- Incomplete fill
- Flash/excess material
- Air bubbles/voids
- Surface defects
- Dimensional out of spec
- Fiber showing
- Delamination
- Warp/distortion
- Contamination
- Cure issues
- Tool marks
- Gelcoat defects
- Resin starved areas
- Overpacking
- Sink marks
- Cracking
Regular Scrap Reasons:
- Foreign material
- Smear
- Chip
- Burn
- Light
- Heavy
- Crack
- No fill
Downtime Categories:
- Mechanical issues
- Material shortage
- Quality hold
- Maintenance
- Setup/changeover
- Training
- Meeting
- Break
- Lunch
- Waiting for work
- Tooling issues
- Power outage
- Other
- Total parts produced
- Scrap rates and trends
- Efficiency percentages
- Downtime analysis
- Part type specialization
- Historical performance tracking
- Real-time production monitoring
- Cross-operator comparisons
- Shift performance analysis
- Quality trend identification
- Resource utilization tracking
- Maximum operator number: 9999
- Downtime duration limit: 480 minutes (8 hours)
- Scrap count limit: 999,999 parts
- Login attempt limit: 5 attempts
- Account lockout duration: 15 minutes
The application can be customized by modifying the following in the source code:
- Scrap reason lists
- Part number configurations
- Validation limits
- Security parameters
- Password Hashing: SHA-256 encryption for all credentials
- Input Sanitization: Comprehensive validation against SQL injection
- Session Management: Secure login state handling
- Audit Trails: Complete logging of all system access
- Anonymized Data: Operator names are hashed for privacy
- Secure Storage: All sensitive data encrypted in database
- Access Control: Role-based permissions (Operator vs Administrator)
partstracker/
βββ pparts tracker.py # Main GUI application
βββ parts_tracker_cli.py # Command-line interface
βββ parts_tracker.db # SQLite database (created on first run)
βββ orders_data.json # Order configuration data
βββ README.md # This documentation
βββ LICENSE # License information
βββ test files/ # Testing and debugging scripts
βββ test_app.py
βββ test_functionality.py
βββ test_simple.py
βββ debug_test.py
- Fork the repository
- Create a 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 licensed under the MIT License - see the LICENSE file for details.
For technical support or questions:
- Create an issue in this repository
- Check the wiki for detailed documentation
- Review the source code comments for implementation details
- β Complete SMC (Sheet Moulding Compound) tracking system
- β Comprehensive downtime tracking and analytics
- β Enhanced security with brute force protection
- β Full CLI interface with feature parity
- β Updated terminology for manufacturing accuracy
- β Comprehensive analytics dashboard
- β Privacy-focused operator management
Built for modern manufacturing environments with a focus on quality, security, and comprehensive production tracking.