Skip to main content

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

typescript-protobuf-0.6.0.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file typescript-protobuf-0.6.0.tar.gz.

File metadata

  • Download URL: typescript-protobuf-0.6.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for typescript-protobuf-0.6.0.tar.gz
Algorithm Hash digest
SHA256 2590c04209cd0b895f6d252af134399044c3f63d10bb85d40928ebba48b9da5c
MD5 f253131ed2d2d47b222e2e2d5d7fcfeb
BLAKE2b-256 0562498ca8616a71760dbb7f055e145df89b8b62ebcfe3d9e76c41504720d4a1

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page