bertlet

BERT-RPC using Eventlet
Download

bertlet Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Jared Kuolt
  • Publisher web site:
  • http://autumn-orm.org

bertlet Tags


bertlet Description

BERT-RPC using Eventlet Bertlet is a Python library of the BERT-RPC protocol written in Eventlet to make concurrency trivial.Warning: Bertlet is in early stages of development. It does not yet cover the entire BERT-RPC protocol.Usage:Bertlet is intended to be incredibly easy to use. BERT-RPC uses modules and functions to expose functionality; Bertlet uses Python modules and functions in the same manner. Creating a service with Bertlet is a two-step process: create your modules and functions, then expose them with a Server object.Example module foo.py:def bar(): return "Hello, world!"Example server runner:#!/usr/bin/env pythonfrom bertlet import serveimport fooserve(foo, certfile="mycert.crt", keyfile="mycert.key")It's that simple. Your BERT-RPC service is now running on 2133 with the foo module exposing the bar function. Note: this example also shows how SSL is used.


bertlet Related Software