文件名称:cypb:适用于Python的快速协议缓冲区模块
文件大小:173KB
文件格式:ZIP
更新时间:2024-05-24 01:48:41
Python
半胱氨酸 什么是CyPB? CyPB是适用于Python的快速轻便的协议缓冲区解码器。 延迟解码支持。 首次访问属性时,对消息进行动态解码。 如果仅访问消息的某些部分,则可以大大提高性能(在某些情况下约为100倍)。 快速地。 完全解码器的速度是PB 2.4中Google的新C ++包装器模块的两倍 没有其他依赖项和库。 自动生成的C代码将编译为Python模块。 用法和示例 编译您的原始文件 protoc your_proto_file.proto -o your_proto_file.pb2 生成C模块 python generator.py your_proto_file.pb2 将C模块编译为Python扩展 make compile 用Python解码消息 from ctest import PBMsg from pb_types import MSG_Contact ms
【文件预览】:
cypb-master
----run_capi.py(730B)
----generator.py(2KB)
----pb2.4()
--------run_google24.py(443B)
--------connexio.pb.h(35KB)
--------connexio_pb2.py(8KB)
--------google()
--------Makefile(191B)
--------connexio.pb.cc(49KB)
----LICENSE(1KB)
----README.md(2KB)
----Makefile(306B)
----test.pb2(902B)
----run_lazy.py(1KB)
----descriptor_compiled.h(4KB)
----test.proto(2KB)
----pb_types.py(288B)
----ctest.c(11KB)