skip to navigation
skip to content

pyramid_rpc 0.8

RPC support for the Pyramid web framework

pyramid_rpc is a package of RPC related add-on’s to make it easier to create RPC services.

from pyramid.config import Configurator
from pyramid_rpc.jsonrpc import jsonrpc_method

@jsonrpc_method(endpoint='api')
def say_hello(request, name):
    return 'hello, %s!' % name

def main(global_conf, **settings):
    config = Configurator(settings=settings)
    config.include('pyramid_rpc.jsonrpc')
    config.add_jsonrpc_endpoint('api', '/api')
    config.scan(__name__)
    return config.make_wsgi_app()

if __name__ == '__main__':
    from wsgiref.simple_server import make_server
    app = main({})
    server = make_server('', 8080, app)
    server.serve_forever()

Support and Documentation

See the pyramid_rpc website to view documentation, report bugs, and obtain support.

License

pyramid_rpc is offered under the BSD-derived Repoze Public License.

Authors

pyramid_rpc is made available by Agendaless Consulting and a team of contributors.

 
File Type Py Version Uploaded on Size
pyramid_rpc-0.8-py2.py3-none-any.whl (md5, pgp) Python Wheel py2.py3 2016-11-01 23KB
pyramid_rpc-0.8.tar.gz (md5, pgp) Source 2016-11-01 30KB