KERI Demo API

keri.demo.demoing

KERI keri.app.directing module

simple direct mode demo support classes

class keri.demo.demoing.BobDirector(hab, client, **kwa)[source]

Direct Mode KERI Director (Contextor, Doer) with TCP Client and Kevery Generator logic is to iterate through initiation of events for demo

Inherited Attributes:

.hab is Habitat instance of local controller’s context .client is TCP client instance. Assumes operated by another doer.

Attributes:

Inherited Properties:
.tyme is float relative cycle time of associated Tymist .tyme obtained

via injected .tymth function wrapper closure.

.tymth is function wrapper closure returned by Tymist .tymeth() method.

When .tymth is called it returns associated Tymist .tyme. .tymth provides injected dependency on Tymist tyme base.

.tock is desired time in seconds between runs or until next run,

non negative, zero means run asap

Properties:

Inherited Methods:

.__call__ makes instance callable return generator .do is generator function returns generator

Methods:

Hidden:
._tymth is injected function wrapper closure returned by .tymen() of

associated Tymist instance that returns Tymist .tyme. when called.

._tock is hidden attribute for .tock property

do(tymth=None, tock=0.0, **opts)[source]

Generator method to run this doer Calling this method returns generator

class keri.demo.demoing.CamDirector(remotePre, hab, client, **kwa)[source]

Direct Mode KERI Director (Contextor, Doer) with TCP Client and Kevery Generator logic is to iterate through initiation of events for demo

Inherited Attributes:

.hab is Habitat instance of local controller’s context .client is TCP client instance. Assumes operated by another doer.

Attributes:

Inherited Properties:
.tyme is float relative cycle time of associated Tymist .tyme obtained

via injected .tymth function wrapper closure.

.tymth is function wrapper closure returned by Tymist .tymeth() method.

When .tymth is called it returns associated Tymist .tyme. .tymth provides injected dependency on Tymist tyme base.

.tock is desired time in seconds between runs or until next run,

non negative, zero means run asap

Properties:

Inherited Methods:

.__call__ makes instance callable return generator .do is generator function returns generator

Methods:

Hidden:
._tymth is injected function wrapper closure returned by .tymen() of

associated Tymist instance that returns Tymist .tyme. when called.

._tock is hidden attribute for .tock property

do(tymth=None, tock=0.0, **opts)[source]

Generator method to run this doer Calling this method returns generator

class keri.demo.demoing.EveDirector(hab, client, **kwa)[source]

Direct Mode KERI Director (Contextor, Doer) with TCP Client and Kevery Generator logic is to iterate through initiation of events for demo

Inherited Attributes:

.hab is Habitat instance of local controller’s context .client is TCP client instance. Assumes operated by another doer.

Attributes:

Inherited Properties:
.tyme is float relative cycle time of associated Tymist .tyme obtained

via injected .tymth function wrapper closure.

.tymth is function wrapper closure returned by Tymist .tymeth() method.

When .tymth is called it returns associated Tymist .tyme. .tymth provides injected dependency on Tymist tyme base.

.tock is desired time in seconds between runs or until next run,

non negative, zero means run asap

Properties:

Inherited Methods:

.__call__ makes instance callable return generator .do is generator function returns generator

Methods:

Hidden:
._tymth is injected function wrapper closure returned by .tymen() of

associated Tymist instance that returns Tymist .tyme. when called.

._tock is hidden attribute for .tock property

do(tymth=None, tock=0.0, **opts)[source]

Generator method to run this doer Calling this method returns generator

class keri.demo.demoing.SamDirector(hab, client, **kwa)[source]

Direct Mode KERI Director (Contextor, Doer) with TCP Client and Kevery Generator logic is to iterate through initiation of events for demo

Inherited Attributes:

.hab is Habitat instance of local controller’s context .client is TCP client instance. Assumes operated by another doer.

Attributes:

Inherited Properties:
.tyme is float relative cycle time of associated Tymist .tyme obtained

via injected .tymth function wrapper closure.

.tymth is function wrapper closure returned by Tymist .tymeth() method.

When .tymth is called it returns associated Tymist .tyme. .tymth provides injected dependency on Tymist tyme base.

.tock is desired time in seconds between runs or until next run,

non negative, zero means run asap

Properties:

Inherited Methods:

.__call__ makes instance callable return generator .do is generator function returns generator

Methods:

Hidden:
._tymth is injected function wrapper closure returned by .tymen() of

associated Tymist instance that returns Tymist .tyme. when called.

._tock is hidden attribute for .tock property

do(tymth=None, tock=0.0, **opts)[source]

Generator method to run this doer Calling this method returns generator

keri.demo.demoing.setupDemoController(secrecies, name='who', remotePort=5621, localPort=5620, indirect=False, remotePre='')[source]

Setup and return doers list to run controller