7 releases
Uses old Rust 2015
0.3.4 | Jan 29, 2017 |
---|---|
0.3.3 | Jan 29, 2017 |
0.2.0 | Jan 21, 2017 |
0.1.1 | Jan 20, 2017 |
#19 in #university
29 downloads per month
16KB
337 lines
📚 htwdresden
Rust library for accessing organisational data from the University of Applied Sciences Dresden.
Add the following to your dependencies in your Cargo.toml
.
htwdresden = "0.3"
Examples
Exams
use htwdresden::{Studygroup, Degree, Exam};
let group = Studygroup {
year: 2016,
course: 121,
group: 61,
degree: Degree::Bachelor,
};
let exams = Exam::for_studygroup(&group);
let exams = Exam::for_prof("prof identifier");
Grades
use htwdresden::{Login, Course, Grade};
let login = Login::new("s#####", "password");
if let Ok(courses) = Course::get(&login) {
let grades = Grade::get(&login, &courses[0]);
}
Lessons
use htwdresden::{Degree, Studygroup, Lesson};
let group = Studygroup {
year: 2016,
course: 121,
group: 61,
degree: Degree::Bachelor,
};
let lessons = Lesson::for_studygroup(&group);
let lessons = Lesson::for_prof("prof identifier");
let lessons = Lesson::for_room("Z 254");
Room Search
use htwdresden::{Week, Weekday, Room, Building};
let rooms = Room::get_free(Week::Even, Weekday::Monday, "9:30", "10:30", Building::Z);
Semester Plan
use htwdresden::SemesterPlan;
let semesters = SemesterPlan::get();
Contributors
Kilian Koeltzsch, @kiliankoe
License
htwdresden is available under the MIT license. See the LICENSE file for more info.
Dependencies
~7–14MB
~213K SLoC