marload / syft-proto

Defines types for all Serde encoding across languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>'

Support

For support in using this library, please join the #lib_syft-proto Slack channel. If you’d like to follow along with any code changes to the library, please join the #code_syft-proto Slack channel. Click here to join our Slack community!

About

Defines types for all Serde encoding across languages

License:Apache License 2.0


Languages

Language:JavaScript 78.4%Language:Swift 14.9%Language:Python 6.0%Language:Ruby 0.4%Language:Makefile 0.2%