{"id":17678509,"url":"https://github.com/antoinegagne/parthenon","last_synced_at":"2025-05-07T21:45:51.549Z","repository":{"id":50902761,"uuid":"516119086","full_name":"AntoineGagne/parthenon","owner":"AntoineGagne","description":"A library to parse Athena structures into Erlang terms","archived":false,"fork":false,"pushed_at":"2024-07-18T16:06:28.000Z","size":54,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T21:45:45.363Z","etag":null,"topics":["athena","aws","aws-athena","erlang","erlang-library","hex","parser"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/parthenon","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntoineGagne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-20T20:03:21.000Z","updated_at":"2025-01-21T13:19:22.000Z","dependencies_parsed_at":"2024-06-28T16:12:20.722Z","dependency_job_id":"0dfd341f-8b8d-437a-b267-ef970e76804f","html_url":"https://github.com/AntoineGagne/parthenon","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"743400c067f369c793eb186b83e8a578ebea5509"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoineGagne%2Fparthenon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoineGagne%2Fparthenon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoineGagne%2Fparthenon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoineGagne%2Fparthenon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntoineGagne","download_url":"https://codeload.github.com/AntoineGagne/parthenon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961858,"owners_count":21832192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["athena","aws","aws-athena","erlang","erlang-library","hex","parser"],"created_at":"2024-10-24T08:05:03.147Z","updated_at":"2025-05-07T21:45:51.526Z","avatar_url":"https://github.com/AntoineGagne.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parthenon\n\n[![Build Status](https://github.com/AntoineGagne/parthenon/actions/workflows/erlang.yml/badge.svg)](https://github.com/AntoineGagne/parthenon/actions)\n[![Coverage](https://coveralls.io/repos/AntoineGagne/parthenon/badge.png?branch=master)](https://coveralls.io/r/AntoineGagne/parthenon?branch=master)\n[![Hex Pm](http://img.shields.io/hexpm/v/parthenon.svg?style=flat)](https://hex.pm/packages/parthenon)\n[![Docs](https://img.shields.io/badge/hex-docs-green.svg?style=flat)](https://hexdocs.pm/parthenon)\n[![Erlang Versions](https://img.shields.io/badge/Supported%20Erlang%2FOTP-21%20to%2027-blue)](http://www.erlang.org)\n\n`parthenon` is an OTP application that parses AWS Athena structures into Erlang terms.\n\n## Usage\n\nInside `rebar.config`:\n\n```erl\n%% ...\n{deps, [\n    %% ...\n    parthenon\n]}.\n```\n\nInside ``.app.src``:\n\n```erl\n%% ...\n{applications, [\n    %% ...\n    parthenon\n]},\n%% ...\n```\n\nInside the code:\n\n```erl\nok = parthenon:add_schema(athena_structure, \u003c\u003c\"struct\u003ca: int, b: int\u003e\"\u003e\u003e).\n{ok, #{a := 123, b := 456}} = parthenon:decode(athena_structure, \u003c\u003c\"{a=123, b=456}\"\u003e\u003e, [\n    {object_format, maps}, {key_format, existing_atom}\n]).\n```\n\nTo test it out from the shell, it is possible to simply do:\n\n```erl\napplication:ensure_all_started(parthenon).\nok = parthenon:add_schema(athena_structure, \u003c\u003c\"struct\u003ca: int, b: int\u003e\"\u003e\u003e).\n{ok, #{a := 123, b := 456} = Response} = parthenon:decode(athena_structure, \u003c\u003c\"{a=123, b=456}\"\u003e\u003e, [\n    {object_format, maps}, {key_format, existing_atom}\n]).\n\nok = parthenon:add_schema(nested_structures, \u003c\u003c\"struct\u003ca: int, b: array\u003cstruct\u003cc: int, d: string\u003e\u003e\u003e\"\u003e\u003e).\n{ok, #{a := 123, b := [#{c := 456, d := \u003c\u003c\"Some test, some test\"\u003e\u003e}]} = Response2} = parthenon:decode(\n    nested_structures, \u003c\u003c\"{a=123, b=[{c=456, d=Some test, some test}]}\"\u003e\u003e, [\n        {object_format, maps}, {key_format, existing_atom}\n    ]\n).\n\n%% If `jiffy' is present\n\u003c\u003c\"{\\\"b\\\":456,\\\"a\\\":123}\"\u003e\u003e = jiffy:encode(Response).\n\u003c\u003c\"{\\\"b\\\":[{\\\"d\\\":\\\"Some test, some test\\\",\\\"c\\\":456}],\\\"a\\\":123}\"\u003e\u003e = jiffy:encode(Response2).\n```\n\n## Development\n\n### Running all the tests and linters\n\nYou can run all the tests and linters with the ``rebar3`` alias:\n\n```sh\nrebar3 check\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoinegagne%2Fparthenon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoinegagne%2Fparthenon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoinegagne%2Fparthenon/lists"}