Git Product home page Git Product logo

osirisapiserver's Introduction

OsirisApiServer

Description

This repo contains the source code for the unofficial API of Osiris at TU/e. It has two parts: OsirisAPI.py conaining the OsirisAPI. This handles all interaction with Osiris itself located on https://osiris.tue.nl/. The other part is OsirisApiServer.py which is a simple wrapper written using the Flask framework.

The Flask app is an example on how to use the API. It utilizes caching and the OsirisAPI class to provide a full fledged REST API experience. Please note that the API is read only and unauthenticated.

Usage

To host the API install python as well as the dependencies listed in requirements.txt with pip. Read the flask documentation on deploying Flask apps to production. The Flask cache uses a redis instance, this is the only extra dependency besides python. For a local instance of the api it is enough to run python OsirisApiServer.py while also having a redis server up on localhost.

Endpoints

The API endpoints are documented on the index html page. This will render to: image of endpoints

Real world uses

The Osiris API is used in the Master Marketplace of the TU/e to grab reliable course data. It can be accessed at https://osiristue.nl/osiris/ or https://master.ele.tue.nl/osiris/, both point to the same hosted instance. The marketplace system is build in the Django framework but uses the same OsirisAPI class as in this repo.

The interface on https://osiristue.nl/ also uses this API. In the background it connects to the API hosted on the Master Marketplace. This system is also open sources, see other repos of Kolibri Solutions.

Technical details

The API uses the public catalog of Osiris and manipulates the GET arguments in the link to query information from it. It then parses the results with beautiful soup and compiles the information into a json object. It then caches the results.

Acknowledgments

This API was developed for usage with the Master Marketplace, created for the ELE department of the TU/e. Development and support done by Kolibri Solutions. For questions or inquiries contact [email protected].

All rights reserved. All product names, logos, and brands are property of their respective owners. Use of these names, logos, and brands does not imply endorsement.

osirisapiserver's People

Contributors

fboerman avatar

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.