Stay organized with collections Save and categorize content based on your preferences.
This module contains classes that publish a Google Protocol RPC service as a WSGI application.
The protorpc.wsgi.service
package provides the following functions:
Creates a WSGI application that handles a single Google Protocol RPC service mapping.
ArgumentsReturns a WSGI application that handles a single Google Protocol RPC service mapping.
Creates a WSGI application with multiple service mappings with an optional registry service. For example:
from protorpc import remote from protorpc.wsgi import service package = 'my_package' class MyService(remote.Service): ... class MyOtherService(remote.Service): ... app = service.service_mappings( [('/my_path', MyService), # Maps to /my_path ('/my_other_path', MyOtherService), # Maps to /my_other_path ])
Services are mapped to URL paths by specifying a tuple (path, service), where path is the path where the service resides, and service is the service class or service factory for creating new instances of the service. For more information about service factories, please see remote.Service.new_factory. Arguments
path
is the path where the service resides, and service
is the service class or service factory for creating new instances of the service. For more information about service factories, please see remote.Service.new_factory.
Returns a WSGI application with multiple service mappings with an optional registry service.
Raises a ServiceConfigurationError
when duplicate paths are provided.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This module provides tools to publish Google Protocol RPC services as WSGI applications."],["The `service_mapping` function creates a WSGI application for a single RPC service, using a service factory or class to instantiate the service."],["The `service_mappings` function enables the creation of a WSGI application that hosts multiple services, each mapped to a specific URL path."],["Both functions allow the use of service factories for the creation of service instances."],["The `service_mappings` function can include an optional registry service and will raise a `ServiceConfigurationError` if duplicate paths are given."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4