diff options
Diffstat (limited to 'python/simple.py')
-rwxr-xr-x | python/simple.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/simple.py b/python/simple.py new file mode 100755 index 00000000..a74cecdf --- /dev/null +++ b/python/simple.py @@ -0,0 +1,12 @@ +#!/usr/bin/python +""" +A very simple example of the Flexiprovider. Exports three properties +initially. +""" + +from ContextKit.flexiprovider import * + +Flexiprovider([INT('location.altitude'), + STRING('my.name', 'flexi'), + TRUTH('is.out.there')], + 'ctx.flexi.provider', 'session').interactive() |