Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiliankoe/htwdresden-rs
📚 rust lib for data @ HTW Dresden university
https://github.com/kiliankoe/htwdresden-rs
dresden htw-dresden university
Last synced: 24 days ago
JSON representation
📚 rust lib for data @ HTW Dresden university
- Host: GitHub
- URL: https://github.com/kiliankoe/htwdresden-rs
- Owner: kiliankoe
- License: mit
- Created: 2017-01-16T20:37:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T15:02:06.000Z (over 7 years ago)
- Last Synced: 2024-10-13T06:54:22.328Z (about 1 month ago)
- Topics: dresden, htw-dresden, university
- Language: Rust
- Homepage: https://docs.rs/htwdresden/
- Size: 4.58 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 📚 htwdresden
[![Travis](https://img.shields.io/travis/kiliankoe/htwdresden-rs.svg?style=flat-square)](https://travis-ci.org/kiliankoe/htwdresden-rs)
[![Crates.io](https://img.shields.io/crates/v/htwdresden.svg?style=flat-square)](https://crates.io/crates/htwdresden)Rust library for accessing organisational data from the [University of Applied Sciences Dresden](https://www.htw-dresden.de/).
Add the following to your dependencies in your `Cargo.toml`.
```toml
htwdresden = "0.3"
```## Examples
### Exams
```rust
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
```rust
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
```rust
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
```rust
use htwdresden::{Week, Weekday, Room, Building};let rooms = Room::get_free(Week::Even, Weekday::Monday, "9:30", "10:30", Building::Z);
```### Semester Plan
```rust
use htwdresden::SemesterPlan;let semesters = SemesterPlan::get();
```## Contributors
Kilian Koeltzsch, [@kiliankoe](https://github.com/kiliankoe)
## License
htwdresden is available under the MIT license. See the LICENSE file for more info.