Python keyserver - backmeup/backmeup-prototype GitHub Wiki

To access the keyserver, you might want to use the classes found in python-tests/keyserver to directly invoke REST calls. An example can be found in DeleteUsers.py

from REST import Comm
com = Comm()
com.request("DELETE", "/users/1"); #delete user with id 1

Resetting the keyserver database from python

cd python-tests/keyserver
# make sure RESTConfig.py contains the correct SERVER address (e.g. 127.0.0.1)
python -m unittest DeleteUsers

This deletes all users with id 0 to 499