from pyolite import Pyolite

# initial olite object
admin_repository = 'gitolite-admin/'
olite = Pyolite(admin_repository=admin_repository)

bob = olite.users.create(name='bob', key='my-awesome-key')
alice = olite.users.create(name='alice', key_path='~/.ssh/id_rsa.pub')

@@ -134,19 +134,41 @@
 itory)%0A%0A
-bob
+# create user object%0Avlad
  = olite
@@ -191,41 +191,143 @@
 me='
-bob
+vlad
 ', key
-='my-awesome-key')%0Aalice
+_path='/home/wok/.ssh/id_rsa.pub')%0A%0A# get user by name%0Avlad = olite.users.get(name='vlad')%0A%0A# get_or_create django style%0Avlad
  = o
@@ -329,32 +329,39 @@
 d = olite.users.
+get_or_
 create(name='ali
@@ -361,42 +361,64 @@
 me='
-alice', key_path='~/.ssh/id_rsa.pub')
+vlad')%0A%0A# check if user is admin or not%0Aprint vlad.is_admin
 %0A

Introduce a complete user operations example