Clase¶
En esta sección se muestra la funcionalidad de los métodos de la clase que se va a implementar.
-
notas.clase.
delete_student
(student_id)[source]¶ Removes a student
Parameters: student_id (str) – The github username of the student. Returns: All students without the deleted one Return type: (dict)
-
notas.clase.
get_student
(student_id)[source]¶ Returns a student by its given id
Parameters: student_id (str) – The github username of the student Returns: Student data Return type: (dict)
-
notas.clase.
get_students
()[source]¶ Returns all the stored students
Returns: Dict of students Return type: (list)
-
notas.clase.
insert_student
(student)[source]¶ Inserts a new student
Parameters: student (dict) – Student data. Returns: All students with the new one inserted. Return type: (dict)
-
notas.clase.
update_student
(student_id, field, value)[source]¶ Returns a student by its given id
Parameters: - student_id (str) – The github username of the student.
- field (str) – The field to update.
- value (str) – The new value for the field.
Returns: All students with the selected one updated.
Return type: (dict)