Commit 68009c03 authored by jens.kleineheismann's avatar jens.kleineheismann

Proper formating of README.

parent a67effc1
...@@ -5,34 +5,40 @@ This package provide a python binding to the KIT Gruppenverwaltung REST API. ...@@ -5,34 +5,40 @@ This package provide a python binding to the KIT Gruppenverwaltung REST API.
INSTALLATION INSTALLATION
============ ============
$ pip install -e . ``$ python setup.py develop``
or or
$ python setup.py develop
``$ pip install -e .``
or any other method, you use to install your python packages. or any other method, you use to install your python packages.
USAGE USAGE
===== =====
from kitgvapi import basicConfig, Oe, Group, User ::
basicConfig('myusername', 'mypassword') from kitgvapi import basicConfig, Oe, Group, User
iism = Oe('IISM') basicConfig('myusername', 'mypassword')
for g in iism.get_groups():
print g.name
staff = Group('IISM-EM-OU-Staff') iism = Oe('IISM')
for u in staff.get_users(effective=True): for g in iism.get_groups():
print "%s %s (%s)" % (u.firstname, u.lastname, u.samaccount) print g.name
for g in staff.get_groups():
print g.name
me = User('zy8373') staff = Group('IISM-EM-OU-Staff')
others = me.oe.get_users() 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 LICENCE
======= =======
Author: Jens Kleineheismann <kleineheismann@kit.edu> Author: Jens Kleineheismann <kleineheismann@kit.edu>
Permission to use, copy, modify, and/or distribute this software Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted. for any purpose with or without fee is hereby granted.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment