Christian Decker
4f16044404
fixup! pylightning: Added a tiny library for python plugins
2018-12-30 14:36:02 +01:00
Christian Decker
5338d3115f
pylightning: Add notification subscription handlers
...
Just like we added the RPC methods, the notification handlers can also
be registered using a function decorator, and we auto-subscribe when
asked for a manifest.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-12-30 14:36:02 +01:00
Christian Decker
42d8e07d70
pylightning: Merge option_values into options
...
Suggested-by: Rusty Russell <@rustyrussell>
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-12-15 15:04:32 +01:00
Christian Decker
1eb23d6b29
pylightning: Split log messages on newlines
...
This is just cosmetic, and makes things like tracebacks much easier to
read.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-12-15 15:04:32 +01:00
Christian Decker
643480cfd8
pylightning: Migrate the test plugin to use the new wrapper
...
Should be a lot easier to see what happens :-)
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-12-15 15:04:32 +01:00
Christian Decker
d88228280e
pylightning: Add option handling to the plugin library
...
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-12-15 15:04:32 +01:00
Christian Decker
ada69e7943
pylightning: Added a tiny library for python plugins
...
It's flask inspired with the Plugin instance and decorators to add
methods to the plugin description.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-12-15 15:04:32 +01:00