protodec
Version, currently 0.1.34 versions
- 0.1.3latestApr 9, 2020
- 0.1.2not indexedApr 10, 2021
- 0.1.1not indexedApr 10, 2021
- 0.1.0not indexedApr 10, 2021
github.com/omarroth/protodec
Command-line tool to encode and decode arbitrary protobuf data
8 stars
4 dependents
License: GPLv3
Installation
# Add this to your shard.yml
dependencies:
protodec:
github: omarroth/protodec
version: ~> 0.1.3Then run:
shards installshard.yml
- Crystal
0.34.0- License
- GPLv3
- Author
- Omar Roth
- Target
protodecfrom src/protodec.cr
Dependencies
This version declares no dependencies.
README
protodec
Command-line tool to encode and decode arbitrary protobuf data.
Usage
$ ./protodec -h
Usage: protodec [arguments]
Command-line encoder and decoder for arbitrary protobuf data. Reads from standard input.
-e, --encode Encode input
-d, --decode Decode input (default)
-b, --base64 STDIN is Base64-encoded
-x, --hex STDIN is space-separated hexstring
-r, --raw STDIN is raw binary data (default)
-p, --pretty Pretty print output
-h, --help Show this help
$ echo 'CkEKCeOCj+OBn+OBlxDSCSIQWmQ730+N8z8tsp3vp8YJQCoSCAESBzA4MDAwMDAaBQ26sSZEKgsIARIHMDgwMDAwMBXD9UhA' | ./protodec -bp
{
"1:0:embedded": {
"1:0:string": "わたし",
"2:1:varint": 1234,
"4:2:bytes": [
90,
100,
59,
223,
79,
141,
243,
63,
45,
178,
157,
239,
167,
198,
9,
64
],
"5:3:embedded": {
"1:0:varint": 1,
"2:1:string": "0800000",
"3:2:embedded": {
"1:0:float32": 666.7769775390625
}
},
"5:4:embedded": {
"1:0:varint": 1,
"2:1:string": "0800000"
}
},
"2:1:float32": 3.140000104904175
}
Contributing
- Fork it (https://github.com/omarroth/protodec/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Omar Roth - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.3- Tagged
- Apr 9, 2020
- Commit
aace6fbbbd32- Crystal
0.34.0- Indexed
- yes
Dependents
Repository
github.com/omarroth/protodec
Metadata
- Created
- Aug 19, 2026
- Updated
- Sep 22, 2026
- Synced
- Sep 22, 2026
- Versions
- 4