Coder Social home page Coder Social logo

htwdresden-rs's Introduction

๐Ÿ“š htwdresden

Travis Crates.io

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.

htwdresden-rs's People

Contributors

kiliankoe avatar

Watchers

 avatar  avatar  avatar

htwdresden-rs's Issues

Convert all stringly typed values to a more sensible representation

Currently pretty much everything is returned as a string. This lib should take care of converting those values that shouldn't be strings to more sensible values.

The best way to handle this would probably be to map to internal types beforehand and convert those to public types afterwards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.