kicad-python 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. kicad_python-0.1.0.dist-info/LICENSE +674 -0
  2. kicad_python-0.1.0.dist-info/METADATA +75 -0
  3. kicad_python-0.1.0.dist-info/RECORD +48 -0
  4. kicad_python-0.1.0.dist-info/WHEEL +5 -0
  5. kicad_python-0.1.0.dist-info/top_level.txt +1 -0
  6. kipy/__init__.py +20 -0
  7. kipy/board.py +467 -0
  8. kipy/board_types.py +1800 -0
  9. kipy/client.py +88 -0
  10. kipy/common_types.py +842 -0
  11. kipy/errors.py +37 -0
  12. kipy/geometry.py +604 -0
  13. kipy/kicad.py +176 -0
  14. kipy/project.py +71 -0
  15. kipy/project_types.py +28 -0
  16. kipy/proto/__init__.py +20 -0
  17. kipy/proto/board/__init__.py +20 -0
  18. kipy/proto/board/board_commands_pb2.py +56 -0
  19. kipy/proto/board/board_commands_pb2.pyi +487 -0
  20. kipy/proto/board/board_pb2.py +44 -0
  21. kipy/proto/board/board_pb2.pyi +294 -0
  22. kipy/proto/board/board_types_pb2.py +150 -0
  23. kipy/proto/board/board_types_pb2.pyi +2101 -0
  24. kipy/proto/common/__init__.py +23 -0
  25. kipy/proto/common/commands/__init__.py +21 -0
  26. kipy/proto/common/commands/base_commands_pb2.py +31 -0
  27. kipy/proto/common/commands/base_commands_pb2.pyi +172 -0
  28. kipy/proto/common/commands/editor_commands_pb2.py +91 -0
  29. kipy/proto/common/commands/editor_commands_pb2.pyi +814 -0
  30. kipy/proto/common/commands/project_commands_pb2.py +24 -0
  31. kipy/proto/common/commands/project_commands_pb2.pyi +93 -0
  32. kipy/proto/common/envelope_pb2.py +27 -0
  33. kipy/proto/common/envelope_pb2.pyi +188 -0
  34. kipy/proto/common/types/__init__.py +22 -0
  35. kipy/proto/common/types/base_types_pb2.py +100 -0
  36. kipy/proto/common/types/base_types_pb2.pyi +1058 -0
  37. kipy/proto/common/types/enums_pb2.py +22 -0
  38. kipy/proto/common/types/enums_pb2.pyi +189 -0
  39. kipy/proto/common/types/project_settings_pb2.py +16 -0
  40. kipy/proto/common/types/project_settings_pb2.pyi +26 -0
  41. kipy/proto/schematic/schematic_commands_pb2.py +14 -0
  42. kipy/proto/schematic/schematic_commands_pb2.pyi +23 -0
  43. kipy/proto/schematic/schematic_types_pb2.py +29 -0
  44. kipy/proto/schematic/schematic_types_pb2.pyi +214 -0
  45. kipy/util/__init__.py +21 -0
  46. kipy/util/proto.py +61 -0
  47. kipy/util/units.py +31 -0
  48. kipy/wrapper.py +35 -0
