This is a simple Student Management System built using FastAPI. It supports basic CRUD operations such as adding, updating, viewing, and deleting student information. This system can be useful in educational institutes for managing student records.
Live site: : @Student-Management-System
- Add a new student 📥
- View all students 👀
- View a specific student by ID 🔍
- Update student information (partial updates) ✏️
- Delete a student 🗑️
- Python 3.7+
- FastAPI
- Uvicorn
Follow these steps to run the project locally.
git clone https://github.com/naimur-naiyimu/Student-Management-System-using-FastAPI.git
cd student-management-system
For Windows:
python -m venv venv
venv\Scripts\activate
For Linux/macOS:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload
- API documentation: http://127.0.0.1:8000/docs
- Interactive API: http://127.0.0.1:8000/redoc
Method | Endpoint | Description |
---|---|---|
POST | /students/ | Add a new student |
GET | /students/ | Retrieve all students |
GET | /students/{student_id} | Retrieve a specific student by ID |
PATCH | /students/{student_id} | Partially update student information |
DELETE | /students/{student_id} | Delete a student |
Request:
POST /students/
Request Body:
{
"name": "John Doe",
"age": 20,
"gender": "Male",
"Class": "10th Grade",
"address": "123 Elm Street",
"contact_info": "123-456-7890"
}
Request:
GET /students/
Request:
PATCH /students/1
Request Body (partial update):
{
"address": "456 Oak Avenue"
}
This project is licensed under the MIT License. See the LICENSE file for more details.
Feel free to fork this repository and contribute by submitting a pull request. For major changes, please open an issue first to discuss what you would like to change.
For any inquiries or issues, feel free to reach out at:
- Email: naimur.naiyimu@gmail.com
- GitHub: @naimur-naiyimu