Skip to main content

formart thrift file

Project description

thrift-fmt

thrift formatter

Usage

install

pip install thrift-fmt

run

thrift-fmt xx.thrift

thrift-fmt xx.thrift xx.out.thrift

parser https://github.com/alingse/thrift-parser

TODO

  1. 支持控制 patch 与否
  2. 支持 -w 回写
  3. 支持目录

LICENSE

fixtures 中部分thrift 是来自于 https://github.com/apache/thrift/blob/master/tutorial/ 是 Apache 证书的

thrift-parser 中使用的 Thrift.g4 是来自于 https://github.com/antlr/grammars-v4

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

thrift-fmt-0.1.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

thrift_fmt-0.1.2-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

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