@@ -0,0 +1,24 @@
1
+ """Generated protocol buffer code."""
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import descriptor_pool as _descriptor_pool
4
+ from google.protobuf import runtime_version as _runtime_version
5
+ from google.protobuf import symbol_database as _symbol_database
6
+ from google.protobuf.internal import builder as _builder
7
+ _runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 1, '', 'common/commands/project_commands.proto')
8
+ _sym_db = _symbol_database.Default()
9
+ from ...common.types import base_types_pb2 as common_dot_types_dot_base__types__pb2
10
+ from ...common.types import project_settings_pb2 as common_dot_types_dot_project__settings__pb2
11
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&common/commands/project_commands.proto\x12\x15kiapi.common.commands\x1a\x1dcommon/types/base_types.proto\x1a#common/types/project_settings.proto"\x0f\n\rGetNetClasses"I\n\x12NetClassesResponse\x123\n\x0bnet_classes\x18\x01 \x03(\x0b2\x1e.kiapi.common.project.NetClass"\\\n\x13ExpandTextVariables\x127\n\x08document\x18\x01 \x01(\x0b2%.kiapi.common.types.DocumentSpecifier\x12\x0c\n\x04text\x18\x02 \x03(\t"+\n\x1bExpandTextVariablesResponse\x12\x0c\n\x04text\x18\x01 \x03(\tb\x06proto3')
12
+ _globals = globals()
13
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
14
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.commands.project_commands_pb2', _globals)
15
+ if not _descriptor._USE_C_DESCRIPTORS:
16
+ DESCRIPTOR._loaded_options = None
17
+ _globals['_GETNETCLASSES']._serialized_start = 133
18
+ _globals['_GETNETCLASSES']._serialized_end = 148
19
+ _globals['_NETCLASSESRESPONSE']._serialized_start = 150
20
+ _globals['_NETCLASSESRESPONSE']._serialized_end = 223
21
+ _globals['_EXPANDTEXTVARIABLES']._serialized_start = 225
22
+ _globals['_EXPANDTEXTVARIABLES']._serialized_end = 317
23
+ _globals['_EXPANDTEXTVARIABLESRESPONSE']._serialized_start = 319
24
+ _globals['_EXPANDTEXTVARIABLESRESPONSE']._serialized_end = 362
@@ -0,0 +1,93 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+
5
+ This program source code file is part of KiCad, a free EDA CAD application.
6
+
7
+ Copyright (C) 2024 KiCad Developers, see AUTHORS.txt for contributors.
8
+
9
+ This program is free software: you can redistribute it and/or modify it
10
+ under the terms of the GNU General Public License as published by the
11
+ Free Software Foundation, either version 3 of the License, or (at your
12
+ option) any later version.
13
+
14
+ This program is distributed in the hope that it will be useful, but
15
+ WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ General Public License for more details.
18
+
19
+ You should have received a copy of the GNU General Public License along
20
+ with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ """
22
+ import builtins
23
+ import collections.abc
24
+ from ... import common
25
+ import google.protobuf.descriptor
26
+ import google.protobuf.internal.containers
27
+ import google.protobuf.message
28
+ import typing
29
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
30
+
31
+ @typing.final
32
+ class GetNetClasses(google.protobuf.message.Message):
33
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
34
+
35
+ def __init__(self) -> None:
36
+ ...
37
+ global___GetNetClasses = GetNetClasses
38
+
39
+ @typing.final
40
+ class NetClassesResponse(google.protobuf.message.Message):
41
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
42
+ NET_CLASSES_FIELD_NUMBER: builtins.int
43
+
44
+ @property
45
+ def net_classes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[common.types.project_settings_pb2.NetClass]:
46
+ ...
47
+
48
+ def __init__(self, *, net_classes: collections.abc.Iterable[common.types.project_settings_pb2.NetClass] | None=...) -> None:
49
+ ...
50
+
51
+ def ClearField(self, field_name: typing.Literal['net_classes', b'net_classes']) -> None:
52
+ ...
53
+ global___NetClassesResponse = NetClassesResponse
54
+
55
+ @typing.final
56
+ class ExpandTextVariables(google.protobuf.message.Message):
57
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
58
+ DOCUMENT_FIELD_NUMBER: builtins.int
59
+ TEXT_FIELD_NUMBER: builtins.int
60
+
61
+ @property
62
+ def document(self) -> common.types.base_types_pb2.DocumentSpecifier:
63
+ ...
64
+
65
+ @property
66
+ def text(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
67
+ ...
68
+
69
+ def __init__(self, *, document: common.types.base_types_pb2.DocumentSpecifier | None=..., text: collections.abc.Iterable[builtins.str] | None=...) -> None:
70
+ ...
71
+
72
+ def HasField(self, field_name: typing.Literal['document', b'document']) -> builtins.bool:
73
+ ...
74
+
75
+ def ClearField(self, field_name: typing.Literal['document', b'document', 'text', b'text']) -> None:
76
+ ...
77
+ global___ExpandTextVariables = ExpandTextVariables
78
+
79
+ @typing.final
80
+ class ExpandTextVariablesResponse(google.protobuf.message.Message):
81
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
82
+ TEXT_FIELD_NUMBER: builtins.int
83
+
84
+ @property
85
+ def text(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
86
+ ...
87
+
88
+ def __init__(self, *, text: collections.abc.Iterable[builtins.str] | None=...) -> None:
89
+ ...
90
+
91
+ def ClearField(self, field_name: typing.Literal['text', b'text']) -> None:
92
+ ...
93
+ global___ExpandTextVariablesResponse = ExpandTextVariablesResponse
@@ -0,0 +1,27 @@
1
+ """Generated protocol buffer code."""
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import descriptor_pool as _descriptor_pool
4
+ from google.protobuf import runtime_version as _runtime_version
5
+ from google.protobuf import symbol_database as _symbol_database
6
+ from google.protobuf.internal import builder as _builder
7
+ _runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 1, '', 'common/envelope.proto')
8
+ _sym_db = _symbol_database.Default()
9
+ from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
10
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15common/envelope.proto\x12\x0ckiapi.common\x1a\x19google/protobuf/any.proto"<\n\x10ApiRequestHeader\x12\x13\n\x0bkicad_token\x18\x01 \x01(\t\x12\x13\n\x0bclient_name\x18\x02 \x01(\t"c\n\nApiRequest\x12.\n\x06header\x18\x01 \x01(\x0b2\x1e.kiapi.common.ApiRequestHeader\x12%\n\x07message\x18\x02 \x01(\x0b2\x14.google.protobuf.Any"(\n\x11ApiResponseHeader\x12\x13\n\x0bkicad_token\x18\x01 \x01(\t"\x96\x01\n\x0bApiResponse\x12/\n\x06header\x18\x01 \x01(\x0b2\x1f.kiapi.common.ApiResponseHeader\x12/\n\x06status\x18\x02 \x01(\x0b2\x1f.kiapi.common.ApiResponseStatus\x12%\n\x07message\x18\x03 \x01(\x0b2\x14.google.protobuf.Any"W\n\x11ApiResponseStatus\x12+\n\x06status\x18\x01 \x01(\x0e2\x1b.kiapi.common.ApiStatusCode\x12\x15\n\rerror_message\x18\x02 \x01(\t*\xac\x01\n\rApiStatusCode\x12\x0e\n\nAS_UNKNOWN\x10\x00\x12\t\n\x05AS_OK\x10\x01\x12\x0e\n\nAS_TIMEOUT\x10\x02\x12\x12\n\x0eAS_BAD_REQUEST\x10\x03\x12\x10\n\x0cAS_NOT_READY\x10\x04\x12\x10\n\x0cAS_UNHANDLED\x10\x05\x12\x15\n\x11AS_TOKEN_MISMATCH\x10\x06\x12\x0b\n\x07AS_BUSY\x10\x07\x12\x14\n\x10AS_UNIMPLEMENTED\x10\x08b\x06proto3')
11
+ _globals = globals()
12
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
13
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.envelope_pb2', _globals)
14
+ if not _descriptor._USE_C_DESCRIPTORS:
15
+ DESCRIPTOR._loaded_options = None
16
+ _globals['_APISTATUSCODE']._serialized_start = 514
17
+ _globals['_APISTATUSCODE']._serialized_end = 686
18
+ _globals['_APIREQUESTHEADER']._serialized_start = 66
19
+ _globals['_APIREQUESTHEADER']._serialized_end = 126
20
+ _globals['_APIREQUEST']._serialized_start = 128
21
+ _globals['_APIREQUEST']._serialized_end = 227
22
+ _globals['_APIRESPONSEHEADER']._serialized_start = 229
23
+ _globals['_APIRESPONSEHEADER']._serialized_end = 269
24
+ _globals['_APIRESPONSE']._serialized_start = 272
25
+ _globals['_APIRESPONSE']._serialized_end = 422
26
+ _globals['_APIRESPONSESTATUS']._serialized_start = 424
27
+ _globals['_APIRESPONSESTATUS']._serialized_end = 511
@@ -0,0 +1,188 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+
5
+ This program source code file is part of KiCad, a free EDA CAD application.
6
+
7
+ Copyright (C) 2024 KiCad Developers, see AUTHORS.txt for contributors.
8
+
9
+ This program is free software: you can redistribute it and/or modify it
10
+ under the terms of the GNU General Public License as published by the
11
+ Free Software Foundation, either version 3 of the License, or (at your
12
+ option) any later version.
13
+
14
+ This program is distributed in the hope that it will be useful, but
15
+ WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ General Public License for more details.
18
+
19
+ You should have received a copy of the GNU General Public License along
20
+ with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ """
22
+ import builtins
23
+ import google.protobuf.any_pb2
24
+ import google.protobuf.descriptor
25
+ import google.protobuf.internal.enum_type_wrapper
26
+ import google.protobuf.message
27
+ import sys
28
+ import typing
29
+ if sys.version_info >= (3, 10):
30
+ import typing as typing_extensions
31
+ else:
32
+ import typing_extensions
33
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
34
+
35
+ class _ApiStatusCode:
36
+ ValueType = typing.NewType('ValueType', builtins.int)
37
+ V: typing_extensions.TypeAlias = ValueType
38
+
39
+ class _ApiStatusCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ApiStatusCode.ValueType], builtins.type):
40
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
41
+ AS_UNKNOWN: _ApiStatusCode.ValueType
42
+ AS_OK: _ApiStatusCode.ValueType
43
+ 'Request succeeded'
44
+ AS_TIMEOUT: _ApiStatusCode.ValueType
45
+ 'Request timed out'
46
+ AS_BAD_REQUEST: _ApiStatusCode.ValueType
47
+ 'The request had invalid parameters or otherwise was illegal'
48
+ AS_NOT_READY: _ApiStatusCode.ValueType
49
+ 'KiCad has recently started and cannot handle API requests yet'
50
+ AS_UNHANDLED: _ApiStatusCode.ValueType
51
+ 'The request was not handled by KiCad'
52
+ AS_TOKEN_MISMATCH: _ApiStatusCode.ValueType
53
+ "The kicad_token in the request didn't match this KiCad's token"
54
+ AS_BUSY: _ApiStatusCode.ValueType
55
+ "KiCad is busy performing an operation and can't accept API commands"
56
+ AS_UNIMPLEMENTED: _ApiStatusCode.ValueType
57
+ 'The requested API call has not yet been implemented'
58
+
59
+ class ApiStatusCode(_ApiStatusCode, metaclass=_ApiStatusCodeEnumTypeWrapper):
60
+ ...
61
+ AS_UNKNOWN: ApiStatusCode.ValueType
62
+ AS_OK: ApiStatusCode.ValueType
63
+ 'Request succeeded'
64
+ AS_TIMEOUT: ApiStatusCode.ValueType
65
+ 'Request timed out'
66
+ AS_BAD_REQUEST: ApiStatusCode.ValueType
67
+ 'The request had invalid parameters or otherwise was illegal'
68
+ AS_NOT_READY: ApiStatusCode.ValueType
69
+ 'KiCad has recently started and cannot handle API requests yet'
70
+ AS_UNHANDLED: ApiStatusCode.ValueType
71
+ 'The request was not handled by KiCad'
72
+ AS_TOKEN_MISMATCH: ApiStatusCode.ValueType
73
+ "The kicad_token in the request didn't match this KiCad's token"
74
+ AS_BUSY: ApiStatusCode.ValueType
75
+ "KiCad is busy performing an operation and can't accept API commands"
76
+ AS_UNIMPLEMENTED: ApiStatusCode.ValueType
77
+ 'The requested API call has not yet been implemented'
78
+ global___ApiStatusCode = ApiStatusCode
79
+
80
+ @typing.final
81
+ class ApiRequestHeader(google.protobuf.message.Message):
82
+ """
83
+ For future expansion: any header fields that should be sent with a request
84
+ """
85
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
86
+ KICAD_TOKEN_FIELD_NUMBER: builtins.int
87
+ CLIENT_NAME_FIELD_NUMBER: builtins.int
88
+ kicad_token: builtins.str
89
+ "An opaque string identifying a running instance of KiCad. If this is set to a non-empty\n string in an API request, KiCad will reject the request if the value doesn't match its own\n token. This can be used to let API clients make sure they are still talking to the same\n instance of KiCad if they are long-running.\n "
90
+ client_name: builtins.str
91
+ 'A string identifying an API client. Should be set by the client to a value that is unique\n to a specific instance of a client, for example the package name of the client plus its\n process ID or a random string, e.g. "com.github.me.my_awesome_plugin-73951". The main purpose\n of this name is to identify the client in debug logs.\n '
92
+
93
+ def __init__(self, *, kicad_token: builtins.str=..., client_name: builtins.str=...) -> None:
94
+ ...
95
+
96
+ def ClearField(self, field_name: typing.Literal['client_name', b'client_name', 'kicad_token', b'kicad_token']) -> None:
97
+ ...
98
+ global___ApiRequestHeader = ApiRequestHeader
99
+
100
+ @typing.final
101
+ class ApiRequest(google.protobuf.message.Message):
102
+ """
103
+ The top-level envelope container for an API request (message from a client to the KiCad API server)
104
+ """
105
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
106
+ HEADER_FIELD_NUMBER: builtins.int
107
+ MESSAGE_FIELD_NUMBER: builtins.int
108
+
109
+ @property
110
+ def header(self) -> global___ApiRequestHeader:
111
+ ...
112
+
113
+ @property
114
+ def message(self) -> google.protobuf.any_pb2.Any:
115
+ ...
116
+
117
+ def __init__(self, *, header: global___ApiRequestHeader | None=..., message: google.protobuf.any_pb2.Any | None=...) -> None:
118
+ ...
119
+
120
+ def HasField(self, field_name: typing.Literal['header', b'header', 'message', b'message']) -> builtins.bool:
121
+ ...
122
+
123
+ def ClearField(self, field_name: typing.Literal['header', b'header', 'message', b'message']) -> None:
124
+ ...
125
+ global___ApiRequest = ApiRequest
126
+
127
+ @typing.final
128
+ class ApiResponseHeader(google.protobuf.message.Message):
129
+ """
130
+ For future expansion: any header fields that should be sent with a response
131
+ """
132
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
133
+ KICAD_TOKEN_FIELD_NUMBER: builtins.int
134
+ kicad_token: builtins.str
135
+ '/ An opaque string identifying a running instance of KiCad.'
136
+
137
+ def __init__(self, *, kicad_token: builtins.str=...) -> None:
138
+ ...
139
+
140
+ def ClearField(self, field_name: typing.Literal['kicad_token', b'kicad_token']) -> None:
141
+ ...
142
+ global___ApiResponseHeader = ApiResponseHeader
143
+
144
+ @typing.final
145
+ class ApiResponse(google.protobuf.message.Message):
146
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
147
+ HEADER_FIELD_NUMBER: builtins.int
148
+ STATUS_FIELD_NUMBER: builtins.int
149
+ MESSAGE_FIELD_NUMBER: builtins.int
150
+
151
+ @property
152
+ def header(self) -> global___ApiResponseHeader:
153
+ ...
154
+
155
+ @property
156
+ def status(self) -> global___ApiResponseStatus:
157
+ ...
158
+
159
+ @property
160
+ def message(self) -> google.protobuf.any_pb2.Any:
161
+ ...
162
+
163
+ def __init__(self, *, header: global___ApiResponseHeader | None=..., status: global___ApiResponseStatus | None=..., message: google.protobuf.any_pb2.Any | None=...) -> None:
164
+ ...
165
+
166
+ def HasField(self, field_name: typing.Literal['header', b'header', 'message', b'message', 'status', b'status']) -> builtins.bool:
167
+ ...
168
+
169
+ def ClearField(self, field_name: typing.Literal['header', b'header', 'message', b'message', 'status', b'status']) -> None:
170
+ ...
171
+ global___ApiResponse = ApiResponse
172
+
173
+ @typing.final
174
+ class ApiResponseStatus(google.protobuf.message.Message):
175
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
176
+ STATUS_FIELD_NUMBER: builtins.int
177
+ ERROR_MESSAGE_FIELD_NUMBER: builtins.int
178
+ status: global___ApiStatusCode.ValueType
179
+ '/ A code describing the category of error (or AS_OK if no error)'
180
+ error_message: builtins.str
181
+ '/ A human-readable description of the error, if any'
182
+
183
+ def __init__(self, *, status: global___ApiStatusCode.ValueType=..., error_message: builtins.str=...) -> None:
184
+ ...
185
+
186
+ def ClearField(self, field_name: typing.Literal['error_message', b'error_message', 'status', b'status']) -> None:
187
+ ...
188
+ global___ApiResponseStatus = ApiResponseStatus
@@ -0,0 +1,22 @@
1
+ # This program source code file is part of KiCad, a free EDA CAD application.
2
+ #
3
+ # Copyright (C) 2024 KiCad Developers
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify it
6
+ # under the terms of the GNU General Public License as published by the
7
+ # Free Software Foundation, either version 3 of the License, or (at your
8
+ # option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful, but
11
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License along
16
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
17
+
18
+ # flake8: noqa
19
+
20
+ from .base_types_pb2 import *
21
+ from .enums_pb2 import *
22
+ from .project_settings_pb2 import *
@@ -0,0 +1,100 @@
1
+ """Generated protocol buffer code."""
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import descriptor_pool as _descriptor_pool
4
+ from google.protobuf import runtime_version as _runtime_version
5
+ from google.protobuf import symbol_database as _symbol_database
6
+ from google.protobuf.internal import builder as _builder
7
+ _runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 1, '', 'common/types/base_types.proto')
8
+ _sym_db = _symbol_database.Default()
9
+ from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
10
+ from ...common.types import enums_pb2 as common_dot_types_dot_enums__pb2
11
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dcommon/types/base_types.proto\x12\x12kiapi.common.types\x1a google/protobuf/field_mask.proto\x1a\x18common/types/enums.proto"J\n\x15CommandStatusResponse\x121\n\x06status\x18\x01 \x01(\x0e2!.kiapi.common.types.CommandStatus"Q\n\x0cKiCadVersion\x12\r\n\x05major\x18\x01 \x01(\r\x12\r\n\x05minor\x18\x02 \x01(\r\x12\r\n\x05patch\x18\x03 \x01(\r\x12\x14\n\x0cfull_version\x18\x04 \x01(\t"\x15\n\x04KIID\x12\r\n\x05value\x18\x01 \x01(\t"A\n\x11LibraryIdentifier\x12\x18\n\x10library_nickname\x18\x01 \x01(\t\x12\x12\n\nentry_name\x18\x02 \x01(\t"P\n\tSheetPath\x12&\n\x04path\x18\x01 \x03(\x0b2\x18.kiapi.common.types.KIID\x12\x1b\n\x13path_human_readable\x18\x02 \x01(\t".\n\x10ProjectSpecifier\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t"\x90\x02\n\x11DocumentSpecifier\x12.\n\x04type\x18\x01 \x01(\x0e2 .kiapi.common.types.DocumentType\x127\n\x06lib_id\x18\x02 \x01(\x0b2%.kiapi.common.types.LibraryIdentifierH\x00\x123\n\nsheet_path\x18\x03 \x01(\x0b2\x1d.kiapi.common.types.SheetPathH\x00\x12\x18\n\x0eboard_filename\x18\x04 \x01(\tH\x00\x125\n\x07project\x18\x05 \x01(\x0b2$.kiapi.common.types.ProjectSpecifierB\x0c\n\nidentifier"\xa2\x01\n\nItemHeader\x127\n\x08document\x18\x01 \x01(\x0b2%.kiapi.common.types.DocumentSpecifier\x12+\n\tcontainer\x18\x02 \x01(\x0b2\x18.kiapi.common.types.KIID\x12.\n\nfield_mask\x18\x03 \x01(\x0b2\x1a.google.protobuf.FieldMask"%\n\x07Vector2\x12\x0c\n\x04x_nm\x18\x01 \x01(\x03\x12\x0c\n\x04y_nm\x18\x02 \x01(\x03"3\n\x07Vector3\x12\x0c\n\x04x_nm\x18\x01 \x01(\x03\x12\x0c\n\x04y_nm\x18\x02 \x01(\x03\x12\x0c\n\x04z_nm\x18\x03 \x01(\x03"4\n\x08Vector3D\x12\x0c\n\x04x_nm\x18\x01 \x01(\x01\x12\x0c\n\x04y_nm\x18\x02 \x01(\x01\x12\x0c\n\x04z_nm\x18\x03 \x01(\x01"`\n\x04Box2\x12-\n\x08position\x18\x01 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x12)\n\x04size\x18\x02 \x01(\x0b2\x1b.kiapi.common.types.Vector2"\x1c\n\x08Distance\x12\x10\n\x08value_nm\x18\x01 \x01(\x03"\x1e\n\x05Angle\x12\x15\n\rvalue_degrees\x18\x01 \x01(\x01"\x16\n\x05Ratio\x12\r\n\x05value\x18\x01 \x01(\x01"3\n\x05Color\x12\t\n\x01r\x18\x01 \x01(\x01\x12\t\n\x01g\x18\x02 \x01(\x01\x12\t\n\x01b\x18\x03 \x01(\x01\x12\t\n\x01a\x18\x04 \x01(\x01"\x90\x01\n\x0eArcStartMidEnd\x12*\n\x05start\x18\x01 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x12(\n\x03mid\x18\x02 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x12(\n\x03end\x18\x03 \x01(\x0b2\x1b.kiapi.common.types.Vector2"{\n\x0cPolyLineNode\x12,\n\x05point\x18\x01 \x01(\x0b2\x1b.kiapi.common.types.Vector2H\x00\x121\n\x03arc\x18\x02 \x01(\x0b2".kiapi.common.types.ArcStartMidEndH\x00B\n\n\x08geometry"K\n\x08PolyLine\x12/\n\x05nodes\x18\x01 \x03(\x0b2 .kiapi.common.types.PolyLineNode\x12\x0e\n\x06closed\x18\x02 \x01(\x08"n\n\x10PolygonWithHoles\x12-\n\x07outline\x18\x01 \x01(\x0b2\x1c.kiapi.common.types.PolyLine\x12+\n\x05holes\x18\x02 \x03(\x0b2\x1c.kiapi.common.types.PolyLine"A\n\x07PolySet\x126\n\x08polygons\x18\x01 \x03(\x0b2$.kiapi.common.types.PolygonWithHoles"\xca\x03\n\x0eTextAttributes\x12\x11\n\tfont_name\x18\x01 \x01(\t\x12E\n\x14horizontal_alignment\x18\x02 \x01(\x0e2\'.kiapi.common.types.HorizontalAlignment\x12A\n\x12vertical_alignment\x18\x03 \x01(\x0e2%.kiapi.common.types.VerticalAlignment\x12(\n\x05angle\x18\x04 \x01(\x0b2\x19.kiapi.common.types.Angle\x12\x14\n\x0cline_spacing\x18\x05 \x01(\x01\x122\n\x0cstroke_width\x18\x06 \x01(\x0b2\x1c.kiapi.common.types.Distance\x12\x0e\n\x06italic\x18\x07 \x01(\x08\x12\x0c\n\x04bold\x18\x08 \x01(\x08\x12\x12\n\nunderlined\x18\t \x01(\x08\x12\x0f\n\x07visible\x18\n \x01(\x08\x12\x10\n\x08mirrored\x18\x0b \x01(\x08\x12\x11\n\tmultiline\x18\x0c \x01(\x08\x12\x14\n\x0ckeep_upright\x18\r \x01(\x08\x12)\n\x04size\x18\x0e \x01(\x0b2\x1b.kiapi.common.types.Vector2"\x8e\x01\n\x04Text\x12-\n\x08position\x18\x02 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x126\n\nattributes\x18\x03 \x01(\x0b2".kiapi.common.types.TextAttributes\x12\x0c\n\x04text\x18\x05 \x01(\t\x12\x11\n\thyperlink\x18\x06 \x01(\t"\xb1\x01\n\x07TextBox\x12-\n\x08top_left\x18\x02 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x121\n\x0cbottom_right\x18\x03 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x126\n\nattributes\x18\x04 \x01(\x0b2".kiapi.common.types.TextAttributes\x12\x0c\n\x04text\x18\x06 \x01(\t"\x9d\x01\n\x10StrokeAttributes\x12+\n\x05width\x18\x01 \x01(\x0b2\x1c.kiapi.common.types.Distance\x122\n\x05style\x18\x02 \x01(\x0e2#.kiapi.common.types.StrokeLineStyle\x12(\n\x05color\x18\x03 \x01(\x0b2\x19.kiapi.common.types.Color"y\n\x15GraphicFillAttributes\x126\n\tfill_type\x18\x01 \x01(\x0e2#.kiapi.common.types.GraphicFillType\x12(\n\x05color\x18\x02 \x01(\x0b2\x19.kiapi.common.types.Color"\x82\x01\n\x11GraphicAttributes\x124\n\x06stroke\x18\x01 \x01(\x0b2$.kiapi.common.types.StrokeAttributes\x127\n\x04fill\x18\x02 \x01(\x0b2).kiapi.common.types.GraphicFillAttributes"p\n\x18GraphicSegmentAttributes\x12*\n\x05start\x18\x01 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x12(\n\x03end\x18\x02 \x01(\x0b2\x1b.kiapi.common.types.Vector2"~\n\x1aGraphicRectangleAttributes\x12-\n\x08top_left\x18\x01 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x121\n\x0cbottom_right\x18\x02 \x01(\x0b2\x1b.kiapi.common.types.Vector2"\x96\x01\n\x14GraphicArcAttributes\x12*\n\x05start\x18\x01 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x12(\n\x03mid\x18\x02 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x12(\n\x03end\x18\x03 \x01(\x0b2\x1b.kiapi.common.types.Vector2"y\n\x17GraphicCircleAttributes\x12+\n\x06center\x18\x01 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x121\n\x0cradius_point\x18\x02 \x01(\x0b2\x1b.kiapi.common.types.Vector2"\xcd\x01\n\x17GraphicBezierAttributes\x12*\n\x05start\x18\x01 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x12-\n\x08control1\x18\x02 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x12-\n\x08control2\x18\x03 \x01(\x0b2\x1b.kiapi.common.types.Vector2\x12(\n\x03end\x18\x04 \x01(\x0b2\x1b.kiapi.common.types.Vector2"\xc2\x03\n\x0cGraphicShape\x129\n\nattributes\x18\x03 \x01(\x0b2%.kiapi.common.types.GraphicAttributes\x12?\n\x07segment\x18\x04 \x01(\x0b2,.kiapi.common.types.GraphicSegmentAttributesH\x00\x12C\n\trectangle\x18\x05 \x01(\x0b2..kiapi.common.types.GraphicRectangleAttributesH\x00\x127\n\x03arc\x18\x06 \x01(\x0b2(.kiapi.common.types.GraphicArcAttributesH\x00\x12=\n\x06circle\x18\x07 \x01(\x0b2+.kiapi.common.types.GraphicCircleAttributesH\x00\x12.\n\x07polygon\x18\x08 \x01(\x0b2\x1b.kiapi.common.types.PolySetH\x00\x12=\n\x06bezier\x18\t \x01(\x0b2+.kiapi.common.types.GraphicBezierAttributesH\x00B\n\n\x08geometry"A\n\rCompoundShape\x120\n\x06shapes\x18\x01 \x03(\x0b2 .kiapi.common.types.GraphicShape"\xf2\x01\n\x0eTitleBlockInfo\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0c\n\x04date\x18\x02 \x01(\t\x12\x10\n\x08revision\x18\x03 \x01(\t\x12\x0f\n\x07company\x18\x04 \x01(\t\x12\x10\n\x08comment1\x18\x05 \x01(\t\x12\x10\n\x08comment2\x18\x06 \x01(\t\x12\x10\n\x08comment3\x18\x07 \x01(\t\x12\x10\n\x08comment4\x18\x08 \x01(\t\x12\x10\n\x08comment5\x18\t \x01(\t\x12\x10\n\x08comment6\x18\n \x01(\t\x12\x10\n\x08comment7\x18\x0b \x01(\t\x12\x10\n\x08comment8\x18\x0c \x01(\t\x12\x10\n\x08comment9\x18\r \x01(\t*9\n\rCommandStatus\x12\x0e\n\nCS_UNKNOWN\x10\x00\x12\t\n\x05CS_OK\x10\x01\x12\r\n\tCS_FAILED\x10\x02*\xc3\x01\n\tFrameType\x12\x0e\n\nFT_UNKNOWN\x10\x00\x12\x16\n\x12FT_PROJECT_MANAGER\x10\x01\x12\x17\n\x13FT_SCHEMATIC_EDITOR\x10\x02\x12\x11\n\rFT_PCB_EDITOR\x10\x03\x12\x16\n\x12FT_SPICE_SIMULATOR\x10\x04\x12\x14\n\x10FT_SYMBOL_EDITOR\x10\x05\x12\x17\n\x13FT_FOOTPRINT_EDITOR\x10\x06\x12\x1b\n\x17FT_DRAWING_SHEET_EDITOR\x10\x07*\xa6\x01\n\x0cDocumentType\x12\x13\n\x0fDOCTYPE_UNKNOWN\x10\x00\x12\x15\n\x11DOCTYPE_SCHEMATIC\x10\x01\x12\x12\n\x0eDOCTYPE_SYMBOL\x10\x02\x12\x0f\n\x0bDOCTYPE_PCB\x10\x03\x12\x15\n\x11DOCTYPE_FOOTPRINT\x10\x04\x12\x19\n\x15DOCTYPE_DRAWING_SHEET\x10\x05\x12\x13\n\x0fDOCTYPE_PROJECT\x10\x06*h\n\x11ItemRequestStatus\x12\x0f\n\x0bIRS_UNKNOWN\x10\x00\x12\n\n\x06IRS_OK\x10\x01\x12\x1a\n\x16IRS_DOCUMENT_NOT_FOUND\x10\x02\x12\x1a\n\x16IRS_FIELD_MASK_INVALID\x10\x03*=\n\x0bLockedState\x12\x0e\n\nLS_UNKNOWN\x10\x00\x12\x0f\n\x0bLS_UNLOCKED\x10\x01\x12\r\n\tLS_LOCKED\x10\x02*D\n\x0fGraphicFillType\x12\x0f\n\x0bGFT_UNKNOWN\x10\x00\x12\x10\n\x0cGFT_UNFILLED\x10\x01\x12\x0e\n\nGFT_FILLED\x10\x02*=\n\rAxisAlignment\x12\x0e\n\nAA_UNKNOWN\x10\x00\x12\r\n\tAA_X_AXIS\x10\x01\x12\r\n\tAA_Y_AXIS\x10\x02b\x06proto3')
12
+ _globals = globals()
13
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
14
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.types.base_types_pb2', _globals)
15
+ if not _descriptor._USE_C_DESCRIPTORS:
16
+ DESCRIPTOR._loaded_options = None
17
+ _globals['_COMMANDSTATUS']._serialized_start = 4536
18
+ _globals['_COMMANDSTATUS']._serialized_end = 4593
19
+ _globals['_FRAMETYPE']._serialized_start = 4596
20
+ _globals['_FRAMETYPE']._serialized_end = 4791
21
+ _globals['_DOCUMENTTYPE']._serialized_start = 4794
22
+ _globals['_DOCUMENTTYPE']._serialized_end = 4960
23
+ _globals['_ITEMREQUESTSTATUS']._serialized_start = 4962
24
+ _globals['_ITEMREQUESTSTATUS']._serialized_end = 5066
25
+ _globals['_LOCKEDSTATE']._serialized_start = 5068
26
+ _globals['_LOCKEDSTATE']._serialized_end = 5129
27
+ _globals['_GRAPHICFILLTYPE']._serialized_start = 5131
28
+ _globals['_GRAPHICFILLTYPE']._serialized_end = 5199
29
+ _globals['_AXISALIGNMENT']._serialized_start = 5201
30
+ _globals['_AXISALIGNMENT']._serialized_end = 5262
31
+ _globals['_COMMANDSTATUSRESPONSE']._serialized_start = 113
32
+ _globals['_COMMANDSTATUSRESPONSE']._serialized_end = 187
33
+ _globals['_KICADVERSION']._serialized_start = 189
34
+ _globals['_KICADVERSION']._serialized_end = 270
35
+ _globals['_KIID']._serialized_start = 272
36
+ _globals['_KIID']._serialized_end = 293
37
+ _globals['_LIBRARYIDENTIFIER']._serialized_start = 295
38
+ _globals['_LIBRARYIDENTIFIER']._serialized_end = 360
39
+ _globals['_SHEETPATH']._serialized_start = 362
40
+ _globals['_SHEETPATH']._serialized_end = 442
41
+ _globals['_PROJECTSPECIFIER']._serialized_start = 444
42
+ _globals['_PROJECTSPECIFIER']._serialized_end = 490
43
+ _globals['_DOCUMENTSPECIFIER']._serialized_start = 493
44
+ _globals['_DOCUMENTSPECIFIER']._serialized_end = 765
45
+ _globals['_ITEMHEADER']._serialized_start = 768
46
+ _globals['_ITEMHEADER']._serialized_end = 930
47
+ _globals['_VECTOR2']._serialized_start = 932
48
+ _globals['_VECTOR2']._serialized_end = 969
49
+ _globals['_VECTOR3']._serialized_start = 971
50
+ _globals['_VECTOR3']._serialized_end = 1022
51
+ _globals['_VECTOR3D']._serialized_start = 1024
52
+ _globals['_VECTOR3D']._serialized_end = 1076
53
+ _globals['_BOX2']._serialized_start = 1078
54
+ _globals['_BOX2']._serialized_end = 1174
55
+ _globals['_DISTANCE']._serialized_start = 1176
56
+ _globals['_DISTANCE']._serialized_end = 1204
57
+ _globals['_ANGLE']._serialized_start = 1206
58
+ _globals['_ANGLE']._serialized_end = 1236
59
+ _globals['_RATIO']._serialized_start = 1238
60
+ _globals['_RATIO']._serialized_end = 1260
61
+ _globals['_COLOR']._serialized_start = 1262
62
+ _globals['_COLOR']._serialized_end = 1313
63
+ _globals['_ARCSTARTMIDEND']._serialized_start = 1316
64
+ _globals['_ARCSTARTMIDEND']._serialized_end = 1460
65
+ _globals['_POLYLINENODE']._serialized_start = 1462
66
+ _globals['_POLYLINENODE']._serialized_end = 1585
67
+ _globals['_POLYLINE']._serialized_start = 1587
68
+ _globals['_POLYLINE']._serialized_end = 1662
69
+ _globals['_POLYGONWITHHOLES']._serialized_start = 1664
70
+ _globals['_POLYGONWITHHOLES']._serialized_end = 1774
71
+ _globals['_POLYSET']._serialized_start = 1776
72
+ _globals['_POLYSET']._serialized_end = 1841
73
+ _globals['_TEXTATTRIBUTES']._serialized_start = 1844
74
+ _globals['_TEXTATTRIBUTES']._serialized_end = 2302
75
+ _globals['_TEXT']._serialized_start = 2305
76
+ _globals['_TEXT']._serialized_end = 2447
77
+ _globals['_TEXTBOX']._serialized_start = 2450
78
+ _globals['_TEXTBOX']._serialized_end = 2627
79
+ _globals['_STROKEATTRIBUTES']._serialized_start = 2630
80
+ _globals['_STROKEATTRIBUTES']._serialized_end = 2787
81
+ _globals['_GRAPHICFILLATTRIBUTES']._serialized_start = 2789
82
+ _globals['_GRAPHICFILLATTRIBUTES']._serialized_end = 2910
83
+ _globals['_GRAPHICATTRIBUTES']._serialized_start = 2913
84
+ _globals['_GRAPHICATTRIBUTES']._serialized_end = 3043
85
+ _globals['_GRAPHICSEGMENTATTRIBUTES']._serialized_start = 3045
86
+ _globals['_GRAPHICSEGMENTATTRIBUTES']._serialized_end = 3157
87
+ _globals['_GRAPHICRECTANGLEATTRIBUTES']._serialized_start = 3159
88
+ _globals['_GRAPHICRECTANGLEATTRIBUTES']._serialized_end = 3285
89
+ _globals['_GRAPHICARCATTRIBUTES']._serialized_start = 3288
90
+ _globals['_GRAPHICARCATTRIBUTES']._serialized_end = 3438
91
+ _globals['_GRAPHICCIRCLEATTRIBUTES']._serialized_start = 3440
92
+ _globals['_GRAPHICCIRCLEATTRIBUTES']._serialized_end = 3561
93
+ _globals['_GRAPHICBEZIERATTRIBUTES']._serialized_start = 3564
94
+ _globals['_GRAPHICBEZIERATTRIBUTES']._serialized_end = 3769
95
+ _globals['_GRAPHICSHAPE']._serialized_start = 3772
96
+ _globals['_GRAPHICSHAPE']._serialized_end = 4222
97
+ _globals['_COMPOUNDSHAPE']._serialized_start = 4224
98
+ _globals['_COMPOUNDSHAPE']._serialized_end = 4289
99
+ _globals['_TITLEBLOCKINFO']._serialized_start = 4292
100
+ _globals['_TITLEBLOCKINFO']._serialized_end = 4534