8000 GitHub - mccorby/proto: The JSON proto file which defines types for all Serde encoding across languages
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mccorby/proto

 
 

Repository files navigation

Syft-Proto

This repo defines the Syft protocol, and contains the information required to serialize Syft messages as either msgpack or protobuf.

msgpack

proto.json contains constants for encoding PySyft data types.

Protobuf

Schemas are found in ./protobuf, in a directory structure that roughly matches the package structure of PySyft. To compile new or modified schemas to Python stubs, run ./build_stubs.sh, which uses the Buf toolchain for working with Protobuf. To install buf, follow the instructions here.

Using Syft-Proto as a Dependency

Python

Can be installed with pip: pip install syft-proto

Example code:

from syft_proto import proto_info
print(proto_info)

Javascript/NPM

Can be installed with npm:

npm i --save https://github.com/OpenMined/syft-proto

Example code:

const proto = require('syft-proto').proto_info
console.log(proto)

Kotlin/Java

Using Gradle:

implementation 'org.openmined.kotlinsyft:syft-proto-jvm:<latest_version>'

About

The JSON proto file which defines types for all Serde encoding across languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.8%
  • Python 22.8%
  • Swift 14.1%
  • Makefile 0.3%
0