README.rst 835 Bytes
Newer Older
jens.kleineheismann's avatar
jens.kleineheismann committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
ABOUT
=====
This package provide a python binding to the KIT Gruppenverwaltung REST API.


INSTALLATION
============
$ pip install -e .
or
$ python setup.py develop
or any other method, you use to install your python packages.


USAGE
=====
from kitgvapi import basicConfig, Oe, Group, User

basicConfig('myusername', 'mypassword')

iism = Oe('IISM')
for g in iism.get_groups():
        print g.name

staff = Group('IISM-EM-OU-Staff')
for u in staff.get_users(effective=True):
        print "%s %s (%s)" % (u.firstname, u.lastname, u.samaccount)
for g in staff.get_groups():
        print g.name

me = User('zy8373')
others = me.oe.get_users()


LICENCE
=======
Author: Jens Kleineheismann <kleineheismann@kit.edu>
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted.