grpc_framework.management.commands package

Submodules

grpc_framework.management.commands.grpcgenerate module

class grpc_framework.management.commands.grpcgenerate.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

handle(*app_labels, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Generate server and client code'

grpc_framework.management.commands.grpcrunserver module

class grpc_framework.management.commands.grpcrunserver.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

default_addr = '0.0.0.0'
default_port = '50051'
handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Starts a GRPC server'
inner_run(*args, **options)[source]
protocol = 'grpc'
requires_system_checks = False
run(**options)[source]

Run the server, using the autoreloader if needed.

server_cls

alias of grpc_framework.server.GrpcServer

stealth_options = ('shutdown_message',)

grpc_framework.management.commands.grpcstartapp module

class grpc_framework.management.commands.grpcstartapp.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.templates.TemplateCommand

handle(**options)[source]

The actual logic of the command. Subclasses must implement this method.

handle_template(template, subdir)[source]

Determine where the app or project templates are. Use django.__path__[0] as the default because the Django install directory isn’t known.

help = 'Creates a Django grpc app'
missing_args_message = 'You must provide an application name.'

Module contents