Welcome to the python-keyctl wiki!
Get all keys:
from keyctl import Key keylist = Key.list() for mykey in keylist: print mykey.id
Read existing key:
from keyctl import Key mykey = Key(123) print mykey.name print mykey.data print mykey.data_hex
Find key by name:
from keyctl import Key mykey = Key.search('test key') print mykey.id
Add key:
from keyctl import Key mykey = Key.add('test key', 'test content') print mykey.id
Delete key:
from keyctl import Key mykey = Key(123) mykey.delete()
Update key:
from keyctl import Key mykey = Key(123) mykey.update('new content')
To open the GUI, run the installed command.
$ keyctlgui