projects
/
pkgs
/
e
/
elektra.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Git init
[pkgs/e/elektra.git]
/
src
/
bindings
/
python
/
examples
/
elektra
/
hello.py
1
#!/usr/bin/python
2
3
# try:
4
# > kdb set user/hello "Hello World!"
5
# > python hello.py
6
7
import elektra
8
import sys
9
10
#ks=elektra.KeySet()
11
12
kdb=elektra.Kdb()
13
kdb.open()
14
ks=kdb.getChildKeys("user",norecursive=True)
15
16
key=ks.lookupByName("/hello",0)
17
print key.getString()
18
19
ks.del_()
20
kdb.close()