grpc_framework package

Submodules

grpc_framework.apps module

class grpc_framework.apps.GrpcFrameworkConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

name = 'grpc_framework'

grpc_framework.decorators module

grpc_framework decorators.

class grpc_framework.decorators.DecoMeta[source]

Bases: type

classmethod deco(func)[source]
grpc_framework.decorators.deco_meta

alias of grpc_framework.decorators.DecoMeta

grpc_framework.decorators.log_deco(func)[source]
grpc_framework.decorators.signal_deco(func)[source]

grpc_framework.exceptions module

Handled exceptions raised by grpc_framework.

exception grpc_framework.exceptions.ServerException[source]

Bases: Exception

exception grpc_framework.exceptions.ServiceException[source]

Bases: Exception

grpc_framework.models module

grpc_framework.request module

grpc_framework.response module

grpc_framework.serializers module

grpc_framework.server module

Server for grpc_framework.

class grpc_framework.server.GrpcServer(max_workers=5, ssl=False)[source]

Bases: object

add_interceptors()[source]
add_services()[source]
start(address, port, *args, **kwargs)[source]

grpc_framework.service module

Service for grpc_framework.

class grpc_framework.service.Service(app)[source]

Bases: object

GrpcService

find_handler()[source]
service_class

grpc_framework.settings module

Settings for gRPC framework are namespaced in the GRPC_FRAMEWORK setting. For example your project’s settings file might look like this:

GRPC_FRAMEWORK = {
‘INTERCEPTORS’: [
(‘grpc_framework.interceptors.log.LoggerInterceptor’, {}),

]

}

This module provides the grpc_setting object.

class grpc_framework.settings.GrpcSettings(defaults=None, import_strings=None)[source]

Bases: object

A settings objects, that allows GRPC settings to be accessed as properties.

grpc_apps
reload()[source]
user_settings
grpc_framework.settings.import_from_string(val, setting_name)[source]

Attempt to import a class from a string representation.

grpc_framework.settings.perform_import(val, setting_name)[source]

If the given setting is a string import notation, then perform the necessary import or imports.

grpc_framework.settings.reload_grpc_settings(*args, **kwargs)[source]

grpc_framework.signals module

Signal for grpc_framework

grpc_framework.templates module

grpc_framework.urls module

grpc_framework.views module

Module contents