django_socio_grpc.protobuf.generators

Module Contents

Classes

RegistryToProtoGenerator

_CodeWriter

Data

MAX_SORT_NUMBER

logger

API

django_socio_grpc.protobuf.generators.MAX_SORT_NUMBER

9999

django_socio_grpc.protobuf.generators.logger

None

class django_socio_grpc.protobuf.generators.RegistryToProtoGenerator
registry_instance: django_socio_grpc.protobuf.RegistrySingleton

None

project_name: str

None

verbose: int

0

only_messages: List[str]

None

print(message, verbose_level=0)
get_protos_by_app(directory: Optional[pathlib.Path] = None)
get_proto(registry: django_socio_grpc.services.app_handler_registry.AppHandlerRegistry, previous_messages: Dict[str, django_socio_grpc.protobuf.protoparser.protoparser.Message])
_generate_service(service: django_socio_grpc.protobuf.proto_classes.ProtoService)
_generate_message(message: django_socio_grpc.protobuf.proto_classes.ProtoMessage)
write_comments(comments: Optional[List[str]])
parse_proto_file(proto_path: pathlib.Path)
class django_socio_grpc.protobuf.generators._CodeWriter

Initialization

indent()
__enter__()
__exit__(*args)
write_line(line)
get_code()