{"id":19691481,"url":"https://github.com/kbrw/calibex","last_synced_at":"2025-04-29T09:31:03.969Z","repository":{"id":57481915,"uuid":"91280596","full_name":"kbrw/calibex","owner":"kbrw","description":"Elixir ICal : bijective coding/decoding for ICal transformation, ICal email request and responses.","archived":false,"fork":false,"pushed_at":"2024-05-28T09:38:12.000Z","size":33,"stargazers_count":17,"open_issues_count":3,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-24T08:45:24.531Z","etag":null,"topics":["decoding","ical"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kbrw.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":"2017-05-15T00:39:15.000Z","updated_at":"2025-01-28T22:04:34.000Z","dependencies_parsed_at":"2024-05-28T12:21:38.695Z","dependency_job_id":null,"html_url":"https://github.com/kbrw/calibex","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"3eed433977a61ba169af739471f7d44b393e8386"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrw%2Fcalibex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrw%2Fcalibex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrw%2Fcalibex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbrw%2Fcalibex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kbrw","download_url":"https://codeload.github.com/kbrw/calibex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251473194,"owners_count":21595022,"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":["decoding","ical"],"created_at":"2024-11-11T19:09:21.463Z","updated_at":"2025-04-29T09:31:03.599Z","avatar_url":"https://github.com/kbrw.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calibex [![Build Status](https://github.com/kbrw/calibex/actions/workflows/.github/workflows/build-and-test.yml/badge.svg)](https://github.com/kbrw/calibex/actions/workflows/build-and-test.yml) [![Hex.pm](https://img.shields.io/hexpm/v/calibex.svg)](https://hex.pm/packages/calibex) [![Documentation](https://img.shields.io/badge/documentation-gray)](https://hexdocs.pm/calibex) ![Hex.pm License](https://img.shields.io/hexpm/l/calibex)\n\nPlease read the doc at : [https://hexdocs.pm/calibex](https://hexdocs.pm/calibex)\n\n**Handle exhaustively ICal format**: bijective coding/decoding for ICal\ntransformation, ICal email request and responses.\n\nSimple algorithm for ICal encoding : *every ICal fields handled*.\n\n## ICal Elixir bijective format\n\nThe ICal elixir term is an exact representation of the ICal file format.\n\nFor instance :\n\n```elixir\n[\n  vcalendar: [\n    [\n      prodid: \"-//Google Inc//Google Calendar 70.9054//EN\",\n      version: \"2.0\",\n      calscale: \"GREGORIAN\",\n      vevent: [\n        [\n          dtstart: %DateTime{},\n          dtend: %DateTime{},\n          organizer: [cn: \"My Name\", value: \"mailto:me@example.com\"],\n          attendee: [\n            cutype: \"INDIVIDUAL\",\n            role: \"REQ-PARTICIPANT\",\n            partstat: \"NEEDS-ACTION\",\n            rsvp: true,\n            cn: \"Moi\",\n            \"x-num-guests\": 0,\n            value: \"mailto:me@example.com\"\n          ]\n        ]\n      ]\n    ]\n  ]\n]\n```\n\n[`Calibex.encode/1`](https://hexdocs.pm/calibex/Calibex.html#encode/1)\nand [`Calibex.decode/1`](https://hexdocs.pm/calibex/Calibex.html#decode/1)\nparse and format an ICal from these terms : see functions doc to find encoding\nrules.\n\nUsing this terms make it possible to handle all types of ICal files and any\nfields type. But the downside of this approach is that it can be cumbersome\nto create and handle this tree of keyword lists. To help you in this tasks,\nsome helpers functions are provided :\n\n- [`Calibex.new/1`](https://hexdocs.pm/calibex/Calibex.html#decode/1)\n- [`Calibex.new_root/1`](https://hexdocs.pm/calibex/Calibex.html#new_root/1)\n- [`Calibex.request/1`](https://hexdocs.pm/calibex/Calibex.html#request/1)\n\n\n## Example usage : email event request generation\n\n```elixir\nCalibex.request(\n  dtstart: Timex.now(),\n  dtend: Timex.shift(Timex.now(), hours: 1),\n  summary: \"Mon évènement\",\n  organizer: \"arnaud.wetzel@example.com\",\n  attendee: \"jeanpierre@yahoo.fr\",\n  attendee: \"jean@ya.fr\"\n)\n|\u003e Calibex.encode()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbrw%2Fcalibex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkbrw%2Fcalibex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbrw%2Fcalibex/lists"}