Martin Willi
90c5b48c96
vici: Catch Python GeneratorExit to properly cancel streamed event iteration
2015-03-18 13:59:14 +01:00
Martin Willi
a47e431ba9
vici: Return a Python generator instead of a list for streamed responses
...
In addition that it may reduce memory usage and improve performance for large
responses, it returns immediate results. This is important for longer lasting
commands, such as initiate/terminate, where immediate log feedback is preferable
when interactively calling such commands.
2015-03-18 13:59:14 +01:00
Martin Willi
90e16837ba
vici: Raise a Python CommandException instead of returning a CommandResult
2015-03-18 13:59:14 +01:00
Martin Willi
305023a27d
vici: Use OrderedDict to handle vici responses in Python library
...
The default Python dictionaries are unordered, but order is important for some
vici trees (for example the order of authentication rounds).
2015-03-18 13:59:14 +01:00
Martin Willi
61fb10c8cf
vici: Support non-Unix sockets for vici connections using Python
2015-03-18 13:59:14 +01:00
Martin Willi
358793389a
vici: Add python egg setuptools building and installation using easy_install
...
An uninstall target is currently not supported, as there is no trivial way with
either plain setuptools or with easy_install. pip would probably be the best
choice, but we currently don't depend on it.
2015-03-18 13:59:14 +01:00
Martin Willi
1e2ec9f96a
vici: Generate a version specific setup.py for setuptools installation
2015-03-18 13:59:14 +01:00
Martin Willi
2c8c52c4e2
vici: Include python package in distribution
2015-03-18 13:59:14 +01:00
Björn Schuberg
163e15a571
vici: Add python package MIT license
2015-03-18 13:59:13 +01:00
Björn Schuberg
b269c1a89a
vici: Expose Session as a top-level symbol in python package
2015-03-18 13:59:13 +01:00
Björn Schuberg
6a31a0f60c
vici: Introduce main API Session class in python package
2015-03-18 13:59:13 +01:00
Björn Schuberg
8c089cddef
vici: Add a python vici command execution handler
2015-03-18 13:59:13 +01:00
Björn Schuberg
b26e142863
vici: Add vici python protocol handler
2015-03-18 13:59:13 +01:00