{"id":15056431,"url":"https://github.com/shiguredo/kvconf","last_synced_at":"2025-08-03T03:35:24.388Z","repository":{"id":42582059,"uuid":"224770076","full_name":"shiguredo/kvconf","owner":"shiguredo","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-02T02:58:43.000Z","size":9763,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-04-02T21:19:26.872Z","etag":null,"topics":["erlang","ini"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shiguredo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2019-11-29T03:28:24.000Z","updated_at":"2025-04-02T02:58:47.000Z","dependencies_parsed_at":"2024-09-24T21:51:28.065Z","dependency_job_id":"e3bedb12-0d90-4dea-8460-6816103e7c20","html_url":"https://github.com/shiguredo/kvconf","commit_stats":{"total_commits":127,"total_committers":3,"mean_commits":"42.333333333333336","dds":0.1889763779527559,"last_synced_commit":"c91290fa18b4f7922017ddd2e8a30c3f3ebced2d"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiguredo%2Fkvconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiguredo%2Fkvconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiguredo%2Fkvconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiguredo%2Fkvconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shiguredo","download_url":"https://codeload.github.com/shiguredo/kvconf/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154986,"owners_count":21056543,"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":["erlang","ini"],"created_at":"2024-09-24T21:51:23.086Z","updated_at":"2025-04-10T04:10:31.620Z","avatar_url":"https://github.com/shiguredo.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kvconf\n\n![GitHub Actions workflow](https://github.com/shiguredo/kvconf/actions/workflows/ci.yml/badge.svg)\n[![GitHub tag](https://img.shields.io/github/tag/shiguredo/kvconf.svg)](https://github.com/shiguredo/kvconf)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n- kvconf は Erlang アプリケーションで Erlang Term を設定ファイルに利用するのに疲れた人のための仕組みです\n- INI 形式ベースで、文字列は `\"\"` を囲わず、コメントは `#` を採用しています\n- INI 形式のセクション機能は利用できない\n- 設定ファイルに対するバリデーションを Erlang のレコードを利用して定義することができるため Dialyzer の恩恵を受けることができます\n\n## rebar.conf\n\n```erlang\n{deps, [{kvconf, \"2024.3.1\"}]}.\n```\n\n## 設定ファイル例\n\n```text\netc/app.conf\n```\n\n```ini\n# コメント\nkey = value\n```\n\n## 設定定義例\n\n```erlang\n[\n    #kvc{key = a, type = #kvc_atom{candidates = [x,y,z]}, default = x},\n    #kvc{key = b, type = #kvc_string{}, required = true},\n    #kvc{key = c, type = #kvc_interval{min = {10, s}, max = {30, s}, out_time_unit = millisecond}, default = {20, s}},\n    #kvc{key = d, type = #kvc_integer{min = 10, max = 100}},\n    #kvc{key = e, type = #kvc_boolean{}, default = true}\n]\n```\n\n## ライセンス\n\n```text\nCopyright 2019-2025, Shiguredo Inc.\nCopyright 2019-2021, Shunichi Shinohara (Original Author)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiguredo%2Fkvconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiguredo%2Fkvconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiguredo%2Fkvconf/lists"}