Skip to main content

RPC support for the Pyramid web framework

Project description

https://travis-ci.org/Pylons/pyramid_rpc.png?branch=master Latest Documentation Status

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyramid_rpc-0.8.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

pyramid_rpc-0.8-py2.py3-none-any.whl (24.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyramid_rpc-0.8.tar.gz.

File metadata

  • Download URL: pyramid_rpc-0.8.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyramid_rpc-0.8.tar.gz
Algorithm Hash digest
SHA256 5dcd59a52d28ed5594df897ddbd473f68e599d48d4c86546e688db9752fa1f3a
MD5 bfce8a2b95c2439ae56d7ce5b178d1ce
BLAKE2b-256 2d6acd63ce9e4ee09b59061f889a6b4fe5981fe1e64e536127d3ad3abe9cc829

See more details on using hashes here.

File details

Details for the file pyramid_rpc-0.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_rpc-0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0ad0368404d4f5c7afd31e801b48efed6866bdbeb0f5d14413d2a0bb17f00bd6
MD5 2f1631f0bac3bef0d8de08b61ac20c2b
BLAKE2b-256 034f5edd9469b2ce8172167018e1beea775ad57f4e9a4d83a9e79afc4f3085fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page