mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-16 07:15:02 +00:00
Get rid of all transport types and settle on Protobuf (#25)
* Get rid of all transport types and settle on Protobuf hope i don't regret this * Update Cargo.toml * Update agent.py
This commit is contained in:
parent
643a47953e
commit
0a6e975ca5
38 changed files with 1484 additions and 685 deletions
4
python/djls/proto/v1/__init__.py
Normal file
4
python/djls/proto/v1/__init__.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
# WARNING: This file is generated by protobuf. DO NOT EDIT!
|
||||
# Any changes made to this file will be overwritten when the protobuf files are regenerated.
|
||||
# Source: generated by py-init
|
||||
|
50
python/djls/proto/v1/check_pb2.py
Normal file
50
python/djls/proto/v1/check_pb2.py
Normal file
|
@ -0,0 +1,50 @@
|
|||
# WARNING: This file is generated by protobuf. DO NOT EDIT!
|
||||
# Any changes made to this file will be overwritten when the protobuf files are regenerated.
|
||||
# Source: v1/check.proto
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# NO CHECKED-IN PROTOBUF GENCODE
|
||||
# source: v1/check.proto
|
||||
# Protobuf Python Version: 5.29.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import runtime_version as _runtime_version
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
_runtime_version.ValidateProtobufRuntimeVersion(
|
||||
_runtime_version.Domain.PUBLIC,
|
||||
5,
|
||||
29,
|
||||
1,
|
||||
'',
|
||||
'v1/check.proto'
|
||||
)
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0ev1/check.proto\x12\rdjls.v1.check\"\x0f\n\rHealthRequest\">\n\x0eHealthResponse\x12\x0e\n\x06passed\x18\x01 \x01(\x08\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"\x18\n\x16\x44jangoAvailableRequest\"G\n\x17\x44jangoAvailableResponse\x12\x0e\n\x06passed\x18\x01 \x01(\x08\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"\'\n\x13\x41ppInstalledRequest\x12\x10\n\x08\x61pp_name\x18\x01 \x01(\t\"D\n\x14\x41ppInstalledResponse\x12\x0e\n\x06passed\x18\x01 \x01(\x08\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_errorb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'v1.check_pb2', _globals)
|
||||
if not _descriptor._USE_C_DESCRIPTORS:
|
||||
DESCRIPTOR._loaded_options = None
|
||||
_globals['_HEALTHREQUEST']._serialized_start=33
|
||||
_globals['_HEALTHREQUEST']._serialized_end=48
|
||||
_globals['_HEALTHRESPONSE']._serialized_start=50
|
||||
_globals['_HEALTHRESPONSE']._serialized_end=112
|
||||
_globals['_DJANGOAVAILABLEREQUEST']._serialized_start=114
|
||||
_globals['_DJANGOAVAILABLEREQUEST']._serialized_end=138
|
||||
_globals['_DJANGOAVAILABLERESPONSE']._serialized_start=140
|
||||
_globals['_DJANGOAVAILABLERESPONSE']._serialized_end=211
|
||||
_globals['_APPINSTALLEDREQUEST']._serialized_start=213
|
||||
_globals['_APPINSTALLEDREQUEST']._serialized_end=252
|
||||
_globals['_APPINSTALLEDRESPONSE']._serialized_start=254
|
||||
_globals['_APPINSTALLEDRESPONSE']._serialized_end=322
|
||||
# @@protoc_insertion_point(module_scope)
|
47
python/djls/proto/v1/check_pb2.pyi
Normal file
47
python/djls/proto/v1/check_pb2.pyi
Normal file
|
@ -0,0 +1,47 @@
|
|||
# WARNING: This file is generated by protobuf. DO NOT EDIT!
|
||||
# Any changes made to this file will be overwritten when the protobuf files are regenerated.
|
||||
# Source: v1/check.proto
|
||||
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Optional as _Optional
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class HealthRequest(_message.Message):
|
||||
__slots__ = ()
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class HealthResponse(_message.Message):
|
||||
__slots__ = ("passed", "error")
|
||||
PASSED_FIELD_NUMBER: _ClassVar[int]
|
||||
ERROR_FIELD_NUMBER: _ClassVar[int]
|
||||
passed: bool
|
||||
error: str
|
||||
def __init__(self, passed: bool = ..., error: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class DjangoAvailableRequest(_message.Message):
|
||||
__slots__ = ()
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class DjangoAvailableResponse(_message.Message):
|
||||
__slots__ = ("passed", "error")
|
||||
PASSED_FIELD_NUMBER: _ClassVar[int]
|
||||
ERROR_FIELD_NUMBER: _ClassVar[int]
|
||||
passed: bool
|
||||
error: str
|
||||
def __init__(self, passed: bool = ..., error: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class AppInstalledRequest(_message.Message):
|
||||
__slots__ = ("app_name",)
|
||||
APP_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
app_name: str
|
||||
def __init__(self, app_name: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class AppInstalledResponse(_message.Message):
|
||||
__slots__ = ("passed", "error")
|
||||
PASSED_FIELD_NUMBER: _ClassVar[int]
|
||||
ERROR_FIELD_NUMBER: _ClassVar[int]
|
||||
passed: bool
|
||||
error: str
|
||||
def __init__(self, passed: bool = ..., error: _Optional[str] = ...) -> None: ...
|
44
python/djls/proto/v1/django_pb2.py
Normal file
44
python/djls/proto/v1/django_pb2.py
Normal file
|
@ -0,0 +1,44 @@
|
|||
# WARNING: This file is generated by protobuf. DO NOT EDIT!
|
||||
# Any changes made to this file will be overwritten when the protobuf files are regenerated.
|
||||
# Source: v1/django.proto
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# NO CHECKED-IN PROTOBUF GENCODE
|
||||
# source: v1/django.proto
|
||||
# Protobuf Python Version: 5.29.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import runtime_version as _runtime_version
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
_runtime_version.ValidateProtobufRuntimeVersion(
|
||||
_runtime_version.Domain.PUBLIC,
|
||||
5,
|
||||
29,
|
||||
1,
|
||||
'',
|
||||
'v1/django.proto'
|
||||
)
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fv1/django.proto\x12\x0e\x64jls.v1.django\"\x1a\n\x07Project\x12\x0f\n\x07version\x18\x03 \x01(\t\"\x17\n\x15GetProjectInfoRequest\"B\n\x16GetProjectInfoResponse\x12(\n\x07project\x18\x01 \x01(\x0b\x32\x17.djls.v1.django.Projectb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'v1.django_pb2', _globals)
|
||||
if not _descriptor._USE_C_DESCRIPTORS:
|
||||
DESCRIPTOR._loaded_options = None
|
||||
_globals['_PROJECT']._serialized_start=35
|
||||
_globals['_PROJECT']._serialized_end=61
|
||||
_globals['_GETPROJECTINFOREQUEST']._serialized_start=63
|
||||
_globals['_GETPROJECTINFOREQUEST']._serialized_end=86
|
||||
_globals['_GETPROJECTINFORESPONSE']._serialized_start=88
|
||||
_globals['_GETPROJECTINFORESPONSE']._serialized_end=154
|
||||
# @@protoc_insertion_point(module_scope)
|
25
python/djls/proto/v1/django_pb2.pyi
Normal file
25
python/djls/proto/v1/django_pb2.pyi
Normal file
|
@ -0,0 +1,25 @@
|
|||
# WARNING: This file is generated by protobuf. DO NOT EDIT!
|
||||
# Any changes made to this file will be overwritten when the protobuf files are regenerated.
|
||||
# Source: v1/django.proto
|
||||
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class Project(_message.Message):
|
||||
__slots__ = ("version",)
|
||||
VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
version: str
|
||||
def __init__(self, version: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetProjectInfoRequest(_message.Message):
|
||||
__slots__ = ()
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class GetProjectInfoResponse(_message.Message):
|
||||
__slots__ = ("project",)
|
||||
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
||||
project: Project
|
||||
def __init__(self, project: _Optional[_Union[Project, _Mapping]] = ...) -> None: ...
|
49
python/djls/proto/v1/messages_pb2.py
Normal file
49
python/djls/proto/v1/messages_pb2.py
Normal file
|
@ -0,0 +1,49 @@
|
|||
# WARNING: This file is generated by protobuf. DO NOT EDIT!
|
||||
# Any changes made to this file will be overwritten when the protobuf files are regenerated.
|
||||
# Source: v1/messages.proto
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# NO CHECKED-IN PROTOBUF GENCODE
|
||||
# source: v1/messages.proto
|
||||
# Protobuf Python Version: 5.29.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import runtime_version as _runtime_version
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
_runtime_version.ValidateProtobufRuntimeVersion(
|
||||
_runtime_version.Domain.PUBLIC,
|
||||
5,
|
||||
29,
|
||||
1,
|
||||
'',
|
||||
'v1/messages.proto'
|
||||
)
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from . import check_pb2 as v1_dot_check__pb2
|
||||
from . import django_pb2 as v1_dot_django__pb2
|
||||
from . import python_pb2 as v1_dot_python__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11v1/messages.proto\x12\x10\x64jls.v1.messages\x1a\x0ev1/check.proto\x1a\x0fv1/django.proto\x1a\x0fv1/python.proto\"\xf0\x02\n\x07Request\x12\x35\n\rcheck__health\x18\x01 \x01(\x0b\x32\x1c.djls.v1.check.HealthRequestH\x00\x12H\n\x17\x63heck__django_available\x18\x02 \x01(\x0b\x32%.djls.v1.check.DjangoAvailableRequestH\x00\x12\x42\n\x14\x63heck__app_installed\x18\x03 \x01(\x0b\x32\".djls.v1.check.AppInstalledRequestH\x00\x12I\n\x17python__get_environment\x18\xe8\x07 \x01(\x0b\x32%.djls.v1.python.GetEnvironmentRequestH\x00\x12J\n\x18\x64jango__get_project_info\x18\xd0\x0f \x01(\x0b\x32%.djls.v1.django.GetProjectInfoRequestH\x00\x42\t\n\x07\x63ommand\"\xa0\x03\n\x08Response\x12\x36\n\rcheck__health\x18\x01 \x01(\x0b\x32\x1d.djls.v1.check.HealthResponseH\x00\x12I\n\x17\x63heck__django_available\x18\x02 \x01(\x0b\x32&.djls.v1.check.DjangoAvailableResponseH\x00\x12\x43\n\x14\x63heck__app_installed\x18\x03 \x01(\x0b\x32#.djls.v1.check.AppInstalledResponseH\x00\x12J\n\x17python__get_environment\x18\xe8\x07 \x01(\x0b\x32&.djls.v1.python.GetEnvironmentResponseH\x00\x12K\n\x18\x64jango__get_project_info\x18\xd0\x0f \x01(\x0b\x32&.djls.v1.django.GetProjectInfoResponseH\x00\x12)\n\x05\x65rror\x18\xa8\x46 \x01(\x0b\x32\x17.djls.v1.messages.ErrorH\x00\x42\x08\n\x06result\"\xa5\x01\n\x05\x45rror\x12*\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x1c.djls.v1.messages.Error.Code\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x11\n\ttraceback\x18\x03 \x01(\t\"L\n\x04\x43ode\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x13\n\x0fINVALID_REQUEST\x10\x01\x12\x10\n\x0cPYTHON_ERROR\x10\x02\x12\x10\n\x0c\x44JANGO_ERROR\x10\x03\x62\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'v1.messages_pb2', _globals)
|
||||
if not _descriptor._USE_C_DESCRIPTORS:
|
||||
DESCRIPTOR._loaded_options = None
|
||||
_globals['_REQUEST']._serialized_start=90
|
||||
_globals['_REQUEST']._serialized_end=458
|
||||
_globals['_RESPONSE']._serialized_start=461
|
||||
_globals['_RESPONSE']._serialized_end=877
|
||||
_globals['_ERROR']._serialized_start=880
|
||||
_globals['_ERROR']._serialized_end=1045
|
||||
_globals['_ERROR_CODE']._serialized_start=969
|
||||
_globals['_ERROR_CODE']._serialized_end=1045
|
||||
# @@protoc_insertion_point(module_scope)
|
63
python/djls/proto/v1/messages_pb2.pyi
Normal file
63
python/djls/proto/v1/messages_pb2.pyi
Normal file
|
@ -0,0 +1,63 @@
|
|||
# WARNING: This file is generated by protobuf. DO NOT EDIT!
|
||||
# Any changes made to this file will be overwritten when the protobuf files are regenerated.
|
||||
# Source: v1/messages.proto
|
||||
|
||||
from . import check_pb2 as _check_pb2
|
||||
from . import django_pb2 as _django_pb2
|
||||
from . import python_pb2 as _python_pb2
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class Request(_message.Message):
|
||||
__slots__ = ("check__health", "check__django_available", "check__app_installed", "python__get_environment", "django__get_project_info")
|
||||
CHECK__HEALTH_FIELD_NUMBER: _ClassVar[int]
|
||||
CHECK__DJANGO_AVAILABLE_FIELD_NUMBER: _ClassVar[int]
|
||||
CHECK__APP_INSTALLED_FIELD_NUMBER: _ClassVar[int]
|
||||
PYTHON__GET_ENVIRONMENT_FIELD_NUMBER: _ClassVar[int]
|
||||
DJANGO__GET_PROJECT_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
check__health: _check_pb2.HealthRequest
|
||||
check__django_available: _check_pb2.DjangoAvailableRequest
|
||||
check__app_installed: _check_pb2.AppInstalledRequest
|
||||
python__get_environment: _python_pb2.GetEnvironmentRequest
|
||||
django__get_project_info: _django_pb2.GetProjectInfoRequest
|
||||
def __init__(self, check__health: _Optional[_Union[_check_pb2.HealthRequest, _Mapping]] = ..., check__django_available: _Optional[_Union[_check_pb2.DjangoAvailableRequest, _Mapping]] = ..., check__app_installed: _Optional[_Union[_check_pb2.AppInstalledRequest, _Mapping]] = ..., python__get_environment: _Optional[_Union[_python_pb2.GetEnvironmentRequest, _Mapping]] = ..., django__get_project_info: _Optional[_Union[_django_pb2.GetProjectInfoRequest, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class Response(_message.Message):
|
||||
__slots__ = ("check__health", "check__django_available", "check__app_installed", "python__get_environment", "django__get_project_info", "error")
|
||||
CHECK__HEALTH_FIELD_NUMBER: _ClassVar[int]
|
||||
CHECK__DJANGO_AVAILABLE_FIELD_NUMBER: _ClassVar[int]
|
||||
CHECK__APP_INSTALLED_FIELD_NUMBER: _ClassVar[int]
|
||||
PYTHON__GET_ENVIRONMENT_FIELD_NUMBER: _ClassVar[int]
|
||||
DJANGO__GET_PROJECT_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
ERROR_FIELD_NUMBER: _ClassVar[int]
|
||||
check__health: _check_pb2.HealthResponse
|
||||
check__django_available: _check_pb2.DjangoAvailableResponse
|
||||
check__app_installed: _check_pb2.AppInstalledResponse
|
||||
python__get_environment: _python_pb2.GetEnvironmentResponse
|
||||
django__get_project_info: _django_pb2.GetProjectInfoResponse
|
||||
error: Error
|
||||
def __init__(self, check__health: _Optional[_Union[_check_pb2.HealthResponse, _Mapping]] = ..., check__django_available: _Optional[_Union[_check_pb2.DjangoAvailableResponse, _Mapping]] = ..., check__app_installed: _Optional[_Union[_check_pb2.AppInstalledResponse, _Mapping]] = ..., python__get_environment: _Optional[_Union[_python_pb2.GetEnvironmentResponse, _Mapping]] = ..., django__get_project_info: _Optional[_Union[_django_pb2.GetProjectInfoResponse, _Mapping]] = ..., error: _Optional[_Union[Error, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class Error(_message.Message):
|
||||
__slots__ = ("code", "message", "traceback")
|
||||
class Code(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
UNKNOWN: _ClassVar[Error.Code]
|
||||
INVALID_REQUEST: _ClassVar[Error.Code]
|
||||
PYTHON_ERROR: _ClassVar[Error.Code]
|
||||
DJANGO_ERROR: _ClassVar[Error.Code]
|
||||
UNKNOWN: Error.Code
|
||||
INVALID_REQUEST: Error.Code
|
||||
PYTHON_ERROR: Error.Code
|
||||
DJANGO_ERROR: Error.Code
|
||||
CODE_FIELD_NUMBER: _ClassVar[int]
|
||||
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
||||
TRACEBACK_FIELD_NUMBER: _ClassVar[int]
|
||||
code: Error.Code
|
||||
message: str
|
||||
traceback: str
|
||||
def __init__(self, code: _Optional[_Union[Error.Code, str]] = ..., message: _Optional[str] = ..., traceback: _Optional[str] = ...) -> None: ...
|
66
python/djls/proto/v1/python_pb2.py
Normal file
66
python/djls/proto/v1/python_pb2.py
Normal file
|
@ -0,0 +1,66 @@
|
|||
# WARNING: This file is generated by protobuf. DO NOT EDIT!
|
||||
# Any changes made to this file will be overwritten when the protobuf files are regenerated.
|
||||
# Source: v1/python.proto
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# NO CHECKED-IN PROTOBUF GENCODE
|
||||
# source: v1/python.proto
|
||||
# Protobuf Python Version: 5.29.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import runtime_version as _runtime_version
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
_runtime_version.ValidateProtobufRuntimeVersion(
|
||||
_runtime_version.Domain.PUBLIC,
|
||||
5,
|
||||
29,
|
||||
1,
|
||||
'',
|
||||
'v1/python.proto'
|
||||
)
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fv1/python.proto\x12\x0e\x64jls.v1.python\"\x9c\x01\n\x06Python\x12\x1e\n\x02os\x18\x01 \x01(\x0b\x32\x12.djls.v1.python.Os\x12\"\n\x04site\x18\x02 \x01(\x0b\x32\x14.djls.v1.python.Site\x12 \n\x03sys\x18\x03 \x01(\x0b\x32\x13.djls.v1.python.Sys\x12,\n\tsysconfig\x18\x04 \x01(\x0b\x32\x19.djls.v1.python.Sysconfig\"f\n\x02Os\x12\x30\n\x07\x65nviron\x18\x01 \x03(\x0b\x32\x1f.djls.v1.python.Os.EnvironEntry\x1a.\n\x0c\x45nvironEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x86\x01\n\x04Site\x12\x34\n\x08packages\x18\x01 \x03(\x0b\x32\".djls.v1.python.Site.PackagesEntry\x1aH\n\rPackagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.djls.v1.python.Package:\x02\x38\x01\"\xe0\x02\n\x03Sys\x12\x13\n\x0b\x64\x65\x62ug_build\x18\x01 \x01(\x08\x12\x10\n\x08\x64\x65v_mode\x18\x02 \x01(\x08\x12\x0f\n\x07is_venv\x18\x03 \x01(\x08\x12\x10\n\x08\x61\x62iflags\x18\x04 \x01(\t\x12\x13\n\x0b\x62\x61se_prefix\x18\x05 \x01(\t\x12\x18\n\x10\x64\x65\x66\x61ult_encoding\x18\x06 \x01(\t\x12\x12\n\nexecutable\x18\x07 \x01(\t\x12\x1b\n\x13\x66ilesystem_encoding\x18\x08 \x01(\t\x12\x1b\n\x13implementation_name\x18\t \x01(\t\x12\x10\n\x08platform\x18\n \x01(\t\x12\x0e\n\x06prefix\x18\x0b \x01(\t\x12\x1c\n\x14\x62uiltin_module_names\x18\x0c \x03(\t\x12\x11\n\tdll_paths\x18\r \x03(\t\x12\x0c\n\x04path\x18\x0e \x03(\t\x12\x31\n\x0cversion_info\x18\x0f \x01(\x0b\x32\x1b.djls.v1.python.VersionInfo\"~\n\x0bVersionInfo\x12\r\n\x05major\x18\x01 \x01(\r\x12\r\n\x05minor\x18\x02 \x01(\r\x12\r\n\x05micro\x18\x03 \x01(\r\x12\x32\n\x0creleaselevel\x18\x04 \x01(\x0e\x32\x1c.djls.v1.python.ReleaseLevel\x12\x0e\n\x06serial\x18\x05 \x01(\r\"\x96\x01\n\tSysconfig\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\t\x12\x0f\n\x07include\x18\x02 \x01(\t\x12\x13\n\x0bplatinclude\x18\x03 \x01(\t\x12\x0f\n\x07platlib\x18\x04 \x01(\t\x12\x12\n\nplatstdlib\x18\x05 \x01(\t\x12\x0f\n\x07purelib\x18\x06 \x01(\t\x12\x0f\n\x07scripts\x18\x07 \x01(\t\x12\x0e\n\x06stdlib\x18\x08 \x01(\t\"\x97\x02\n\x07Package\x12\x11\n\tdist_name\x18\x01 \x01(\t\x12\x14\n\x0c\x64ist_version\x18\x02 \x01(\t\x12\x1a\n\rdist_editable\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x1e\n\x11\x64ist_entry_points\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rdist_location\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x15\n\rdist_requires\x18\x06 \x03(\t\x12!\n\x14\x64ist_requires_python\x18\x07 \x01(\tH\x03\x88\x01\x01\x42\x10\n\x0e_dist_editableB\x14\n\x12_dist_entry_pointsB\x10\n\x0e_dist_locationB\x17\n\x15_dist_requires_python\"\x17\n\x15GetEnvironmentRequest\"@\n\x16GetEnvironmentResponse\x12&\n\x06python\x18\x01 \x01(\x0b\x32\x16.djls.v1.python.Python*=\n\x0cReleaseLevel\x12\t\n\x05\x41LPHA\x10\x00\x12\x08\n\x04\x42\x45TA\x10\x01\x12\r\n\tCANDIDATE\x10\x02\x12\t\n\x05\x46INAL\x10\x03\x62\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'v1.python_pb2', _globals)
|
||||
if not _descriptor._USE_C_DESCRIPTORS:
|
||||
DESCRIPTOR._loaded_options = None
|
||||
_globals['_OS_ENVIRONENTRY']._loaded_options = None
|
||||
_globals['_OS_ENVIRONENTRY']._serialized_options = b'8\001'
|
||||
_globals['_SITE_PACKAGESENTRY']._loaded_options = None
|
||||
_globals['_SITE_PACKAGESENTRY']._serialized_options = b'8\001'
|
||||
_globals['_RELEASELEVEL']._serialized_start=1444
|
||||
_globals['_RELEASELEVEL']._serialized_end=1505
|
||||
_globals['_PYTHON']._serialized_start=36
|
||||
_globals['_PYTHON']._serialized_end=192
|
||||
_globals['_OS']._serialized_start=194
|
||||
_globals['_OS']._serialized_end=296
|
||||
_globals['_OS_ENVIRONENTRY']._serialized_start=250
|
||||
_globals['_OS_ENVIRONENTRY']._serialized_end=296
|
||||
_globals['_SITE']._serialized_start=299
|
||||
_globals['_SITE']._serialized_end=433
|
||||
_globals['_SITE_PACKAGESENTRY']._serialized_start=361
|
||||
_globals['_SITE_PACKAGESENTRY']._serialized_end=433
|
||||
_globals['_SYS']._serialized_start=436
|
||||
_globals['_SYS']._serialized_end=788
|
||||
_globals['_VERSIONINFO']._serialized_start=790
|
||||
_globals['_VERSIONINFO']._serialized_end=916
|
||||
_globals['_SYSCONFIG']._serialized_start=919
|
||||
_globals['_SYSCONFIG']._serialized_end=1069
|
||||
_globals['_PACKAGE']._serialized_start=1072
|
||||
_globals['_PACKAGE']._serialized_end=1351
|
||||
_globals['_GETENVIRONMENTREQUEST']._serialized_start=1353
|
||||
_globals['_GETENVIRONMENTREQUEST']._serialized_end=1376
|
||||
_globals['_GETENVIRONMENTRESPONSE']._serialized_start=1378
|
||||
_globals['_GETENVIRONMENTRESPONSE']._serialized_end=1442
|
||||
# @@protoc_insertion_point(module_scope)
|
156
python/djls/proto/v1/python_pb2.pyi
Normal file
156
python/djls/proto/v1/python_pb2.pyi
Normal file
|
@ -0,0 +1,156 @@
|
|||
# WARNING: This file is generated by protobuf. DO NOT EDIT!
|
||||
# Any changes made to this file will be overwritten when the protobuf files are regenerated.
|
||||
# Source: v1/python.proto
|
||||
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class ReleaseLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
ALPHA: _ClassVar[ReleaseLevel]
|
||||
BETA: _ClassVar[ReleaseLevel]
|
||||
CANDIDATE: _ClassVar[ReleaseLevel]
|
||||
FINAL: _ClassVar[ReleaseLevel]
|
||||
ALPHA: ReleaseLevel
|
||||
BETA: ReleaseLevel
|
||||
CANDIDATE: ReleaseLevel
|
||||
FINAL: ReleaseLevel
|
||||
|
||||
class Python(_message.Message):
|
||||
__slots__ = ("os", "site", "sys", "sysconfig")
|
||||
OS_FIELD_NUMBER: _ClassVar[int]
|
||||
SITE_FIELD_NUMBER: _ClassVar[int]
|
||||
SYS_FIELD_NUMBER: _ClassVar[int]
|
||||
SYSCONFIG_FIELD_NUMBER: _ClassVar[int]
|
||||
os: Os
|
||||
site: Site
|
||||
sys: Sys
|
||||
sysconfig: Sysconfig
|
||||
def __init__(self, os: _Optional[_Union[Os, _Mapping]] = ..., site: _Optional[_Union[Site, _Mapping]] = ..., sys: _Optional[_Union[Sys, _Mapping]] = ..., sysconfig: _Optional[_Union[Sysconfig, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class Os(_message.Message):
|
||||
__slots__ = ("environ",)
|
||||
class EnvironEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
ENVIRON_FIELD_NUMBER: _ClassVar[int]
|
||||
environ: _containers.ScalarMap[str, str]
|
||||
def __init__(self, environ: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
||||
|
||||
class Site(_message.Message):
|
||||
__slots__ = ("packages",)
|
||||
class PackagesEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: Package
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Package, _Mapping]] = ...) -> None: ...
|
||||
PACKAGES_FIELD_NUMBER: _ClassVar[int]
|
||||
packages: _containers.MessageMap[str, Package]
|
||||
def __init__(self, packages: _Optional[_Mapping[str, Package]] = ...) -> None: ...
|
||||
|
||||
class Sys(_message.Message):
|
||||
__slots__ = ("debug_build", "dev_mode", "is_venv", "abiflags", "base_prefix", "default_encoding", "executable", "filesystem_encoding", "implementation_name", "platform", "prefix", "builtin_module_names", "dll_paths", "path", "version_info")
|
||||
DEBUG_BUILD_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_MODE_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_VENV_FIELD_NUMBER: _ClassVar[int]
|
||||
ABIFLAGS_FIELD_NUMBER: _ClassVar[int]
|
||||
BASE_PREFIX_FIELD_NUMBER: _ClassVar[int]
|
||||
DEFAULT_ENCODING_FIELD_NUMBER: _ClassVar[int]
|
||||
EXECUTABLE_FIELD_NUMBER: _ClassVar[int]
|
||||
FILESYSTEM_ENCODING_FIELD_NUMBER: _ClassVar[int]
|
||||
IMPLEMENTATION_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
PLATFORM_FIELD_NUMBER: _ClassVar[int]
|
||||
PREFIX_FIELD_NUMBER: _ClassVar[int]
|
||||
BUILTIN_MODULE_NAMES_FIELD_NUMBER: _ClassVar[int]
|
||||
DLL_PATHS_FIELD_NUMBER: _ClassVar[int]
|
||||
PATH_FIELD_NUMBER: _ClassVar[int]
|
||||
VERSION_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
debug_build: bool
|
||||
dev_mode: bool
|
||||
is_venv: bool
|
||||
abiflags: str
|
||||
base_prefix: str
|
||||
default_encoding: str
|
||||
executable: str
|
||||
filesystem_encoding: str
|
||||
implementation_name: str
|
||||
platform: str
|
||||
prefix: str
|
||||
builtin_module_names: _containers.RepeatedScalarFieldContainer[str]
|
||||
dll_paths: _containers.RepeatedScalarFieldContainer[str]
|
||||
path: _containers.RepeatedScalarFieldContainer[str]
|
||||
version_info: VersionInfo
|
||||
def __init__(self, debug_build: bool = ..., dev_mode: bool = ..., is_venv: bool = ..., abiflags: _Optional[str] = ..., base_prefix: _Optional[str] = ..., default_encoding: _Optional[str] = ..., executable: _Optional[str] = ..., filesystem_encoding: _Optional[str] = ..., implementation_name: _Optional[str] = ..., platform: _Optional[str] = ..., prefix: _Optional[str] = ..., builtin_module_names: _Optional[_Iterable[str]] = ..., dll_paths: _Optional[_Iterable[str]] = ..., path: _Optional[_Iterable[str]] = ..., version_info: _Optional[_Union[VersionInfo, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class VersionInfo(_message.Message):
|
||||
__slots__ = ("major", "minor", "micro", "releaselevel", "serial")
|
||||
MAJOR_FIELD_NUMBER: _ClassVar[int]
|
||||
MINOR_FIELD_NUMBER: _ClassVar[int]
|
||||
MICRO_FIELD_NUMBER: _ClassVar[int]
|
||||
RELEASELEVEL_FIELD_NUMBER: _ClassVar[int]
|
||||
SERIAL_FIELD_NUMBER: _ClassVar[int]
|
||||
major: int
|
||||
minor: int
|
||||
micro: int
|
||||
releaselevel: ReleaseLevel
|
||||
serial: int
|
||||
def __init__(self, major: _Optional[int] = ..., minor: _Optional[int] = ..., micro: _Optional[int] = ..., releaselevel: _Optional[_Union[ReleaseLevel, str]] = ..., serial: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class Sysconfig(_message.Message):
|
||||
__slots__ = ("data", "include", "platinclude", "platlib", "platstdlib", "purelib", "scripts", "stdlib")
|
||||
DATA_FIELD_NUMBER: _ClassVar[int]
|
||||
INCLUDE_FIELD_NUMBER: _ClassVar[int]
|
||||
PLATINCLUDE_FIELD_NUMBER: _ClassVar[int]
|
||||
PLATLIB_FIELD_NUMBER: _ClassVar[int]
|
||||
PLATSTDLIB_FIELD_NUMBER: _ClassVar[int]
|
||||
PURELIB_FIELD_NUMBER: _ClassVar[int]
|
||||
SCRIPTS_FIELD_NUMBER: _ClassVar[int]
|
||||
STDLIB_FIELD_NUMBER: _ClassVar[int]
|
||||
data: str
|
||||
include: str
|
||||
platinclude: str
|
||||
platlib: str
|
||||
platstdlib: str
|
||||
purelib: str
|
||||
scripts: str
|
||||
stdlib: str
|
||||
def __init__(self, data: _Optional[str] = ..., include: _Optional[str] = ..., platinclude: _Optional[str] = ..., platlib: _Optional[str] = ..., platstdlib: _Optional[str] = ..., purelib: _Optional[str] = ..., scripts: _Optional[str] = ..., stdlib: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class Package(_message.Message):
|
||||
__slots__ = ("dist_name", "dist_version", "dist_editable", "dist_entry_points", "dist_location", "dist_requires", "dist_requires_python")
|
||||
DIST_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DIST_VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
DIST_EDITABLE_FIELD_NUMBER: _ClassVar[int]
|
||||
DIST_ENTRY_POINTS_FIELD_NUMBER: _ClassVar[int]
|
||||
DIST_LOCATION_FIELD_NUMBER: _ClassVar[int]
|
||||
DIST_REQUIRES_FIELD_NUMBER: _ClassVar[int]
|
||||
DIST_REQUIRES_PYTHON_FIELD_NUMBER: _ClassVar[int]
|
||||
dist_name: str
|
||||
dist_version: str
|
||||
dist_editable: bool
|
||||
dist_entry_points: str
|
||||
dist_location: str
|
||||
dist_requires: _containers.RepeatedScalarFieldContainer[str]
|
||||
dist_requires_python: str
|
||||
def __init__(self, dist_name: _Optional[str] = ..., dist_version: _Optional[str] = ..., dist_editable: bool = ..., dist_entry_points: _Optional[str] = ..., dist_location: _Optional[str] = ..., dist_requires: _Optional[_Iterable[str]] = ..., dist_requires_python: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetEnvironmentRequest(_message.Message):
|
||||
__slots__ = ()
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class GetEnvironmentResponse(_message.Message):
|
||||
__slots__ = ("python",)
|
||||
PYTHON_FIELD_NUMBER: _ClassVar[int]
|
||||
python: Python
|
||||
def __init__(self, python: _Optional[_Union[Python, _Mapping]] = ...) -> None: ...
|
Loading…
Add table
Add a link
Reference in a new issue