formart thrift file
Project description
thrift-fmt
thrift formatter
Usage
install
pip install thrift-fmt
thrift-fmt xx.thrift
parser https://github.com/alingse/thrift-parser
TODO
[x] 1. 单文件解析 [x] 2. 定义格式 空格/换行/注释 [x] 3. 支持 include? [x] 4. 封装成 python package 5. struct 依赖排序(生成 python 代码会有依赖问题) [x] 6. 补充 optional/required [x] 7. 校正类型 8. 兼容注释
LICENSE
fixtures 中部分thrift 是来自于 https://github.com/apache/thrift/blob/master/tutorial/ 是 Apache 证书的
thrift-parser 中使用的 Thrift.g4 是来自于 https://github.com/antlr/grammars-v4
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for thrift_fmt-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff5d306d0edab2605b2060e83aabfe1069bd3537425cd347958e5640babc1d43 |
|
MD5 | 5de4c9c722fcbb3817b7e6c2024188e5 |
|
BLAKE2b-256 | 2547c66db0822aa3c91593b2555bf99c7f568a0b18f2933eefaa9c4138c8cbc6 |