Generate d.ts files for JSON objects from protobuf specs
Project description
# json-ts-protobuf: Generate Typescript declaration files for JSON objects from protobuf specs
## Requirements protoc 3.0.0 or greater python 3.5 Other configurations may work.
## Python Implementation There is currently only a python implementation of the plugin
The plugin can be installed with
pip install json-ts-protobuf
On posix, ensure that the protoc-gen-json-ts script installed onto your $PATH. Then run.
protoc –json-ts_out=output/location
Alternately, you can explicitly provide the path:
protoc –plugin=protoc-gen-json-ts=path/to/protoc-gen-json-ts –json-ts_out=output/location
To suppress output, you can run
protoc –json-ts_out=quiet:output/location
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for typescript-protobuf-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf5a832c0c07f51fd0554e8a60f75cd016490380314f60e42dac71a343c5336d |
|
MD5 | 4d11305961456af6bb63203ba9021d55 |
|
BLAKE2b-256 | 7e51ce0c4725c8c1f1ed2a717f839cd4529204fb9f2445b9125beaaac42654f0 |
Hashes for typescript_protobuf-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6e6a99ec11189dc951a22c81c648b80a2f6a123fa0eedfe7b356970853226d4 |
|
MD5 | 2f8d50f88e9bd22c99d344f2f246c34f |
|
BLAKE2b-256 | 6833108d2d80bebe74c47d30f7f4a4e628177a8be4c88cd51acea49f9de15a6d |