package piqilib

  1. Overview
  2. Docs
The Piqi library -- runtime support for multi-format Protobuf/JSON/XML/Piq data serialization and conversion

Install

Dune Dependency

Authors

Maintainers

Sources

v0.6.16.tar.gz
md5=33121fae570f0949426bab875c809b78

Description

Published: 09 Aug 2022

README

README.md

Piqi is a universal schema language and a collection of tools built around it.

The Piqi language can be used to define schemas for JSON, XML, Google Protocol Buffers and some other data formats.

piqi is a command-line program that exposes some of the tools:

  • for validating, pretty-printing and converting data between JSON, XML, Protocol Buffers and Piq formats.

  • for working with the schemas, such as converting definitions between Piqi (.piqi) and Protocol Buffes (.proto), and "compiling" Piqi definitions into one of the supported portable data representation formats (JSON, XML, Protocol Buffers).

Other Piqi sub-projects include:

  • A multi-format (JSON, XML, Protocol Buffers) data serialization system for Erlang and OCaml.

  • Piq -- a human-friendly typed data representation language. It is designed to be more convenient for viewing and editing data compared to JSON, XML, CSV, S-expressions and other formats.

  • Piqi-RPC -- an RPC-over-HTTP system for Erlang. It provides a simple way to expose Erlang services via JSON, XML and Protocol Buffers over HTTP.

The Piqi project was inspired by Google Protocol Buffers and designed to be largely compatible with it. Like Protocol Buffers, Piqi relies on type definitions and supports schema evolution. The main differences is that Piqi has a richer data model, high-level modules, standard mappings to JSON and XML, and comes with a powerful data representation format (Piq). Also, Piqi is a lot more extensible.

Full project description and documentation can be found at http://piqi.org

Installation

See INSTALL for the installation instructions.

Bug tracker

If you found a bug or have any suggestions please submit a GitHub issue: https://github.com/alavrik/piqi/issues

Contributing

Participation and patches are very welcome! Check TODO list for ideas.

The best way to submit a contribution is to open a pull request on GitHub against the master branch.

Mailing list

For discussions about the usage, development, and future of Piqi there is the Piqi Google Group: http://groups.google.com/group/piqi

License

Apache License Version 2.0

Files

src/                  "piqi" command-line utility
piqilib/              common library used by piqi command-line tool and piqi-ocaml
piqi/                 Piqi self-specification
doc/                  project documentation

make/                 makefiles and build scripts
deps/                 third-party dependencies downloaded and built by `make deps`

Dependencies (6)

  1. base64 >= "3.1.0"
  2. xmlm
  3. sedlex >= "2.0" & < "3.0"
  4. easy-format
  5. dune >= "2.0.0"
  6. ocaml >= "4.03"

Dev Dependencies

None

Used by (4)

  1. binsec < "0.4.0"
  2. caisar
  3. dtc-pb
  4. piqi >= "0.7.0"

Conflicts

None