Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py73 linesDownload Raw Back to proto
1# Copyright 2018 Google LLC2#3# Licensed under the Apache License, Version 2.0 (the "License");4# you may not use this file except in compliance with the License.5# You may obtain a copy of the License at6#7#     https://www.apache.org/licenses/LICENSE-2.08#9# Unless required by applicable law or agreed to in writing, software10# distributed under the License is distributed on an "AS IS" BASIS,11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12# See the License for the specific language governing permissions and13# limitations under the License.14 15from .enums import Enum16from .fields import Field17from .fields import MapField18from .fields import RepeatedField19from .marshal import Marshal20from .message import Message21from .modules import define_module as module22from .primitives import ProtoType23from .version import __version__24 25 26DOUBLE = ProtoType.DOUBLE27FLOAT = ProtoType.FLOAT28INT64 = ProtoType.INT6429UINT64 = ProtoType.UINT6430INT32 = ProtoType.INT3231FIXED64 = ProtoType.FIXED6432FIXED32 = ProtoType.FIXED3233BOOL = ProtoType.BOOL34STRING = ProtoType.STRING35MESSAGE = ProtoType.MESSAGE36BYTES = ProtoType.BYTES37UINT32 = ProtoType.UINT3238ENUM = ProtoType.ENUM39SFIXED32 = ProtoType.SFIXED3240SFIXED64 = ProtoType.SFIXED6441SINT32 = ProtoType.SINT3242SINT64 = ProtoType.SINT6443 44 45__all__ = (46    "__version__",47    "Enum",48    "Field",49    "MapField",50    "RepeatedField",51    "Marshal",52    "Message",53    "module",54    # Expose the types directly.55    "DOUBLE",56    "FLOAT",57    "INT64",58    "UINT64",59    "INT32",60    "FIXED64",61    "FIXED32",62    "BOOL",63    "STRING",64    "MESSAGE",65    "BYTES",66    "UINT32",67    "ENUM",68    "SFIXED32",69    "SFIXED64",70    "SINT32",71    "SINT64",72)73 
codekingpro/portable-devtools · Team Ai