{"id":15046152,"url":"https://github.com/gprimola/yamel","last_synced_at":"2025-06-14T09:06:30.444Z","repository":{"id":55120894,"uuid":"296980003","full_name":"GPrimola/yamel","owner":"GPrimola","description":"Yamel is a YAML parser and serializer lib for Elixir.","archived":false,"fork":false,"pushed_at":"2024-03-02T18:56:32.000Z","size":215,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T09:05:09.610Z","etag":null,"topics":["elixir","encoder-decoder","hacktoberfest","parser","serializer","yaml","yaml-parser","yml"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/yamel/api-reference.html","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GPrimola.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-09-20T01:23:03.000Z","updated_at":"2024-04-06T20:00:56.000Z","dependencies_parsed_at":"2025-02-11T06:41:28.095Z","dependency_job_id":null,"html_url":"https://github.com/GPrimola/yamel","commit_stats":{"total_commits":67,"total_committers":7,"mean_commits":9.571428571428571,"dds":"0.34328358208955223","last_synced_commit":"2b41e3d54a65896421ee0e9b45ea6c84ad7804ce"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/GPrimola/yamel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GPrimola%2Fyamel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GPrimola%2Fyamel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GPrimola%2Fyamel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GPrimola%2Fyamel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GPrimola","download_url":"https://codeload.github.com/GPrimola/yamel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GPrimola%2Fyamel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259790455,"owners_count":22911547,"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":["elixir","encoder-decoder","hacktoberfest","parser","serializer","yaml","yaml-parser","yml"],"created_at":"2024-09-24T20:52:46.716Z","updated_at":"2025-06-14T09:06:30.427Z","avatar_url":"https://github.com/GPrimola.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yamel - Yaml Serializer and Parser\n\n![CI](https://github.com/GPrimola/yamel/workflows/Main%20CI/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/GPrimola/yamel/badge.svg?branch=master)](https://coveralls.io/github/GPrimola/yamel?branch=master)\n[![Docs](https://img.shields.io/badge/api-docs-blueviolet.svg?style=flat)](https://hexdocs.pm/yamel)\n![Hex.pm](https://img.shields.io/hexpm/v/yamel)\n\u003c!-- ![Hex.pm](https://img.shields.io/hexpm/dt/yamel) --\u003e\n\n---\n\nAn [yaml](https://en.wikipedia.org/wiki/YAML) parser and serializer to work with Yaml files in Elixir.\n\n## Installation\n\nAdd `yamel` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:yamel, \"~\u003e 2.0.4\"}\n  ]\nend\n```\n\n\n## Usage\n\n```elixir\nyaml_string = ~S\"\"\"\nfoo: bar\nzoo:\n  - caa\n  - boo\n  - vee\n\"\"\"\n\nYamel.decode!(yaml_string) # equivalent to Yamel.decode!(yaml_string, keys: :string)\n=\u003e %{\"foo\" =\u003e \"bar\", \"zoo\" =\u003e [\"caa\", \"boo\", \"vee\"]}\n\nYamel.decode!(yaml_string, keys: :atom)\n=\u003e %{foo: \"bar\", zoo: [\"caa\", \"boo\", \"vee\"]}\n\nYamel.encode!([\"caa\", :boo, :\"\\\"foo\\\"\"])\n=\u003e \"- caa\\n- boo\\n- \\\"foo\\\"\\n\\n\"\n\n%{foo: :bar, zoo: :caa}\n|\u003e Yamel.encode!()\n|\u003e Yamel.IO.write!(\"/to/file.yml\")\n=\u003e :ok\n\n%{foo: value} = Yamel.IO.read!(\"/from/file.yaml\")\n```\n\n### Deriving\n\n```elixir\ndefmodule MyApp.MyStruct do\n  defstruct [:field1, :field2, :field3, field4: true]\n  @derive {Yamel.Encoder, only: [:field2, :field4]}\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgprimola%2Fyamel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgprimola%2Fyamel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgprimola%2Fyamel/lists"}