#!/usr/bin/env python3
from pyln.client import Plugin

plugin = Plugin()


@plugin.init()
def init(options, configuration, plugin, **kwargs):
    plugin.log("testplug initialized")


@plugin.method("testmethod")
def testmethod(plugin):
    return ("I live.")


plugin.run()

066afd97a7b0148d6b686cea197fd64eda20d0b4
<mask token>


@plugin.init()
def init(options, configuration, plugin, **kwargs):
    plugin.log('testplug initialized')


@plugin.method('testmethod')
def testmethod(plugin):
    return 'I live.'


<mask token>

<mask token>


@plugin.init()
def init(options, configuration, plugin, **kwargs):
    plugin.log('testplug initialized')


@plugin.method('testmethod')
def testmethod(plugin):
    return 'I live.'


plugin.run()

<mask token>
plugin = Plugin()


@plugin.init()
def init(options, configuration, plugin, **kwargs):
    plugin.log('testplug initialized')


@plugin.method('testmethod')
def testmethod(plugin):
    return 'I live.'


plugin.run()

from pyln.client import Plugin
plugin = Plugin()


@plugin.init()
def init(options, configuration, plugin, **kwargs):
    plugin.log('testplug initialized')


@plugin.method('testmethod')
def testmethod(plugin):
    return 'I live.'


plugin.run()

#!/usr/bin/env python3
from pyln.client import Plugin

plugin = Plugin()


@plugin.init()
def init(options, configuration, plugin, **kwargs):
    plugin.log("testplug initialized")


@plugin.method("testmethod")
def testmethod(plugin):
    return ("I live.")


plugin.run()
