RPC Services for Pyramid
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.
Metadata
Release files for pyramid_rpc 0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyramid_rpc-0.8.tar.gz | 30.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyramid_rpc-0.8-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 55.0 kB
Release files / pyramid_rpc-0.8.tar.gz
| Download URL | pyramid_rpc-0.8.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dcd59a52d28ed5594df897ddbd473f68e599d48d4c86546e688db9752fa1f3a
|
|
BLAKE2b-256 checksum How to use checksums |
2d6acd63ce9e4ee09b59061f889a6b4fe5981fe1e64e536127d3ad3abe9cc829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyramid_rpc-0.8-py2.py3-none-any.whl
| Download URL | pyramid_rpc-0.8-py2.py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0ad0368404d4f5c7afd31e801b48efed6866bdbeb0f5d14413d2a0bb17f00bd6
|
|
BLAKE2b-256 checksum How to use checksums |
034f5edd9469b2ce8172167018e1beea775ad57f4e9a4d83a9e79afc4f3085fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid_rpc 0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.