
The StudyVatika Employee Management System is a comprehensive Python-based application for managing employee records. This improved version uses SQLite database for better portability and includes enhanced features.
Arbind Singh
Innovative educator and tech enthusiast dedicated to empowering students through robotics, programming, and digital tools.
Share on social media:
Step-by-step guide and implementation details
The StudyVatika Employee Management System is a comprehensive Python-based application for managing employee records. This improved version uses SQLite database for better portability and includes enhanced features.
Author: Arbind Singh
Email: admin@studyvatika.com
Organization: StudyVatika
Version: 2.0 (SQLite Edition)
python --versionOpen your command prompt/terminal and check if Python is installed:
python --version
If Python is not installed, download it from: https://www.python.org/downloads/
Download all the following files to a single folder:
studyvatika_ems.py (Main application file)database_manager.py (Database management module)instruction.md (This instruction file)This application uses only Python standard library modules:
sqlite3 (built-in with Python)os (built-in with Python)sys (built-in with Python)typing (built-in with Python 3.5+)No pip installations required!
Your project folder should contain:
StudyVatika_EMS/
├── studyvatika_ems.py
├── database_manager.py
├── instruction.md
└── studyvatika_employees.db (created automatically on first run)
cd path/to/StudyVatika_EMS
python studyvatika_ems.py
python -m studyvatika_ems
On the first run, the application will:
studyvatika_employees.db)When adding a new employee, provide:
The system automatically calculates:
The system validates:
studyvatika_employees.db (in application folder)CREATE TABLE emp (
empno INTEGER PRIMARY KEY,
name TEXT NOT NULL,
dept TEXT NOT NULL,
salary INTEGER NOT NULL,
created_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
The system can be populated with sample data using the included populate_sample_data.py script:
python populate_sample_data.py
Solution:
Solution:
database_manager.py is in the same folder as studyvatika_ems.pySolution:
Solution:
Solution:
| Error Message | Cause | Solution |
|---|---|---|
| "Employee ID must be positive" | Invalid ID entered | Enter a positive integer |
| "Employee already exists" | Duplicate ID | Use a different employee ID |
| "Database connection failed" | File permission issue | Check folder permissions |
| "Invalid choice" | Wrong menu selection | Enter numbers 0-7 only |
To backup your employee data:
studyvatika_employees.db to a safe locationTo restore from backup:
studyvatika_employees.db with your backup fileYou can query the database directly using SQLite tools:
sqlite3 studyvatika_employees.db
Common queries:
-- View all employees
SELECT * FROM emp;
-- Count employees by department
SELECT dept, COUNT(*) FROM emp GROUP BY dept;
-- Find highest paid employee
SELECT * FROM emp ORDER BY salary DESC LIMIT 1;
For technical support or questions:
Author: Arbind Singh
Email: admin@studyvatika.com
Organization: StudyVatika
When reporting issues, please include:
Copyright (c) 2024 StudyVatika - Arbind Singh
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
When using, modifying, or distributing this software, please provide proper attribution:
You are free to:
When redistributing or modifying, include attribution such as:
In documentation:
Based on StudyVatika Employee Management System
Original Author: Arbind Singh (admin@studyvatika.com)
Organization: StudyVatika
In source code:
# Based on StudyVatika Employee Management System
# Original Author: Arbind Singh <admin@studyvatika.com>
# Organization: StudyVatika
# Licensed under MIT License
Thank you for using StudyVatika Employee Management System!
This project is open source and free to use under the MIT License.
Share your thoughts and ask questions about this project
Be the first to share your thoughts about this project!