Safaricom Transport

class vumi.transports.safaricom.safaricom.SafaricomTransport(options, config=None)

Bases: vumi.transports.httprpc.httprpc.HttpRpcTransport

HTTP transport for USSD with Safaricom in Kenya.

  • web_path (str) – The HTTP path to listen on.
  • web_port (int) – The HTTP port
  • transport_name (str) – The name this transport instance will use to create its queues
  • redis (dict) – The configuration parameters for connecting to Redis.
  • ussd_session_timeout (int) – The number of seconds after which a timeout is forced on a transport level.