Skip to main content

Interact with ULB in python

Project description

libulb

Python lib for ULB (ulb.ac.be)

libulb is Python3 only.

Install

pip install libulb

Example

# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals

from libulb.smileye_app import api
from datetime import datetime

c = api.Client.auth('adelcha', 'pAssW0r!')

info = c.info()
print(info['name']) # Alain

inscriptions = c.inscriptions()
notes_first_year = c.notes(inscriptions[0])

c.note_detail(c.notes(c.inscriptions()[-1])[-1]) # Details of the last course of your last year

c.gehol(datetime(2015, 5, 5, 0, 0, 0), datetime(2015, 5, 6, 0, 0, 0)) # All of your courses of the day

Dev

git clone then pip install -e . and pip install -r requirements-dev.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libulb-0.1.3.tar.gz (21.8 kB view hashes)

Uploaded Source

Built Distribution

libulb-0.1.3-py3-none-any.whl (22.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page