avro-piper: Tool for decoding avro

[ bsd3, data, library, program ] [ Propose Tags ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.1, 1.0.2, 1.0.3
Change log ChangeLog.md
Dependencies aeson (>=1.4.6.0 && <1.5), avro (>=0.4.5.4 && <0.5), avro-piper, base (>=4.7 && <5), bytestring (>=0.10 && <0.11), conduit (>=1.3.1.2 && <1.4), conduit-combinators (>=1.3.0 && <1.4), conduit-extra (>=1.3.4 && <1.4), hw-kafka-avro (>=4.0.1 && <4.1), mtl (>=2.2.2 && <2.3), optparse-applicative (>=0.15.1.0 && <0.16), scientific (>=0.3.6.2 && <0.4), stringsearch (>=0.3.6.6 && <0.4), text (>=1.2.3.1 && <1.3), unordered-containers (>=0.2.10.0 && <0.3) [details]
License BSD-3-Clause
Copyright Alexey Raga
Author Alexey Raga
Maintainer alexey.raga@gmail.com
Category Data
Home page https://github.com/haskell-works/avro-piper#readme
Bug tracker https://github.com/haskell-works/avro-piper/issues
Source repo head: git clone https://github.com/haskell-works/avro-piper
Uploaded by haskellworks at 2020-01-09T23:48:19Z
Distributions
Executables avro-decode
Downloads 953 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-01-10 [all 1 reports]

Readme for avro-piper-1.0.2

[back to package description]

avro-piper

A Schema-registry aware avro decoding tool

Example

This tool is intended to be used with kafkacat as:

$ kafkacat -q -b 127.0.0.1 -t data-topic -p 4 -o beginning -c 5 -D '---' | avro-decode -r http://127.0.0.1:8081 -D '---' | jq .
{
  "id": 185,
  "name": "Utah Education Network",
  "timestamp": 1473674981000
}
{
  "id": 185,
  "name": "Utah Education Network",
  "timestamp": 1473626112000
}
{
  "id": 185,
  "name": "Utah Education Network",
  "timestamp": 1473628416000
}
{
  "id": 185,
  "name": "Utah Education Network",
  "timestamp": 1473697795000
}
{
  "id": 185,
  "name": "Utah Education Network",
  "timestamp": 1473634687000
}

To build (or not to build)

git clone git@github.com:haskell-works/avro-piper.git
cd avro-piper
stack install