Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Python keyserver

fschoeppl edited this page Aug 28, 2012 · 3 revisions

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

Clone this wiki locally