Last active
December 23, 2015 12:19
-
-
Save jirihnidek/6634729 to your computer and use it in GitHub Desktop.
Example of using vrsent module as python cli to verse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vrsent as v | |
s = v.VerseSession(hostname='localhost', service='12344', \ | |
callback_thread=True, username='your_name', password='your_pass') | |
for n in s.nodes.values(): | |
print(n) | |
n = v.VerseNode(s, custom_type=10) | |
print(n) | |
tg = v.VerseTagGroup(n, custom_type=100) | |
print(tg) | |
tg = v.VerseTag(tg=tg, value=(1.0,), custom_type=1000) | |
print(tag) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment