{"id":18331299,"url":"https://github.com/mynttt/ezconf","last_synced_at":"2025-10-12T06:39:30.445Z","repository":{"id":57730754,"uuid":"261613280","full_name":"mynttt/ezconf","owner":"mynttt","description":"A simple hierarchical scoped group based key:value storage/configuration format.","archived":false,"fork":false,"pushed_at":"2021-06-24T21:00:37.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T18:54:13.712Z","etag":null,"topics":["configuration","java","key-value","parser","storage-format"],"latest_commit_sha":null,"homepage":"","language":"Java","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/mynttt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-06T00:25:07.000Z","updated_at":"2021-06-24T21:00:40.000Z","dependencies_parsed_at":"2022-09-26T22:01:36.268Z","dependency_job_id":null,"html_url":"https://github.com/mynttt/ezconf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mynttt/ezconf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mynttt%2Fezconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mynttt%2Fezconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mynttt%2Fezconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mynttt%2Fezconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mynttt","download_url":"https://codeload.github.com/mynttt/ezconf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mynttt%2Fezconf/sbom","scorecard":{"id":671052,"data":{"date":"2025-08-11","repo":{"name":"github.com/mynttt/ezconf","commit":"555d1a6f2cd6eba3ffdff69146a14a48b621dea5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T20:03:25.686Z","repository_id":57730754,"created_at":"2025-08-21T20:03:25.686Z","updated_at":"2025-08-21T20:03:25.686Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010518,"owners_count":26084757,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["configuration","java","key-value","parser","storage-format"],"created_at":"2024-11-05T19:29:46.149Z","updated_at":"2025-10-12T06:39:30.410Z","avatar_url":"https://github.com/mynttt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ezconf\n\nA simple hierarchical scoped group based key:value storage/configuration format.\n\n[![Build Status](https://travis-ci.com/mynttt/ezconf.svg?branch=master)](https://travis-ci.com/mynttt/ezconf) \n[![codecov](https://codecov.io/gh/mynttt/ezconf/branch/master/graph/badge.svg)](https://codecov.io/gh/mynttt/ezconf)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/8cb79eae6f2c4cb2a203679556b6203d)](https://www.codacy.com/manual/mynttt/ezconf?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=mynttt/ezconf\u0026amp;utm_campaign=Badge_Grade)\n[![GitHub issues](https://img.shields.io/github/issues/mynttt/ezconf)](https://github.com/mynttt/ezconf/issues) \n[![javadoc](https://javadoc.io/badge2/de.mynttt/ezconf/javadoc.svg)](https://javadoc.io/doc/de.mynttt/ezconf) \n[![GitHub license](https://img.shields.io/github/license/mynttt/ezconf)](https://github.com/mynttt/ezconf/blob/master/LICENSE)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.mynttt/ezconf/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.mynttt/ezconf)\n\n## Syntax\n\nAn ezconf file follows the following syntax:\n\n```\ngroup1 {\n  subgroup1 {\n      key: value;\n      key2: \\:value\\}escaped\\;;\n      key3: key\n            is\n            multiline;\n      key4: \"has literal \\\"\";\n  }\n}\n\ngroup2 {\n  key: value;\n}\n```\n\nGroups can be nested arbitrarily deep.\n\n## Syntax and Constraints\n\n- ### Groups:\n  - Groups can be nested\n  - Only groups can contain key:value pairs\n  - Group identifier names must be unique in the given scope\n  - Group identifier names can only contain letters and digits, whitespace is not permitted and will be skipped. (Example: `t est {}` will be parsed as `test`.)\n  - Group identifiers cannot be multiline or blank\n\n- ### Keys:\n  - Keys can contain whitespace but will be trimmed (i.e. `  k ey  : value;` will be parsed as `k ey`)\n  - Keys cannot be multiline or blank\n  - Keys must be unique in a given scope\n  - Null keys cannot exist and are invalid\n  - Special symbols must be escaped with `\\`, to escape the escape do this `\\\\` (value literal must not be escaped for keys)\n\n- ### Values:\n  - Values can contain whitespace and can be multiline but cannot be blank\n  - Values will be trimmed at each line while parsing (i.e. ` value   \\n   stop;` will be parsed as `value\\nstop`)\n  - Null values do not exist and are invalid\n  - Special symbols must be escaped with `\\`, to escape the escape do this `\\\\`\n  - Literals allow to not escape special characters (exception: `\"`)\n    - Literals must have the first non-whitespace character start with `\"`\n    - An unescaped `\"` will trigger an exception if the first non-whitespace character is not `\"`\n    - Within the literal `\"` must still be escaped\n    - A closing literal still requires the `;`\n  \n- Parser automatically escaped key / value pairs on dump\n\n## Special symbols\n```\n{ -\u003e begin group\n} -\u003e end group\n: -\u003e key value seperator\n; -\u003e end value\n# -\u003e comment, skip everything after for this line\n\" -\u003e value literal\n```\n\n## API Example\n\nA reference implementation is shipped with this release and JavaDoc is available for all publicly accessible code.\n\n```java\n\nimport java.util.Optional;\nimport de.mynttt.ezconf.Configuration;\nimport de.mynttt.ezconf.ConfigurationBuilder;\nimport de.mynttt.ezconf.ConfigurationGroup;\nimport de.mynttt.ezconf.ConfigurationValidator;\nimport de.mynttt.ezconf.DefaultValidators;\nimport de.mynttt.ezconf.EzConf;\nimport de.mynttt.ezconf.ConfigurationValidator.ValidationContext;\n\npublic class Example {\n\n    public static void main(String[] args) {\n        Configuration conf = EzConf.defaultParser().parse(\"example { key: true; nested { key: value; }}\");\n        System.out.println(\"Check if group exists? : \" + conf.groupExists(\"example\"));\n        \n        ConfigurationGroup nested = conf.getGroup(\"example.nested\");\n        System.out.println(\"Check if value exists? : \" + nested.keyExists(\"key\"));\n        System.out.println(\"Access values: \" + nested.getValue(\"key\") + \" or \" + conf.getValue(\"example.nested#key\"));\n        \n        Optional\u003cString\u003e value = conf.findValue(\"example#key\");\n        \n        for(var entry : nested)\n            System.out.println(entry.getKey() + \": \" + entry.getValue());\n        \n        Configuration built = ConfigurationBuilder.newDefaultInstance()\n                .addRoot(\"root\")\n                    .addChild(\"child\")\n                    .put(\"key\", \"value\")\n                    .endChild()\n                .endRoot()\n                .build();\n        \n        System.out.println(\"Printing with literals used for escaping:\");\n        System.out.println(EzConf.defaultParser().dumpPretty(built));\n        System.out.println(\"Printing without literals used for escaping:\");\n        System.out.println(EzConf.defaultParser(ParserFlags.DUMP_ESCAPE_INSTEAD_OF_LITERAL).dumpPretty(built));\n        \n        ValidationContext ctx = ConfigurationValidator.newInstance()\n                .requireGroups(\"example\", \"example.nested\")\n                .valuesMatchInGroup(DefaultValidators.IS_BOOLEAN, \"example\")\n                .build();\n        \n        System.out.println(\"Is valid? : \" + ctx.validate(conf).isValid());\n        \n        ValidationContext ctx2 = ConfigurationValidator.newInstance()\n                .valuesMatchRecursively(DefaultValidators.IS_BYTE, \"example\")\n                .build();\n        \n        System.out.println(\"Is invalid? : \" + !ctx2.validate(conf).isValid());\n    }\n    \n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmynttt%2Fezconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmynttt%2Fezconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmynttt%2Fezconf/lists"}