README.rst 851 Bytes
Newer Older
jens.kleineheismann's avatar
jens.kleineheismann committed
1
2
3
4
5
6
7
ABOUT
=====
This package provide a python binding to the KIT Gruppenverwaltung REST API.


INSTALLATION
============
8
9
``$ python setup.py develop``

jens.kleineheismann's avatar
jens.kleineheismann committed
10
or
11
12
13

``$ pip install -e .``

jens.kleineheismann's avatar
jens.kleineheismann committed
14
15
16
17
18
or any other method, you use to install your python packages.


USAGE
=====
19
::
jens.kleineheismann's avatar
jens.kleineheismann committed
20

21
 from kitgvapi import basicConfig, Oe, Group, User
jens.kleineheismann's avatar
jens.kleineheismann committed
22

23
 basicConfig('myusername', 'mypassword')
jens.kleineheismann's avatar
jens.kleineheismann committed
24

25
26
27
 iism = Oe('IISM')
 for g in iism.get_groups():
     print g.name
jens.kleineheismann's avatar
jens.kleineheismann committed
28

29
30
31
32
33
34
35
36
 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()
jens.kleineheismann's avatar
jens.kleineheismann committed
37
38
39
40
41


LICENCE
=======
Author: Jens Kleineheismann <kleineheismann@kit.edu>
42

jens.kleineheismann's avatar
jens.kleineheismann committed
43
44
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted.