View Source parthenon

Build Status Coverage Hex Pm Docs Erlang Versions

parthenon is an OTP application that parses AWS Athena structures into Erlang terms.

usage

Usage

Inside rebar.config:

%% ...
{deps, [
    %% ...
    parthenon
]}.

Inside .app.src:

%% ...
{applications, [
    %% ...
    parthenon
]},
%% ...

Inside the code:

parthenon:add_schema(athena_structure, <<"struct<a: int, b: int>">>).
parthenon:decode(athena_structure, <<"{a=123, b=456}">>).

{ok, Binary} = file:read_file("/path/to/athena-structure-schema").
parthenon:add_schema(athena_structure, Binary).
{ok, RawStructure} = file:read_file("/path/to/raw-athena-structure").
parthenon:decode(athena_structure, RawStructure).

development

Development

running-all-the-tests-and-linters

Running all the tests and linters

You can run all the tests and linters with the rebar3 alias:

rebar3 check