{"id":24779297,"url":"https://github.com/codernotme/studentmanagementsystem","last_synced_at":"2025-07-06T20:38:29.961Z","repository":{"id":256442140,"uuid":"855319144","full_name":"codernotme/studentmanagementsystem","owner":"codernotme","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-10T17:17:16.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T03:32:04.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codernotme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T17:14:00.000Z","updated_at":"2024-09-10T17:17:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"46e7d9c6-ed3c-471c-a5fb-9bfce296defb","html_url":"https://github.com/codernotme/studentmanagementsystem","commit_stats":null,"previous_names":["codernotme/studentmanagementsystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codernotme/studentmanagementsystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernotme%2Fstudentmanagementsystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernotme%2Fstudentmanagementsystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernotme%2Fstudentmanagementsystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernotme%2Fstudentmanagementsystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codernotme","download_url":"https://codeload.github.com/codernotme/studentmanagementsystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernotme%2Fstudentmanagementsystem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263969389,"owners_count":23537425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-29T09:37:47.411Z","updated_at":"2025-07-06T20:38:29.916Z","avatar_url":"https://github.com/codernotme.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Student Management System\n\n## Overview\n\nThe Student Management System is a desktop application developed using Python's `tkinter` for the graphical user interface and `pymysql` for database interactions. This system allows users to add, view, search, update, and delete student records. It interfaces with a MySQL database to manage student data efficiently.\n\n## Features\n\n- **Add New Student**: Form to input student details and save them to the database.\n- **View Students**: Display a list of all students in a scrollable table format.\n- **Search Student**: Search for a student by roll number and display their details.\n- **Update Student**: Update the details of a student by roll number.\n- **Delete Student**: Remove a student record from the database by roll number.\n\n## Installation\n\n### Prerequisites\n\n- Python 3.x\n- MySQL Server\n- `pymysql` package (for MySQL database interaction)\n- `tkinter` package (for the GUI, included with Python standard library)\n\n### Setup\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/codernotme/studentmanagementsystem.git\n   cd studentmanagementsystem\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   pip install pymysql\n   ```\n\n3. **Set up the database:**\n\n   Run the following SQL commands in your MySQL server to create the database and table:\n\n   ```sql\n   CREATE DATABASE IF NOT EXISTS student_db;\n   USE student_db;\n   CREATE TABLE IF NOT EXISTS students (\n       id INT AUTO_INCREMENT PRIMARY KEY,\n       name VARCHAR(100) NOT NULL,\n       father VARCHAR(100) NOT NULL,\n       class VARCHAR(20) NOT NULL,\n       roll_no VARCHAR(20) UNIQUE NOT NULL,\n       sex ENUM('M', 'F', 'T') NOT NULL,\n       phone VARCHAR(15) NOT NULL\n   );\n   ```\n\n4. **Configure Database Connection:**\n\n   Update the `get_db_connection()` function in the `StudentManagementApp` class with your MySQL server credentials:\n\n   ```python\n   def get_db_connection():\n       return pymysql.connect(\n           host='localhost',\n           user='root',\n           password='yourpassword',  # Replace with your MySQL password\n           database='student_db'\n       )\n   ```\n\n## Usage\n\n1. **Run the application:**\n   ```bash\n   python app.py\n   ```\n\n2. **Application Interface:**\n   - **Add New Student**: Opens a form to input student details.\n   - **View Students**: Shows all student records in a scrollable table.\n   - **Search Student**: Allows searching by roll number.\n   - **Update Student**: Allows updating student details by roll number.\n   - **Delete Student**: Allows deletion of student records by roll number.\n\n## Code Structure\n\n- `app.py`: Main application file containing the GUI and database logic.\n- `database.sql`: SQL script to set up the database and table.\n\n## Contributing\n\nFeel free to fork the repository and submit pull requests. For bug reports and feature requests, please open an issue on the GitHub repository page.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---------\n\nJust replace placeholders like `yourusername` and `yourpassword` with your actual values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodernotme%2Fstudentmanagementsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodernotme%2Fstudentmanagementsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodernotme%2Fstudentmanagementsystem/lists"}