clearer package

tapestry.clearer

Here’s a bit of intro to the Clearer app.

Submodules

clearer.apps module

class clearer.apps.ClearerConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

name = 'clearer'
ready()[source]

Override this method in subclasses to run code when Django starts.

verbose_name = 'Clearer'

clearer.handlers module

clearer.handlers.packet_received(sender, **kwargs)[source]

clearer.services module

Implementation of a payments router. Takes payment packets as input on ingress ports (interfaces), makes routing decisions and sents packets out on egress ports.

exception clearer.services.RoutingError[source]

Bases: Exception

class clearer.services.RoutingService[source]

Bases: object

Provides a payments routing facility. Takes in a payment packet and make a routing (forwarding) decision on where to send the packet.

authorise(payment)[source]

Authorise a single payment packet via the settlement module.

format_payment(payment)[source]

Helper to show payment packet as something more readable.

route(payment)[source]

Route a single packet by finding its destination interface (BIC).

clearer.signals module